/* ==========================================================================
   Courtship — Linda Beier Latz
   Colours are all defined once, right here at the top. Change a value here
   and it updates everywhere on the site.
   ========================================================================== */

:root {
  --cream:        #FFF8F3;   /* main page background */
  --cream-deep:   #FDEEE5;   /* slightly darker cream for alternating bands */
  --crimson:      #A5190D;   /* the deep red of the title on the cover */
  --rose-dark:    #B81E68;   /* DARK PINK — headings, buttons, links */
  --rose-lit:     #D4297D;   /* lighter pink, for button hover */
  --crimson-lit:  #D62410;   /* brighter red, used for the swoosh + accents */
  --coral:        #FA9A6B;   /* left end of the cover gradient */
  --pink:         #F76FB8;   /* right end of the cover gradient */
  --pink-deep:    #E0479A;
  --maroon:       #4A1410;   /* the dark band at the bottom of the cover */
  --ink:          #2E1A16;   /* body text */
  --muted:        #7B5A52;   /* quieter text: captions, small print */
  --rule:         #EBD4C8;   /* hairline borders */

  --gradient:     linear-gradient(105deg, var(--coral) 0%, #F97FA6 45%, var(--pink) 100%);

  --font-display: 'Marcellus', Georgia, 'Times New Roman', serif;
  --font-body:    'Lora', Georgia, serif;

  --measure: 34rem;          /* comfortable reading width */
  --gutter: 1.5rem;
}

/* --------------------------------------------------------------- base --- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 .5em;
  color: var(--rose-dark);
  font-weight: 400;   /* Marcellus has one weight; faux-bold looks smudged */
}

p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }

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

:focus-visible {
  outline: 3px solid var(--rose-dark);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: -9999px;
  background: var(--maroon); color: #fff;
  padding: .75rem 1.25rem; z-index: 100; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; top: 0; }

.wrap {
  width: 100%;
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { padding-block: clamp(3.5rem, 8vw, 6rem); }

.section-head { text-align: center; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head h2 { font-size: clamp(1.9rem, 5vw, 2.75rem); }

/* A small decorative swoosh, echoing the red line under the cover title. */
.swoosh {
  display: block; width: 130px; height: 12px; margin: .4rem auto 0;
  overflow: visible;
}
.swoosh path { stroke: var(--crimson-lit); stroke-width: 2.5; fill: none; stroke-linecap: round; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: .75rem;
}

/* ------------------------------------------------------------ buttons --- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  padding: .85rem 1.75rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--rose-dark); color: #fff;
  box-shadow: 0 6px 18px -6px rgba(184, 30, 104, .55);
}
.btn--primary:hover { background: var(--rose-lit); box-shadow: 0 10px 24px -8px rgba(184, 30, 104, .6); }

.btn--ghost {
  background: rgba(255, 255, 255, .7);
  color: var(--rose-dark);
  border-color: var(--rose-dark);
}
.btn--ghost:hover { background: #fff; }

/* --------------------------------------------------------------- nav ---- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 243, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4rem;
}
.nav__name {
  font-family: var(--font-display); font-weight: 400; font-size: 1.1rem;
  color: var(--rose-dark); text-decoration: none; letter-spacing: .02em;
  white-space: nowrap;
}
.nav__links { display: none; gap: 1.75rem; align-items: center; }
.nav__links a {
  text-decoration: none; color: var(--ink); font-size: .95rem;
  padding-block: .25rem; border-bottom: 2px solid transparent;
}
.nav__links a:hover { color: var(--rose-dark); border-bottom-color: var(--rose-dark); }
.nav .btn { padding: .55rem 1.15rem; font-size: .9rem; }

@media (min-width: 60rem) { .nav__links { display: flex; } }

/* -------------------------------------------------------------- hero ---- */

.hero {
  background: var(--gradient);
  padding-block: clamp(3rem, 7vw, 5.5rem);
  position: relative;
  overflow: hidden;
}
.hero__inner {
  display: grid; gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}
@media (min-width: 52rem) {
  .hero__inner { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); text-align: left; justify-items: start; }
}

.hero__cover {
  width: min(17rem, 68vw);
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(74, 20, 16, .2), 0 22px 45px -12px rgba(74, 20, 16, .45);
  transform: none;   /* sits square, no tilt */
  transition: transform .4s ease;
}
.hero__cover:hover { transform: scale(1.02); }
@media (min-width: 52rem) { .hero__cover { width: 100%; } }

.badge {
  display: inline-block;
  background: var(--rose-dark); color: #fff;   /* matches the "Tell me when it's out" button */
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: .45rem 1rem; border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(3rem, 12vw, 5.5rem);
  color: var(--rose-dark);
  margin: 0 0 .1em;
  letter-spacing: .01em;
  text-shadow: 0 2px 0 rgba(255,255,255,.25);
}
.hero__byline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3.5vw, 1.45rem);
  color: var(--maroon);
  letter-spacing: .06em;
  margin: 0 0 1.25rem;
}
.hero__tagline {
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  color: var(--maroon);
  max-width: 30rem;
  margin: 0 0 2rem;
  line-height: 1.55;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; }
