/* ============================================================================
   FOLLY & LORE PRESS — styles.css
   ----------------------------------------------------------------------------
   Contents
     1.  Design tokens & reset
     2.  Base typography & shared utilities
     3.  Language switching
     4.  Buttons & the market picker
     5.  Header & mobile menu
     6.  Hero (night)
     7.  Brand line band
     8.  "Sådan fungerer bogen" — the four steps
     9.  "Kig indenfor" — spread viewer & extras
     10. Lightbox
     11. "Historierne" — story cards, "…og 19 mere", the full tale
     12. "Hvorfor denne malebog" — features
     13. "Om Molbohistorierne" — source section
     14. "Kommende udgivelser" — teasers & notify form
     15. "Om Folly & Lore Press" — imprint
     16. Footer
     17. Motion, reveals & reduced motion
     18. Small-screen refinements
   ========================================================================== */

/* ============================================================
   1. DESIGN TOKENS & RESET
   ============================================================ */
:root {
  /* Palette — drawn from the book cover */
  --ink:        #171310;
  --ink-soft:   #40372e;
  --night-900:  #0B1630;
  --night-800:  #12224A;
  --night-700:  #1B3160;
  --paper:      #F7F0E1;
  --paper-2:    #EFE4CC;
  --paper-3:    #E4D5B7;
  --red:        #8E1B16;
  --red-bright: #A82A22;
  --gold:       #E3BC6A;
  --gold-deep:  #C79A3E;
  --leaf:       #3F5C36;
  --cream:      #F7F0E1;
  --cream-dim:  rgba(247, 240, 225, .72);

  /* Type */
  --font-display: 'Playfair Display', 'Iowan Old Style', Georgia, serif;
  --font-body: 'EB Garamond', 'Iowan Old Style', Georgia, serif;

  /* Shadows — always tinted, never grey */
  --shadow-night: 0 30px 60px -20px rgba(11, 22, 48, .45);
  --shadow-warm:  0 18px 40px -16px rgba(64, 42, 16, .35);
  --shadow-card:  0 10px 28px -12px rgba(64, 42, 16, .28);

  /* Layout */
  --container: 74rem;
  --header-h: 4.5rem;

  /* Paper grain (feTurbulence, extremely subtle) */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='180' height='180' filter='url(%23n)' opacity='0.045'/></svg>");
}

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

