/* =====================================================================
   Holly Covington — "Hallowell after dark"
   Palette pulled from the 2026-11 covers: teal night, amber string
   lights, jack-o'-lantern orange, cream title lettering.
   Gifford (Christmas) gets navy, pine and berry red.
   ===================================================================== */
:root {
  --night: #0b2023;
  --night-2: #102b2f;
  --teal: #163b40;
  --teal-2: #1f4d52;
  --glow: #5fc2bd;        /* the window light on every cover */
  --amber: #f3a64b;       /* string-light bulbs */
  --lantern: #ffd27f;
  --pumpkin: #e6702c;
  --cream: #f7e9cf;       /* title lettering */
  --cream-2: #fff6e6;
  --mist: #b9cfcc;        /* body text on night */
  --wood: #4a2f22;
  --chalk: #2a3a36;
  --line: rgba(247,233,207,.14);

  /* Gifford */
  --navy: #16223f;
  --navy-2: #1e2f57;
  --pine: #2f5b3c;
  --berry: #b0332e;
  --gold: #e9c46d;

  --display: "Rye", Georgia, serif;
  --script: "Courgette", Georgia, cursive;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --radius: 14px;
  --wrap: 1140px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--mist);
  font: 18px/1.65 var(--sans);
  overflow-x: hidden;
}
/* faint wood-grain + vignette over the whole page */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(95,194,189,.10), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 2px, transparent 2px 90px),
    linear-gradient(180deg, var(--night) 0%, #0a1c1f 100%);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lantern); }
a:hover { color: var(--cream-2); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.12;
  color: var(--cream);
  margin: 0 0 .5em;
  text-wrap: balance;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); text-shadow: 0 2px 0 rgba(0,0,0,.35), 0 0 28px rgba(243,166,75,.18); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); text-shadow: 0 2px 0 rgba(0,0,0,.3); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
em.accent, .accent { font-family: var(--script); font-style: normal; color: var(--amber); }
.script { font-family: var(--script); color: var(--amber); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 720px; }
.section { padding: 84px 0; position: relative; }
.section.tight { padding: 52px 0; }
.eyebrow {
  font: 700 .76rem/1 var(--sans);
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--glow); margin: 0 0 14px;
}
.lede { font-size: 1.18rem; color: var(--mist); }
.center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(11,32,35,.82);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 70px; flex-wrap: wrap;
}
.logo {
  font: 400 1.5rem/1 var(--display);
  color: var(--cream); text-decoration: none; letter-spacing: .02em;
}
.logo span { font-family: var(--script); color: var(--amber); }
.logo:hover { color: var(--cream-2); }
.nav { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.nav a {
  color: var(--cream); text-decoration: none;
  font-size: .98rem; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--amber); color: var(--cream-2); }
