/* ===========================================================
   Jenna Westfield — Author Site
   Pacific-Northwest romance: evergreen, fog, warm dusk
   =========================================================== */

:root {
  /* Palette */
  --evergreen-900: #11201b;
  --evergreen-800: #1a2f27;
  --evergreen-700: #244033;
  --evergreen-600: #2f5644;
  --moss:          #6f8f7a;
  --fog:           #e7ebe7;
  --paper:         #f6f3ec;
  --paper-warm:    #efe9dd;
  --ink:           #20271f;
  --ink-soft:      #4a5249;
  --dusk:          #c9794f;   /* warm coral/rust accent */
  --dusk-deep:     #b15f37;
  --gold:          #c9a86a;

  /* Type */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --maxw: 1140px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 4px;
  --shadow-soft: 0 18px 50px -24px rgba(17, 32, 27, .55);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Anchor offset for the sticky header (reliable on click AND cross-page load) */
section[id], main [id] { scroll-margin-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.01em; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--dusk-deep);
  margin: 0 0 1rem;
}
.eyebrow.center, .center { text-align: center; }

.visually-hidden, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 1rem; left: 1rem; width: auto; height: auto;
  clip: auto; padding: .6rem 1rem; background: var(--evergreen-800); color: var(--fog);
  z-index: 200; border-radius: var(--radius);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .02em;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-primary { background: var(--dusk); color: #fff; }
.btn-primary:hover { background: var(--dusk-deep); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 243, 236, .82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(32, 39, 31, .08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand {
  font-family: var(--serif); font-size: 1.45rem; font-weight: 600;
  text-decoration: none; color: var(--evergreen-800); line-height: 1; letter-spacing: .01em;
  display: flex; align-items: baseline; gap: .55rem;
}
.brand-sub {
  font-family: var(--sans); font-size: .62rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--dusk-deep); font-weight: 600;
}
.primary-nav { display: flex; align-items: center; gap: 1.6rem; }
.primary-nav a {
  font-size: .9rem; text-decoration: none; color: var(--ink-soft); font-weight: 500;
  position: relative; padding: .3rem 0; transition: color .18s ease;
}
.primary-nav a:hover { color: var(--evergreen-800); }
.primary-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--dusk); transition: width .22s ease;
}
.primary-nav a:not(.nav-cta):hover::after { width: 100%; }
.primary-nav a.nav-cta {
  background: var(--evergreen-800); color: var(--fog) !important;
  padding: .58rem 1.5rem; border-radius: 11px; white-space: nowrap;
}
.nav-cta:hover { background: var(--evergreen-700); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px; margin: -8px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--evergreen-800); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  color: var(--fog);
  background:
    radial-gradient(110% 80% at 80% 0%, rgba(201,121,79,.28), transparent 55%),
    linear-gradient(180deg, var(--evergreen-700) 0%, var(--evergreen-900) 100%);
  padding: clamp(4.5rem, 12vh, 9rem) 0 clamp(5rem, 12vh, 8rem);
  text-align: center;
}
.hero-fog {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 40% at 20% 90%, rgba(231,235,231,.16), transparent 70%),
    radial-gradient(50% 35% at 85% 80%, rgba(231,235,231,.12), transparent 70%);
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.hero .eyebrow { color: var(--gold); }
#hero-title {
  font-size: clamp(2.8rem, 9vw, 6rem);
  letter-spacing: -.015em; margin: 0 0 1.6rem;
  text-shadow: 0 2px 30px rgba(0,0,0,.25);
}
.hero-lead {
  font-family: var(--serif); font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  font-style: italic; color: rgba(231,235,231,.92);
  max-width: 620px; margin: 0 auto 2.4rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero .btn-ghost { color: var(--fog); }
.hero-byline { margin-top: 2.2rem; font-size: .82rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(231,235,231,.7); }
.hero-byline strong { color: var(--gold); font-weight: 600; }

.scroll-hint { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); z-index: 1; text-align: center; opacity: .65; }
.scroll-hint span { font-size: .62rem; letter-spacing: .25em; text-transform: uppercase; }
.scroll-hint i { display: block; width: 1px; height: 26px; margin: .5rem auto 0; background: var(--fog); animation: drift 2s ease-in-out infinite; }
@keyframes drift { 0%,100% { transform: scaleY(.4); opacity: .4; transform-origin: top; } 50% { transform: scaleY(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scroll-hint i { animation: none; } }

/* ---------- Section rhythm ---------- */
section { padding: clamp(3.5rem, 9vh, 7rem) 0; }

/* ---------- Book ---------- */
.book { background: var(--paper); }
.book-grid { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.cover-frame { perspective: 1400px; }
.cover-art {
  aspect-ratio: 2 / 3; border-radius: 2px;
  background: linear-gradient(150deg, var(--evergreen-600), var(--evergreen-900));
  box-shadow: var(--shadow-soft), inset 0 0 0 1px rgba(255,255,255,.06);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(1.4rem, 4vw, 2.2rem); color: var(--fog); text-align: center;
  transform: rotateY(-8deg) rotateX(2deg); transition: transform .5s ease;
  border-left: 6px solid rgba(0,0,0,.25);
}
.cover-frame:hover .cover-art { transform: rotateY(0) rotateX(0); }
@media (prefers-reduced-motion: reduce) { .cover-art { transform: none; } }
.cover-series { font-size: .6rem; letter-spacing: .3em; color: var(--gold); }
.cover-title { font-family: var(--serif); font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.05; }
.cover-tag { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--gold); line-height: 1.3; }
.cover-author { font-size: .68rem; letter-spacing: .26em; color: rgba(231,235,231,.85); }
.book-copy p { color: var(--ink-soft); margin: 0 0 1.1rem; max-width: 56ch; }
.book-copy h2 { margin-bottom: 1.3rem; }
.book-meta { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.5rem; max-width: 460px; }
.book-meta li { font-size: .92rem; border-top: 1px solid rgba(32,39,31,.12); padding-top: .55rem; }
.book-meta span { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--moss); margin-bottom: .15rem; }

/* ---------- Excerpt ---------- */
.excerpt { background: var(--evergreen-900); color: var(--fog); }
.excerpt-inner { max-width: 720px; margin-inline: auto; }
.excerpt .eyebrow { color: var(--gold); }
.excerpt-body { font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.45rem); line-height: 1.75; margin: 2.2rem 0; color: rgba(231,235,231,.92); }
.excerpt-body p { margin: 0 0 1.3rem; }
.dropcap::first-letter {
  font-size: 3.6em; float: left; line-height: .72; padding: .05em .12em 0 0;
  color: var(--gold); font-weight: 600;
}