html {
  color-scheme: light; /* fixed art direction — never invert with the OS theme */
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html { scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 1.05rem + .3vw, 1.25rem); /* 18–20px */
  line-height: 1.6;
  font-feature-settings: 'onum' 1, 'liga' 1;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol, figure, blockquote, details { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
summary { cursor: pointer; }

/* Visible focus rings: red on paper, gold on night */
:focus-visible {
  outline: 3px solid var(--red-bright);
  outline-offset: 3px;
  border-radius: 2px;
}
.night :focus-visible,
.night-deep :focus-visible,
.brand-band :focus-visible,
.lightbox :focus-visible,
.mobile-menu :focus-visible,
.site-header:not(.is-scrolled) :focus-visible {
  outline-color: var(--gold);
}

/* ============================================================
   2. BASE TYPOGRAPHY & SHARED UTILITIES
   ============================================================ */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: fixed; top: .6rem; left: .6rem; z-index: 300;
  transform: translateY(-300%);
  background: var(--paper); color: var(--ink);
  padding: .6rem 1.1rem; border-radius: .35rem;
  border: 1px solid var(--paper-3);
  box-shadow: var(--shadow-warm);
  text-decoration: none; font-weight: 600;
  transition: transform .2s ease;
}
.skip-link:focus-visible { transform: none; }

/* Small-caps eyebrow labels */
.eyebrow {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .8rem;
}
.eyebrow-gold { color: var(--gold); }

.section-head { max-width: 46rem; margin-inline: auto; text-align: center; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.section-title.on-dark { color: var(--cream); }
.section-intro {
  margin-top: 1rem;
  font-size: 1.05em;
  color: var(--ink-soft);
  max-width: 38em;
  margin-inline: auto;
}
.section-intro.on-dark { color: var(--cream-dim); }

/* Sections share generous rhythm; waves need relative positioning */
section { position: relative; }
.steps, .peek, .stories, .features, .about-molbo, .upcoming, .imprint {
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

/* Paper sections — warm parchment with the faint grain */
.paper   { background-color: var(--paper);   background-image: var(--grain); }
.paper-2 { background-color: var(--paper-2); background-image: var(--grain); }

/* Night sections — deep sky, stars, moon glow */
.night {
  color: var(--cream);
  background-color: var(--night-900);
  background-image:
    radial-gradient(1.6px 1.6px at 18% 24%, rgba(247,240,225,.85) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 66% 12%, rgba(247,240,225,.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 42% 42%, rgba(247,240,225,.55) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 88% 38%, rgba(247,240,225,.65) 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 66%, rgba(247,240,225,.5) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 30% 82%, rgba(247,240,225,.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 76% 70%, rgba(247,240,225,.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 54% 6%, rgba(227,188,106,.7) 50%, transparent 51%),
    radial-gradient(60rem 34rem at 86% -8%, rgba(227,188,106,.16), transparent 62%),
    linear-gradient(180deg, var(--night-900) 0%, var(--night-800) 58%, var(--night-700) 100%);
}
.night-deep {
  color: var(--cream);
  background-color: var(--night-900);
  background-image:
    radial-gradient(1.3px 1.3px at 22% 30%, rgba(247,240,225,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 18%, rgba(247,240,225,.45) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 88% 62%, rgba(247,240,225,.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 40% 78%, rgba(247,240,225,.35) 50%, transparent 51%),
    linear-gradient(180deg, var(--night-900), #081124 90%);
}

/* Section waves: painted at the bottom of a section, filled with the
   background of whatever comes next. */
.sect-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: clamp(2.4rem, 5.5vw, 5rem);
  display: block;
  pointer-events: none;
}
.wave-fill-red    { fill: var(--red); }
.wave-fill-paper  { fill: var(--paper); }
.wave-fill-night  { fill: var(--night-900); }
.wave-fill-night9 { fill: var(--night-900); }
.hero, .brand-band, .about-molbo, .upcoming, .imprint { padding-bottom: clamp(6rem, 12vw, 10rem); }

/* Trefoil ornament rule (the book's own divider) */
.trefoil-rule {
  width: clamp(9rem, 22vw, 13.75rem);
  height: auto;
  margin-inline: auto;
  opacity: .8;
}
.trefoil-rule.sm { width: clamp(6.5rem, 14vw, 8.5rem); opacity: .65; }
.invert-cream { filter: invert(1) sepia(.22) saturate(1.5) brightness(1.02); }

/* Corner ornaments for framed "book page" blocks */
.corner {
  position: absolute;
  width: clamp(3.2rem, 8vw, 5.5rem);
  height: auto;
  opacity: .82;
  pointer-events: none;
}
.c-tl { top: 1rem; left: 1rem; }
.c-tr { top: 1rem; right: 1rem; transform: scaleX(-1); }
.c-bl { bottom: 1rem; left: 1rem; transform: scaleY(-1); }
.c-br { bottom: 1rem; right: 1rem; transform: scale(-1); }

/* ============================================================
   3. LANGUAGE SWITCHING (both languages live in the DOM)
   ============================================================ */
html[lang="da"] [data-lang="en"],
html[lang="en"] [data-lang="da"],
html[lang="da"] [data-lang-block="en"],
html[lang="en"] [data-lang-block="da"] {
  display: none;
}

.lang-toggle {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em;
}
.lang-btn {
  padding: .3rem .45rem;
  border-radius: .3rem;
  opacity: .62;
  transition: opacity .18s ease, background-color .18s ease;
}
.lang-btn[aria-pressed="true"] {
  opacity: 1;
  background: rgba(227, 188, 106, .18);
  box-shadow: inset 0 0 0 1px rgba(227, 188, 106, .5);
}
.site-header.is-scrolled .lang-btn[aria-pressed="true"] {
  background: rgba(142, 27, 22, .1);
  box-shadow: inset 0 0 0 1px rgba(142, 27, 22, .45);
}
.lang-sep { opacity: .4; }

/* ============================================================
   4. BUTTONS & THE MARKET PICKER
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .02em;
  text-decoration: none;
  border-radius: .45rem;
  padding: .78rem 1.5rem;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-lg { padding: .95rem 1.9rem; font-size: 1.08rem; }
.btn-compact { padding: .5rem 1rem; font-size: .9rem; }

/* Primary — warm red, cream text, fine gold inner hairline */
.btn-primary {
  background: linear-gradient(180deg, var(--red-bright), var(--red) 78%);
  color: var(--cream);
  box-shadow:
    inset 0 0 0 1px rgba(227, 188, 106, .55),
    inset 0 0 0 3px rgba(142, 27, 22, .9),
    0 14px 30px -12px rgba(102, 17, 12, .55);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #b53228, var(--red-bright) 78%);
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px rgba(227, 188, 106, .75),
    inset 0 0 0 3px rgba(142, 27, 22, .9),
    0 20px 38px -14px rgba(102, 17, 12, .6);
}
.btn-primary:active { transform: translateY(0); }
.btn-glyph { flex: none; }
.buy-market {
  font-size: .74rem; font-weight: 500; letter-spacing: .06em;
  opacity: .85; border-left: 1px solid rgba(247,240,225,.4);
  padding-left: .55rem; margin-left: .1rem;
}
.buy-label .label-coming, .buy-label .label-live { display: inline; }
.buy-label .label-coming[hidden], .buy-label .label-live[hidden] { display: none; }

/* Ghost — cream hairline, for dark grounds */
.btn-ghost {
  color: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(247, 240, 225, .55);
  background: rgba(247, 240, 225, .04);
}
.btn-ghost:hover {
  background: rgba(247, 240, 225, .12);
  box-shadow: inset 0 0 0 1px rgba(247, 240, 225, .85);
  transform: translateY(-2px);
}

/* Small chip next to the buy button */
.buy-chip {
  display: inline-flex; align-items: center;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(227, 188, 106, .45);
  border-radius: 999px;
  padding: .32rem .8rem;
}
.paper .buy-chip, .paper-2 .buy-chip {
  color: var(--gold-deep);
  border-color: rgba(199, 154, 62, .55);
}

.cta-cluster {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .9rem 1rem;
}

/* Market picker (revealed by JS when the book is live) */
.market-picker { position: relative; }
.market-picker > summary {
  list-style: none;
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .88rem; font-weight: 600;
  padding: .55rem .9rem;
  border-radius: .45rem;
  box-shadow: inset 0 0 0 1px rgba(247, 240, 225, .4);
  color: var(--cream);
}
.market-picker > summary::-webkit-details-marker { display: none; }
.market-picker[open] .mp-chevron { transform: rotate(180deg); }
.mp-chevron { transition: transform .18s ease; }
.mp-list {
  position: absolute; z-index: 60;
  top: calc(100% + .5rem); left: 0;
  min-width: 15rem;
  background: var(--paper);
  color: var(--ink);
  border-radius: .55rem;
  border: 1px solid var(--paper-3);
  box-shadow: var(--shadow-night);
  padding: .4rem;
  margin: 0;
}
.mp-list button {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  width: 100%;
  padding: .5rem .7rem;
  border-radius: .4rem;
  text-align: left;
  font-size: .95rem;
}
.mp-list button:hover { background: var(--paper-2); }
.mp-list button[aria-current="true"] {
  background: rgba(142, 27, 22, .09);
  box-shadow: inset 0 0 0 1px rgba(142, 27, 22, .35);
}
.mp-list .mp-note { font-size: .78rem; color: var(--ink-soft); font-style: italic; }

/* ============================================================
   5. HEADER & MOBILE MENU
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  color: var(--cream);
  transition: background-color .25s ease, box-shadow .25s ease, color .25s ease;
}
.header-inner {
  width: min(100% - 2.5rem, 87rem);
  margin-inline: auto;
  height: var(--header-h);
  display: flex; align-items: center; gap: 1.5rem;
}
.site-header.is-scrolled {
  background: rgba(247, 240, 225, .96);
  color: var(--ink);
  box-shadow:
    inset 0 -1px 0 var(--paper-3),
    0 14px 30px -18px rgba(11, 22, 48, .35);
}
@supports (backdrop-filter: blur(6px)) {
  .site-header.is-scrolled { background: rgba(247, 240, 225, .88); backdrop-filter: blur(8px); }
}

.wordmark {
  display: inline-flex; align-items: center; gap: .5rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wordmark-trefoil { color: var(--gold); flex: none; }
.site-header.is-scrolled .wordmark-trefoil { color: var(--red); }

.main-nav {
  display: none;
  margin-inline: auto;
  gap: 1.6rem;
}
.main-nav a {
  text-decoration: none;
  font-size: .98rem;
  font-weight: 500;
  opacity: .88;
  padding-block: .3rem;
  border-bottom: 1px solid transparent;
  transition: opacity .18s ease, border-color .18s ease;
}
.main-nav a:hover { opacity: 1; border-bottom-color: currentColor; }

.header-actions {
  display: flex; align-items: center; gap: 1rem;
  margin-left: auto;
}
.header-actions .buy-btn { display: none; }

/* Hamburger */
.menu-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 2.6rem; height: 2.6rem; align-items: center;
  border-radius: .4rem;
}
.menu-bar {
  width: 22px; height: 2px; border-radius: 2px;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 64em) {
  .main-nav { display: flex; }
  .header-actions .buy-btn { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* Mobile menu panel */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background:
    radial-gradient(50rem 30rem at 85% -5%, rgba(227,188,106,.14), transparent 60%),
    linear-gradient(180deg, var(--night-900), var(--night-800));
  color: var(--cream);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  gap: 3rem;
  padding: calc(var(--header-h) + 1rem) 2rem 3rem;
  opacity: 0;
  transition: opacity .28s ease;
}
.mobile-menu.is-open { opacity: 1; }
.mobile-nav { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-menu-foot { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
body.menu-open { overflow: hidden; }

/* ============================================================
   6. HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--header-h) + 2.5rem);
  overflow: hidden;
}
/* an extra drifting star layer for gentle parallax */
.hero-stars {
  position: absolute; inset: -6% -4%;
  pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, rgba(247,240,225,.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 8%, rgba(247,240,225,.55) 50%, transparent 51%),
    radial-gradient(1.7px 1.7px at 58% 22%, rgba(227,188,106,.75) 50%, transparent 51%),
    radial-gradient(1px 1px at 80% 10%, rgba(247,240,225,.6) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 92% 30%, rgba(247,240,225,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 48%, rgba(247,240,225,.4) 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 70% 52%, rgba(247,240,225,.45) 50%, transparent 51%);
  will-change: transform;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 3rem;
  padding-block: 1rem 2rem;
}
@media (min-width: 60em) {
  .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 4.5rem; }
  /* luft mellem overskriften og bogomslaget, så det store H1 aldrig klemmes */
  .hero-copy { padding-right: clamp(1rem, 2vw, 2.5rem); }
  /* På to kolonner har overskriften kun den halve bredde til rådighed. */
  .hero-title { font-size: min(6.1vw, 5.6rem); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  /* "Molbohistorier" er ét langt ord, der ikke kan brydes. Størrelsen
     følger derfor viewport-bredden direkte, så ordet altid kan være
     på én linje uden at løbe ud over kanten — også ved 320 px. */
  font-size: min(12vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--cream);
  text-shadow:
    0 0 32px rgba(227, 188, 106, .35),
    0 0 80px rgba(227, 188, 106, .18),
    0 3px 14px rgba(8, 12, 26, .8);
  text-wrap: balance;
}
.hero-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.15rem, 1rem + 1vw, 1.6rem);
  color: var(--gold);
  margin-top: .9rem;
}
.hero-lead {
  margin-top: 1.4rem;
  max-width: 34em;
  color: var(--cream-dim);
  font-size: 1.05em;
}

.spec-pills {
  display: flex; flex-wrap: wrap; gap: .55rem .6rem;
  margin-block: 1.6rem 1.8rem;
  padding: 0;
}
.spec-pills li {
  font-size: .82rem; font-weight: 600; letter-spacing: .06em;
  color: var(--cream);
  border: 1px solid rgba(247, 240, 225, .3);
  background: rgba(247, 240, 225, .06);
  border-radius: 999px;
  padding: .35rem .95rem;
  white-space: nowrap;
}
.pill-sub { opacity: .7; font-weight: 400; }

.hero-reassure {
  margin-top: 1.3rem;
  font-size: .92rem;
  font-style: italic;
  color: var(--cream-dim);
}

/* The floating book */
.hero-book {
  position: relative;
  justify-self: center;
  width: min(78%, 26rem);
  will-change: transform;
}
@media (min-width: 60em) { .hero-book { width: min(100%, 30rem); justify-self: end; margin-right: clamp(0rem, 3vw, 2.5rem); } }
.hero-book-glow {
  position: absolute; inset: -18%;
  background: radial-gradient(closest-side, rgba(227, 188, 106, .32), rgba(227, 188, 106, .08) 55%, transparent 72%);
  pointer-events: none;
}
.hero-cover {
  position: relative;
  filter:
    drop-shadow(0 42px 46px rgba(5, 9, 20, .65))
    drop-shadow(-6px 10px 24px rgba(227, 188, 106, .18));
}
.hero-book-shadow {
  position: absolute; left: 8%; right: 8%; bottom: -5.5%;
  height: 10%;
  background: radial-gradient(closest-side, rgba(5, 9, 20, .55), transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-cover { animation: bookFloat 7s ease-in-out infinite; }
}
@keyframes bookFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(.4deg); }
}

/* ============================================================
   7. BRAND LINE BAND
   ============================================================ */
.brand-band {
  background:
    radial-gradient(70rem 20rem at 50% -60%, rgba(227,188,106,.14), transparent 70%),
    linear-gradient(180deg, #7c1712, var(--red) 60%, #7c1712);
  color: var(--cream);
  text-align: center;
  padding-top: clamp(2.6rem, 6vw, 4rem);
  display: grid;
  justify-items: center;
  gap: 1.1rem;
}
.brand-line {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.5rem, 1rem + 2.6vw, 2.6rem);
  letter-spacing: -0.01em;
  max-width: 22em;
  padding-inline: 1.25rem;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(60, 8, 5, .5);
}
.brand-band .trefoil-rule { width: clamp(7rem, 16vw, 10rem); opacity: .9; }

/* ============================================================
   8. THE FOUR STEPS
   ============================================================ */
.steps-grid {
  --step-gap: 1.4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--step-gap);
  counter-reset: step;
  position: relative;
  padding: 0;
  margin: 0;
}
@media (min-width: 40em)  { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em)  { .steps-grid { grid-template-columns: repeat(4, 1fr); } }

/* the dotted path connecting the steps (desktop only) */
@media (min-width: 64em) {
  .steps-grid::before {
    content: "";
    position: absolute;
    top: 3.2rem; left: 6%; right: 6%;
    border-top: 2px dashed rgba(199, 154, 62, .55);
    z-index: 0;
  }
}

.step-card {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--paper-3);
  border-radius: .8rem;
  padding: 2rem 1.5rem 1.8rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  z-index: 1;
}
.step-card::before {
  content: attr(data-numeral);
  position: absolute;
  top: -1.4rem; right: .4rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 7.5rem;
  line-height: 1;
  color: rgba(142, 27, 22, .07);
  pointer-events: none;
}
.step-icon {
  display: inline-grid; place-items: center;
  width: 4rem; height: 4rem;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--paper-3);
  color: var(--red);
  margin-bottom: 1.1rem;
  box-shadow: inset 0 0 0 3px rgba(227, 188, 106, .25);
}
.step-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.14rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: .5rem;
}
.step-card p { color: var(--ink-soft); font-size: .98em; }

.steps-closing {
  margin-top: clamp(2rem, 5vw, 3rem);
  text-align: center;
  font-style: italic;
  font-size: 1.12em;
  color: var(--ink-soft);
}

/* ============================================================
   9. "KIG INDENFOR" — SPREAD VIEWER & EXTRAS
   ============================================================ */
.story-tabs-wrap { margin-bottom: 2rem; }
.story-tabs {
  display: flex; gap: .55rem;
  overflow-x: auto;
  padding: .25rem .25rem .6rem;
  scrollbar-width: thin;
  justify-content: safe center;
}
.story-tab {
  flex: none;
  display: inline-flex; align-items: center; gap: .55rem;
  border-radius: 999px;
  border: 1px solid var(--paper-3);
  background: var(--paper);
  padding: .5rem 1.1rem .5rem .55rem;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.story-tab .tab-no {
  display: inline-grid; place-items: center;
  width: 1.7rem; height: 1.7rem;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  background: var(--paper-2);
  border: 1px solid var(--paper-3);
  color: var(--red);
}
.story-tab:hover { border-color: var(--gold-deep); color: var(--ink); }
.story-tab[aria-selected="true"] {
  background: var(--red);
  border-color: var(--red);
  color: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(227, 188, 106, .5), 0 10px 22px -10px rgba(102, 17, 12, .5);
}
.story-tab[aria-selected="true"] .tab-no {
  background: rgba(247, 240, 225, .16);
  border-color: rgba(227, 188, 106, .5);
  color: var(--cream);
}

/* The stage: pages mounted on deeper paper */
.spread-stage {
  background:
    var(--grain),
    linear-gradient(180deg, var(--paper-3), color-mix(in srgb, var(--paper-3) 82%, #c9b48c) 100%);
  border-radius: 1.1rem;
  border: 1px solid color-mix(in srgb, var(--paper-3) 60%, #b39a6d);
  box-shadow:
    inset 0 2px 14px rgba(64, 42, 16, .18),
    var(--shadow-card);
  padding: clamp(1.1rem, 3vw, 2.2rem);
}
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .spread-stage { background: var(--paper-3); border-color: #c9b48c; }
}

.spread-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(72%, 17rem);
  gap: clamp(1rem, 2.4vw, 1.8rem);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: .8rem;
  scrollbar-width: thin;
}
@media (min-width: 64em) {
  .spread-track {
    grid-auto-columns: unset;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-flow: row;
    overflow-x: visible;
    padding-bottom: 0;
  }
}
.spread-page { scroll-snap-align: center; min-width: 0; }

/* each page: stacked page-edges + spine shadow, sitting on the mount */
.spread-page .page-btn {
  position: relative;
  display: block;
  width: 100%;
  border-radius: .3rem;
  background: #fdfaf2;
  box-shadow:
    0 1px 0 1px #e7ddc6,
    2px 3px 0 0 #efe8d6,
    4px 6px 0 0 #e4dbc2,
    var(--shadow-card);
  transition: transform .22s ease, box-shadow .22s ease;
}
.spread-page .page-btn::after {
  /* spine shadow on the binding side */
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(64, 42, 16, .16), transparent 12%);
  pointer-events: none;
}
.spread-page:nth-child(even) .page-btn::after {
  background: linear-gradient(270deg, rgba(64, 42, 16, .16), transparent 12%);
}
.spread-page .page-btn:hover {
  transform: translateY(-5px);
  box-shadow:
    0 1px 0 1px #e7ddc6,
    2px 3px 0 0 #efe8d6,
    4px 6px 0 0 #e4dbc2,
    0 24px 44px -16px rgba(64, 42, 16, .45);
}
/* Bogens sider har en anelse forskellige billedformater i kilden.
   Vi låser dem til bogens rigtige trimformat (8,5 × 11"), så de fire sider
   altid står i nøjagtig samme højde — og teksterne under dem flugter. */
.spread-page img {
  border-radius: .3rem;
  display: block;
  width: 100%;
  aspect-ratio: 17 / 22;
  object-fit: contain;
  background: #fdfaf2;
}

.spread-page figcaption { margin-top: .95rem; text-align: center; }
.page-role {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.page-step {
  display: inline-grid; place-items: center;
  width: 1.45rem; height: 1.45rem;
  border-radius: 50%;
  background: var(--red);
  color: var(--cream);
  font-size: .78rem;
  font-family: var(--font-display);
  font-weight: 800;
}
.page-sub {
  display: block;
  margin-top: .25rem;
  font-size: .88rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* dots for the mobile carousel */
.spread-dots {
  display: flex; justify-content: center; gap: .5rem;
  margin-top: 1rem;
}
.spread-dots .dot {
  width: .5rem; height: .5rem; border-radius: 50%;
  background: rgba(64, 42, 16, .25);
  transition: background-color .2s ease, transform .2s ease;
}
.spread-dots .dot.is-on { background: var(--red); transform: scale(1.25); }
@media (min-width: 64em) { .spread-dots { display: none; } }

/* switch animation: pages fade & rise with a stagger */
@media (prefers-reduced-motion: no-preference) {
  .spread-panel.is-entering .spread-page {
    animation: pageIn .45s ease backwards;
  }
  .spread-panel.is-entering .spread-page:nth-child(2) { animation-delay: 60ms; }
  .spread-panel.is-entering .spread-page:nth-child(3) { animation-delay: 120ms; }
  .spread-panel.is-entering .spread-page:nth-child(4) { animation-delay: 180ms; }
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* extras strip */
.extras { margin-top: clamp(2.6rem, 6vw, 4rem); }
.extras-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: 1.5rem;
}
.extras-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(46%, 10.5rem);
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: .25rem .25rem 1rem;
  scrollbar-width: thin;
  justify-content: safe center;
}
.extra-card { scroll-snap-align: center; text-align: center; }
.extra-card .page-btn {
  display: block; width: 100%;
  border-radius: .3rem;
  background: #fdfaf2;
  box-shadow: 0 1px 0 1px #e7ddc6, var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
}
.extra-card .page-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 1px 0 1px #e7ddc6, 0 20px 36px -14px rgba(64, 42, 16, .4);
}
.extra-card img {
  border-radius: .3rem;
  display: block;
  width: 100%;
  aspect-ratio: 17 / 22;
  object-fit: contain;
  background: #fdfaf2;
}
.extra-card figcaption {
  margin-top: .6rem;
  font-size: .85rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* ============================================================
   10. LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(7, 12, 26, .88);
  padding: 1rem;
}
@supports (backdrop-filter: blur(8px)) {
  .lightbox { background: rgba(7, 12, 26, .74); backdrop-filter: blur(9px); }
}
.lb-figure {
  max-width: min(92vw, 46rem);
  max-height: 100%;
  display: flex; flex-direction: column; align-items: center;
  gap: .8rem;
  pointer-events: none;
}
.lb-figure img {
  pointer-events: auto;
  width: auto; height: auto;
  max-width: 100%;
  max-height: min(82vh, 82svh);
  border-radius: .35rem;
  background: #fdfaf2;
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .8);
}
.lb-caption {
  color: var(--cream);
  font-size: .95rem;
  font-style: italic;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,.7);
}
.lb-btn {
  position: absolute;
  display: grid; place-items: center;
  width: 2.9rem; height: 2.9rem;
  border-radius: 50%;
  color: var(--cream);
  background: rgba(247, 240, 225, .1);
  box-shadow: inset 0 0 0 1px rgba(247, 240, 225, .35);
  transition: background-color .18s ease;
  z-index: 2;
}
.lb-btn:hover { background: rgba(247, 240, 225, .22); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: .8rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .8rem; top: 50%; transform: translateY(-50%); }
@media (min-width: 64em) {
  .lb-prev { left: 2.2rem; }
  .lb-next { right: 2.2rem; }
  .lb-close { top: 2rem; right: 2.2rem; }
}
body.lightbox-open { overflow: hidden; }

/* ============================================================
   11. "HISTORIERNE" — STORY CARDS & THE FULL TALE
   ============================================================ */
.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.4rem, 3vw, 2.2rem);
}
@media (min-width: 44em) { .story-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68em) { .story-grid { grid-template-columns: repeat(3, 1fr); } }

.story-card {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--paper-3);
  border-radius: .9rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
  display: flex; flex-direction: column;
}
.story-card:hover {
  transform: translateY(-6px);
  background: #f3e9d3;
  box-shadow: 0 26px 50px -18px rgba(64, 42, 16, .42);
}
/* corner ornament that fades in on hover */
.story-card::after {
  content: "";
  position: absolute; top: .6rem; right: .6rem;
  width: 3.4rem; height: 3.4rem;
  background: url("img/ornament-corner.webp") center / contain no-repeat;
  transform: scaleX(-1);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.story-card:hover::after { opacity: .55; }

.story-card-img {
  background: #fdfaf2;
  border-bottom: 1px solid var(--paper-3);
  padding: 1rem 1rem .4rem;
}
.story-card-img img {
  display: block;
  width: 100%;
  aspect-ratio: 17 / 22;
  object-fit: contain;
  background: #fdfaf2;
  border: 1px solid var(--paper-3);
  border-radius: .25rem;
}
.story-card-body {
  padding: 1.4rem 1.5rem 1.7rem;
  display: flex; flex-direction: column; flex: 1;
}
.story-card-body .eyebrow { margin-bottom: .35rem; }
.story-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.42rem;
  letter-spacing: -0.015em;
  line-height: 1.18;
  margin-bottom: .7rem;
}
.story-hook { color: var(--ink-soft); font-size: .99em; }
.story-card .trefoil-rule { margin-block: 1.1rem .9rem; }
.story-moral {
  text-align: center;
  font-style: italic;
  color: var(--ink);
  font-size: .99em;
  margin-top: auto;
}

/* "…and 19 more" */
.more-card {
  margin-top: clamp(2.2rem, 5vw, 3.4rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  background:
    radial-gradient(46rem 20rem at 110% -30%, rgba(227,188,106,.18), transparent 65%),
    linear-gradient(140deg, var(--night-800), var(--night-900) 70%);
  color: var(--cream);
  border-radius: 1rem;
  padding: clamp(1.8rem, 4.5vw, 3rem);
  box-shadow: var(--shadow-night);
}
@media (min-width: 52em) { .more-card { grid-template-columns: 1.4fr .6fr; } }
.more-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.2rem);
  letter-spacing: -0.015em;
  margin-bottom: .7rem;
}
.more-card-text p { color: var(--cream-dim); max-width: 34em; }
.more-card .cta-cluster { margin-top: 1.5rem; }
.more-card-page { justify-self: center; width: min(65%, 11.5rem); text-align: center; }
@media (min-width: 52em) { .more-card-page { width: min(100%, 12.5rem); } }
.more-card-page .page-btn {
  display: block;
  border-radius: .3rem;
  transform: rotate(3.5deg);
  box-shadow: 0 26px 44px -16px rgba(0, 0, 0, .6);
  transition: transform .25s ease;
  background: #fdfaf2;
}
.more-card-page .page-btn:hover { transform: rotate(1deg) translateY(-4px); }
.more-card-page img { border-radius: .3rem; }
.more-card-page figcaption {
  margin-top: 1rem;
  font-size: .85rem; font-style: italic;
  color: var(--cream-dim);
}