.nav a.nav-cta {
  background: var(--amber); color: #2a1606; padding: 9px 18px; font-weight: 700;
  border-radius: 999px; border: none; box-shadow: 0 0 18px rgba(243,166,75,.35);
}
.nav a.nav-cta:hover { background: var(--lantern); color: #2a1606; }

/* String lights (drawn by fx.js under the header) */
.lights { position: absolute; left: 0; right: 0; top: 100%; height: 44px; pointer-events: none; overflow: visible; overflow-x: clip; }
.lights svg { width: 100%; height: 44px; overflow: visible; }
.lights .wire { fill: none; stroke: #241612; stroke-width: 1.6; }
.lights .bulb { fill: var(--amber); filter: drop-shadow(0 0 5px rgba(255,190,90,.9)); animation: twinkle 3.4s ease-in-out infinite; }
@keyframes twinkle { 0%,100% { opacity: 1; } 45% { opacity: .55; } 55% { opacity: .95; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--amber); color: #2a1606;
  font: 700 1rem/1 var(--sans);
  padding: 16px 28px; border: 0; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 0 0 0 rgba(243,166,75,.0), 0 10px 24px -10px rgba(243,166,75,.7);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--lantern); color: #2a1606; transform: translateY(-2px); box-shadow: 0 0 26px rgba(255,210,127,.45), 0 14px 28px -12px rgba(243,166,75,.8); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 2px rgba(247,233,207,.55); }
.btn.ghost:hover { background: rgba(247,233,207,.1); color: var(--cream-2); box-shadow: inset 0 0 0 2px var(--cream); }
.btn.small { padding: 11px 19px; font-size: .92rem; }
.btn.muted { background: rgba(247,233,207,.12); color: var(--cream); box-shadow: none; cursor: default; }
.btn.muted:hover { transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 104px;
  background:
    linear-gradient(180deg, rgba(11,32,35,.25) 0%, rgba(11,32,35,.55) 60%, var(--night) 100%),
    var(--hero-img, none) center 30% / cover no-repeat,
    radial-gradient(70% 60% at 80% 35%, rgba(95,194,189,.28), transparent 70%),
    radial-gradient(50% 40% at 15% 85%, rgba(230,112,44,.22), transparent 70%),
    linear-gradient(180deg, var(--teal) 0%, var(--night) 100%);
}
.hero.home { --hero-img: url("../images/hallowell-square.jpg"); }
.hero .fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero > .wrap { position: relative; z-index: 2; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 56px; align-items: center;
}
.free-art { max-width: 340px; margin-left: auto; position: relative; }
@media (max-width: 860px) {
  .hero { padding: 70px 0 80px; }
  .hero-grid .free-art { max-width: 200px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-grid .cover-fan { max-width: 320px; margin: 0 auto; }
  .hero-grid .magnet-art { max-width: 260px; margin: 0 auto; order: -1; }
}
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(11,32,35,.6); border: 1px solid var(--line);
  color: var(--cream); font: 600 .85rem/1 var(--sans);
  padding: 9px 14px; border-radius: 999px; margin-bottom: 20px;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); animation: twinkle 2.2s infinite; }
.free-badge {
  display: inline-block; background: var(--pumpkin); color: #fff;
  font: 700 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  padding: 8px 13px; border-radius: 999px; margin-bottom: 16px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Fanned stack of covers */
.cover-fan { position: relative; display: block; width: 100%; max-width: 440px; margin-left: auto; aspect-ratio: 1 / 1.05; }
.cover-fan img {
  position: absolute; bottom: 0; width: 56%; height: auto;
  border-radius: 6px; box-shadow: 0 30px 50px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), z-index 0s;
}
.cover-fan img:nth-child(1) { left: 0;   transform: rotate(-10deg) translateY(6px); }
.cover-fan img:nth-child(2) { left: 22%; transform: rotate(0deg) translateY(-14px); z-index: 2; }
.cover-fan img:nth-child(3) { left: 44%; transform: rotate(10deg) translateY(6px); }
.cover-fan:hover img:nth-child(1) { transform: rotate(-15deg) translate(-18px, 0); }
.cover-fan:hover img:nth-child(3) { transform: rotate(15deg) translate(18px, 0); }
.cover-fan:hover img:nth-child(2) { transform: translateY(-26px) scale(1.03); }

/* ---------- Tilt cards (fx.js) ---------- */
[data-tilt] { transform-style: preserve-3d; transition: transform .25s ease; will-change: transform; position: relative; }
[data-tilt] .glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--gx,50%) var(--gy,50%), rgba(255,240,210,.32), transparent 55%);
  opacity: 0; transition: opacity .25s ease; mix-blend-mode: soft-light;
}
[data-tilt]:hover .glare { opacity: 1; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Café sign (rotating) ---------- */
.cafe-sign {
  display: inline-block; position: relative;
  background: #f4ead4; color: #2b2320;
  font: 700 1.5rem/1.1 var(--hand); text-transform: uppercase; text-align: center;
  padding: 18px 22px; min-width: 190px; max-width: 240px;
  border: 9px solid var(--wood); border-radius: 4px;
  box-shadow: inset 0 0 0 2px #2c1b14, 0 18px 30px -14px rgba(0,0,0,.8);
  transform: rotate(-3deg);
}
.cafe-sign .sign-text { display: block; transition: opacity .35s ease, transform .35s ease; }
.cafe-sign .sign-text.out { opacity: 0; transform: rotateX(80deg); }
.cafe-sign small { display: block; font: 600 .7rem/1.2 var(--sans); letter-spacing: .14em; color: #7a5a44; margin-top: 8px; text-transform: uppercase; }

/* ---------- Chalkboard (the series menu) ---------- */
.chalkboard {
  background:
    radial-gradient(120% 90% at 30% 20%, rgba(255,255,255,.06), transparent 60%),
    var(--chalk);
  border: 14px solid var(--wood);
  border-radius: 6px;
  box-shadow: inset 0 0 0 2px #2c1b14, inset 0 0 60px rgba(0,0,0,.45), 0 30px 60px -30px rgba(0,0,0,.9);
  padding: 34px 38px; color: #e9eee8;
}
.chalkboard h2, .chalkboard h3 { font-family: var(--hand); font-weight: 700; color: #f2f4ef; text-shadow: none; letter-spacing: .03em; }
.chalkboard h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .2em; text-transform: uppercase; }
.chalkboard .rule { border: 0; border-top: 2px dashed rgba(233,238,232,.45); margin: 8px 0 18px; }
.chalkboard ul { list-style: none; margin: 0; padding: 0; font: 600 1.45rem/1.5 var(--hand); }
.chalkboard li::before { content: "\2022  "; color: var(--amber); }
.chalkboard p { color: #d5ddd6; }

/* ---------- Book shelf / grid ---------- */
.series-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
.series-head p { margin: 0; color: var(--mist); max-width: 580px; }
.book-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.book-grid.three { grid-template-columns: repeat(3, minmax(0, 280px)); justify-content: start; }
.book-grid.two { grid-template-columns: repeat(2, minmax(0, 260px)); }
@media (max-width: 900px) { .book-grid, .book-grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .book-grid.three { gap: 18px; } }
.shelf { position: relative; padding-bottom: 30px; }
.shelf::after {
  content: ""; position: absolute; left: -12px; right: -12px; bottom: 0; height: 18px;
  background: linear-gradient(180deg, #6a4430, #3b2419);
  border-radius: 3px; box-shadow: 0 16px 24px -10px rgba(0,0,0,.8);
}
.book-card { text-decoration: none; color: var(--cream); display: block; cursor: pointer; background: none; border: 0; padding: 0; text-align: left; font: inherit; }
.book-card .cover { border-radius: 5px; overflow: hidden; box-shadow: 0 22px 34px -18px rgba(0,0,0,.9); position: relative; }
.book-card .cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,240,200,.22) 50%, transparent 60%);
  transform: translateX(-120%); transition: transform .9s ease;
}
.book-card:hover .cover::after { transform: translateX(120%); }
.book-card img { transition: transform .4s ease; }
.book-card:hover img { transform: scale(1.03); }
.book-card .bk-num { font: 700 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--glow); margin: 16px 0 6px; }
.book-card .bk-title { font: 400 1.12rem/1.25 var(--display); color: var(--cream); margin: 0; }
.ribbon {
  position: absolute; top: 14px; right: -36px; z-index: 2;
  background: var(--pumpkin); color: #fff; transform: rotate(38deg);
  font: 700 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  padding: 7px 40px; box-shadow: 0 4px 10px rgba(0,0,0,.4);
}
.ribbon.free { background: var(--glow); color: #082326; }

/* Book detail rows (books page) */
.book-row {
  display: grid; grid-template-columns: 260px 1fr; gap: 50px;
  padding: 54px 0; border-top: 1px solid var(--line); align-items: start;
}
.book-row:first-of-type { border-top: 0; }
.book-row .cover-wrap { border-radius: 6px; }
.book-row img { border-radius: 6px; box-shadow: 0 26px 40px -20px rgba(0,0,0,.9); }
.book-row h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.book-row .tagline { font: 400 1.22rem/1.45 var(--script); color: var(--amber); margin-bottom: 16px; }
.book-row .meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 22px; padding: 0; list-style: none; }
.book-row .meta li { font: 600 .82rem/1 var(--sans); color: var(--cream); background: rgba(95,194,189,.12); border: 1px solid rgba(95,194,189,.3); padding: 7px 11px; border-radius: 999px; }
.stores { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.status { font: 700 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--pumpkin); }
@media (max-width: 700px) {
  .book-row { grid-template-columns: 1fr; gap: 26px; }
  .book-row .cover-wrap { max-width: 230px; }
}

