/* ==========================================================================
   THE HEIRS OF THE HOLLOW — Core Design System
   Mobile-first. Larger layouts live in responsive.css.
   ========================================================================== */

:root {
  /* Brand palette */
  --obsidian: #101820;
  --forest: #253B35;
  --pewter: #64727A;
  --parchment: #D8CBB4;
  --oxblood: #682D35;
  --ivory: #F2EEE7;
  --near-black: #090D11;

  /* Derived tones */
  --bg: var(--near-black);
  --bg-raised: #0E151B;
  --bg-panel: #121C22;
  --text: var(--ivory);
  --text-soft: #CFC9BF;
  --text-muted: #9BA5AA;       /* AA-compliant muted text on dark */
  --line: rgba(216, 203, 180, 0.16);
  --line-strong: rgba(216, 203, 180, 0.34);
  --glow: rgba(216, 203, 180, 0.12);
  --oxblood-soft: rgba(104, 45, 53, 0.55);

  /* Type */
  --font-display: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1240px;
  --container-narrow: 760px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 11vw, 9rem);
  --header-h: 72px;
  --radius: 2px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --slow: 1.1s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.12; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; }

/* Film grain — a single static noise layer (cheap, no animation) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 300;
  background: var(--parchment); color: var(--near-black);
  padding: 0.75rem 1.25rem; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--parchment); outline-offset: 3px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }
.section { position: relative; padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--forest { background: linear-gradient(180deg, var(--bg) 0%, #0F1A18 40%, #0F1A18 60%, var(--bg) 100%); }
.section--obsidian { background: var(--obsidian); }
.section + .section--bordered, .section--bordered { border-top: 1px solid var(--line); }
.center { text-align: center; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.eyebrow--accent { color: var(--parchment); }
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 5.5vw, 3.9rem);
  letter-spacing: 0.01em;
  color: var(--ivory);
  margin-bottom: 1.25rem;
}
.section-title em { font-style: italic; color: var(--parchment); }
.lede {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.55;
  font-weight: 300;
  color: var(--text-soft);
}
.prose { max-width: 66ch; color: var(--text-soft); }
.prose p { margin-bottom: 1.25em; }
.prose h2 { font-family: var(--font-serif); font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 400; color: var(--ivory); margin: 2.2em 0 0.7em; }
.prose h3 { font-family: var(--font-serif); font-size: 1.45rem; color: var(--parchment); margin: 1.8em 0 0.5em; }
.prose ul { padding-left: 1.2em; margin-bottom: 1.25em; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--parchment); }
.muted { color: var(--text-muted); }
.small { font-size: 0.875rem; }

/* Ornamental divider: line — diamond — line */
.ornament {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin: 2rem auto; max-width: 260px; color: var(--oxblood);
}
.ornament::before, .ornament::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.ornament span {
  width: 7px; height: 7px; transform: rotate(45deg);
  border: 1px solid var(--parchment); background: var(--oxblood);
}
.ornament--left { margin-left: 0; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ivory);
  --btn-border: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem;
  min-height: 48px;
  padding: 0.85rem 1.75rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.6s var(--ease);
}
.btn:hover { --btn-border: var(--parchment); box-shadow: 0 0 32px var(--glow); }
.btn--solid { --btn-bg: var(--parchment); --btn-fg: var(--near-black); --btn-border: var(--parchment); }
.btn--solid:hover { --btn-bg: var(--ivory); --btn-border: var(--ivory); }
.btn--small { min-height: 42px; padding: 0.6rem 1.15rem; font-size: 0.68rem; letter-spacing: 0.2em; }
.btn[aria-disabled="true"], .btn:disabled {
  --btn-fg: var(--text-muted); --btn-border: var(--line); cursor: not-allowed; box-shadow: none;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.btn-row--center { justify-content: center; }
.text-link {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; text-decoration: none;
  color: var(--parchment); border-bottom: 1px solid var(--line-strong); padding-bottom: 0.3rem;
  transition: border-color 0.4s var(--ease), gap 0.4s var(--ease);
}
.text-link:hover { border-color: var(--parchment); gap: 0.9rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.6s var(--ease), border-color 0.6s var(--ease), backdrop-filter 0.6s var(--ease);
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(9, 13, 17, 0.75), rgba(9, 13, 17, 0));
}
.site-header.is-scrolled {
  background: rgba(9, 13, 17, 0.88);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; }
.brand {
  display: inline-flex; align-items: center; gap: 0.8rem;
  text-decoration: none; color: var(--ivory);
  font-family: var(--font-display); font-size: 0.86rem; letter-spacing: 0.22em; text-transform: uppercase;
  white-space: nowrap;
}
.brand__mark { width: 38px; height: 38px; flex: none; object-fit: contain; filter: drop-shadow(0 0 6px rgba(216, 203, 180, 0.18)); }
.footer-brand .brand__mark { width: 46px; height: 46px; }
.primary-nav { display: none; }
.primary-nav ul { list-style: none; display: flex; gap: clamp(1rem, 1.8vw, 2rem); }
.primary-nav a, .drawer-nav a {
  position: relative; text-decoration: none;
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-soft);
  padding-block: 0.5rem;
  transition: color 0.3s var(--ease);
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--parchment); transform: scaleX(0); transform-origin: center;
  transition: transform 0.5s var(--ease);
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--ivory); }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-width: 48px; min-height: 48px; padding: 0 0.6rem;
  background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase;
}
.nav-toggle__bars { position: relative; width: 20px; height: 10px; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--ivory);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }

/* Mobile drawer */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 140; background: rgba(5, 8, 10, 0.7);
  opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 150;
  width: min(88vw, 380px);
  background: linear-gradient(180deg, #0D1519, #0A1013);
  border-left: 1px solid var(--line);
  padding: 1.25rem 2rem 2.5rem;
  display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  transition: transform 0.6s var(--ease), visibility 0.6s;
  overflow-y: auto;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.drawer__top { display: flex; justify-content: flex-end; margin-bottom: 2rem; }
.drawer__close {
  width: 48px; height: 48px; background: none; border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; font-size: 1.4rem; line-height: 1;
}
.drawer-nav ul { list-style: none; display: grid; gap: 0.2rem; }
.drawer-nav a {
  display: block; font-family: var(--font-serif); font-size: 1.65rem; letter-spacing: 0.03em; text-transform: none;
  padding: 0.45rem 0; color: var(--text-soft); border-bottom: 1px solid rgba(216, 203, 180, 0.07);
}
.drawer-nav a[aria-current="page"] { color: var(--parchment); }
.drawer-nav a[aria-current="page"]::before { content: "— "; color: var(--oxblood); }
.drawer__foot { margin-top: auto; padding-top: 2rem; font-size: 0.8rem; color: var(--text-muted); }
.drawer__foot a { color: var(--text-soft); }
body.no-scroll { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 92vh; min-height: 92svh;
  display: grid; place-items: center;
  padding: calc(var(--header-h) + 2rem) var(--gutter) clamp(7.5rem, 15vh, 9.5rem);
  overflow: hidden; text-align: center;
}
.hero__media, .hero__media img, .hero__media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3;
}
.hero__media img, .hero__media video { animation: slow-drift 40s var(--ease) infinite alternate; }
.hero__shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 75% 65% at 50% 45%, rgba(9, 13, 17, 0.05) 0%, rgba(9, 13, 17, 0.5) 70%, rgba(9, 13, 17, 0.92) 100%),
    linear-gradient(180deg, rgba(9, 13, 17, 0.55) 0%, rgba(9, 13, 17, 0.1) 35%, rgba(9, 13, 17, 0.5) 75%, var(--bg) 100%);
}
.fog { position: absolute; inset: -10% -30%; z-index: -1; pointer-events: none; opacity: 0.55; }
.fog--a {
  background:
    radial-gradient(ellipse 40% 18% at 30% 70%, rgba(216, 203, 180, 0.14), transparent 70%),
    radial-gradient(ellipse 35% 14% at 75% 78%, rgba(200, 210, 210, 0.10), transparent 70%);
  animation: fog-drift 38s ease-in-out infinite alternate;
}
.fog--b {
  background:
    radial-gradient(ellipse 45% 16% at 60% 85%, rgba(216, 203, 180, 0.12), transparent 70%),
    radial-gradient(ellipse 30% 12% at 15% 88%, rgba(180, 196, 192, 0.10), transparent 70%);
  animation: fog-drift 52s ease-in-out infinite alternate-reverse;
}
@keyframes fog-drift { from { transform: translate3d(-6%, 0, 0); } to { transform: translate3d(6%, -2%, 0); } }
@keyframes slow-drift { from { transform: scale(1.04); } to { transform: scale(1.1) translate3d(-1%, -1%, 0); } }

