/* ============================================================================
   SEPP SAGT — "Alpines Old Money" design system
   FRONTEND-SPEC.md §1. Shared by every page in this site. Keep it DRY:
   page-specific CSS should be a handful of overrides at most, not new tokens.
   ============================================================================ */

:root {
  --loden: #24382C;
  --loden-deep: #152219;
  --brass: #A8894F;
  --brass-soft: #C6B084;
  --bone: #F5F1E6;
  --bone-dark: #EBE4D2;
  --ink: #211E19;
  --ink-soft: #5A554B;

  --font-display: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* paper grain — motif 5, barely-there, haptic not decorative */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: 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.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

a { color: inherit; }
img, svg { max-width: 100%; display: block; }
main, footer, header { position: relative; z-index: 1; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0; color: var(--ink); }
h1 { font-size: clamp(40px, 10vw, 64px); line-height: 1.05; }
h2 { font-size: clamp(28px, 6vw, 40px); line-height: 1.18; }
h3 { font-size: clamp(21px, 4vw, 26px); line-height: 1.25; }

p { margin: 0 0 16px; }

.eyebrow, .small-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 13.5px;
  color: var(--brass);
}

.italic-quote {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
}

.center { text-align: center; }

.brand {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--brass);
  margin: 26px 0 34px;
}

.sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 3.5vw, 22px);
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 460px;
  margin: 0 auto 22px;
  text-align: center;
}

.lead-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  color: var(--ink);
  text-align: center;
  max-width: 480px;
  margin: 0 auto 36px;
}

.prose {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}
.prose p:last-child { margin-bottom: 0; }

.teaser-list { list-style: none; margin: 0 auto; padding: 0; max-width: 560px; }
.teaser-list li {
  padding: 16px 4px;
  border-bottom: 1px solid rgba(168, 137, 79, 0.25);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
  text-align: center;
}
.teaser-list li:last-child { border-bottom: none; }

/* ---------------------------------------------------------------------------
   Layout columns — §1.4 readability numbers
   --------------------------------------------------------------------------- */
.wrap-sales   { max-width: 600px; margin: 0 auto; padding: 0 22px; }
.wrap-article { max-width: 620px; margin: 0 auto; padding: 0 22px; }
.wrap-wide    { max-width: 900px; margin: 0 auto; padding: 0 22px; }

/* ---------------------------------------------------------------------------
   Buttons — EB Garamond 600 uppercase, min-height 64px, no glow/sweep/breathe
   --------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 64px;
  padding: 0 28px;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 18px;
  text-decoration: none;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}
.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--loden);
  color: var(--bone);
  box-shadow: inset 0 0 0 3px var(--loden), inset 0 0 0 4px var(--brass);
}
.btn-primary:hover {
  background: var(--loden-deep);
  box-shadow: inset 0 0 0 3px var(--loden-deep), inset 0 0 0 4px var(--brass-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--loden);
  box-shadow: inset 0 0 0 1.5px var(--brass);
}
.btn-ghost:hover { background: rgba(168, 137, 79, 0.1); }

@media (max-width: 520px) {
  .btn { font-size: 16px; padding: 0 18px; }
}

/* ---------------------------------------------------------------------------
   Motif 2 — hairline divider, brass, center diamond (replaces ❦ ❦ ❦)
   --------------------------------------------------------------------------- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 48px auto;
  max-width: 620px;
  padding: 0 22px;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--brass);
  opacity: 0.55;
}
.divider .diamond {
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--brass);
  transform: rotate(45deg);
}

/* ---------------------------------------------------------------------------
   Motif 1 — monogram-S signet (ex-libris stamp)
   --------------------------------------------------------------------------- */
.monogram { display: block; margin: 0 auto; }
.monogram circle { fill: none; stroke: var(--brass); }
.monogram .ring-outer { stroke-width: 1; }
.monogram .ring-inner { stroke-width: 0.5; }
.monogram text {
  fill: var(--brass);
  font-family: var(--font-display);
  text-anchor: middle;
  dominant-baseline: middle;
}

/* ---------------------------------------------------------------------------
   Motif 3 — bookplate frame + cover placeholder plate
   (No real cover photograph exists yet — this CSS/SVG plate is an intentional
   stand-in per the design system, not a broken image. Swap for a real cover
   scan by replacing .cover-plate with an <img class="cover-frame__img">.)
   --------------------------------------------------------------------------- */
.cover-frame {
  display: inline-block;
  position: relative;
  padding: 12px;
}
.cover-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--brass);
  pointer-events: none;
}
.cover-frame::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 0.5px solid var(--brass);
  pointer-events: none;
}

.cover-plate {
  width: min(70vw, 260px);
  aspect-ratio: 5 / 7;
  margin: 0 auto;
  background: linear-gradient(160deg, var(--loden) 0%, var(--loden-deep) 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 26px;
  text-align: center;
}
.cover-plate::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(198, 176, 132, 0.5);
  pointer-events: none;
}
.cover-plate .cp-eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--brass-soft);
}
.cover-plate .cp-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.18;
  color: var(--bone);
}
.cover-plate .cp-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(245, 241, 230, 0.72);
}
.cover-plate .cp-mono circle { stroke: var(--brass-soft); }
.cover-plate .cp-mono text { fill: var(--brass-soft); }

.cover-plate--mini {
  width: 56px;
  padding: 8px;
  gap: 4px;
}
.cover-plate--mini::before { inset: 5px; }
.cover-plate--mini .cp-eyebrow { font-size: 6px; letter-spacing: 0.14em; }
.cover-plate--mini .cp-title { font-size: 9.5px; line-height: 1.1; }
.cover-plate--mini .cp-sub { display: none; }
.cover-plate--mini .cp-mono { width: 14px; height: 14px; }

/* ---------------------------------------------------------------------------
   Motif 4 — mountain-ridge engraving (used exactly twice per spec)
   --------------------------------------------------------------------------- */
.ridge { display: block; width: 100%; height: auto; }
.ridge polyline { fill: none; stroke: var(--brass); stroke-width: 1; }

/* ---------------------------------------------------------------------------
   Price block + honesty on/off switch for the 39€ anchor — §1.5
   The "39 €" struck-through anchor is only honest if 22,50 € is a genuine
   introductory price that will later rise (per spec §1.5). TO DISABLE: add
   class="no-anchor" to <body> on this page. That hides every .anchor-phrase
   and reveals the .anchor-fallback line instead. One class, everywhere.
   --------------------------------------------------------------------------- */