/* "Læs en hel historie" — the tale set as a book page */
.story-full {
  margin-top: clamp(2.2rem, 5vw, 3.4rem);
}
.story-full > summary {
  list-style: none;
  display: flex; align-items: center; justify-content: center; gap: .8rem;
  margin-inline: auto;
  width: fit-content;
  max-width: 100%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--red);
  padding: .85rem 1.7rem;
  border: 1px solid rgba(142, 27, 22, .4);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow-card);
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
  text-align: center;
}
.story-full > summary::-webkit-details-marker { display: none; }
.story-full > summary:hover { background: #fdf8ec; transform: translateY(-2px); }
.summary-chevron { flex: none; transition: transform .25s ease; }
.story-full[open] .summary-chevron { transform: rotate(180deg); }

.book-page {
  position: relative;
  margin: 2rem auto 0;
  max-width: 44rem;
  background:
    var(--grain),
    linear-gradient(180deg, #fdfaf2, #faf4e4);
  border: 1px solid var(--paper-3);
  border-radius: .4rem;
  box-shadow:
    0 2px 0 #efe8d6, 0 5px 0 -1px #e4dbc2,
    var(--shadow-warm);
  padding: clamp(2.6rem, 7vw, 4.5rem) clamp(1.6rem, 6vw, 4.5rem);
  text-align: center;
}
.book-page-eyebrow {
  font-size: .72rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .6rem;
}
.book-page-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 1.3rem + 2.4vw, 2.6rem);
  letter-spacing: -0.015em;
  margin-bottom: .9rem;
}
.book-page .trefoil-rule { margin-bottom: 1.6rem; }
.book-page-text {
  text-align: left;
  max-width: 33em;
  margin-inline: auto;
  font-size: 1.03em;
  line-height: 1.72;
}
.book-page-text p + p { margin-top: 1em; }
.book-page-text .opening::first-letter {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.1em;
  line-height: .82;
  float: left;
  padding: .07em .12em 0 0;
  color: var(--red);
}
.book-page-moral {
  margin-top: 1.4rem;
  font-size: 1.02em;
  font-style: italic;
  color: var(--ink);
  max-width: 30em;
  margin-inline: auto;
}
.book-page > .trefoil-rule:nth-last-of-type(1) { margin-top: 1.8rem; margin-bottom: 0; }