/* ---------- Author ---------- */
.author { background: var(--paper-warm); }
.author-grid { display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.photo-frame {
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: radial-gradient(120% 120% at 30% 20%, var(--moss), var(--evergreen-700));
  display: grid; place-items: center; box-shadow: var(--shadow-soft);
  position: relative; overflow: hidden;
}
.photo-frame::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 50% 110%, rgba(231,235,231,.25), transparent 70%);
}
.photo-initials { font-family: var(--serif); font-size: clamp(3rem, 8vw, 5rem); color: rgba(246,243,236,.9); }
.author-copy p { color: var(--ink-soft); margin: 0 0 1.1rem; max-width: 58ch; }
.author-copy h2 { margin-bottom: 1.3rem; }
.author-sign { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--evergreen-700); }
.social-row { display: flex; gap: 1.4rem; margin-top: 1.4rem; flex-wrap: wrap; }
.social-row a { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--dusk-deep); text-decoration: none; border-bottom: 1.5px solid transparent; padding-bottom: 2px; transition: border-color .18s ease; }
.social-row a:hover { border-color: var(--dusk); }

/* ---------- Praise ---------- */
.praise { background: var(--paper); }
.praise h2 { margin-bottom: 3rem; }
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.6rem; }
.quote { margin: 0; background: #fff; border-radius: var(--radius); padding: 2rem 1.8rem; box-shadow: 0 12px 36px -28px rgba(17,32,27,.5); border-top: 3px solid var(--gold); }
.quote blockquote { margin: 0 0 1.1rem; font-family: var(--serif); font-size: 1.3rem; font-style: italic; line-height: 1.5; color: var(--evergreen-800); }
.quote figcaption { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--moss); font-weight: 600; }
.praise-note { font-size: .8rem; color: var(--moss); margin-top: 2rem; }
.praise-note code { font-family: ui-monospace, monospace; font-size: .9em; background: rgba(32,39,31,.06); padding: .1em .35em; border-radius: 3px; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--evergreen-800); color: var(--fog); }
.newsletter-inner { max-width: 640px; margin-inline: auto; }
.newsletter .eyebrow { color: var(--gold); }
.newsletter h2 { margin-bottom: 1rem; }
.newsletter-lead { color: rgba(231,235,231,.85); margin: 0 auto 2rem; max-width: 50ch; }
.newsletter-form { display: flex; gap: .7rem; max-width: 480px; margin: 0 auto; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1 1 220px; min-width: 0; padding: .85rem 1.1rem; border-radius: 999px; border: 1.5px solid rgba(231,235,231,.25);
  background: rgba(255,255,255,.06); color: var(--fog); font-family: var(--sans); font-size: .95rem;
}
.newsletter-form input::placeholder { color: rgba(231,235,231,.5); }
.newsletter-form input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.form-msg { text-align: center; min-height: 1.4em; margin-top: 1rem; font-size: .9rem; color: var(--gold); }
.form-msg.is-subscribed { color: var(--gold); font-size: 1rem; }
.news-reset { color: rgba(231,235,231,.65); text-decoration: underline; font-size: .82em; margin-left: .4rem; }
.news-reset:hover { color: var(--fog); }