.price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 16px;
  margin-bottom: 6px;
}
.price-now {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 52px;
  color: var(--ink);
  line-height: 1;
}
.anchor-phrase { display: inline-flex; align-items: baseline; gap: 8px; }
.price-was {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink-soft);
  text-decoration: line-through;
  text-decoration-color: var(--brass);
  text-decoration-thickness: 1.5px;
}
.price-was-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.anchor-fallback {
  display: none;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 16px;
}
body.no-anchor .anchor-phrase { display: none; }
body.no-anchor .anchor-fallback { display: block; }

.price-note {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

/* ---------------------------------------------------------------------------
   Buy-card / free-card / how-buy — the funnel's real work-horses
   --------------------------------------------------------------------------- */
.buy-card {
  width: min(100%, 520px);
  margin: 0 auto 20px;
  padding: 28px 24px 26px;
  background: var(--bone-dark);
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px var(--brass);
  text-align: center;
}
.buy-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(168, 137, 79, 0.35);
}
.buy-card-title {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.2;
  color: var(--ink);
}
.buy-card-title small {
  display: block;
  margin-top: 5px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--ink-soft);
}
.buy-card-saved {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 16px;
  background: rgba(168, 137, 79, 0.16);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 12.5px;
  border-radius: 999px;
}
.buy-card-trust {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(168, 137, 79, 0.3);
  text-align: left;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  list-style: none;
}
.buy-card-trust li { position: relative; padding-left: 30px; margin-bottom: 6px; }
.buy-card-trust .ck {
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brass);
  color: var(--bone);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.free-card {
  width: min(100%, 520px);
  margin: 0 auto 24px;
  padding: 22px;
  border: 1px dashed var(--brass);
  border-radius: 3px;
  text-align: center;
}
.free-card-title {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--ink);
  margin-bottom: 8px;
}
.free-card-sub { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 18px; }

.how-buy {
  width: min(100%, 520px);
  margin: 30px auto;
  padding: 24px;
  background: var(--bone-dark);
  border-radius: 3px;
}
.how-buy h3 { text-align: center; margin-bottom: 16px; }
.how-buy ol { list-style: none; margin: 0; padding: 0; counter-reset: step; text-align: left; }
.how-buy li {
  counter-increment: step;
  position: relative;
  padding: 10px 0 10px 46px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
}
.how-buy li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--loden);
  color: var(--bone);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
}

/* ---------------------------------------------------------------------------
   Guarantee block (monogram instead of wax seal)
   --------------------------------------------------------------------------- */
.guarantee {
  width: min(100%, 560px);
  margin: 32px auto;
  padding: 28px 24px;
  text-align: center;
}
.guarantee .monogram { margin-bottom: 14px; }
.guarantee h3 { margin-bottom: 14px; }
.guarantee p { font-size: 16.5px; line-height: 1.7; color: var(--ink-soft); max-width: 480px; margin: 0 auto 12px; }
.guarantee .sign {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--brass);
  margin-top: 10px;
}

/* ---------------------------------------------------------------------------
   Pull-quote / "Aus dem Buch" cards — S8
   --------------------------------------------------------------------------- */
.quote-grid {
  display: grid;
  gap: 14px;
  width: min(100%, 620px);
  margin: 0 auto;
}
.quote-card {
  background: var(--bone-dark);
  border-radius: 3px;
  padding: 24px 26px;
  box-shadow: inset 0 0 0 1px rgba(168, 137, 79, 0.4);
}
.quote-card p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 21px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
}
.fomo-line {
  text-align: center;
  font-size: 15.5px;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 22px auto 0;
  line-height: 1.7;
}

/* ---------------------------------------------------------------------------
   Trust list (checkmarks in brass circle) — S9
   --------------------------------------------------------------------------- */
.trust-list { list-style: none; margin: 0 auto; padding: 0; max-width: 480px; text-align: left; }
.trust-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 17px;
  color: var(--ink);
  padding: 12px 0;
  border-bottom: 1px solid rgba(168, 137, 79, 0.25);
}
.trust-list li:last-child { border-bottom: none; }
.trust-list .ck {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(168, 137, 79, 0.16);
  color: var(--brass);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
}

/* ---------------------------------------------------------------------------
   Article / Leseprobe — §1.4 (21px / 1.85)
   --------------------------------------------------------------------------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(168, 137, 79, 0.35);
}
.article { padding: clamp(48px, 8vw, 88px) 0; }
.article h2 { margin-bottom: 22px; }
.article p {
  font-size: 21px;
  line-height: 1.85;
  color: var(--ink);
  max-width: 620px;
}
.article p:last-child { margin-bottom: 0; }

.exercise {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--brass);
  border-left-width: 4px;
  border-radius: 2px;
  background: var(--bone-dark);
}
.exercise b {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--ink-soft);
}
.exercise p {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 21px;
  line-height: 1.45;
  color: var(--ink);
}

/* Inline e-mail pitch inside articles (B5 / B9) */
.email-pitch {
  margin: 30px 0;
  padding: 24px 24px 26px;
  background: var(--bone-dark);
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(168, 137, 79, 0.4);
  text-align: center;
}
.email-pitch strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 10px;
}
.email-pitch p { font-size: 15.5px; color: var(--ink-soft); margin-bottom: 18px; }
.email-pitch .btn { max-width: 380px; margin: 0 auto; }

/* ---------------------------------------------------------------------------
   Announce bar + topbar + progress bar (buch)
   --------------------------------------------------------------------------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 0%;
  height: 2px;
  background: var(--brass);
}
.announce {
  background: var(--loden);
  color: var(--bone);
  text-align: center;
  padding: 11px 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.01em;
}
.announce a { color: var(--brass-soft); text-decoration: underline; margin-left: 12px; white-space: nowrap; }
.announce strong { color: var(--brass-soft); }
.announce .price-was { font-size: inherit; font-family: inherit; color: inherit; opacity: 0.75; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 12px clamp(16px, 5vw, 48px);
  background: rgba(245, 241, 230, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(168, 137, 79, 0.3);
}
.topbar .brand { font-size: 14px; letter-spacing: 0.18em; }
.topbar nav { display: flex; gap: 26px; }
.topbar nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.topbar .buy-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--loden);
  white-space: nowrap;
}
@media (max-width: 780px) { .topbar nav { display: none; } }

/* ---------------------------------------------------------------------------
   Hero band (buch) — dark loden anchor, mountain-ridge behind it
   --------------------------------------------------------------------------- */