/* ============================================================
   12. FEATURES — asymmetric editorial grid
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
@media (min-width: 44em) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) {
  .feature-grid { grid-template-columns: repeat(6, 1fr); }
  .feature-card { grid-column: span 2; }
  .feature-card.f-wide { grid-column: span 3; }
}
.feature-card {
  background: var(--paper);
  border: 1px solid var(--paper-3);
  border-left: 3px solid rgba(142, 27, 22, .5);
  border-radius: .7rem;
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-card);
  transition: transform .22s ease, box-shadow .22s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -16px rgba(64, 42, 16, .38); }
.feature-icon { display: inline-block; color: var(--leaf); margin-bottom: .9rem; }
.feature-card:nth-child(2n) .feature-icon { color: var(--red); }
.feature-card:nth-child(3n) .feature-icon { color: var(--gold-deep); }
.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: .5rem;
}
.feature-card p { color: var(--ink-soft); font-size: .97em; }

/* ============================================================
   13. "OM MOLBOHISTORIERNE"
   ============================================================ */
.about-molbo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 58em) { .about-molbo-grid { grid-template-columns: 1.15fr .85fr; } }
.about-molbo-text { max-width: 36em; }
.about-molbo-text p + p { margin-top: 1.1em; }
.about-molbo-text p:first-child {
  font-size: 1.12em;
}