/* ---------- Buy ---------- */
.buy { background: var(--paper-warm); }
.buy h2 { margin-bottom: .6rem; }
.buy-lead { color: var(--ink-soft); margin: 0 auto 2.4rem; }
.retailer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; max-width: 720px; margin-inline: auto; }
.retailer {
  display: block; text-align: center; text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 1.1rem 1rem; border-radius: var(--radius); background: #fff; color: var(--evergreen-800);
  border: 1px solid rgba(32,39,31,.1); transition: transform .18s ease, border-color .2s ease, color .2s ease;
}
.retailer:hover { transform: translateY(-3px); border-color: var(--dusk); color: var(--dusk-deep); }

/* ---------- Footer ---------- */
.site-footer { background: var(--evergreen-900); color: rgba(231,235,231,.75); padding: 3.5rem 0 2.5rem; }
.footer-inner { display: grid; gap: 1.6rem; text-align: center; }
.footer-brand { font-family: var(--serif); font-size: 1.5rem; color: var(--fog); }
.footer-brand span { display: block; font-family: var(--sans); font-size: .78rem; letter-spacing: .1em; color: rgba(231,235,231,.55); margin-top: .35rem; }
.footer-nav { display: flex; gap: 1.6rem; justify-content: center; flex-wrap: wrap; }
.footer-nav a { color: rgba(231,235,231,.8); text-decoration: none; font-size: .9rem; transition: color .18s ease; }
.footer-nav a:hover { color: var(--gold); }
.footer-legal { font-size: .8rem; color: rgba(231,235,231,.5); margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid rgba(32,39,31,.1);
    padding: .5rem var(--pad) 1.2rem; transform: translateY(-120%); transition: transform .3s ease;
    box-shadow: var(--shadow-soft);
  }
  .primary-nav.open { transform: translateY(0); }
  .primary-nav a { padding: .9rem 0; border-bottom: 1px solid rgba(32,39,31,.07); }
  .primary-nav a:not(.nav-cta)::after { display: none; }
  .nav-cta { text-align: center; margin-top: .8rem; }

  .book-grid, .author-grid { grid-template-columns: 1fr; }
  .book-cover, .author-photo { max-width: 320px; margin-inline: auto; }
  .cover-art { transform: none; }
  .book-meta { max-width: none; }
}

/* ===========================================================
   CMS COMPONENTS — stories grid, page hero, gate, story detail
   =========================================================== */

.muted { color: var(--moss); }

/* ---- Stories teaser (index) ---- */
.stories-teaser { background: var(--paper); }
.stories-teaser-lead { color: var(--ink-soft); max-width: 52ch; margin: 0 auto 2.6rem; }