/* ---------- Panels ---------- */
.panel { background: rgba(22,59,64,.55); border: 1px solid var(--line); border-radius: var(--radius); padding: 44px; }
@media (max-width: 600px) { .panel { padding: 30px 22px; } }
.panel.plum {
  background:
    radial-gradient(80% 90% at 50% 0%, rgba(243,166,75,.22), transparent 70%),
    linear-gradient(180deg, #1c4449, #0e272b);
  border: 1px solid rgba(243,166,75,.3); color: var(--cream);
}
.panel.plum h2, .panel.plum h3 { color: var(--cream); }
.panel.plum p, .panel.plum .fine { color: var(--mist); }
.panel.plum input { border-color: transparent; }
.panel.plum .msg.ok { color: var(--lantern); }
.panel.plum .msg.error { color: #ffc2b5; }

/* ---------- Free story band ---------- */
.magnet {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 300px 1fr; gap: 54px; align-items: center;
  background:
    radial-gradient(60% 80% at 15% 50%, rgba(243,166,75,.28), transparent 70%),
    linear-gradient(120deg, #1a4247 0%, #0f292d 70%);
  border: 1px solid rgba(243,166,75,.35);
  border-radius: 22px; padding: 50px 54px;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.9);
}
.magnet .magnet-art { position: relative; }
.magnet .magnet-art img { border-radius: 6px; box-shadow: 0 30px 50px -18px rgba(0,0,0,.9); }
.magnet .halo { position: absolute; inset: -20%; background: radial-gradient(circle, rgba(255,200,110,.35), transparent 60%); filter: blur(10px); animation: breathe 5s ease-in-out infinite; z-index: -1; }
@keyframes breathe { 0%,100% { opacity: .55; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.05); } }
.magnet h2 { margin-bottom: .3em; }
.magnet .bullets { list-style: none; padding: 0; margin: 18px 0 26px; }
.magnet .bullets li { padding: 6px 0 6px 30px; position: relative; color: var(--cream); }
.magnet .bullets li::before { content: "\2726"; position: absolute; left: 4px; color: var(--amber); }
@media (max-width: 820px) { .magnet { grid-template-columns: 1fr; padding: 36px 24px; gap: 30px; } .magnet .magnet-art { max-width: 230px; margin: 0 auto; } }

/* ---------- Gifford teaser (class .indigo kept from the old template) ---------- */
.indigo {
  position: relative; overflow: hidden;
  background:
    var(--gifford-img, none) center / cover no-repeat,
    radial-gradient(70% 90% at 85% 40%, rgba(233,196,109,.18), transparent 70%),
    linear-gradient(160deg, var(--navy-2), var(--navy) 70%);
  color: #e7ecf6;
  border-radius: 22px;
  border: 1px solid rgba(233,196,109,.28);
  padding: 56px 50px;
  display: grid; grid-template-columns: 1fr 230px; gap: 44px; align-items: center;
}
.indigo.has-art { --gifford-img: linear-gradient(90deg, rgba(22,34,63,.95) 0%, rgba(22,34,63,.75) 55%, rgba(22,34,63,.35) 100%), url("../images/gifford-main-street.jpg"); }
.indigo > * { position: relative; z-index: 2; }
.indigo .fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.indigo::before { /* garland */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; z-index: 2;
  background: repeating-linear-gradient(90deg, var(--pine) 0 14px, #24472f 14px 28px);
  box-shadow: 0 3px 10px rgba(0,0,0,.4);
}
.indigo h2 { color: #fff; }
.indigo .eyebrow { color: var(--gold); }
.indigo p { color: #d9e0ee; max-width: 620px; }
.indigo .quote { font: 400 1.25rem/1.45 var(--script); color: #f4e3b5; margin-bottom: 14px; }
.indigo .btn { background: var(--gold); color: #1a1a2e; box-shadow: 0 10px 24px -10px rgba(233,196,109,.7); }
.indigo .btn:hover { background: #f6dc9c; color: #1a1a2e; }
.indigo .gifford-cover img { border-radius: 6px; box-shadow: 0 26px 44px -18px rgba(0,0,0,.9); }
@media (max-width: 780px) { .indigo { grid-template-columns: 1fr; padding: 44px 24px; } .indigo .gifford-cover { max-width: 210px; width: 100%; margin: 0 auto; } }

/* ---------- Quiz ---------- */
.quiz { max-width: 760px; margin: 0 auto; }
.quiz-card { background: rgba(22,59,64,.6); border: 1px solid var(--line); border-radius: 20px; padding: 38px; min-height: 300px; position: relative; overflow: hidden; }
.quiz-progress { height: 4px; background: rgba(255,255,255,.08); border-radius: 4px; margin-bottom: 26px; overflow: hidden; }
.quiz-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--amber), var(--pumpkin)); transition: width .4s ease; }
.quiz-q { font: 400 clamp(1.3rem, 2.6vw, 1.7rem)/1.3 var(--display); color: var(--cream); margin-bottom: 22px; }
.quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .quiz-opts { grid-template-columns: 1fr; } .quiz-card { padding: 28px 20px; } }
.quiz-opt {
  font: 600 1rem/1.35 var(--sans); color: var(--cream); text-align: left;
  background: rgba(11,32,35,.7); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; cursor: pointer; transition: background .2s, border-color .2s, transform .2s;
}
.quiz-opt:hover, .quiz-opt:focus-visible { background: rgba(243,166,75,.14); border-color: var(--amber); transform: translateY(-2px); outline: none; }
.quiz-step { animation: fadeUp .45s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.quiz-result { display: grid; grid-template-columns: 170px 1fr; gap: 30px; align-items: center; }
.quiz-result img { border-radius: 6px; box-shadow: 0 20px 34px -16px rgba(0,0,0,.9); }
.quiz-result .who { font: 400 1.9rem/1.15 var(--display); color: var(--cream); margin: 4px 0 10px; }
@media (max-width: 600px) { .quiz-result { grid-template-columns: 1fr; } .quiz-result img { max-width: 160px; } }
.linkish { background: none; border: 0; color: var(--lantern); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

/* ---------- Quick-look modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(4,14,16,.78); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-box { background: linear-gradient(180deg, #19444a, #0f2a2e); border: 1px solid rgba(243,166,75,.3); border-radius: 18px; max-width: 760px; width: 100%; max-height: 90vh; overflow: auto; padding: 34px; display: grid; grid-template-columns: 220px 1fr; gap: 30px; position: relative; transform: translateY(16px) scale(.98); transition: transform .3s ease; }
.modal.open .modal-box { transform: none; }
.modal-box img { border-radius: 6px; box-shadow: 0 20px 34px -16px rgba(0,0,0,.9); }
.modal-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: var(--cream); font-size: 2rem; line-height: 1; cursor: pointer; }
.modal .tagline { font: 400 1.15rem/1.45 var(--script); color: var(--amber); }
@media (max-width: 640px) { .modal-box { grid-template-columns: 1fr; padding: 28px 20px; } .modal-box img { max-width: 170px; } }

/* ---------- Promise list / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 780px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.promise-list { list-style: none; padding: 0; margin: 0; }
.promise-list li { padding: 14px 0 14px 38px; border-bottom: 1px solid var(--line); position: relative; color: var(--mist); }
.promise-list li strong { color: var(--cream); }
.promise-list li::before { content: "\2726"; color: var(--amber); position: absolute; left: 6px; top: 14px; text-shadow: 0 0 10px rgba(243,166,75,.8); }
.promise-list li:last-child { border-bottom: 0; }
.author-card { display: flex; gap: 22px; align-items: center; margin-bottom: 18px; }
.author-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--amber); box-shadow: 0 0 22px rgba(243,166,75,.35); }

/* ---------- Signup form ---------- */
.signup { margin: 26px 0 8px; max-width: 480px; }
.signup .row { display: flex; gap: 10px; flex-wrap: wrap; }
.signup input[type="email"], .signup input[type="text"] {
  flex: 1 1 220px; min-width: 0;
  font: 400 1rem/1.2 var(--sans);
  padding: 16px 18px;
  border: 1px solid rgba(247,233,207,.25); border-radius: 999px;
  background: rgba(255,250,240,.96); color: #1f1a17;
}
.signup input:focus { outline: 3px solid rgba(243,166,75,.45); border-color: var(--amber); }
.signup .name-row { margin-bottom: 10px; }
.signup .btn { flex: 0 0 auto; }
.signup .hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.signup .fine { font-size: .86rem; color: var(--mist); margin: 12px 0 0; opacity: .85; }
.signup .msg { font-size: .95rem; margin: 12px 0 0; min-height: 1.2em; }
.signup .msg.error { color: #ffb4a3; }
.signup .msg.ok { color: var(--lantern); }
.signup[aria-busy="true"] .btn { opacity: .6; pointer-events: none; }
@media (max-width: 480px) { .signup .btn { width: 100%; } }
.signup > input[type="email"] { display: block; width: 100%; }
.signup .consent { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; font-size: .95rem; cursor: pointer; text-align: left; color: var(--mist); }
.signup .consent input { width: 18px; height: 18px; margin: 3px 0 0; flex: 0 0 auto; accent-color: var(--amber); }
.signup .captcha { margin: 14px 0; min-height: 78px; }
.signup > .btn { display: block; }
.panel.plum .signup { max-width: 380px; }
@media (max-width: 360px) { .signup .g-recaptcha { transform: scale(.86); transform-origin: 0 0; } }

/* ---------- Footer ---------- */
.site-footer { background: #071517; color: var(--mist); padding: 48px 0; font-size: .92rem; border-top: 1px solid var(--line); }
.site-footer a { color: var(--cream); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.site-footer .logo { color: var(--cream); font-size: 1.25rem; }
.site-footer .logo span { color: var(--amber); }

/* Minimal landing (free.html): no nav */
.minimal-top { padding: 28px 0 0; text-align: center; position: relative; z-index: 3; }
.minimal-top .logo { font-size: 1.4rem; }

.prose h2 { font-size: 1.55rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.faq h3 { font-size: 1.12rem; margin: 1.5em 0 .35em; }
.faq h3 + p { margin-top: 0; }

/* Pumpkin divider */
.divider { display: flex; align-items: center; gap: 18px; justify-content: center; color: var(--amber); margin: 0 auto; max-width: 420px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(243,166,75,.6), transparent); }

/* ---------- Motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .fx-canvas { display: none; }
}

/* ---------- Phone header: one line of links, not sticky ---------- */
@media (max-width: 640px) {
  .site-header { position: relative; }
  .site-header .wrap { justify-content: center; gap: 6px; padding-top: 12px; padding-bottom: 10px; min-height: 0; }
  .logo { font-size: 1.35rem; }
  .nav { gap: 14px; justify-content: center; }
  .nav a { font-size: .9rem; }
  .nav a.nav-cta { padding: 7px 12px; }
  .lights { height: 34px; }
}

/* Author avatar (images/holly-avatar.jpg). If the file is missing the img removes itself. */
.author-card.big { gap: 28px; margin-bottom: 24px; }
.author-card.big img { width: 180px; height: 180px; border-width: 4px; box-shadow: 0 0 40px rgba(243,166,75,.35); animation: breathe-ring 5s ease-in-out infinite; }
@keyframes breathe-ring { 0%,100% { box-shadow: 0 0 26px rgba(243,166,75,.25); } 50% { box-shadow: 0 0 46px rgba(243,166,75,.5); } }
@media (max-width: 560px) {
  .author-card.big { flex-direction: column; align-items: flex-start; gap: 18px; }
  .author-card.big img { width: 140px; height: 140px; }
  .author-card img { width: 76px; height: 76px; }
}

/* Gifford art on phones: text spans the full width, so darken evenly */
@media (max-width: 780px) {
  .indigo.has-art { --gifford-img: linear-gradient(180deg, rgba(22,34,63,.88) 0%, rgba(22,34,63,.8) 60%, rgba(22,34,63,.55) 100%), url("../images/gifford-main-street.jpg"); }
}

/* reCAPTCHA: the badge renders inline inside the form and stays hidden; the form shows Google's notice instead. */
.nl-captcha { height: 0; overflow: hidden; visibility: hidden; }
.signup .captcha-note { font-size: .78rem; margin-top: 12px; opacity: .8; }
.signup .captcha-note a { color: inherit; }

/* ---------- Phones: center buttons, the café sign, the odd book out, and book-page covers ---------- */
@media (max-width: 780px) {
  .magnet .btn, .indigo .btn { display: block; width: fit-content; margin-left: auto; margin-right: auto; }
  .stores, .hero-actions { justify-content: center; }
  .series-head .cafe-sign { margin-left: auto; margin-right: auto; }
}
@media (max-width: 700px) {
  .book-row .cover-wrap { width: 100%; margin-left: auto; margin-right: auto; }
}
/* Two columns on phones: a third book sits alone, so center it */
@media (max-width: 900px) {
  .book-grid.three > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 15px); }
}
@media (max-width: 480px) {
  .book-grid.three > :last-child:nth-child(odd) { width: calc(50% - 9px); }
}
