/* ==========================================================================
   Tanya Khort, author site
   Single stylesheet for every page, light and dark colour schemes.
   Edit this file only; the homepage no longer carries its own copy.
   Build with: node build.js
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Design tokens
   Base palette first, then semantic tokens. Components use semantic tokens
   only, so the dark scheme is a token swap, not a second stylesheet.
   -------------------------------------------------------------------------- */

:root {
  color-scheme: light dark;

  /* base palette, from the book cover */
  --c-walnut:     #2E1F12;
  --c-walnut-mid: #3D2918;
  --c-amber:      #B87840;
  --c-amber-hi:   #C8904A;
  --c-amber-deep: #7D5219;
  --c-cream:      #F0E8D8;
  --c-parchment:  #E4D5BE;
  --c-paper:      #F7F2E9;
  --c-slate-deep: #4A5E70;
  --c-charcoal:   #241810;

  /* semantic tokens, light scheme */
  --bg:          var(--c-cream);
  --surface:     var(--c-paper);       /* raised panels, cards on hover */
  --surface-2:   var(--c-parchment);   /* placeholder blocks */
  --border:      var(--c-parchment);
  --ink:         var(--c-charcoal);
  --ink-strong:  var(--c-walnut);      /* headings */
  --muted:       rgba(36, 24, 16, 0.70);   /* 5.45:1 on cream */
  --accent:      var(--c-amber);       /* rules, large or decorative only */
  --accent-hi:   var(--c-amber-hi);
  --accent-text: var(--c-amber-deep);  /* small labels, 5.25:1 on cream */
  --slate-text:  var(--c-slate-deep);  /* small labels, 5.16:1 on cream */

  /* dark page bands: nav, page heroes, pitch, footer */
  --band:        var(--c-walnut);
  --band-2:      var(--c-walnut-mid);
  --band-text:   var(--c-cream);
  --band-border: rgba(240, 232, 216, 0.08);

  --btn-bg:        var(--c-walnut);
  --btn-text:      var(--c-cream);
  --btn-hover:     var(--c-amber);
  --btn-hover-txt: var(--c-cream);

  --cover-shadow:
    -8px 14px 48px rgba(46, 31, 18, 0.34),
    -3px 5px 14px rgba(46, 31, 18, 0.14);

  /* layout */
  --nav-h:  64px;
  --gutter: clamp(24px, 5.5vw, 88px);   /* page side padding */
  --block:  clamp(56px, 8vw, 96px);     /* section vertical padding */
  --colgap: clamp(40px, 6vw, 88px);     /* two column gap */
  --shell:  1680px;                     /* content cap on large monitors */
  --edge:   max(var(--gutter), calc((100% - var(--shell)) / 2));

  /* fluid type scale */
  --fs-hero:       clamp(54px, 6vw + 34px, 126px);
  --fs-page-title: clamp(44px, 4.5vw + 18px, 88px);
  --fs-book-title: clamp(38px, 3vw + 16px, 66px);
  --fs-quote:      clamp(22px, 1.4vw + 16px, 36px);
  --fs-colhead:    clamp(26px, 1vw + 20px, 32px);
}

/* dark scheme: deep walnut ground, cream ink, amber kept warm */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #15100A;
    --surface:     #1E1610;
    --surface-2:   #281E14;
    --border:      rgba(240, 232, 216, 0.14);
    --ink:         #EDE4D3;
    --ink-strong:  #F0E8D8;
    --muted:       rgba(237, 228, 211, 0.72);
    --accent:      var(--c-amber-hi);
    --accent-hi:   #D9A860;
    --accent-text: var(--c-amber-hi);   /* 6.6:1 on the dark ground */
    --slate-text:  #9FB4C6;             /* 8.7:1 on the dark ground */

    --band:        #251A10;
    --band-2:      #30220F;
    --band-text:   #EDE4D3;
    --band-border: rgba(240, 232, 216, 0.10);

    --btn-bg:        var(--c-amber-hi);
    --btn-text:      #241810;
    --btn-hover:     #D9A860;
    --btn-hover-txt: #241810;

    --cover-shadow:
      -10px 16px 52px rgba(0, 0, 0, 0.55),
      -3px 5px 16px rgba(0, 0, 0, 0.35);
  }
}

/* Manual override for forced-dark preview copies (see preview/dark/, built
   by build.js). Real visitors never set this attribute; it exists only so
   the responsive-preview harness can show dark mode regardless of the
   viewer's own OS/browser colour-scheme setting. Token values are an exact
   duplicate of the media query above, kept in sync by hand. */