.hero__content { max-width: 980px; }
.hero__kicker {
  display: block; font-size: 0.7rem; letter-spacing: 0.5em; text-transform: uppercase;
  color: var(--parchment); margin-bottom: 1.6rem; padding-left: 0.5em;
}
.hero__title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.3rem, min(9vw, 11vh), 6.4rem); letter-spacing: 0.07em; line-height: 1.02;
  color: var(--ivory);
  text-shadow: 0 0 60px rgba(9, 13, 17, 0.8);
}
.hero__title small { display: block; font-size: 0.36em; letter-spacing: 0.5em; color: var(--text-soft); margin-bottom: 0.4em; }
.hero__tagline {
  font-family: var(--font-serif); font-style: italic; font-weight: 300;
  font-size: clamp(1.2rem, min(3vw, 3.6vh), 1.95rem); line-height: 1.4; color: var(--text-soft);
  margin: clamp(1rem, 3vh, 1.75rem) auto clamp(1.5rem, 4vh, 2.6rem);
}
.hero__tagline span { display: block; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  font-size: 0.6rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--text-muted); text-decoration: none;
}
.scroll-cue::after {
  content: ""; width: 1px; height: 48px;
  background: linear-gradient(180deg, var(--parchment), transparent);
  animation: cue 2.8s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue { 0% { transform: scaleY(0); opacity: 0; } 40% { opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* Interior page banner */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 62vh; min-height: 62svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 4rem) 0 clamp(3rem, 7vw, 5rem);
}
.page-hero .hero__media img { animation-duration: 60s; }
.page-hero .hero__shade {
  background:
    linear-gradient(180deg, rgba(9, 13, 17, 0.6) 0%, rgba(9, 13, 17, 0.25) 40%, rgba(9, 13, 17, 0.85) 85%, var(--bg) 100%),
    radial-gradient(ellipse at 50% 40%, transparent 40%, rgba(9, 13, 17, 0.7) 100%);
}
.page-hero--books .hero__shade {
  background:
    linear-gradient(180deg, rgba(9, 13, 17, 0.45) 0%, rgba(9, 13, 17, 0.05) 35%, rgba(9, 13, 17, 0.55) 80%, var(--bg) 100%),
    linear-gradient(90deg, rgba(9, 13, 17, 0.55) 0%, transparent 55%);
}
.page-hero__title {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(2.8rem, 8vw, 5.6rem); line-height: 1.02; color: var(--ivory);
}
.page-hero__sub { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: var(--text-soft); margin-top: 1rem; max-width: 46ch; }
.breadcrumb { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1.4rem; }
.breadcrumb a { color: var(--text-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--parchment); }
.breadcrumb span[aria-hidden] { margin: 0 0.6rem; color: var(--oxblood); }

/* ---------- Media frames & placeholders ---------- */
.frame {
  position: relative; overflow: hidden; background: var(--obsidian);
  border: 1px solid var(--line);
}
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter 1s var(--ease); }
.ratio-cover { aspect-ratio: 5 / 8; }  /* book covers (KDP 1600×2560) */
.ratio-3x4 { aspect-ratio: 3 / 4; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-21x9 { aspect-ratio: 21 / 9; }
.frame--vignette::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 120px rgba(5, 8, 10, 0.75);
}

/* ---------- Intro (home section B) ---------- */
.split { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.split__media { position: relative; }
.split__media .caption { margin-top: 0.9rem; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }
.signature {
  font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--parchment); margin-top: 2rem;
}
.signature::before { content: ""; display: inline-block; width: 36px; height: 1px; background: var(--oxblood); vertical-align: middle; margin-right: 1rem; }

/* ---------- Book cards ---------- */
.book-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.book-card { display: grid; gap: 1.6rem; align-items: start; }
.book-card__cover { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(216, 203, 180, 0.06); }
.book-card:hover .book-card__cover img { transform: scale(1.03); filter: brightness(1.08); }
.book-card__number { font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--text-muted); }
.book-card__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 0.5rem 0 0.9rem; color: var(--ivory); }
.book-card__title a { text-decoration: none; }
.book-card__title a:hover { color: var(--parchment); }
.book-card__summary { color: var(--text-soft); margin-bottom: 1.6rem; max-width: 52ch; }
.placeholder-text { color: var(--text-muted); font-style: italic; }

.status {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.64rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 0.35rem 0.75rem; border: 1px solid var(--line-strong); color: var(--parchment);
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--available { background: var(--oxblood-soft); border-color: rgba(216, 203, 180, 0.3); color: var(--ivory); }
.status--upcoming { color: var(--text-muted); border-color: var(--line); }
.status--upcoming::before { background: transparent; border: 1px solid currentColor; }

.upcoming-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 3vw, 2rem); margin-top: clamp(3rem, 6vw, 5rem); }
.upcoming-card { text-align: center; }
.upcoming-card .frame { margin-bottom: 1rem; opacity: 0.82; transition: opacity 0.6s var(--ease); }
.upcoming-card:hover .frame { opacity: 1; }
.upcoming-card__link { display: block; text-decoration: none; color: inherit; }
.upcoming-card__link:hover .upcoming-card__state { color: var(--parchment); }
.upcoming-card__num { font-family: var(--font-display); font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-soft); }
.upcoming-card__state { display: block; font-family: var(--font-serif); font-style: italic; color: var(--text-muted); margin-top: 0.3rem; }