.hero-band {
  position: relative;
  background: var(--loden);
  color: var(--bone);
  overflow: hidden;
  padding: clamp(40px, 7vw, 72px) 0 clamp(48px, 8vw, 84px);
  text-align: center;
}
.hero-band .ridge { position: absolute; left: 0; right: 0; bottom: 0; opacity: 1; }
.hero-band .ridge polyline { stroke: var(--brass-soft); opacity: 0.15; }
.hero-band .inner { position: relative; z-index: 1; }
.hero-band h1 { color: var(--bone); }
.hero-band .sub { font-size: clamp(17px, 3vw, 20px); color: var(--brass-soft); margin-bottom: 30px; }
.hero-band .eyebrow { color: var(--brass-soft); }

/* mood panel placeholder — replace with real Alpine estate / window-light photo */
.mood-panel {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 3px;
  margin-bottom: 8px;
  background:
    radial-gradient(circle at 25% 20%, rgba(198, 176, 132, 0.25), transparent 55%),
    linear-gradient(160deg, #2c4433 0%, #182a20 70%);
  position: relative;
  overflow: hidden;
}
.mood-panel .ridge { position: absolute; left: 0; right: 0; bottom: 0; }
.mood-panel .ridge polyline { stroke: var(--brass-soft); opacity: 0.22; }

/* ---------------------------------------------------------------------------
   Proof strip (B3)
   --------------------------------------------------------------------------- */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 32px 0;
}
.proof-card {
  text-align: center;
  padding: 20px 12px;
  background: var(--bone-dark);
  border-radius: 3px;
}
.proof-card strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 40px;
  color: var(--loden);
  line-height: 1;
  margin-bottom: 8px;
}
.proof-card span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
@media (max-width: 620px) { .proof-grid { grid-template-columns: 1fr; } }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--brass);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

/* Theme pills (B11) */
.theme-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px 0; }
.theme-pills span {
  border: 1px solid var(--brass);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------------------------
   Footer — persona colophon lives here on every page
   --------------------------------------------------------------------------- */
footer.site-footer {
  background: var(--loden);
  color: var(--brass-soft);
  padding: clamp(44px, 7vw, 70px) 22px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
footer.site-footer .ridge { position: absolute; top: 0; left: 0; right: 0; opacity: 1; }
footer.site-footer .ridge polyline { stroke: var(--brass-soft); opacity: 0.12; }
footer.site-footer .inner { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }
footer.site-footer p { color: rgba(198, 176, 132, 0.85); font-size: 13.5px; line-height: 1.7; }
footer.site-footer .colophon { max-width: 520px; margin: 0 auto 22px; }
footer.site-footer a { color: var(--brass-soft); text-decoration: underline; }
footer.site-footer .footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 18px;
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  letter-spacing: 0.06em; text-transform: uppercase; margin: 18px 0;
}
footer.site-footer .footer-meta { font-size: 12px; opacity: 0.85; margin-top: 18px; }

/* ---------------------------------------------------------------------------
   Sticky buy bar — fixed bottom, loden-deep + blur
   --------------------------------------------------------------------------- */
.sticky-buy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 65;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 5vw, 32px);
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
  background: rgba(21, 34, 25, 0.92);
  backdrop-filter: blur(10px);
  color: var(--bone);
  transform: translateY(120%);
}
.sticky-buy.is-visible { transform: translateY(0); }
.sticky-buy .meta { text-align: left; line-height: 1.25; min-width: 0; }
.sticky-buy .meta .t {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--brass-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-buy .meta .p { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--bone); }
.sticky-buy .meta .p s { color: rgba(245, 241, 230, 0.45); font-size: 13px; margin-left: 6px; }
.sticky-buy .btn { width: auto; min-height: 52px; padding: 0 22px; font-size: 14px; flex: none; }

@media (prefers-reduced-motion: no-preference) {
  .sticky-buy { transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
}

/* ---------------------------------------------------------------------------
   E-mail popup — the single earned popup (§4.7)
   --------------------------------------------------------------------------- */
.email-popup {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
}
.email-popup.is-open { opacity: 1; pointer-events: auto; }
.email-popup-backdrop { position: absolute; inset: 0; background: rgba(21, 34, 25, 0.6); backdrop-filter: blur(4px); }
.email-popup-card {
  position: relative;
  max-width: 460px;
  width: 100%;
  padding: clamp(30px, 5vw, 40px) clamp(26px, 4vw, 34px) clamp(24px, 4vw, 30px);
  background: var(--bone);
  box-shadow: inset 0 0 0 1px var(--brass), 0 30px 70px rgba(0, 0, 0, 0.3);
  text-align: center;
}
.email-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
}
.email-popup-close:hover { background: rgba(168, 137, 79, 0.14); color: var(--ink); }
.email-popup-card .monogram { margin: 0 auto 14px; }
.email-popup-card .pop-label { display: block; margin-bottom: 10px; }
.email-popup-card h2 { font-size: clamp(24px, 4.5vw, 30px); margin-bottom: 12px; }
.email-popup-card > p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.email-form input[type="email"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0 18px;
  margin: 0 0 12px;
  min-height: 56px;
  font-size: 18px;
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--brass);
  border-radius: 2px;
}
.email-form input[type="email"]:focus {
  outline: none;
  border-color: var(--loden);
  box-shadow: 0 0 0 3px rgba(36, 56, 44, 0.14);
}
.email-form-error {
  display: none;
  color: #8a3b2c;
  font-size: 13px;
  margin: 8px 0 0;
}
.email-popup-card .btn:disabled { opacity: 0.7; cursor: wait; }
.email-popup-sub { margin-top: 14px !important; color: var(--ink-soft) !important; font-size: 12.5px !important; }
.email-popup-sub::before { content: "✓ "; color: var(--brass); }
.email-popup-skip {
  display: block;
  margin: 18px auto 0;
  padding: 6px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}