/* ---- Story grid + cards ---- */
.story-grid {
  display: grid; gap: 1.6rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.story-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(32,39,31,.08);
  box-shadow: 0 12px 36px -30px rgba(17,32,27,.55);
  transition: transform .2s ease, box-shadow .25s ease;
}
.story-card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px -28px rgba(17,32,27,.55); }
.story-card-media {
  position: relative; aspect-ratio: 16 / 9;
  background: linear-gradient(150deg, var(--evergreen-600), var(--evergreen-900));
  display: grid; place-items: center; overflow: hidden;
}
.story-card-media img { width: 100%; height: 100%; object-fit: cover; }
.story-card-mark { font-family: var(--serif); font-size: 3rem; color: rgba(246,243,236,.6); }
.story-lock {
  position: absolute; top: .7rem; right: .7rem; font-size: .85rem;
  background: rgba(17,32,27,.72); color: var(--gold);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  backdrop-filter: blur(2px);
}
.story-card-body { padding: 1.3rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; }
.story-card-meta { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dusk-deep); font-weight: 600; margin: 0; }
.story-card-body h3 { font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; color: var(--evergreen-800); margin: 0; }
.story-card-body p { font-size: .94rem; color: var(--ink-soft); margin: 0; }

/* ---- Page hero (stories.html) ---- */
.page-hero {
  background:
    radial-gradient(100% 80% at 80% 0%, rgba(201,121,79,.22), transparent 55%),
    linear-gradient(180deg, var(--evergreen-700), var(--evergreen-900));
  color: var(--fog); padding: clamp(3.5rem, 10vh, 6rem) 0 clamp(2.5rem, 6vh, 4rem); text-align: center;
}
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { font-size: clamp(2.3rem, 6vw, 3.8rem); margin: 0 0 1.2rem; }
.page-hero-lead { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 2.4vw, 1.5rem); color: rgba(231,235,231,.9); max-width: 620px; margin: 0 auto 2rem; }

/* ---- Filter chips ---- */
.story-filter { display: inline-flex; gap: .4rem; background: rgba(255,255,255,.07); padding: .35rem; border-radius: 12px; }
.chip {
  font-family: var(--sans); font-size: .85rem; font-weight: 600; color: rgba(231,235,231,.8);
  background: transparent; border: 0; padding: .5rem 1.1rem; border-radius: 8px; cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.chip:hover { color: var(--fog); }
.chip.is-active { background: var(--dusk); color: #fff; border-radius: 8px; }
.chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.gate-status { margin-top: 1.4rem; font-size: .9rem; color: rgba(231,235,231,.8); }
.gate-status.is-on { color: var(--gold); }
.gate-status a { color: var(--gold); }

.stories-list { background: var(--paper); padding: clamp(3rem, 8vh, 5rem) 0; }
.story-group { margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.story-group:last-child { margin-bottom: 0; }
.story-group-title {
  font-family: var(--serif); font-size: clamp(1.5rem, 3.5vw, 2.1rem); color: var(--evergreen-800);
  margin: 0 0 1.4rem; padding-bottom: .6rem; border-bottom: 1px solid rgba(32,39,31,.14);
}
.story-group-buy { margin-top: 1.8rem; text-align: center; }

/* ---- Story detail ---- */
.story { background: var(--paper); padding: clamp(2.5rem, 7vh, 5rem) 0 clamp(3.5rem, 10vh, 7rem); }
.story-inner { max-width: 720px; margin-inline: auto; }
.story-breadcrumb { margin: 0 0 1.6rem; }
.story-breadcrumb a { color: var(--dusk-deep); text-decoration: none; font-size: .85rem; font-weight: 600; letter-spacing: .04em; }
.story-breadcrumb a:hover { text-decoration: underline; }
.story-head .eyebrow { color: var(--dusk-deep); }
.story-head h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 0 0 .8rem; }
.story-byline { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--moss); margin: 0 0 1.6rem; }
.story-lead { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--evergreen-700); margin: 0 0 1rem; }
.story-cover { margin: 2rem 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.story-body { font-family: var(--serif); font-size: clamp(1.15rem, 2.3vw, 1.4rem); line-height: 1.75; color: var(--ink); margin-top: 1.5rem; }
.story-body p { margin: 0 0 1.3rem; }
.story-body p:first-of-type::first-letter {
  font-size: 3.4em; float: left; line-height: .72; padding: .05em .12em 0 0; color: var(--dusk); font-weight: 600;
}
.story-body.is-gated { position: relative; }
.story-body.is-gated::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8rem;
  background: linear-gradient(180deg, rgba(246,243,236,0), var(--paper));
  pointer-events: none;
}
.story-missing { padding: 4rem 0; }