/* ---------- Characters ---------- */
.char-grid { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.char-card { text-align: left; }
.char-card .frame { margin-bottom: 1.4rem; }
.char-card:hover .frame img { transform: scale(1.03); }
.char-card__name { font-family: var(--font-serif); font-size: 2rem; font-weight: 400; color: var(--ivory); }
.char-card__name span { display: block; font-family: var(--font-sans); font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.3rem; }
.char-card p { color: var(--text-soft); margin-top: 0.75rem; }

.char-feature { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(3rem, 7vw, 6rem); border-top: 1px solid var(--line); }
.char-feature:first-of-type { border-top: 0; }
.char-feature__name { font-family: var(--font-serif); font-weight: 300; font-size: clamp(2.6rem, 6vw, 4.4rem); color: var(--ivory); margin-bottom: 1rem; }
.char-feature__role { font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--parchment); margin-bottom: 1.5rem; }
.char-feature__epithet {
  font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--parchment); margin: -0.2rem 0 1.4rem; line-height: 1.8;
}
.skill-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.4rem; }
.skill-tags li {
  font-size: 0.72rem; letter-spacing: 0.08em; padding: 0.3rem 0.7rem;
  border: 1px solid var(--line-strong); color: var(--text-soft); background: rgba(18, 28, 34, 0.6);
}
.char-feature details.more > div p { margin-bottom: 1em; }
.char-feature dl { display: grid; gap: 1.2rem; margin: 2rem 0 0; }
.char-feature dt { font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.3rem; }
.char-feature dd { margin: 0; color: var(--text-soft); }
.quote {
  margin: 2rem 0 0; padding-left: 1.4rem; border-left: 1px solid var(--oxblood);
  font-family: var(--font-serif); font-style: italic; font-size: 1.35rem; color: var(--parchment);
}
details.more { margin-top: 1.5rem; border-top: 1px solid var(--line); }
details.more summary {
  cursor: pointer; list-style: none; padding: 1rem 0;
  font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--parchment);
  display: flex; justify-content: space-between; align-items: center;
}
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: "+"; font-size: 1.1rem; color: var(--text-muted); }
details.more[open] summary::after { content: "–"; }
details.more > div { padding-bottom: 1rem; color: var(--text-soft); }

.ensemble-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 3vw, 2rem); }
.ensemble-card .frame { margin-bottom: 1rem; }
.ensemble-card h3 { font-family: var(--font-serif); font-size: 1.6rem; color: var(--ivory); }
.ensemble-card__epithet { font-family: var(--font-display); font-size: 0.62rem !important; letter-spacing: 0.2em; text-transform: uppercase; color: var(--parchment) !important; line-height: 1.7; }
.ensemble-facts { display: grid; gap: 0.9rem; margin: 0.4rem 0 1.4rem; }
.ensemble-facts dt { font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.2rem; }
.ensemble-facts dd { margin: 0; font-size: 0.9rem; color: var(--text-soft); }
.ensemble-card details.more > div p { font-size: 0.92rem; color: var(--text-soft); margin-bottom: 0.9em; }
.ensemble-card p { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.4rem; }

/* ---------- Folklore / location cards ---------- */
.lore-grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.lore-card {
  position: relative; display: block; overflow: hidden; text-decoration: none;
  background: var(--obsidian); border: 1px solid var(--line);
  transition: border-color 0.6s var(--ease), transform 0.8s var(--ease);
}
.lore-card .frame { border: 0; }
.lore-card:hover { border-color: var(--line-strong); }
.lore-card:hover img { transform: scale(1.05); filter: brightness(1.1); }
.lore-card__body {
  position: absolute; inset: auto 0 0 0; padding: 2.2rem 1.6rem 1.6rem;
  background: linear-gradient(180deg, transparent, rgba(9, 13, 17, 0.88) 45%, rgba(9, 13, 17, 0.96));
}
.lore-card__place { font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--parchment); }
.lore-card__title { font-family: var(--font-serif); font-size: 1.85rem; font-weight: 400; color: var(--ivory); margin: 0.35rem 0 0.5rem; }
.lore-card__text { font-size: 0.9rem; line-height: 1.6; color: var(--text-soft); margin: 0; }
.note-bar {
  margin-top: 2.5rem; padding: 1rem 1.25rem; border: 1px solid var(--line); border-left: 2px solid var(--oxblood);
  font-size: 0.88rem; color: var(--text-muted); background: rgba(18, 28, 34, 0.5);
}

/* Folklore library */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-bottom: 2.5rem; }
.filter-btn {
  min-height: 44px; padding: 0.5rem 1.1rem; border: 1px solid var(--line); background: transparent; cursor: pointer;
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-soft); border-radius: 999px;
  transition: all 0.35s var(--ease);
}
.filter-btn:hover { border-color: var(--line-strong); color: var(--ivory); }
.filter-btn[aria-pressed="true"] { background: var(--parchment); color: var(--near-black); border-color: var(--parchment); }
.search-field { flex: 1 1 220px; min-width: 200px; }
.search-field input {
  width: 100%; min-height: 44px; padding: 0.5rem 1rem; background: rgba(18, 28, 34, 0.7);
  border: 1px solid var(--line); border-radius: 999px; color: var(--ivory);
}
.search-field input::placeholder { color: var(--text-muted); }
.results-count { font-size: 0.8rem; color: var(--text-muted); margin: -1.2rem 0 2rem; }