.email-popup-skip:hover { color: var(--ink); }

/* ---------------------------------------------------------------------------
   Motion — ONLY reveal-on-scroll + sticky-bar entrance. Nothing else moves.
   `html.js` gate means no-JS visitors always see full content, no FOUC.
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  html.js .reveal.in { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
  .wrap-sales, .wrap-article, .wrap-wide { padding: 0 18px; }
  .article p { font-size: 19px; }
}

/* ---------------------------------------------------------------------------
   Legal pages (Impressum / Datenschutz / Widerruf) — plain, readable, no drama
   --------------------------------------------------------------------------- */
.legal-header {
  padding: 30px 22px 0;
  max-width: 620px;
  margin: 0 auto;
}
.legal-header a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
}
.legal-header a:hover { color: var(--loden); }
.legal-wrap { padding: 24px 22px 70px; }
.legal-wrap h1 { font-size: clamp(30px, 5vw, 42px); margin-bottom: 8px; }
.legal-wrap .updated { color: var(--ink-soft); font-size: 14px; margin-bottom: 36px; }
.legal-wrap h2 { font-size: 22px; margin: 40px 0 12px; }
.legal-wrap h2:first-of-type { margin-top: 0; }
.legal-wrap h3 { font-size: 18px; margin: 24px 0 10px; }
.legal-wrap p { font-size: 16px; line-height: 1.75; color: var(--ink); margin: 0 0 14px; }
.legal-wrap ul, .legal-wrap ol { margin: 0 0 14px; padding-left: 22px; }
.legal-wrap li { font-size: 16px; line-height: 1.7; color: var(--ink); margin-bottom: 6px; }
.legal-wrap a { color: var(--loden); text-decoration: underline; }
.legal-wrap .todo {
  display: block;
  margin: 4px 0;
  padding: 10px 14px;
  background: rgba(168, 137, 79, 0.14);
  border-left: 3px solid var(--brass);
  color: var(--ink-soft);
  font-size: 14.5px;
  font-style: italic;
}
.legal-wrap .box {
  background: var(--bone-dark);
  padding: 18px 20px;
  border-radius: 3px;
  margin: 0 0 20px;
}

/* ============================================================================
   ===== NOCTURNE (index + danke) =====
   FRONTEND-REDESIGN-PLAN.md — "Alpine Nocturne" dark theme. Scoped entirely to
   `body.nocturne` (index.html + danke.html). Legal pages and buch/ are
   untouched above this line and stay on the light Alpines Old Money system
   (§1.6). Nothing here is deleted or edited from the light system.
   ============================================================================ */

/* ---------------------------------------------------------------------------
   §1.1 — palette tokens + base overrides
   --------------------------------------------------------------------------- */
body.nocturne {
  /* surfaces */
  --bg:        #0C110D;   /* Nachtloden — page background, near-black w/ green cast */
  --bg-raise:  #121A14;   /* raised strips (how-buy) */
  --panel:     #17221A;   /* cards (quote cards, chapter card) */
  --line:      #2C3B2F;   /* hairlines on/between panels */

  /* text */
  --text:      #F5F1E6;   /* bone — headings, primary copy */
  --text-soft: #C9C2AF;   /* secondary copy, price notes */
  --text-dim:  #8F9A8E;   /* meta, struck price, footer small print */

  /* brass & gold (CTA is the only place the bright gold appears) */
  --brass:      #A8894F;  /* hairlines, monogram, diamond, ridge */
  --brass-soft: #C6B084;  /* eyebrows, sub, links on dark */
  --gold-hi:    #D8B878;  /* CTA gradient top */
  --gold:       #BC975A;  /* CTA gradient mid */
  --gold-deep:  #96763F;  /* CTA gradient bottom, strike-through line */
  --cta-ink:    #17130A;  /* text on gold */

  /* light */
  --glow: rgba(206, 166, 94, 0.14);  /* candle radial washes */

  /* JUDGMENT CALL: --sans has no existing slot in the shared system (Hanken
     Grotesk is new, §1.2). --font-body is repointed from Source Serif 4 to
     EB Garamond ("drop Source Serif 4 on this page") so every rule that
     already inherits var(--font-body) flips to the new pairing for free. */
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "EB Garamond", Georgia, "Times New Roman", serif;

  background: var(--bg);
  color: var(--text);
  padding-bottom: 130px; /* §1.3 — sticky bar clearance */
}

body.nocturne ::selection { background: rgba(206, 166, 94, 0.25); }

/* darken the shared paper-grain pseudo-element for the night page */
body.nocturne::before { opacity: 0.04; }

/* JUDGMENT CALL: §2's page-structure list shows a literal `<div class="grain">`
   sibling to `.aura`, distinct from the shared `body::before` grain pseudo.
   Styled identically here (minus `content`, which doesn't apply to a real
   element) so the layer works whichever way the HTML builder ships it. */
body.nocturne .grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: 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.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------------------------------------------------------------------------
   .wrap — the 600px column (§1.3)
   --------------------------------------------------------------------------- */
body.nocturne .wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 22px;
  text-align: center;
}
@media (max-width: 559px) {
  body.nocturne .wrap { padding: 0 18px; }
}

/* ---------------------------------------------------------------------------
   .aura — fixed candle-glow wash behind everything (§7 step 1.2)
   JUDGMENT CALL: the plan specifies "two radial --glow washes" but not their
   exact position/size; chosen to echo the hero-scene wash at a larger, softer
   scale so the two layers read as one continuous light source.
   --------------------------------------------------------------------------- */
body.nocturne .aura {
  position: fixed;
  inset: -25% 0; /* full-bleed vertically only — horizontal bleed created scrollable overflow at 375px */
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 28% 22%, var(--glow), transparent 60%),
    radial-gradient(55% 55% at 76% 74%, var(--glow), transparent 65%);
  will-change: transform;
}

/* ---------------------------------------------------------------------------
   Nocturne restyles of shared components (§7 step 1.3)
   --------------------------------------------------------------------------- */
body.nocturne .brand,
body.nocturne .eyebrow,
body.nocturne .small-label {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  color: var(--brass-soft);
}
body.nocturne .brand { letter-spacing: 0.34em; }
body.nocturne .eyebrow,
body.nocturne .small-label { letter-spacing: 0.22em; }