.source-card {
  position: relative;
  background:
    var(--grain),
    linear-gradient(180deg, #fdfaf2, #f8f1df);
  border: 1px solid var(--paper-3);
  border-radius: .5rem;
  box-shadow: var(--shadow-warm);
  padding: clamp(3.2rem, 6vw, 4.2rem) clamp(2rem, 5vw, 3.2rem);
  text-align: center;
}
.source-card .eyebrow { color: var(--gold-deep); }
.source-text {
  font-size: .98em;
  color: var(--ink-soft);
  max-width: 24em;
  margin-inline: auto;
  margin-bottom: 1.6rem;
}
.source-page {
  display: block;
  width: min(62%, 13rem);
  margin-inline: auto;
  border-radius: .3rem;
  background: #fdfaf2;
  box-shadow: 0 1px 0 1px #e7ddc6, var(--shadow-card);
  transition: transform .22s ease, box-shadow .22s ease;
}
.source-page:hover { transform: translateY(-4px); box-shadow: 0 1px 0 1px #e7ddc6, 0 22px 40px -14px rgba(64, 42, 16, .42); }
.source-page img { border-radius: .3rem; }

.pull-quote {
  margin-top: clamp(3rem, 7vw, 5rem);
  text-align: center;
}
.pull-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.5rem, 1rem + 2.6vw, 2.6rem);
  letter-spacing: -0.01em;
  color: var(--red);
  max-width: 22em;
  margin-inline: auto;
  text-wrap: balance;
}

