/* =========================================================================
   THE IN-LAW CALL — book marketing site
   Warm, literary, kitchen-table palette: cream, deep brown, terracotta.
   The deliberate opposite of the Dignity Commission's cold lilac.
   ========================================================================= */

:root {
  --cream: #f7f1e6;
  --cream-deep: #efe6d4;
  --paper: #fdfaf3;
  --ink: #2b2420;
  --ink-soft: #5a4f45;
  --ink-faint: #8a7d6e;
  --brown: #3a2c22;
  --terracotta: #b8532f;
  --terracotta-deep: #8f3d20;
  --sauce: #a8371f;
  --gold: #c98a3a;
  --olive: #6f6a3c;
  --line: #e2d6c0;

  /* the Commission's lilac — used ONLY for the portal cross-link */
  --lilac: #9184c9;
  --lilac-deep: #6b5da3;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Newsreader", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1080px;
  --shadow: 0 20px 60px rgba(58, 44, 34, 0.16);
  --shadow-sm: 0 4px 20px rgba(58, 44, 34, 0.10);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--body); color: var(--ink);
  background: var(--cream); line-height: 1.65; font-size: 19px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--terracotta-deep); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; color: var(--brown); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.narrow { max-width: 720px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 10px 16px; z-index: 200; }

/* ---- top bar ---- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(247, 241, 230, 0.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; min-height: 60px; gap: 18px; }
.topbar .logo { font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--brown); text-decoration: none; letter-spacing: -0.01em; }
.topbar nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.topbar nav a { font-family: var(--sans); font-size: 14.5px; color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.topbar nav a:hover { color: var(--terracotta-deep); }
.topbar nav a.buy { background: var(--terracotta); color: #fff; padding: 8px 18px; border-radius: 999px; }
.topbar nav a.buy:hover { background: var(--terracotta-deep); color: #fff; }
@media (max-width: 680px) { .topbar nav a.nav-hide { display: none; } }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(184, 83, 47, 0.10), transparent 45%),
    radial-gradient(circle at 12% 82%, rgba(111, 106, 60, 0.08), transparent 42%);
  pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1fr 0.82fr; gap: 60px; align-items: center; padding: 74px 26px 84px; position: relative; }
.hero .eyebrow { font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.22em; font-size: 12.5px; font-weight: 700; color: var(--terracotta); margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 4.3rem); letter-spacing: -0.02em; margin: 0 0 8px; }
.hero .title-sub { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.3rem, 3vw, 1.7rem); color: var(--terracotta-deep); margin: 0 0 26px; }
.hero .tagline { font-size: 1.5rem; line-height: 1.35; color: var(--brown); max-width: 20ch; margin: 0 0 20px; font-family: var(--serif); }
.hero .byline { font-family: var(--sans); font-size: 15px; color: var(--ink-faint); letter-spacing: 0.02em; margin-bottom: 32px; }
.hero .byline strong { color: var(--ink-soft); font-weight: 600; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.book-cover { position: relative; justify-self: center; }
.book-cover img { width: 100%; max-width: 380px; border-radius: 4px; box-shadow: var(--shadow); transform: rotate(1.4deg); transition: transform 0.4s ease; }
.book-cover img:hover { transform: rotate(0deg) scale(1.02); }
.book-cover::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: -22px; height: 30px; background: radial-gradient(ellipse, rgba(58,44,34,0.22), transparent 70%); z-index: -1; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--sans); font-weight: 600; font-size: 16px; padding: 14px 28px; border-radius: 999px; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: transform .05s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--terracotta-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--brown); border-color: var(--ink-faint); }
.btn-ghost:hover { border-color: var(--brown); }
.btn .soon { font-size: 11px; background: rgba(255,255,255,0.25); padding: 2px 7px; border-radius: 999px; font-weight: 700; letter-spacing: 0.04em; }

/* =========================================================================
   SECTIONS
   ========================================================================= */
section { position: relative; }
.band { padding: 84px 0; }
.band.cream { background: var(--cream); }
.band.paper { background: var(--paper); }
.band.deep { background: var(--brown); color: #efe6d4; }

.kicker { font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.2em; font-size: 12px; font-weight: 700; color: var(--terracotta); text-align: center; margin-bottom: 16px; }
.band h2 { font-size: clamp(2rem, 4vw, 2.9rem); text-align: center; max-width: 18ch; margin: 0 auto 34px; letter-spacing: -0.01em; }

/* synopsis */
.synopsis p { font-size: 1.24rem; line-height: 1.7; color: var(--ink-soft); margin: 0 0 24px; }
.synopsis p.lead { font-size: 1.5rem; color: var(--brown); font-family: var(--serif); line-height: 1.45; }
.synopsis .names { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; }
.synopsis .who { background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 26px 28px; }
.band.paper .synopsis .who { background: var(--paper); }
.synopsis .who h3 { font-size: 1.3rem; margin: 0 0 8px; }
.synopsis .who p { font-size: 1.02rem; margin: 0; color: var(--ink-soft); }
@media (max-width: 680px) { .synopsis .names { grid-template-columns: 1fr; } }

/* =========================================================================
   PULL QUOTES
   ========================================================================= */
.quotes { display: grid; gap: 0; }
.pullquote { padding: 60px 0; border-bottom: 1px solid rgba(226,214,192,0.6); text-align: center; }
.pullquote:last-child { border-bottom: none; }
.pullquote blockquote { margin: 0 auto; max-width: 22ch; font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.18; color: var(--brown); letter-spacing: -0.01em; }
.pullquote blockquote.wide { max-width: 30ch; }
.pullquote .attr { font-family: var(--sans); font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--terracotta); margin-top: 22px; font-weight: 600; }
.pullquote .mark { font-family: var(--serif); font-size: 3rem; color: var(--terracotta); opacity: 0.35; line-height: 0.5; }