body.nocturne .sub {
  font-weight: 500;
  font-size: clamp(20px, 5vw, 25px);
  line-height: 1.35;
  color: var(--brass-soft);
}

body.nocturne h1 {
  font-weight: 600;
  font-size: clamp(42px, 11vw, 66px);
  line-height: 1.04;
  color: var(--text);
}
body.nocturne h2 {
  font-weight: 600;
  font-size: clamp(28px, 6vw, 38px);
  line-height: 1.15;
  color: var(--text);
}
body.nocturne h3 { color: var(--text); }

body.nocturne .divider {
  margin: 52px auto;
}
@media (min-width: 600px) {
  body.nocturne .divider { margin: 64px auto; }
}
body.nocturne .divider::before,
body.nocturne .divider::after {
  opacity: 0.4;
}

/* .monogram — brass strokes/fill are already token-driven (var(--brass)),
   and --brass resolves to the identical hex in both themes, so no override
   is needed here; verified only, per §7 step 1.3. */

body.nocturne .price-now { font-size: 56px; color: var(--gold-hi); }
body.nocturne .price-was {
  font-weight: 500;
  color: var(--text-dim);
  text-decoration-color: var(--gold-deep);
}
body.nocturne .price-was-label { color: var(--text-dim); }
body.nocturne .price-note {
  font-family: var(--sans);
  color: var(--text-soft);
}
body.nocturne .anchor-fallback { color: var(--text-soft); }

/* .price is the flex row container (renamed from .price-row in the plan) */
body.nocturne .price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 16px;
  margin-bottom: 6px;
}

body.nocturne .teaser-list li {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.5;
  color: var(--text);
}

body.nocturne .prose {
  font-weight: 500;
  font-size: 19px;
  line-height: 1.7;
  color: var(--text-soft);
}
body.nocturne .prose strong,
body.nocturne .prose em {
  color: var(--text);
  font-style: normal;
}

/* .trust — dark restyle of .trust-list (§2 S17 uses ul.trust, not
   .trust-list, so this is written as a full new ruleset, not an override) */
body.nocturne .trust {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 480px;
  text-align: left;
}
body.nocturne .trust li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text-soft);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
body.nocturne .trust li:last-child { border-bottom: none; }
body.nocturne .trust .ck {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(168, 137, 79, 0.16);
  color: var(--brass-soft);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
}

body.nocturne .guarantee p { color: var(--text-soft); }
/* .guarantee .sign already uses var(--brass), identical hex in both themes */

body.nocturne .how-buy {
  background: var(--bg-raise);
  border-radius: 8px; /* §1.3 radii — panels/cards (tightened per taste gate) */
}
body.nocturne .how-buy li { color: var(--text-soft); }
/* JUDGMENT CALL: the numbered-step disc used var(--loden)/var(--bone), which
   would go near-invisible on the raised dark strip; switched to the brass/
   cta-ink pairing used everywhere else metal appears on this page. */
body.nocturne .how-buy li::before {
  background: var(--brass);
  color: var(--cta-ink);
}

body.nocturne .quote-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px; /* §1.3 radii — panels/cards (tightened per taste gate) */
  box-shadow: inset 0 1px 0 rgba(245, 241, 230, 0.04); /* §1.4 moonlit top edge */
}
body.nocturne .quote-card p { color: var(--text); }

body.nocturne footer.site-footer { background: #080C09; }
/* ridge stroke + link/copy colors already use var(--brass-soft)/rgba(brass),
   identical values in both themes — kept, per §7 step 1.3 */
body.nocturne footer.site-footer .footer-meta { font-family: var(--sans); }

body.nocturne .sticky-buy {
  background: rgba(7, 11, 8, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(168, 137, 79, 0.28);
  left: 0;
  right: 0;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  transform: translateY(120%);
}
body.nocturne .sticky-buy.is-visible { transform: translateY(0); }
body.nocturne .sticky-buy .cta { white-space: nowrap; }
@media (max-width: 380px) {
  body.nocturne .sticky-buy .meta .t { display: none; }
}
body.nocturne .sticky-buy .meta .t {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text-soft);
}
body.nocturne .sticky-buy .meta .p {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 17px;
  color: var(--gold-hi);
}
body.nocturne .sticky-buy .meta .p s { color: var(--text-dim); }
body.nocturne .sticky-buy .cta {
  min-height: 56px;
  width: auto;
  padding: 12px 22px;
  font-size: 17px;
  border-radius: 8px;
}
@media (min-width: 620px) {
  body.nocturne .sticky-buy {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
  }
}
/* JUDGMENT CALL: base `.sticky-buy` padding-bottom is 14px in the existing
   file; §5 prose quotes 12px but says "kept" — read as "keep the existing
   safe-area mechanism," so the base rule above this fence is left untouched
   rather than overridden to a slightly different number. */

/* ---------------------------------------------------------------------------
   New components (§7 step 1.4)
   --------------------------------------------------------------------------- */

/* Hero — a candlelit scene, not text-on-black. Three light layers (title glow,
   cover pool, ember horizon) + engraved ridge horizon + vignette scrim + a
   brass hairline frame that dissolves into the page. Video mechanism intact. */
body.nocturne .hero { position: relative; padding-top: clamp(36px, 7vw, 60px); }
body.nocturne .hero-scene {
  position: absolute; inset: 0 0 auto 0; height: min(96svh, 800px);
  z-index: -1; overflow: hidden;
  background-color: var(--bg);
  background-image:
    radial-gradient(680px 460px at 50% 20%, rgba(206,166,94,0.16), transparent 62%),
    url("/assets/hero-still.jpg");
  background-size: auto, cover;
  background-position: 50% 20%, 50% 32%;
  background-repeat: no-repeat;
}
body.nocturne .hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 38%; opacity: 0;
}
body.nocturne .hero-video.is-playing { opacity: 0.55; transition: opacity 1.2s ease; }
/* engraved mountain-ridge horizon, twin lines for depth, fading at the edges */
body.nocturne .hero-scene .ridge {
  position: absolute; left: 0; right: 0; bottom: 49%;
  height: clamp(90px, 22vw, 170px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
body.nocturne .hero-scene .ridge polyline {
  stroke: var(--brass);
  opacity: 0.30;
  vector-effect: non-scaling-stroke;
}
body.nocturne .hero-scene .ridge .far { opacity: 0.13; }
body.nocturne .hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12,17,13,0.42) 0%, rgba(12,17,13,0.50) 55%, var(--bg) 90%);
}
/* the double brass hairline frame from the plan's screenshot test — engraved
   plate edge + side vignette, both dissolving before the scene hands over to
   the page (the shared mask is what keeps the bottom edge seamless) */