/* ============================================================
   14. "KOMMENDE UDGIVELSER" & NOTIFY FORM
   ============================================================ */
.teaser-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
}
@media (min-width: 40em) { .teaser-grid { grid-template-columns: repeat(3, 1fr); } }

.teaser-card {
  position: relative;
  text-align: center;
  background: rgba(247, 240, 225, .05);
  border: 1px solid rgba(247, 240, 225, .16);
  border-radius: 1rem;
  padding: 2.4rem 1.6rem 2.1rem;
  transition: transform .25s ease, border-color .25s ease, background-color .25s ease;
}
.teaser-card:hover {
  transform: translateY(-6px);
  border-color: rgba(227, 188, 106, .5);
  background: rgba(247, 240, 225, .08);
}
.teaser-icon {
  position: relative;
  width: 7.5rem; height: 7.5rem;
  margin: 0 auto 1.4rem;
  display: grid; place-items: center;
}
.teaser-icon::before {
  content: "";
  position: absolute; inset: -22%;
  background: radial-gradient(closest-side, rgba(227, 188, 106, .3), transparent 70%);
  pointer-events: none;
}
.teaser-icon img {
  position: relative;
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  filter: invert(1) sepia(.25) saturate(1.4) brightness(1.04);
  opacity: .95;
}
.teaser-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  line-height: 1.22;
  color: var(--cream);
  margin-bottom: .6rem;
  text-wrap: balance;
}
.teaser-card p { color: var(--cream-dim); font-size: .96em; margin-bottom: 1.2rem; }
.soon-chip {
  display: inline-flex;
  font-size: .7rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(227, 188, 106, .45);
  border-radius: 999px;
  padding: .3rem .85rem;
}