:root[data-theme="dark"] {
  --bg:          #15100A;
  --surface:     #1E1610;
  --surface-2:   #281E14;
  --border:      rgba(240, 232, 216, 0.14);
  --ink:         #EDE4D3;
  --ink-strong:  #F0E8D8;
  --muted:       rgba(237, 228, 211, 0.72);
  --accent:      var(--c-amber-hi);
  --accent-hi:   #D9A860;
  --accent-text: var(--c-amber-hi);
  --slate-text:  #9FB4C6;

  --band:        #251A10;
  --band-2:      #30220F;
  --band-text:   #EDE4D3;
  --band-border: rgba(240, 232, 216, 0.10);

  --btn-bg:        var(--c-amber-hi);
  --btn-text:      #241810;
  --btn-hover:     #D9A860;
  --btn-hover-txt: #241810;

  --cover-shadow:
    -10px 16px 52px rgba(0, 0, 0, 0.55),
    -3px 5px 16px rgba(0, 0, 0, 0.35);
}


/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

#main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; }

h1, h2, h3 { text-wrap: balance; }

::selection { background: var(--c-amber); color: var(--c-cream); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* honour reduced motion everywhere */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* skip link, visible only when focused via keyboard */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 400;
  transform: translateY(-300%);
  background: var(--band);
  color: var(--band-text);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 20px;
  transition: transform 0.15s ease;
}
.skip-link:focus-visible { transform: none; }


/* --------------------------------------------------------------------------
   3. Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: var(--band);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--edge);
}

.nav-brand {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--band-text);
  text-decoration: none;
  flex-shrink: 0;
  padding-block: 8px;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: clamp(20px, 3vw, 40px);
}

.nav-list a {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--band-text);
  text-decoration: none;
  opacity: 0.55;
  padding-block: 8px;
  transition: opacity 0.2s;
}

.nav-list a:hover,
.nav-list a.active { opacity: 1; }

/* hamburger, hidden on wide screens */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--band-text);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 680px) {
  .nav-toggle { display: inline-flex; }

  .nav-list {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--band);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 18px;
    border-top: 1px solid var(--band-border);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0s linear 0.22s;
  }

  .nav-list.open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .nav-list a {
    display: block;
    padding: 14px var(--gutter);
    opacity: 0.75;
  }

  .nav-list a:hover,
  .nav-list a.active { background: var(--band-2); opacity: 1; }
}


/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  align-self: flex-start;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--btn-text);
  background: var(--btn-bg);
  padding: 16px 38px;
  text-decoration: none;
  border: 1px solid var(--btn-bg);
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
  cursor: pointer;
}

.btn:hover {
  background: var(--btn-hover);
  border-color: var(--btn-hover);
  color: var(--btn-hover-txt);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-strong);
  border-color: var(--ink-strong);
}

.btn-ghost:hover {
  background: var(--ink-strong);
  color: var(--bg);
}

.btn-dim { opacity: 0.38; pointer-events: none; cursor: default; }


/* --------------------------------------------------------------------------
   5. Page hero band (inner pages)
   -------------------------------------------------------------------------- */

.page-hero {
  padding-top: var(--nav-h);
  background: var(--band);
}

.page-hero-inner {
  padding: clamp(28px, 4vw, 40px) var(--edge) clamp(24px, 3vw, 32px);
}

.page-hero-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.85;
  margin-bottom: 18px;
}

.page-hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--fs-page-title);
  font-weight: 300;
  font-style: italic;
  color: var(--band-text);
  line-height: 1.0;
  letter-spacing: -0.01em;
}


/* --------------------------------------------------------------------------
   6. Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--band);
  padding: 36px var(--edge);
  padding-bottom: max(36px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-copy {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--band-text);
  opacity: 0.45;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
}

.footer-nav-list a {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--band-text);
  text-decoration: none;
  opacity: 0.5;
  padding-block: 6px;
  transition: opacity 0.2s;
}

.footer-nav-list a:hover { opacity: 0.9; }

@media (max-width: 680px) {
  .footer {
    flex-direction: column;
    text-align: center;
    padding-block: 32px;
  }
  .footer-nav-list { justify-content: center; }
}


/* --------------------------------------------------------------------------
   7. Home: hero
   -------------------------------------------------------------------------- */

.hero {
  padding-top: var(--nav-h);
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
}

.hero-cover-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--block) clamp(32px, 4vw, 64px) var(--block) var(--edge);
  min-width: 0;
}

.hero-cover-img {
  width: clamp(220px, 26vw, 400px);
  max-width: 100%;
  height: auto;
  box-shadow: var(--cover-shadow);
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--block) var(--edge) var(--block) clamp(32px, 4vw, 64px);
  background: var(--surface);
  min-width: 0;
}

.hero-genre {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 30px;
}

.hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--fs-hero);
  font-weight: 300;
  font-style: italic;
  line-height: 0.98;
  color: var(--ink-strong);
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.hero-byline {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.48;
  margin-bottom: clamp(36px, 4vw, 52px);
}

.hero-rule {
  width: 32px;
  height: 1px;
  background: var(--accent);
  margin-bottom: clamp(36px, 4vw, 52px);
}

.hero-tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(22px, 1.2vw + 17px, 26px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.65;
  color: var(--ink);
  max-width: 408px;
  margin-bottom: clamp(44px, 5vw, 64px);
}

.cta-note {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate-text);
  margin-bottom: 16px;
}

/* Pre-announcement mode: author name, tagline, and newsletter CTA -- no
   cover, no book title. #main is now a flex column (see #main above), so
   flex: 1 grows this to fill the space between header and footer on short
   pages -- height: 100% doesn't reliably do this, since #main's own size
   comes from its flex-grow rather than a definite height. Centers within
   that box instead of the base hero's own 100vh, so no extra viewport of
   height gets added below the footer. */
.hero-minimal {
  grid-template-columns: 1fr;
  min-height: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-minimal .hero-text-col {
  align-items: center;
  text-align: center;
  background: var(--bg);
  max-width: 560px;
  margin: 0 auto;
  padding-inline: clamp(32px, 4vw, 64px);
}

.hero-minimal-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-style: italic;
  line-height: 0.98;
  color: var(--ink-strong);
  letter-spacing: -0.02em;
  font-size: clamp(40px, 4vw + 24px, 84px);
  margin-bottom: clamp(28px, 3vw, 36px);
}

.hero-minimal .hero-rule {
  margin-bottom: clamp(36px, 4vw, 52px);
}

.hero-minimal .hero-tagline {
  max-width: 480px;
  margin-bottom: clamp(36px, 4vw, 48px);
}

.hero-minimal .btn {
  align-self: center;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-cover-col {
    padding: clamp(48px, 9vw, 72px) var(--gutter) clamp(32px, 6vw, 48px);
  }
  .hero-cover-img { width: min(56vw, 230px); }
  .hero-text-col {
    padding: clamp(40px, 7vw, 52px) var(--gutter) clamp(56px, 10vw, 80px);
  }
}


/* --------------------------------------------------------------------------
   8. Home: pitch band
   -------------------------------------------------------------------------- */

.pitch {
  background: var(--band);
  padding: var(--block) var(--gutter);
  text-align: center;
}

.pitch-line {
  width: 1px;
  height: 44px;
  background: var(--accent);
  margin: 0 auto clamp(36px, 5vw, 52px);
  opacity: 0.4;
}

.pitch-quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--fs-quote);
  font-weight: 300;
  font-style: italic;
  color: var(--band-text);
  line-height: 1.6;
  max-width: 840px;
  margin: 0 auto;
  opacity: 0.9;
}

.pitch-locale {
  margin-top: 40px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.72;
}


/* --------------------------------------------------------------------------
   10. About page
   -------------------------------------------------------------------------- */

.about-section {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--colgap);
  padding: var(--block) var(--gutter);
  max-width: 1240px;
  margin-inline: auto;
  align-items: start;
}

.author-photo-wrap {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

.author-photo {
  display: block;
  width: 280px;
  max-width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--border);
}

.bio-col { max-width: 72ch; }

.bio-col p {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(17px, 0.5vw + 14px, 19px);
  font-weight: 300;
  line-height: 1.82;
  color: var(--ink);
  margin-bottom: 1.7em;
}

.bio-col p:last-child { margin-bottom: 0; }

.bio-col > p:first-child::first-letter {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 4.2em;
  font-weight: 300;
  font-style: italic;
  float: left;
  line-height: 0.78;
  margin-right: 0.08em;
  color: var(--accent);
}

.author-influence {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.author-influence-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.author-influence-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 19px;
  font-weight: 400;
  font-style: italic;
  color: var(--ink-strong);
}

.about-pull-quote {
  margin: 2.2em 0;
  padding-left: clamp(20px, 2.5vw, 32px);
  border-left: 2px solid var(--accent);
}

.about-pull-quote p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--fs-quote);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-strong);
  margin-bottom: 0;
}

@media (max-width: 1080px) {
  .about-section { grid-template-columns: 220px 1fr; }
  .author-photo { width: 220px; }
}

@media (max-width: 860px) {
  .about-section { grid-template-columns: 1fr; max-width: 720px; }
  .author-photo-wrap { position: static; }
  .author-photo { width: 200px; }
  .author-influence { max-width: 280px; }
  .bio-col { max-width: none; }
}


/* --------------------------------------------------------------------------
   11. Books page
   -------------------------------------------------------------------------- */