/* ---- Subscription gate ---- */
.gate { margin-top: 1rem; }
.gate-card {
  background: linear-gradient(160deg, var(--evergreen-700), var(--evergreen-900));
  color: var(--fog); border-radius: 10px; padding: clamp(2rem, 5vw, 3.2rem);
  box-shadow: var(--shadow-soft); text-align: center;
}
.gate-card .eyebrow { color: var(--gold); }
.gate-card h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 1rem; }
.gate-copy { color: rgba(231,235,231,.88); max-width: 42ch; margin: 0 auto 1.8rem; }
.gate-form { display: flex; gap: .7rem; max-width: 440px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.gate-form input {
  flex: 1 1 220px; min-width: 0; padding: .85rem 1.1rem; border-radius: 999px;
  border: 1.5px solid rgba(231,235,231,.25); background: rgba(255,255,255,.06);
  color: var(--fog); font-family: var(--sans); font-size: .95rem;
}
.gate-form input::placeholder { color: rgba(231,235,231,.5); }
.gate-form input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.gate-msg { min-height: 1.2em; margin: 1rem 0 0; font-size: .9rem; color: var(--gold); }
.gate-fine { font-size: .78rem; color: rgba(231,235,231,.55); margin: 1.2rem 0 0; }

@media (max-width: 820px) {
  .story-filter { flex-wrap: wrap; justify-content: center; }
}

/* ===========================================================
   BRAND HARMONIZATION — NW emblem, Rowan Valley series cards
   =========================================================== */

/* ---- Header brand with NW emblem ---- */
.brand { display: flex; align-items: center; gap: .65rem; }
.brand-emblem { width: 40px; height: 40px; flex: none; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.02; }
.brand-text .brand-sub {
  display: block; margin-top: 3px; font-family: var(--sans);
  font-size: .52rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--dusk-deep); font-weight: 600;
}
.brand-text { font-size: 1.5rem; }
.footer-emblem { width: 56px; height: 56px; margin: 0 auto .4rem; display: block; }

/* ---- Warm the hero a touch toward the autumn/gold channel art ---- */
.hero {
  background:
    radial-gradient(120% 90% at 78% -10%, rgba(201,121,79,.40), transparent 55%),
    radial-gradient(90% 70% at 15% 110%, rgba(201,162,71,.18), transparent 60%),
    linear-gradient(180deg, var(--evergreen-700) 0%, var(--evergreen-900) 100%);
}

/* ---- Rowan Valley series grid + book cards ---- */
.series-grid {
  display: grid; gap: 1.6rem; max-width: 1040px; margin-inline: auto;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.book-card {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
  overflow: hidden; border: 1px solid rgba(32,39,31,.08);
  box-shadow: 0 14px 40px -30px rgba(17,32,27,.55);
  transition: transform .2s ease, box-shadow .25s ease;
}
.book-card:hover { transform: translateY(-4px); box-shadow: 0 24px 54px -28px rgba(17,32,27,.55); }
.book-card-cover {
  position: relative; aspect-ratio: 2 / 3; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(150deg, var(--evergreen-600), var(--evergreen-900));
  border-bottom: 4px solid var(--gold);
}
.book-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.book-card-num { font-family: var(--serif); font-size: 3.4rem; color: rgba(201,162,71,.7); }
.book-soon-badge {
  position: absolute; top: .7rem; left: 50%; transform: translateX(-50%); z-index: 2;
  font-size: .6rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--evergreen-900); background: var(--gold); padding: .25rem .7rem; border-radius: 999px;
}
.book-card.is-soon .book-card-cover { filter: saturate(.85); }
.book-card-chapter {
  display: inline-block; margin-top: .8rem; font-size: .8rem; font-weight: 600;
  letter-spacing: .04em; color: var(--dusk-deep); text-decoration: none;
}
.book-card-chapter:hover { text-decoration: underline; }
.book-alllink {
  display: inline-block; margin-left: 1.2rem; font-size: .9rem; font-weight: 600;
  color: var(--dusk-deep); text-decoration: none; letter-spacing: .02em;
}
.book-alllink:hover { text-decoration: underline; }
@media (max-width: 600px) { .book-alllink { display: block; margin: 1rem 0 0; } }