@media (min-width: 52rem) { .hero__actions { justify-content: flex-start; } }

/* -------------------------------------------------------------- book ---- */

.book { background: var(--cream); }
.book__body { max-width: var(--measure); margin-inline: auto; font-size: 1.125rem; }
.book__body p:first-of-type::first-letter {
  font-family: var(--font-display);
  float: left; font-size: 3.6em; line-height: .82;
  padding: .06em .09em 0 0; color: var(--rose-dark);
}

.pullquote {
  max-width: var(--measure); margin: 3rem auto 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-family: var(--font-body);   /* Marcellus has no true italic, so Lora italic is used here */
  font-size: clamp(1.3rem, 3.4vw, 1.75rem);
  font-style: italic;
  color: var(--rose-dark);
  line-height: 1.4;
}

.meta-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2rem;
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: .9rem; color: var(--muted);
}
.meta-strip strong { color: var(--ink); font-weight: 600; }

/* ----------------------------------------------------------- excerpt ---- */

.excerpt { background: var(--cream-deep); }
.excerpt__sheet {
  max-width: 40rem; margin-inline: auto;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 18px 40px -22px rgba(74, 20, 16, .35);
  padding: clamp(1.75rem, 5vw, 3.25rem);
  position: relative;
}
.excerpt__chapter {
  text-align: center; font-family: var(--font-body);
  text-transform: uppercase; letter-spacing: .2em; font-size: .78rem;
  color: var(--muted); margin-bottom: 1.75rem;
}
.excerpt__text { font-size: 1.09rem; line-height: 1.8; }
.excerpt__text p + p { text-indent: 1.5em; margin-top: -.6em; }

/* The fade + button only exist while the excerpt is collapsed. */
.excerpt__text[data-collapsed="true"] {
  max-height: 24rem; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 60%, transparent 100%);
          mask-image: linear-gradient(#000 60%, transparent 100%);
}
.excerpt__more { text-align: center; margin-top: 1.5rem; }

/* ------------------------------------------------------------- about ---- */

.about { background: var(--cream); }
.about__inner {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr; align-items: start; justify-items: center;
}
@media (min-width: 48rem) {
  .about__inner { grid-template-columns: 15rem minmax(0, 1fr); justify-items: start; }
}
.about__photo {
  width: min(15rem, 60vw); aspect-ratio: 1; object-fit: cover;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 0 0 2px var(--pink), 0 16px 34px -16px rgba(74, 20, 16, .5);
}
.about__text { max-width: var(--measure); }
.about__text h2 { text-align: left; }

.socials { display: flex; gap: .75rem; margin-top: 1.75rem; flex-wrap: wrap; }
.socials a {
  display: inline-flex; align-items: center; gap: .5rem;
  text-decoration: none; color: var(--maroon);
  border: 1px solid var(--rule); background: #fff;
  padding: .55rem 1.1rem; border-radius: 999px; font-size: .92rem;
  transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
.socials a:hover { color: var(--rose-dark); border-color: var(--pink); transform: translateY(-2px); }
.socials svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }

/* ------------------------------------------------------------- buy ------ */