.upcoming-more {
  text-align: center;
  font-style: italic;
  color: var(--cream-dim);
  margin-top: 2.2rem;
}

/* Notify */
.notify {
  margin: clamp(2.6rem, 6vw, 4rem) auto 0;
  max-width: 36rem;
  text-align: center;
  background: rgba(247, 240, 225, .06);
  border: 1px solid rgba(227, 188, 106, .35);
  border-radius: 1rem;
  padding: clamp(1.8rem, 4.5vw, 2.8rem);
  box-shadow: 0 26px 54px -22px rgba(4, 8, 18, .8);
  scroll-margin-top: calc(var(--header-h) + 2rem);
}
.notify-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.8rem);
  letter-spacing: -0.015em;
  color: var(--cream);
  margin-bottom: .7rem;
  text-wrap: balance;
}
.notify-copy { color: var(--cream-dim); font-size: .98em; max-width: 30em; margin-inline: auto; }
.notify-form {
  margin-top: 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .8rem;
}
.notify-form input[type="email"] {
  flex: 1 1 14rem;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--paper-3);
  border-radius: .45rem;
  padding: .82rem 1.1rem;
  box-shadow: inset 0 2px 6px rgba(64, 42, 16, .12);
}
.notify-form input[type="email"]::placeholder { color: #90866f; font-style: italic; }
.notify-form input[type="email"]:focus-visible { outline-offset: 1px; }
.notify.has-error input[type="email"] {
  border-color: var(--red-bright);
  box-shadow: inset 0 2px 6px rgba(64,42,16,.12), 0 0 0 3px rgba(168, 42, 34, .35);
}
.notify-msg {
  min-height: 1.5em;
  margin-top: .9rem;
  font-size: .95rem;
}
.notify.has-error .notify-msg { color: #f0b9ae; }
.notify.has-success .notify-msg { color: var(--gold); font-style: italic; }
.notify-fineprint {
  margin-top: .4rem;
  font-size: .82rem;
  color: rgba(247, 240, 225, .55);
  font-style: italic;
}

/* ============================================================
   15. IMPRINT — "Om Folly & Lore Press"
   ============================================================ */
.imprint-inner {
  max-width: 46rem;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.imprint-mark {
  width: clamp(11rem, 26vw, 15rem);
  margin-bottom: 1.8rem;
  opacity: .9;
}
.imprint .section-head { margin-bottom: 1.8rem; }
.imprint-text { max-width: 36em; }
.imprint-text p + p { margin-top: 1.1em; }
.imprint-brandline {
  margin-top: 2.2rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.25rem, 1rem + 1.4vw, 1.7rem);
  color: var(--red);
}
.imprint-parent {
  margin-top: .9rem;
  font-size: .92rem;
  color: var(--ink-soft);
}

/* ============================================================
   16. FOOTER
   ============================================================ */
.site-footer { padding: clamp(3.5rem, 8vw, 5.5rem) 0 2.2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.6rem;
  margin-bottom: 3rem;
}
@media (min-width: 44em) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; } }