body.nocturne .hero-scene::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(168, 137, 79, 0.20);
  outline: 1px solid rgba(168, 137, 79, 0.07);
  outline-offset: 4px;
  background: radial-gradient(140% 100% at 50% 14%, transparent 48%, rgba(7, 11, 8, 0.42) 100%);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 92%);
}
/* hero typography — give the title actual display presence */
body.nocturne .hero h1 {
  font-size: clamp(46px, 12.5vw, 82px);
  line-height: 1.01;
  letter-spacing: -0.015em;
}
body.nocturne .hero .brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 28px 0 42px;
}
body.nocturne .hero .brand::before,
body.nocturne .hero .brand::after {
  content: "";
  height: 1px;
  width: clamp(32px, 9vw, 64px);
  flex: none;
}
body.nocturne .hero .brand::before { background: linear-gradient(90deg, transparent, var(--brass)); }
body.nocturne .hero .brand::after  { background: linear-gradient(90deg, var(--brass), transparent); }

/* Cover — a photographed hardcover, not a coloured rectangle. `.book` is the
   3D object (tilt via the `rotate` property so the levitate keyframes compose
   with it), its ::before is the paper fore-edge; the plate itself carries the
   cloth gradient, hinge groove, foil frame and shadows. Swap .cover-plate for
   <img class="cover"> inside .book and everything else keeps working. */
body.nocturne .cover-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 44px 0 40px;
  perspective: 1200px;
}
/* pool of candle light the book sits in */
body.nocturne .cover-wrap::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: min(100%, 560px); height: min(100vw, 560px);
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(206, 166, 94, 0.13), transparent 70%);
  pointer-events: none;
}
/* soft contact shadow beneath the floating book */
body.nocturne .cover-wrap::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -20px;
  width: min(62vw, 252px); height: 30px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.6), transparent 72%);
  pointer-events: none;
}
body.nocturne .book {
  position: relative;
  z-index: 1;
  transform-style: preserve-3d;
  rotate: y -9deg;
}
/* page block on the fore-edge, revealed by the tilt */
body.nocturne .book::before {
  content: "";
  position: absolute;
  top: 3px; bottom: 5px; right: 0; width: 24px;
  transform-origin: right center;
  transform: rotateY(-90deg);
  background:
    linear-gradient(180deg, rgba(0,0,0,0.18), transparent 8%, transparent 92%, rgba(0,0,0,0.28)),
    repeating-linear-gradient(to bottom, #E9E1CC 0px, #E9E1CC 1.7px, #C4BA9E 1.7px, #C4BA9E 2.8px);
  box-shadow: inset 3px 0 5px rgba(0, 0, 0, 0.35);
  border-radius: 0 2px 2px 0;
}
body.nocturne .cover-plate {
  width: min(74vw, 292px);
  padding: 30px 26px 30px 38px;
  gap: 18px;
  border: none;
  border-radius: 2px 6px 6px 3px;
  background:
    radial-gradient(120% 80% at 18% 0%, rgba(245, 241, 230, 0.08), transparent 52%),
    radial-gradient(130% 90% at 88% 112%, rgba(0, 0, 0, 0.42), transparent 58%),
    linear-gradient(155deg, #253C2D 0%, #17261B 52%, #111B14 100%);
  box-shadow:
    inset 0 1px 0 rgba(245, 241, 230, 0.10),          /* moonlit top board edge */
    inset -1px 0 0 rgba(0, 0, 0, 0.35),               /* fore-edge crease */
    inset 26px 0 34px -20px rgba(0, 0, 0, 0.60),      /* spine-side falloff */
    0 34px 60px -12px rgba(0, 0, 0, 0.65),            /* thrown shadow */
    0 14px 28px rgba(0, 0, 0, 0.42);
}
/* double foil-stamped frame, offset from the spine hinge */
body.nocturne .cover-plate::before {
  inset: 13px 13px 13px 25px;
  border: 1px solid rgba(198, 176, 132, 0.5);
  border-radius: 1px 3px 3px 1px;
  outline: 1px solid rgba(198, 176, 132, 0.16);
  outline-offset: 3px;
}
/* hinge groove where the board meets the spine */
body.nocturne .cover-plate::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 11px; width: 3px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.12) 65%, rgba(245, 241, 230, 0.06));
  pointer-events: none;
}
body.nocturne .cover-plate .cp-eyebrow {
  letter-spacing: 0.32em;
  font-size: 11.5px;
  color: var(--brass-soft);
}
body.nocturne .cover-plate .cp-mono { width: 58px; height: 58px; }
/* foil-stamped title — gold gradient in the metal, pressed into the board */
body.nocturne .cover-plate .cp-title {
  font-weight: 600;
  font-size: clamp(24px, 6.8vw, 31px);
  line-height: 1.14;
  letter-spacing: 0.005em;
  color: var(--brass-soft);
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  body.nocturne .cover-plate .cp-title {
    background: linear-gradient(172deg, #EDD9A3 6%, #C9A55F 32%, #97783F 50%, #E4C588 70%, #AC8C50 96%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.55));
  }
}
body.nocturne .cover-plate .cp-sub {
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: rgba(245, 241, 230, 0.66);
}
/* future real cover image — same object treatment, no plate internals */
body.nocturne .cover {
  display: block;
  margin: 0 auto;
  width: min(74vw, 292px);
  object-fit: cover;
  border-radius: 2px 6px 6px 3px;
  box-shadow:
    0 34px 60px -12px rgba(0, 0, 0, 0.65),
    0 14px 28px rgba(0, 0, 0, 0.42);
}

/* CTA — §5 CSS, verbatim values */
body.nocturne .cta {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 74px; padding: 16px 24px;
  border-radius: 10px; font-family: var(--sans);
  font-size: 20px; font-weight: 700; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
body.nocturne .cta.primary {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-deep));
  color: var(--cta-ink);
  box-shadow: 0 16px 40px rgba(206,166,94,0.22), inset 0 1px 0 rgba(255,255,255,0.25);
}
body.nocturne .cta.primary:hover  { transform: translateY(-1px);
                      box-shadow: 0 20px 48px rgba(206,166,94,0.30), inset 0 1px 0 rgba(255,255,255,0.25); }