.entry {
  display: grid; background: var(--bg-raised); border: 1px solid var(--line);
  transition: border-color 0.5s var(--ease);
}
.entry:hover { border-color: var(--line-strong); }
.entry[hidden] { display: none; }
.entry .frame { border: 0; border-bottom: 1px solid var(--line); }
.entry__body { padding: 1.6rem 1.6rem 1.9rem; display: flex; flex-direction: column; }
.entry__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-size: 0.64rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--parchment); }
.entry__meta span + span { color: var(--text-muted); }
.entry__title { font-family: var(--font-serif); font-size: 2rem; font-weight: 400; margin: 0.6rem 0 0.2rem; color: var(--ivory); }
.entry__alt { font-family: var(--font-serif); font-style: italic; color: var(--text-muted); margin-bottom: 1rem; }
.entry h4 { font-size: 0.64rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--text-muted); margin: 1.1rem 0 0.4rem; font-weight: 500; }
.entry p { font-size: 0.93rem; color: var(--text-soft); margin: 0; }
.entry .tag-fiction { border-left: 1px solid var(--oxblood); padding-left: 0.9rem; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-muted); font-family: var(--font-serif); font-style: italic; font-size: 1.3rem; }

/* ---------- Video / trailer ---------- */
.video-card { position: relative; }
.video-poster {
  position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); background: var(--obsidian);
  cursor: pointer; overflow: hidden; text-align: left;
}
.video-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter 1s var(--ease); }
.video-poster::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(9, 13, 17, 0.1), rgba(9, 13, 17, 0.7));
}
.video-poster:hover img { transform: scale(1.03); filter: brightness(1.1); }
.play {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: clamp(64px, 9vw, 104px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(242, 238, 231, 0.6); background: rgba(9, 13, 17, 0.35);
  display: grid; place-items: center;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: transform 0.6s var(--ease), border-color 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.play::before {
  content: ""; width: 0; height: 0; margin-left: 12%;
  border-style: solid; border-width: 0.6em 0 0.6em 1em; border-color: transparent transparent transparent var(--ivory);
  font-size: clamp(14px, 1.6vw, 20px);
}
.play::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(216, 203, 180, 0.25);
  animation: ring 3.5s var(--ease) infinite;
}
@keyframes ring { 0% { transform: scale(0.9); opacity: 0; } 50% { opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
.video-poster:hover .play { transform: translate(-50%, -50%) scale(1.06); border-color: var(--parchment); box-shadow: 0 0 50px var(--glow); }
.video-poster[aria-disabled="true"] { cursor: default; }
.video-poster[aria-disabled="true"] .play::after { animation: none; opacity: 0; }
.video-poster__label {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 1.1rem 1.3rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-size: 0.64rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--text-soft);
}
.video-poster__state { color: var(--parchment); }
.video-card__title { font-family: var(--font-serif); font-size: 1.5rem; margin: 1rem 0 0.3rem; color: var(--ivory); }
.video-card__desc { font-size: 0.9rem; color: var(--text-muted); margin: 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer-hero-title { font-family: var(--font-serif); font-weight: 300; font-size: clamp(1.9rem, 4vw, 2.9rem); }
.status-msg { min-height: 1.5em; margin-top: 1rem; font-size: 0.88rem; color: var(--parchment); }

.video-grid { display: grid; gap: clamp(1.75rem, 3vw, 2.5rem); }
.gallery-group + .gallery-group { margin-top: clamp(4rem, 8vw, 6rem); }
.gallery-group__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.gallery-group__head h2 { font-family: var(--font-serif); font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 300; }
.gallery-group__head p { margin: 0; color: var(--text-muted); max-width: 46ch; font-size: 0.92rem; }

/* Modal */
.modal {
  position: fixed; inset: 0; z-index: 250; display: none; place-items: center; padding: var(--gutter);
  background: rgba(4, 6, 8, 0.92);
}
.modal.is-open { display: grid; }
.modal__dialog { width: min(1100px, 100%); }
.modal__bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; gap: 1rem; }
.modal__title { font-family: var(--font-serif); font-size: 1.3rem; color: var(--ivory); }
.modal__note { margin: 0.9rem 0 0; font-size: 0.82rem; color: var(--text-muted); text-align: right; }
.modal__note a { color: var(--parchment); }
.modal__close { width: 48px; height: 48px; border: 1px solid var(--line-strong); background: none; cursor: pointer; font-size: 1.4rem; border-radius: var(--radius); }

/* ---------- Forms ---------- */
.newsletter { position: relative; text-align: center; overflow: hidden; isolation: isolate; }
.newsletter::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(37, 59, 53, 0.55), transparent 70%);
}
.newsletter__title { font-family: var(--font-display); letter-spacing: 0.14em; font-size: clamp(2rem, 6vw, 3.6rem); text-transform: uppercase; }
.newsletter__copy { max-width: 54ch; margin: 1.25rem auto 2.5rem; color: var(--text-soft); font-family: var(--font-serif); font-size: 1.25rem; font-style: italic; }
.inline-form { display: flex; flex-direction: column; gap: 0.75rem; max-width: 560px; margin-inline: auto; }
.field { display: grid; gap: 0.5rem; text-align: left; }
.field label { font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--text-muted); }
.input, .textarea, .select {
  width: 100%; min-height: 52px; padding: 0.85rem 1.1rem;
  background: rgba(14, 21, 27, 0.85); color: var(--ivory);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.textarea { min-height: 180px; resize: vertical; line-height: 1.6; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--parchment) 50%), linear-gradient(135deg, var(--parchment) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.select option { background: var(--obsidian); }
.input::placeholder, .textarea::placeholder { color: #7D878C; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--parchment); box-shadow: 0 0 0 3px rgba(216, 203, 180, 0.15); }
.form-note {
  display: flex; gap: 0.75rem; align-items: flex-start; text-align: left;
  margin-top: 1.25rem; padding: 0.9rem 1.1rem; font-size: 0.84rem; color: var(--text-muted);
  border: 1px dashed var(--line-strong); background: rgba(9, 13, 17, 0.5);
}
.form-note::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 0.5em; transform: rotate(45deg); background: var(--oxblood); border: 1px solid var(--parchment); }
.form-note[hidden] { display: none; }
.form-grid { display: grid; gap: 1.25rem; }
.form-status { min-height: 1.5em; margin-top: 1rem; font-size: 0.9rem; color: var(--parchment); }

/* ---------- Closing CTA ---------- */
.closing {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  min-height: 78vh; display: grid; place-items: center; padding: 6rem var(--gutter);
}
.closing .hero__shade { background: radial-gradient(ellipse 55% 45% at 50% 52%, rgba(9, 13, 17, 0.45), rgba(9, 13, 17, 0.05) 70%), linear-gradient(180deg, var(--bg) 0%, transparent 14%, transparent 82%, var(--bg) 100%); }
.closing .hero__media img { object-position: 62% 40%; }
@media (max-width: 700px) { .closing .hero__media img { object-position: 80% 45%; } }
.closing__title { font-family: var(--font-display); font-size: clamp(1.9rem, 6vw, 4.6rem); letter-spacing: 0.1em; line-height: 1.15; text-transform: uppercase; margin-bottom: 2.6rem; max-width: 18ch; margin-inline: auto; }

/* ---------- Book detail ---------- */
.book-detail { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.book-detail__cover { position: relative; }
.book-detail__cover .frame { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.95); }
.book-detail__title { font-family: var(--font-serif); font-weight: 300; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.03; margin: 0.7rem 0 1.2rem; }
.desc-callout {
  font-family: var(--font-display); font-size: 0.82em; letter-spacing: 0.14em; line-height: 1.6;
  color: var(--parchment); border-left: 1px solid var(--oxblood); padding-left: 1.1rem; margin-block: 1.6em;
}
.meta-list { list-style: none; display: grid; gap: 0.6rem; margin: 2rem 0; padding: 1.5rem 0; border-block: 1px solid var(--line); font-size: 0.9rem; }
.meta-list li { display: flex; justify-content: space-between; gap: 1rem; }
.meta-list span:first-child { font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--text-muted); padding-top: 0.25em; }
.meta-list span:last-child { color: var(--text-soft); text-align: right; }
.themes { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.theme { background: var(--bg); padding: clamp(1.75rem, 3vw, 2.5rem); }
.theme__num { font-family: var(--font-display); font-size: 0.7rem; letter-spacing: 0.3em; color: var(--oxblood); }
.theme h3 { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 400; margin: 0.7rem 0 0.6rem; color: var(--ivory); }
.theme p { color: var(--text-soft); font-size: 0.95rem; margin: 0; }
.pager { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.pager a, .pager > span {
  display: block; padding: 2.2rem var(--gutter); background: var(--bg); text-decoration: none;
  transition: background 0.5s var(--ease);
}
.pager a:hover { background: var(--bg-panel); }
.pager small { display: block; font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.4rem; }
.pager strong { font-family: var(--font-serif); font-weight: 400; font-size: 1.6rem; color: var(--ivory); }
.pager__next { text-align: right; }

/* ---------- World ---------- */
.journal-entry { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-block: clamp(3rem, 7vw, 6rem); }
.journal-entry + .journal-entry { border-top: 1px solid var(--line); }
.journal-entry__label { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.journal-entry__label b { font-family: var(--font-display); font-weight: 400; font-size: 0.72rem; letter-spacing: 0.3em; color: var(--oxblood); }
.journal-entry__label span { font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-muted); }
.journal-entry h2 { font-family: var(--font-serif); font-weight: 300; font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.journal-entry p { color: var(--text-soft); max-width: 52ch; }
.coords { font-family: var(--font-serif); font-style: italic; color: var(--text-muted); }
.map-panel { position: relative; border: 1px solid var(--line); background: radial-gradient(ellipse at 50% 50%, #132320, var(--bg) 80%); }
.map-panel svg { width: 100%; height: auto; }
.map-pin { cursor: pointer; }
.map-pin circle.core { fill: var(--parchment); }
.map-pin circle.halo { fill: none; stroke: var(--parchment); stroke-opacity: 0.4; }
.map-pin text { fill: var(--text-soft); font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.map-pin:hover circle.core, .map-pin:focus circle.core { fill: var(--ivory); }
.map-pin:focus { outline: none; }
.map-pin:focus-visible circle.halo { stroke: var(--ivory); stroke-width: 2; stroke-opacity: 1; }
.map-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--text-muted); }

/* ---------- Articles (Folklore Files) ---------- */
.article-hero { min-height: 78vh; min-height: 78svh; }
.article-hero .hero__media img { object-position: 50% 35%; animation-duration: 70s; }
.article-hero .hero__shade {
  background:
    linear-gradient(180deg, rgba(9, 13, 17, 0.55) 0%, rgba(9, 13, 17, 0.05) 35%, rgba(9, 13, 17, 0.75) 78%, var(--bg) 100%),
    radial-gradient(ellipse at 50% 40%, transparent 45%, rgba(9, 13, 17, 0.6) 100%);
}
.article-title { font-size: clamp(2.2rem, 5.2vw, 4.2rem); max-width: 24ch; }
.article-meta { display: flex; gap: 0.7rem; margin-top: 1.4rem; font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-muted); }
.article-prose { max-width: 68ch; margin-inline: auto; font-size: 1.06rem; line-height: 1.85; }
.article-prose .article-lede { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.4; color: var(--parchment); margin-bottom: 1.6em; }
.article-prose h2 { margin-top: 2.6em; padding-top: 1.6em; border-top: 1px solid var(--line); }
.article-prose h2:first-of-type { border-top: 0; padding-top: 0; }
.article-prose blockquote { margin: 2rem 0; padding: 0.4rem 0 0.4rem 1.5rem; border-left: 2px solid var(--oxblood); font-family: var(--font-serif); font-style: italic; font-size: 1.45rem; line-height: 1.5; color: var(--ivory); }
.article-prose blockquote p { margin: 0; }
.article-prose strong { color: var(--parchment); font-weight: 600; }
.article-prose a.cite {
  display: inline-block; margin-left: 0.25em; padding: 0.05em 0.5em; vertical-align: 0.12em;
  font-family: var(--font-sans); font-size: 0.66em; font-style: normal; letter-spacing: 0.04em; line-height: 1.6;
  color: var(--text-muted); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap;
  transition: color 0.3s, border-color 0.3s;
}
.article-prose a.cite:hover { color: var(--parchment); border-color: var(--line-strong); }
.article-sources { margin-top: 3.5rem; padding: 2rem 1.75rem 1rem; border: 1px solid var(--line); background: var(--bg-raised); }
.article-sources h2 { margin-top: 0 !important; padding-top: 0 !important; border: 0 !important; font-size: 1.6rem !important; }
.article-sources h3 { font-family: var(--font-sans); font-size: 0.68rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--text-muted); margin: 1.8em 0 0.8em; }
.article-sources ul { padding-left: 1.1em; font-size: 0.92rem; line-height: 1.7; }
.article-sources li { margin-bottom: 0.9em; }
.article-note { margin-top: 1rem; }
.article-note a { color: var(--parchment); }

/* ---------- Author ---------- */
.author-grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.editable {
  position: relative; padding: 1.6rem 1.6rem 1.4rem; margin-block: 1.5rem;
  border: 1px dashed var(--line-strong); background: rgba(14, 21, 27, 0.6);
}
.editable__tag { position: absolute; top: -0.65rem; left: 1.2rem; padding: 0 0.6rem; background: var(--bg); font-size: 0.6rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--parchment); }
.editable p:last-child { margin-bottom: 0; }
.pull {
  font-family: var(--font-serif); font-style: italic; font-weight: 300;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.35; color: var(--parchment);
  border-left: 1px solid var(--oxblood); padding-left: 1.5rem; margin: 0 0 2rem;
}

/* ---------- Contact ---------- */
.topic-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 2rem; }
.topic-list li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); display: grid; gap: 0.2rem; }
.topic-list strong { font-family: var(--font-serif); font-weight: 400; font-size: 1.35rem; color: var(--ivory); }
.topic-list span { font-size: 0.9rem; color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer { position: relative; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg), #070A0D); padding: clamp(4rem, 8vw, 6rem) 0 2rem; }
.footer-grid { display: grid; gap: 2.5rem; }
.footer-brand .brand { font-size: 1rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 1.1rem; max-width: 34ch; }
.footer-signature { font-family: var(--font-serif); font-style: italic; color: var(--parchment); font-size: 1.15rem; }
.footer-col h2 { font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; display: grid; gap: 0.55rem; }
.footer-col a { text-decoration: none; color: var(--text-soft); font-size: 0.92rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--parchment); }
.social-list { display: flex !important; flex-wrap: wrap; gap: 0.6rem !important; }
.social-list a, .social-list span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0.4rem 0.9rem;
  border: 1px solid var(--line); font-size: 0.72rem !important; letter-spacing: 0.14em; text-transform: uppercase;
}
.social-list span { color: var(--text-muted); border-style: dashed; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--text-muted); }
.footer-bottom a { color: var(--text-soft); }