.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.015em;
  margin-bottom: .5rem;
}
.footer-brandline {
  font-style: italic;
  color: var(--cream-dim);
  margin-bottom: 1.2rem;
}
.footer-brand .trefoil-rule { margin-inline: 0; opacity: .55; }

.footer-h {
  font-size: .72rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-col ul { display: grid; gap: .5rem; }
.footer-col a {
  text-decoration: none;
  color: var(--cream-dim);
  transition: color .18s ease;
}
.footer-col a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.footer-markets { grid-template-columns: repeat(2, 1fr); font-size: .95rem; }
.footer-markets span { color: rgba(247, 240, 225, .5); }
.footer-markets .mp-note { display: none; }
.footer-mail { color: var(--cream-dim); }
.footer-company {
  margin-top: 1rem;
  font-size: .92rem;
  color: rgba(247, 240, 225, .55);
  white-space: pre-line;
}

.footer-bottom {
  border-top: 1px solid rgba(247, 240, 225, .16);
  padding-top: 1.6rem;
  display: grid;
  gap: .5rem;
  font-size: .88rem;
  color: rgba(247, 240, 225, .55);
}
.footer-source em { font-style: italic; }
.footer-affiliate { color: rgba(247, 240, 225, .45); }

/* ============================================================
   17. MOTION, REVEALS & REDUCED MOTION
   ============================================================ */
/* Reveal-on-scroll: only when JS is present (html.js) */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .hero-cover { animation: none; }
  .hero-book, .hero-stars { transform: none !important; }
}

/* ============================================================
   18. SMALL-SCREEN REFINEMENTS
   ============================================================ */
@media (max-width: 26em) {
  .header-inner { gap: .8rem; }
  .wordmark-text { font-size: .95rem; }
  .cta-cluster .btn-lg { width: 100%; justify-content: center; }
  .spec-pills li { font-size: .76rem; padding: .3rem .75rem; }
  .story-tabs { justify-content: flex-start; }
  .extras-strip { justify-content: flex-start; }
  .lb-prev { left: .35rem; }
  .lb-next { right: .35rem; }
}