body.nocturne .cta.primary:active { transform: translateY(1px); }
body.nocturne .cta:focus-visible  { outline: 2px solid var(--text); outline-offset: 3px; }
body.nocturne .cta .arrow { transition: transform 0.2s ease; }
body.nocturne .cta:hover .arrow { transform: translateX(4px); }

/* CTA ghost variant — §4 prose spec */
body.nocturne .cta.secondary {
  background: transparent;
  color: var(--brass-soft);
  border: 1.5px solid var(--brass);
  box-shadow: none;
}
body.nocturne .cta.secondary:hover { background: rgba(168, 137, 79, 0.1); transform: translateY(-1px); }
body.nocturne .cta.secondary:active { transform: translateY(1px); }

/* Pull-quote (large) — §1.2 type table */
body.nocturne .quote-large {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(24px, 5.6vw, 31px);
  line-height: 1.4;
  color: var(--text);
  max-width: 520px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}
/* JUDGMENT CALL: cite styling isn't given a literal spec; set as a quiet
   Hanken meta line rather than the browser-default italic. */
body.nocturne .quote-large cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

/* Chapter card — §4 Surface 2 */
body.nocturne .chapter-card {
  position: relative;
  width: min(100%, 520px);
  margin: 0 auto 24px;
  padding: 28px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px; /* §1.3 radii — panels/cards (tightened per taste gate) */
  box-shadow: inset 0 1px 0 rgba(245, 241, 230, 0.04);
  text-align: center;
}
/* dashed brass inner border — signature kept from the light .free-card */
body.nocturne .chapter-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(168, 137, 79, 0.22);
  border-radius: 6px;
  pointer-events: none;
}
body.nocturne .chapter-card > * { position: relative; z-index: 1; }
body.nocturne .chapter-card .eyebrow { margin-bottom: 8px; }
body.nocturne .chapter-card h2 { margin: 0 0 12px; }
body.nocturne .chapter-card p { color: var(--text-soft); font-size: 16px; line-height: 1.6; margin: 0 0 20px; }
body.nocturne .chapter-alt {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--brass-soft);
  text-decoration: underline;
}

/* Chapter-card email field — dark restyle (light system ships a white field) */
body.nocturne .email-form input[type="email"] {
  background: rgba(245, 241, 230, 0.04);
  border: 1.5px solid var(--brass);
  color: var(--text);
}
body.nocturne .email-form input[type="email"]::placeholder { color: var(--text-dim); }
body.nocturne .email-form input[type="email"]:focus {
  outline: none;
  border-color: var(--brass-soft);
  box-shadow: 0 0 0 3px rgba(198, 176, 132, 0.18);
}
/* shared error/success line — error is soft terracotta, success (.form-note,
   toggled by site.js) is brass so "unterwegs" doesn't read as an error */
/* .chapter-card scope needed: body.nocturne .chapter-card p (0,2,2) would
   otherwise win over a bare .email-form-error rule and paint the error bone */
body.nocturne .chapter-card .email-form-error {
  font-family: var(--sans);
  font-size: 13px;
  color: #E8A488;
  margin-top: 10px;
}
body.nocturne .chapter-card .email-form-error.form-note { color: var(--brass-soft); }

/* Chapter link — §4 Surface 1, literal spec */
body.nocturne .chapter-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 18px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--brass-soft);
  text-decoration: none;
}
body.nocturne .chapter-link:hover,
body.nocturne .chapter-link:focus-visible {
  text-decoration: underline;
}

/* Chapter toast — §4 Surface 3, literal positioning spec */
body.nocturne .chapter-toast {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  max-width: min(92vw, 420px);
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--panel);
  border: 1px solid rgba(168, 137, 79, 0.35);
  border-radius: 8px; /* §1.3 radii — toast */
  padding: 14px 46px 14px 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
body.nocturne .chapter-toast[hidden] { display: none; }
body.nocturne .chapter-toast p {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
}
body.nocturne .toast-cta {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  color: var(--brass-soft);
  text-decoration: underline;
  white-space: nowrap;
}
body.nocturne .toast-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
}
body.nocturne .toast-close:hover { background: rgba(168, 137, 79, 0.14); color: var(--text); }

/* Trust-inline — §2 S6 small print under the hero CTA. JUDGMENT CALL: no
   literal spec given; styled as quiet Hanken meta text matching the other
   "Trust / notes" rows in §1.2's type table. */
body.nocturne .trust-inline {
  display: block;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text-dim);
}

/* ---------------------------------------------------------------------------
   Taste-gate polish (post-render fixes)
   --------------------------------------------------------------------------- */
/* hero eyebrow: italic Garamond, not a second tracked-caps line under the brand */
body.nocturne .hero .eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 16px;
  color: var(--brass-soft);
  margin-bottom: 10px;
}
/* footer nav: underline on hover only; lift disclaimer contrast to AA */
body.nocturne footer.site-footer .footer-links a { text-decoration: none; }
body.nocturne footer.site-footer .footer-links a:hover,
body.nocturne footer.site-footer .footer-links a:focus-visible { text-decoration: underline; }
body.nocturne footer.site-footer .colophon { color: rgba(245, 241, 230, 0.6); }

/* ---------------------------------------------------------------------------
   Elevation pass — material richness & rhythm. Every rule here is one of:
   spacing rhythm, hairline refinement, or a single purposeful ornament.
   --------------------------------------------------------------------------- */
body.nocturne h1,
body.nocturne h2 { text-wrap: balance; }

/* section rhythm — sections used to butt into each other with margin 0 */
body.nocturne section.wrap-sales { margin-top: clamp(48px, 9vw, 68px); margin-bottom: clamp(48px, 9vw, 68px); }
body.nocturne .hero + .offer { margin-top: 12px; }
body.nocturne .chapter-card { margin: clamp(56px, 10vw, 76px) auto 44px; }
body.nocturne .quote-large { margin-top: clamp(48px, 9vw, 64px); margin-bottom: clamp(48px, 9vw, 64px); }