/* Back to top */
.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(9, 13, 17, 0.8); cursor: pointer;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--parchment); }
.to-top svg { width: 16px; height: 16px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 260; transform: translate(-50%, 20px);
  max-width: min(92vw, 480px); padding: 0.9rem 1.3rem; background: var(--bg-panel); border: 1px solid var(--line-strong);
  border-left: 2px solid var(--oxblood); font-size: 0.88rem; color: var(--text-soft);
  opacity: 0; visibility: hidden; transition: all 0.5s var(--ease);
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- 404 ---------- */
.lost { min-height: 100vh; display: grid; place-items: center; text-align: center; position: relative; isolation: isolate; overflow: hidden; padding: 8rem var(--gutter) 4rem; }
.lost__code { font-family: var(--font-display); font-size: clamp(4rem, 18vw, 11rem); letter-spacing: 0.12em; color: transparent; -webkit-text-stroke: 1px var(--line-strong); line-height: 1; }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-delay-1 { transition-delay: 0.12s; }
.js .reveal-delay-2 { transition-delay: 0.24s; }
.js .reveal-delay-3 { transition-delay: 0.36s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__media video { display: none; }
}

/* Author page — Field Notes gallery */
.field-notes__grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.field-notes__item { margin: 0; }
.field-notes__item figcaption { margin-top: 0.7rem; font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted); }