/* Author photo overlay (real photo layers over the JW badge) */
.photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

/* Excerpt + chapter page CTAs */
.excerpt-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.chapter-cta { margin-top: 2.8rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.chapter-soon { color: var(--moss); font-style: italic; }

/* ---- Books page (books.html) ---- */
.books-list { background: var(--paper); padding: clamp(3rem, 8vh, 5rem) 0; }
.book-entry { max-width: 880px; margin: 0 auto clamp(2.5rem, 7vh, 4.5rem); }
.book-entry:last-child { margin-bottom: 0; }
.book-entry + .book-entry { border-top: 1px solid rgba(32,39,31,.12); padding-top: clamp(2.5rem, 7vh, 4.5rem); }
.book-entry-grid {
  display: grid; grid-template-columns: minmax(0, 240px) 1fr;
  gap: clamp(1.6rem, 5vw, 3rem); align-items: start;
}
.book-entry-cover {
  position: relative; aspect-ratio: 2 / 3; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(150deg, var(--evergreen-600), var(--evergreen-900));
  display: grid; place-items: center; box-shadow: var(--shadow-soft); border-bottom: 4px solid var(--gold);
}
.book-entry-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.book-entry-info h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: .2rem 0 1rem; color: var(--evergreen-800); }
.book-entry-syn { color: var(--ink-soft); margin: 0 0 1rem; max-width: 60ch; }
.book-entry-syn:first-of-type { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--evergreen-700); }
.book-entry-info .book-meta { margin: 1.4rem 0; }
.book-entry-actions { margin-top: 1.4rem; }

/* Cover column with the chapter toggle directly under the cover */
.book-entry-aside { display: flex; flex-direction: column; gap: 1rem; }
.chapter-toggle {
  width: 100%; cursor: pointer; background: transparent;
  border: 1px solid rgba(32,39,31,.18); border-radius: 10px; padding: .7rem 1rem;
  font-family: var(--sans); font-size: .76rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--dusk-deep);
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.chapter-toggle::before { content: "▸"; transition: transform .2s ease; }
.chapter-toggle[aria-expanded="true"]::before { transform: rotate(90deg); }
.chapter-toggle:hover { border-color: var(--dusk); color: var(--dusk); background: rgba(201,121,79,.06); }

.chapter-panel { margin-top: 1.8rem; border-top: 1px solid rgba(32,39,31,.1); padding-top: 1.6rem; }
.chapter-body { max-width: 68ch; margin: 1rem auto 0; }
.chapter-body p:first-of-type::first-letter {
  font-size: 3.2em; float: left; line-height: .72; padding: .05em .12em 0 0; color: var(--dusk); font-weight: 600;
}

@media (max-width: 640px) {
  .book-entry-grid { grid-template-columns: 1fr; }
  .book-entry-cover { max-width: 240px; margin-inline: auto; }
}
.book-card-body { padding: 1.2rem 1.3rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; text-align: center; }
.book-card-meta { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dusk-deep); font-weight: 600; margin: 0; }
.book-card-body h3 { font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; color: var(--evergreen-800); margin: 0 0 .4rem; }
.book-card-btn { align-self: center; padding: .6rem 1.3rem; font-size: .85rem; border-radius: 10px; }
.book-card-soon { font-size: .82rem; color: var(--moss); font-style: italic; }

@media (max-width: 600px) {
  .brand-text { font-size: 1.2rem; }
  .series-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .book-card-body { padding: 1rem .8rem 1.2rem; }
  .book-card-body h3 { font-size: 1.2rem; }
}