/* the hero feature quote (deep band) */
.feature-quote { text-align: center; }
.feature-quote blockquote { font-family: var(--serif); font-weight: 500; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.2; color: var(--cream); max-width: 20ch; margin: 0 auto; letter-spacing: -0.01em; }
.feature-quote .attr { font-family: var(--sans); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-top: 26px; }

/* =========================================================================
   "FOR READERS OF" + DETAILS
   ========================================================================= */
.readers { text-align: center; }
.readers .list { display: flex; flex-wrap: wrap; gap: 12px 14px; justify-content: center; max-width: 760px; margin: 0 auto; }
.readers .list span { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ink-soft); }
.readers .list span::after { content: "·"; margin-left: 14px; color: var(--terracotta); font-style: normal; }
.readers .list span:last-child::after { content: ""; }

.details { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 760px; margin: 44px auto 0; text-align: center; }
.details .d { padding: 18px 10px; }
.details .d .n { font-family: var(--serif); font-size: 1.7rem; color: var(--terracotta-deep); }
.details .d .l { font-family: var(--sans); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin-top: 6px; }
@media (max-width: 680px) { .details { grid-template-columns: 1fr 1fr; } }

/* =========================================================================
   THE COMMISSION CROSS-LINK  (the interplay — the one lilac moment)
   ========================================================================= */
.commission-tease { background: linear-gradient(165deg, #efeaf7, #e2dcf2); border-top: 1px solid #d3c9ec; border-bottom: 1px solid #d3c9ec; }
.commission-tease .wrap { padding: 70px 26px; text-align: center; }
.commission-tease .seal { width: 104px; height: 104px; margin: 0 auto 22px; }
.commission-tease .kicker { color: var(--lilac-deep); }
.commission-tease h2 { color: #3a3350; max-width: 22ch; margin: 0 auto 18px; }
.commission-tease p { font-family: var(--body); font-size: 1.2rem; color: #4a4266; max-width: 46ch; margin: 0 auto 28px; }
.commission-tease .btn-lilac { background: var(--lilac); color: #fff; }
.commission-tease .btn-lilac:hover { background: var(--lilac-deep); color: #fff; }
.commission-tease .footnote { font-family: var(--sans); font-size: 13px; color: #7d739f; margin-top: 18px; }

/* =========================================================================
   AUTHOR + CONTACT
   ========================================================================= */
.author { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 760px) { .author { grid-template-columns: 1fr; gap: 40px; } }
.author .bio h2 { text-align: left; margin: 0 0 20px; max-width: none; }
.author .bio p { font-size: 1.12rem; color: var(--ink-soft); margin: 0 0 18px; }
.author .bio .sig { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--terracotta-deep); }

.contact-card { background: var(--cream); border: 1px solid var(--line); border-radius: 16px; padding: 34px 32px; }
.band.paper .contact-card { background: var(--paper); }
.contact-card h3 { font-size: 1.5rem; margin: 0 0 6px; }
.contact-card .sub { font-family: var(--sans); font-size: 14.5px; color: var(--ink-faint); margin: 0 0 22px; }
.field-label { font-family: var(--sans); font-weight: 600; font-size: 13.5px; color: var(--ink-soft); display: block; margin-bottom: 6px; }
.field { width: 100%; padding: 13px 15px; font-size: 16px; font-family: var(--body); border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); margin-bottom: 16px; }
.field:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(184,83,47,0.14); }
textarea.field { min-height: 120px; resize: vertical; }
.contact-status { font-family: var(--sans); font-size: 14px; margin-top: 6px; min-height: 20px; color: var(--ink-soft); }
.contact-alt { font-family: var(--sans); font-size: 13.5px; color: var(--ink-faint); margin-top: 16px; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.sitefoot { background: var(--brown); color: #cdbfa9; font-family: var(--sans); font-size: 14px; }
.sitefoot .wrap { padding: 46px 26px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.sitefoot .logo { font-family: var(--serif); font-size: 20px; color: var(--cream); }
.sitefoot .logo em { font-style: italic; color: var(--gold); }
.sitefoot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.sitefoot a { color: #cdbfa9; text-decoration: none; }
.sitefoot a:hover { color: #fff; }
.sitefoot .fine { width: 100%; border-top: 1px solid #4d3d31; padding-top: 20px; color: #9a8a76; font-size: 12.5px; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; text-align: center; padding-top: 54px; }
  .hero .tagline, .hero h1 { margin-left: auto; margin-right: auto; }
  .hero .cta-row { justify-content: center; }
  .book-cover { order: -1; }
  .book-cover img { max-width: 280px; }
}