/* Article tables (source comparisons) — scroll sideways on narrow screens */
.article-prose .table-wrap { margin: 2rem 0; overflow-x: auto; border: 1px solid var(--line); }
.article-prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.92rem; line-height: 1.6; }
.article-prose th { text-align: left; padding: 0.85rem 1rem; font-size: 0.64rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--parchment); background: var(--bg-panel); border-bottom: 1px solid var(--line-strong); }
.article-prose td { padding: 0.9rem 1rem; vertical-align: top; color: var(--text-soft); border-bottom: 1px solid var(--line); }
.article-prose tr:last-child td { border-bottom: 0; }
.article-prose td:first-child { color: var(--ivory); }

/* ==========================================================================
   Letters from the Hollow — newsletter sign-up (Brevo)
   ========================================================================== */
.newsletter__eyebrow { display: block; margin-bottom: 1.1rem; color: #C8AD80; }
.nl-form { max-width: 620px; margin-inline: auto; display: grid; gap: 1.1rem; text-align: left; }
.nl-form__row { display: grid; gap: 0.9rem; }
.nl-field label { display: block; margin-bottom: 0.45rem; font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-soft); }
.nl-optional { letter-spacing: 0.08em; text-transform: none; color: var(--text-muted); }
.nl-form .input, .footer-nl .input { width: 100%; }
.nl-consent { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.9rem; line-height: 1.55; color: var(--text-soft); cursor: pointer; }
.nl-consent input { flex: none; width: 1.15rem; height: 1.15rem; margin: 0.15rem 0 0; accent-color: #C8AD80; cursor: pointer; }
.nl-consent input[aria-invalid="true"] { outline: 2px solid #B85C66; outline-offset: 2px; }
.nl-consent--small { font-size: 0.78rem; margin-top: 0.7rem; }
.nl-consent a { color: var(--parchment); }
.nl-form__btn { justify-self: center; min-width: 240px; --btn-bg: #C8AD80; --btn-border: #C8AD80; }
.nl-trap, .hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.nl-privacy { max-width: 60ch; margin: 1.1rem auto 0; font-size: 0.8rem; line-height: 1.6; color: var(--text-muted); }
.nl-privacy a { color: var(--parchment); }
.newsletter .form-status, .footer-nl .form-status { text-align: center; }
.form-status.is-error { color: #E3A3AA; }
.form-status.is-success { color: #C8AD80; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] { border-color: #B85C66; box-shadow: 0 0 0 3px rgba(184, 92, 102, 0.18); }

/* Compact footer sign-up */
.footer-nl { margin-top: 1.8rem; max-width: 420px; }
.footer-nl__title { font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: #C8AD80; font-weight: 500; margin-bottom: 0.8rem; }
.footer-nl__row { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nl .btn { white-space: nowrap; }
.footer-nl .form-status { text-align: left; font-size: 0.82rem; margin-top: 0.6rem; }
.footer-nl .form-note { margin-top: 0.4rem; font-size: 0.78rem; }
.footer-nl-link { margin-top: 1.2rem; font-size: 0.85rem; }
.footer-nl-link a { color: #C8AD80; text-decoration: none; }
.footer-nl-link a:hover { color: var(--ivory); }

/* Contact the Author */
.contact-alt { margin-top: 2rem; font-size: 0.92rem; color: var(--text-soft); }
.contact-alt a { color: var(--parchment); }
.req { color: #C8AD80; }
.field-error { min-height: 0; margin: 0.4rem 0 0; font-size: 0.8rem; color: #E3A3AA; }
.field-error:empty { display: none; }
.field-meta { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.field-count { margin-left: auto; margin-top: 0.4rem; font-size: 0.72rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.turnstile-box { min-height: 65px; }
.contact-form .btn[aria-busy="true"], .nl-form .btn[aria-busy="true"] { opacity: 0.65; cursor: progress; }
iframe[hidden] { display: none !important; }