/* dividers — tapered hairlines + flanking micro-diamonds (⟡ · ⟡ · ⟡) */
body.nocturne .divider { gap: 26px; }
body.nocturne .divider::before {
  background: linear-gradient(90deg, transparent, var(--brass));
  opacity: 0.5;
}
body.nocturne .divider::after {
  background: linear-gradient(90deg, var(--brass), transparent);
  opacity: 0.5;
}
/* the diamond is rotated 45°, so screen-horizontal flanks are (±d·cos45, ∓d·sin45) in its local frame */
body.nocturne .divider .diamond {
  box-shadow:
    -12.7px 12.7px 0 -1.5px rgba(168, 137, 79, 0.5),
    12.7px -12.7px 0 -1.5px rgba(168, 137, 79, 0.5);
}

/* the two bare section headings get a small engraved diamond cap */
body.nocturne section.wrap-sales > h2 {
  position: relative;
  padding-top: 26px;
}
body.nocturne section.wrap-sales > h2::before {
  content: "";
  position: absolute;
  top: 2px; left: 50%;
  width: 5px; height: 5px;
  background: var(--brass);
  transform: translateX(-50%) rotate(45deg);
  box-shadow:
    -12.7px 12.7px 0 -1.4px rgba(168, 137, 79, 0.45),
    12.7px -12.7px 0 -1.4px rgba(168, 137, 79, 0.45);
}

/* list hairlines fade at the ends instead of hitting the column edge */
body.nocturne .teaser-list li {
  padding: 17px 8px;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent 3%, rgba(168, 137, 79, 0.38) 50%, transparent 97%) 1;
}
body.nocturne .teaser-list li:last-child { border-bottom: none; border-image: none; }
body.nocturne .trust li {
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(44, 59, 47, 0.9), rgba(44, 59, 47, 0.15)) 1;
}
body.nocturne .trust li:last-child { border-bottom: none; border-image: none; }

/* the centerpiece pull-quote gets its editorial mark */
body.nocturne .quote-large {
  position: relative;
  padding-top: 34px;
}
body.nocturne .quote-large::before {
  content: "„";
  position: absolute;
  top: -46px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-style: normal;
  font-size: 120px;
  line-height: 1;
  color: var(--brass);
  opacity: 0.18;
  pointer-events: none;
}

/* the guarantee reads as a signed note card, not loose text */
body.nocturne .guarantee {
  padding: 34px 26px 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(245, 241, 230, 0.03), rgba(245, 241, 230, 0) 60%);
  box-shadow: inset 0 1px 0 rgba(245, 241, 230, 0.05);
}

body.nocturne .how-buy {
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(245, 241, 230, 0.04);
}

/* ---------------------------------------------------------------------------
   Motion (§7 step 1.5) — all inside prefers-reduced-motion: no-preference.
   `reveal` is kept as-is from the shared system above (theme-agnostic,
   opacity/transform only) and needs no override here.
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  /* levitate — the one floating object (the book). The tilt lives on the
     `rotate` property so this translateY keyframe composes with it. */
  body.nocturne .levitate,
  body.nocturne .cover-wrap > .cover,
  body.nocturne .cover-wrap .book { animation: levitate 10s ease-in-out infinite; }

  /* drift — candlelight is never static (aura) */
  body.nocturne .aura { animation: drift 34s ease-in-out infinite alternate; }

  /* sheen-once — the candle catches the title once, then rests as solid bone */
  body.nocturne h1.sheen-once {
    animation: sheen 1.8s ease-out 0.5s 1 both;
  }

  /* sweep-on-hover — CTA light sweep fires on interaction, not on a loop */
  body.nocturne .cta::after { animation: none; }
  body.nocturne .cta:hover::after,
  body.nocturne .cta:focus-visible::after {
    animation: sweep-on-hover 0.9s ease-out;
  }

  /* hairline-draw — the divider's own reveal triggers the engraving to draw */
  html.js body.nocturne .divider.reveal::before,
  html.js body.nocturne .divider.reveal::after {
    transform-origin: center;
    transform: scaleX(0);
  }
  html.js body.nocturne .divider.reveal.in::before,
  html.js body.nocturne .divider.reveal.in::after {
    animation: hairline-draw 0.9s ease-out forwards;
  }

  /* slideUp (sticky bar) — nocturne uses 0.45s per §1.5, base rule above this
     fence is 0.4s for the light pages; overridden here, not edited there */
  body.nocturne .sticky-buy { transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }

  /* chapter-toast enter — JUDGMENT CALL: toggle class inferred as
     `.is-visible` to match the existing `.sticky-buy.is-visible` convention;
     the plan's markup only shows the `hidden` boolean attribute. */
  body.nocturne .chapter-toast.is-visible {
    animation: toast-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
}

@keyframes levitate {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes drift {
  0% { transform: translate3d(-2%, -2%, 0) scale(1); }
  100% { transform: translate3d(2%, 2%, 0) scale(1.05); }
}

/* @supports-guarded per §1.5; JUDGMENT CALL: exact gradient stops are a
   reconstruction of "iacob's background-clip gold sheen" — not available in
   this repo — tuned so the resting state (after the 1-shot animation) reads
   as solid bone text. */
@supports (background-clip: text) or (-webkit-background-clip: text) {
  body.nocturne h1.sheen-once {
    background: linear-gradient(100deg, var(--text) 45%, var(--gold-hi) 50%, var(--text) 55%);
    background-size: 220% 100%;
    background-position: 160% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
@keyframes sheen {
  0% { background-position: 160% 0; }
  100% { background-position: -60% 0; }
}

/* sweep-on-hover — the ::after light sweep, static/base state (always
   present so `.cta` doesn't reflow when the animation is toggled) */
body.nocturne .cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
}
@keyframes sweep-on-hover {
  from { transform: translateX(-120%); }
  to   { transform: translateX(120%); }
}

@keyframes hairline-draw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, -16px); }
  to   { opacity: 1; transform: translateX(-50%); }
}

/* reduced-motion fallback for the toast — opacity only, per §1.5/§8 */
@media (prefers-reduced-motion: reduce) {
  body.nocturne .chapter-toast {
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  body.nocturne .chapter-toast.is-visible { opacity: 1; }
}