.buy { background: #FFFFFF; }
.buy .section-head p { color: var(--muted); max-width: 34rem; margin-inline: auto; }
.buy__grid {
  display: grid; gap: 1rem; max-width: 46rem; margin-inline: auto;
  grid-template-columns: 1fr;
}
@media (min-width: 40rem) { .buy__grid { grid-template-columns: 1fr 1fr; } }

.retailer {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.1rem 1.35rem;
  text-decoration: none; color: var(--maroon);
  font-weight: 600;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.retailer:hover {
  background: #fff; border-color: var(--pink);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -12px rgba(224, 71, 154, .55);
}
.retailer[aria-disabled="true"] { opacity: .7; cursor: default; }
.retailer[aria-disabled="true"]:hover {
  transform: none; background: var(--cream);
  border-color: var(--rule); box-shadow: none;
}
.retailer__note {
  font-size: .78rem; font-weight: 600; color: var(--pink-deep);
  letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}

/* ------------------------------------------------------------ signup ---- */

.signup { background: var(--gradient); }
.signup .section-head h2 { color: var(--rose-dark); }
.signup .section-head p { color: var(--maroon); }

.form-card {
  max-width: 34rem; margin-inline: auto;
  background: rgba(255, 252, 250, .93);
  border-radius: 14px;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: 0 20px 45px -20px rgba(74, 20, 16, .5);
}

.field { margin-bottom: 1rem; }
.field label {
  display: block; font-size: .88rem; font-weight: 600;
  color: var(--maroon); margin-bottom: .35rem;
}
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem;
  padding: .75rem .9rem;
  border: 1px solid var(--rule); border-radius: 8px;
  background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus { border-color: var(--rose-dark); }
.field textarea { min-height: 8rem; resize: vertical; }

.form-card .btn { width: 100%; margin-top: .5rem; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 1rem; text-align: center; }

/* Shown only while a form is still unconnected. Removed once it's wired up. */
.form-warning {
  background: #FFF3CD; border: 1px solid #E5C766; color: #6B4E04;
  border-radius: 8px; padding: .8rem 1rem; font-size: .85rem;
  margin-bottom: 1.25rem; line-height: 1.5;
}
.form-warning strong { display: block; margin-bottom: .2rem; }

/* ----------------------------------------------------------- contact ---- */

.contact { background: var(--cream-deep); }

/* ------------------------------------------------------------ footer ---- */

.footer {
  background: var(--maroon); color: #E8C3B6;
  padding-block: 3rem; text-align: center; font-size: .9rem;
}
.footer a { color: #FFD9CA; }
.footer__press {
  font-family: var(--font-display); font-size: 1.05rem;
  color: #FFE9DE; margin-bottom: .35rem;
}
.footer__legal { margin-top: 1.5rem; font-size: .8rem; color: #B98D7E; }

/* ------------------------------------------------- on-gradient text ----- */
/* Two headings sit directly on the coral-to-pink gradient. Dark pink on
   pink goes muddy and hard to read, so these two keep the deep red from
   the cover. Everything on cream or white is dark pink. */

.hero h1 { color: var(--crimson); }
.signup .section-head h2 { color: var(--crimson); }

/* -------------------------------------------------- heart over the i ---- */
/* The hero title's "i" is a dotless i; this heart sits where its dot would
   be, echoing the little red heart floating above the title on the cover. */

.ih { position: relative; display: inline-block; }

.ih__heart {
  position: absolute;
  left: 50%;
  top: .035em;
  width: .29em;
  height: .29em;
  transform: translateX(-50%) rotate(-8deg);
  fill: var(--crimson-lit);
  pointer-events: none;
}

/* ------------------------------------------------- hero title swoosh ---- */
/* The cover sets its title over a tapered red swoosh. This path
   repeats that: thin at both ends, thickest in the middle, running from
   just left of the C to just past the t. */

.title { position: relative; display: inline-block; }
.court { position: relative; display: inline-block; }

.title__swoosh {
  position: absolute;
  left: -5%;
  top: 1.04em;
  width: 113%;
  height: .30em;

  fill: var(--crimson-lit);
  pointer-events: none;
  overflow: visible;
}

/* ------------------------------------------------- excerpt: a text msg -- */
/* Marc's reply is a phone message, not narration, so it sits apart from the
   indented prose the way a book would set it. */

.excerpt__text p.msg {
  text-indent: 0;
  margin: 1.6em 0 1.6em 1.5em;
  font-style: italic;
  color: var(--muted);
}

/* --------------------------------------------------- spam decoy field --- */
/* Hidden from people, visible to robots. Anything that fills it is spam. */

.hidden-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ----------------------------------------------------- signup failure --- */
/* Shown only when the subscribe function redirects back with an error. */

.form-alert {
  background: #FDECEA;
  border: 1px solid #E0A8A0;
  color: #8A2318;
  border-radius: 8px;
  padding: .8rem 1rem;
  font-size: .9rem;
  margin: 0 0 1.25rem;
  line-height: 1.5;
}
