/* ============================================================
   Barry Beard — author site
   Palette pulled from the SIGN ME UP, DADDY cover: parchment cream,
   warm tan bookshelves, the teal pinstripe shirt, espresso-brown
   couch/ink, and a mossy plant green.
   (Variable names kept from the old pink build so nothing else
   in this file has to change.)
   ============================================================ */

:root {
  --cream:  #f8ecd6;   /* parchment page background */
  --blush:  #e6cb98;   /* warm tan wash, from the bookshelves */
  --rose:   #2f8f8c;   /* shirt teal — primary CTA / accent */
  --rose-ink: #1e6b68; /* deeper teal — hover / links */
  --plum:   #3b2a1c;   /* espresso couch-brown — ink */
  --plum-soft: #6b4f34;/* soft brown — secondary text */
  --teal:   #5c7a4a;   /* plant moss green — secondary pop */
  --card:   #fffaef;   /* warm off-white for cards, not stark white */
  --shadow: 0 18px 40px -18px rgba(59, 42, 28, .35);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--plum);
  background:
    radial-gradient(1200px 600px at 85% -10%, var(--blush), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, #eaf1e1, transparent 55%),
    var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.1;
  margin: 0 0 .4em;
  font-weight: 700;
}

a { color: var(--rose-ink); }

em { font-style: italic; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--plum);
  color: #fff;
  padding: .7rem 1rem;
  border-radius: 0 0 12px 0;
  z-index: 50;
}
.skip:focus { left: 0; }

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.4rem 1.5rem;
}
.brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.4rem;
  text-decoration: none;
  color: var(--plum);
}
.topbar nav a {
  text-decoration: none;
  color: var(--plum-soft);
  font-weight: 700;
  margin-left: 1.2rem;
  font-size: .95rem;
}
.topbar nav a:hover { color: var(--rose-ink); }

/* ---------- hero ---------- */
.hero {
  max-width: 1100px;
  margin: 1rem auto 0;
  padding: 1.5rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 2.5rem;
  align-items: start;
}
.kicker {
  display: inline-block;
  background: var(--plum);
  color: var(--cream);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .35rem .8rem;
  border-radius: 999px;
  margin: 0 0 1rem;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); }
.wink {
  color: var(--rose-ink);
  position: relative;
  white-space: nowrap;
}
.wink::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .08em;
  height: .28em;
  background: var(--teal);
  opacity: .35;
  border-radius: 999px;
  z-index: -1;
}
.hero__lede {
  font-size: 1.15rem;
  max-width: 34ch;
  color: var(--plum-soft);
}

.social-row {
  margin: .7rem 0 0;
  font-size: .9rem;
  font-weight: 700;
}
.social-row a {
  color: var(--plum-soft);
  text-decoration: none;
}
.social-row a:hover { color: var(--rose-ink); }
.social-row span { color: var(--blush); margin: 0 .5rem; }

/* ---------- sign-up box (the star) ---------- */
.signup {
  margin-top: 1.8rem;
  background: var(--card);
  border: 2px solid var(--blush);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem;
}
.signup h2 {
  font-size: 1.6rem;
  color: var(--rose-ink);
}
.signup__pitch {
  margin: .2rem 0 1.1rem;
  font-size: .98rem;
  color: var(--plum-soft);
}

.eo-form label {
  display: block;
  font-weight: 700;
  font-size: .85rem;
  margin-bottom: .35rem;
}
.eo-row {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  align-items: flex-end;
}
.eo-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.eo-field--name { flex: 1 1 110px; }
.eo-field--email { flex: 1 1 180px; }
.eo-input {
  width: 100%;
  min-width: 0;
  padding: .85rem 1rem;
  font: inherit;
  border: 2px solid var(--plum-soft);
  border-radius: 999px;
  background: var(--cream);
  color: var(--plum);
}
.eo-input:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 1px;
}
.eo-form button {
  flex: 0 0 auto;
  padding: .85rem 1.5rem;
  font: inherit;
  font-weight: 800;
  color: #fff;
  background: var(--rose);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 20px -8px var(--rose);
  transition: transform .12s ease, background .12s ease;
}
.eo-form button:hover { background: var(--rose-ink); transform: translateY(-1px); }
.eo-form button:active { transform: translateY(0); }

.eo-hp {
  position: absolute !important;
  left: -5000px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- hero cover ---------- */
.hero__cover {
  margin: 0;
  text-align: center;
}
.hero__cover img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: var(--shadow);
  transform: rotate(2.5deg);
}
.hero__cover figcaption {
  margin-top: .9rem;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  color: var(--plum-soft);
}

/* ---------- the book ---------- */
.book {
  max-width: 1000px;
  margin: 2rem auto 4rem;
  padding: 2.5rem 1.5rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.book__cover img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.series-tag {
  margin: 0 0 .3rem;
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--teal);
}
.book h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.tagline {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  color: var(--rose-ink);
  font-size: 1.1rem;
  margin: 0 0 1.1rem;
}
.blurb p { margin: 0 0 1rem; }
.book__meta {
  list-style: none;
  padding: 1.2rem;
  margin: 1.4rem 0;
  background: var(--cream);
  border-radius: 14px;
  font-size: .92rem;
}
.book__meta li + li { margin-top: .5rem; }

.buy { display: flex; gap: .8rem; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: .8rem 1.3rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  background: var(--plum);
  color: var(--cream);
}
.btn--ghost {
  background: transparent;
  color: var(--plum);
  border: 2px solid var(--plum);
}
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---------- about page ---------- */
.about {
  max-width: 900px;
  margin: 3rem auto 4rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.about__photo {
  width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: var(--shadow);
}
.about__body p { margin: 0 0 1.1rem; }
.about__body h1 { font-size: clamp(2rem, 5vw, 2.8rem); }

/* ---------- footer (deliberately quiet) ---------- */
.site-footer {
  border-top: 2px dashed var(--blush);
  background: transparent;
}
.site-footer__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
  font-size: .88rem;
  color: var(--plum-soft);
  text-align: center;
}
.site-footer p { margin: 0 0 .8rem; }
.site-footer .legal { font-size: .8rem; opacity: .85; }

/* ---------- responsive ---------- */
@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero__cover {
    order: -1;
    max-width: 260px;
    margin: 0 auto;
  }
  .hero__cover img { transform: none; }
  .book {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .book__cover { max-width: 220px; margin: 0 auto; }
  .about {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  .about__photo { max-width: 200px; margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__cover img { transform: none; }
}