.book-feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--colgap);
  padding: var(--block) var(--gutter);
  max-width: 1240px;
  margin-inline: auto;
  align-items: start;
}

.book-cover-col {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

.book-cover-img {
  width: clamp(240px, 24vw, 380px);
  max-width: 100%;
  height: auto;
  box-shadow: var(--cover-shadow);
}

.book-genre {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 22px;
}

.book-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--fs-book-title);
  font-weight: 300;
  font-style: italic;
  color: var(--ink-strong);
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.book-byline {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.48;
  margin-bottom: 48px;
}

.book-rule {
  width: 32px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 48px;
}

.book-blurb { max-width: 72ch; }

.book-blurb p {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(17px, 0.4vw + 15px, 18px);
  font-weight: 300;
  line-height: 1.82;
  color: var(--ink);
  margin-bottom: 1.5em;
}

.book-blurb p:last-child { margin-bottom: 0; }

.book-cta {
  margin-top: clamp(40px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.book-cta-note {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate-text);
}

.book-meta {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 28px 48px;
  flex-wrap: wrap;
}

.book-meta-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.book-meta-value {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--ink-strong);
}

.forthcoming {
  border-top: 1px solid var(--border);
  padding: clamp(48px, 7vw, 72px) var(--gutter);
  background: var(--surface);
  text-align: center;
}

.forthcoming-rule {
  width: 1px;
  height: 36px;
  background: var(--accent);
  margin: 0 auto 32px;
  opacity: 0.35;
}

.forthcoming-text {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.book-excerpt-section {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.book-excerpt-inner {
  max-width: 720px;
  margin-inline: auto;
  padding: var(--block) var(--gutter);
}

.excerpt-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 16px;
}

.excerpt-chapter {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 15px;
  font-weight: 400;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 32px;
}

.excerpt-block p {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(17px, 0.4vw + 15px, 18px);
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink);
  margin-bottom: 1.5em;
}

.excerpt-block p:last-child { margin-bottom: 0; }

.excerpt-block p:first-child::first-letter {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 3.6em;
  font-weight: 300;
  font-style: italic;
  float: left;
  line-height: 0.78;
  margin-right: 0.08em;
  color: var(--accent);
}

.book-setting-section {
  border-top: 1px solid var(--border);
}

.book-setting-inner {
  max-width: 1240px;
  margin-inline: auto;
  padding: var(--block) var(--gutter);
}

.setting-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 32px;
}

.setting-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--colgap);
}

.setting-city {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 300;
  font-style: italic;
  color: var(--ink-strong);
  margin-bottom: 14px;
}

.setting-text {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.78;
  color: var(--muted);
  max-width: 48ch;
}

@media (max-width: 860px) {
  .book-feature { grid-template-columns: 1fr; max-width: 720px; }
  .book-cover-col { position: static; }
  .book-cover-img { width: min(52vw, 220px); }
  .book-blurb { max-width: none; }
  .setting-grid { grid-template-columns: 1fr; gap: 40px; }
}


/* --------------------------------------------------------------------------
   13. Contact page
   -------------------------------------------------------------------------- */

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--colgap);
  padding: var(--block) var(--gutter);
  max-width: 1240px;
  margin-inline: auto;
  align-items: start;
}

.form-wrap {
  padding: var(--block) var(--gutter);
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.contact-form-col h2,
.newsletter-col h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--fs-colhead);
  font-weight: 300;
  font-style: italic;
  color: var(--ink-strong);
  margin-bottom: 20px;
}

.privacy-note {
  margin-top: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  line-height: 1.6;
}

.form-privacy-note {
  margin-top: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  line-height: 1.6;
}

.form-privacy-note a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 960px) {
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 64px;
    max-width: 720px;
  }
}


/* --------------------------------------------------------------------------
   14. Legal pages
   -------------------------------------------------------------------------- */

.legal-section {
  max-width: calc(64ch + 2 * var(--gutter));
  padding: var(--block) var(--gutter);
  margin-inline: auto;
}

.legal-section h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  font-style: italic;
  color: var(--ink-strong);
  margin: 2em 0 0.75em;
}

.legal-section h2:first-child { margin-top: 0; }

.legal-section p {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.78;
  color: var(--ink);
  margin-bottom: 1.2em;
}

.legal-section p:last-child { margin-bottom: 0; }

.placeholder {
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  padding: 14px 20px;
  margin: 1.2em 0;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--ink);
  font-style: italic;
}

@media (max-width: 600px) {
  .legal-section p { font-size: 16px; }
}


/* --------------------------------------------------------------------------
   15. Confirmation pages (message-sent, subscribed)
   -------------------------------------------------------------------------- */

.confirmation-section {
  text-align: center;
}

.confirmation-section .btn {
  margin-top: 0.5em;
}
