/* =========================================================
   Shadow Kingdom Press — stylesheet
   Colors and fonts are set once in :root below.
   ========================================================= */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IM Fell English"; src: url("../fonts/im-fell-english-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --ink: #0d0b0a;          /* near-black background */
  --ink-2: #16120f;        /* raised dark surface */
  --bone: #ebe1cb;         /* main light text on dark */
  --bone-dim: #bcae94;     /* secondary text on dark (8:1+) */
  --line: rgba(235, 225, 203, .28);
  --parch: #e6d9bd;        /* parchment base */
  --parch-ink: #1b1511;    /* text on parchment */
  --parch-mute: #4d4034;   /* secondary text on parchment (7:1+) */
  --parch-line: rgba(27, 21, 17, .35);
  --blood: #7a1b17;        /* sparing accent (text-safe on parchment) */
  --oxblood: #7b1a1a;      /* frame rules */
  --oxblood-hi: #9b2a24;   /* frame highlights */

  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Cormorant Garamond", Garamond, Georgia, serif;
  --script: "IM Fell English", "Cormorant Garamond", Georgia, serif;

  --max: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 11vw, 136px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-weight: 500;
  font-size: clamp(1.125rem, 1.02rem + .45vw, 1.3rem);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
.section--parchment :focus-visible { outline-color: var(--parch-ink); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--bone); color: var(--ink); padding: 10px 16px; font-family: var(--display); font-size: .8rem; letter-spacing: .1em; text-decoration: none; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Textures (pure CSS + tiny inline SVG noise) ---------- */
.section--dark, .hero, .footer {
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(235,225,203,.06), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .95 0 0 0 0 .85 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.section--parchment {
  color: var(--parch-ink);
  background-color: var(--parch);
  background-image:
    radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(92, 62, 30, .22) 100%),
    radial-gradient(circle at 18% 22%, rgba(140, 100, 50, .10), transparent 38%),
    radial-gradient(circle at 82% 78%, rgba(120, 85, 40, .10), transparent 40%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .12 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
}

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--display);
  font-size: .78rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin: 0 0 1.1rem;
}
.eyebrow--ink { color: var(--parch-mute); }
.h2 {
  text-wrap: balance;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: .04em;
  margin: 0 0 .4rem;
}
.h2__sub { display: block; font-family: var(--script); font-style: italic; font-size: .62em; letter-spacing: 0; margin-top: .35em; color: var(--bone-dim); }
.lead { font-family: var(--script); font-style: italic; font-size: 1.32em; line-height: 1.4; margin-bottom: .9em; }
.lead--bone { color: var(--bone); }
.note { font-style: italic; color: var(--bone-dim); }

/* ---------- Divider ---------- */
.divider { display: block; width: 240px; max-width: 70%; height: 18px; margin: 1.4rem auto 1.6rem; color: var(--bone-dim); }
.section--parchment .divider { color: var(--parch-mute); }
.divider--left { margin-left: 0; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px;
  padding: 0 2rem;
  font-family: var(--display); font-weight: 600;
  font-size: .82rem; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn::after { content: ""; position: absolute; inset: 4px; border: 1px solid currentColor; opacity: .35; pointer-events: none; }
.btn--primary { background: var(--bone); color: var(--ink); }
.btn--primary:hover { background: #fff8e8; }
.btn--ghost { color: var(--bone); border-color: var(--line); }
.btn--ghost::after { display: none; }
.btn--ghost:hover { border-color: var(--bone); background: rgba(235,225,203,.06); }
.btn--dark { background: var(--parch-ink); color: var(--parch); }
.btn--dark:hover { background: #000; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 11, 10, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(235,225,203,.12);
}
.topbar__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brandmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: .82rem; letter-spacing: .24em; text-transform: uppercase; white-space: nowrap; }
.brandmark__moon { width: 20px; height: 20px; color: var(--bone); }
.nav { display: none; gap: 30px; }
.nav a { font-family: var(--display); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--bone-dim); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--bone); border-bottom-color: var(--line); }
@media (min-width: 900px) { .nav { display: flex; } }

/* ---------- Ornamental corners ---------- */
.corner { position: absolute; width: 34px; height: 34px; color: var(--bone-dim); opacity: .8; }
.corner--tl { top: 10px; left: 10px; }
.corner--tr { top: 10px; right: 10px; transform: scaleX(-1); }
.corner--bl { bottom: 10px; left: 10px; transform: scaleY(-1); }
.corner--br { bottom: 10px; right: 10px; transform: scale(-1, -1); }

/* ---------- 1. Hero ---------- */
.hero { padding: clamp(20px, 4vw, 48px) var(--gutter) clamp(48px, 7vw, 88px); }
.hero__frame {
  position: relative;
  max-width: var(--max); margin: 0 auto;
  min-height: min(84vh, 760px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(72px, 10vw, 120px) clamp(22px, 6vw, 80px);
  border: 1px solid var(--line);
  outline: 1px solid rgba(235,225,203,.12); outline-offset: -8px;
  overflow: hidden;
  isolation: isolate;
}
.hero__moon {
  position: absolute; z-index: -1;
  top: 50%; left: 50%;
  width: min(560px, 120vw); aspect-ratio: 1;
  transform: translate(-50%, -54%);
  border-radius: 50%;
  border: 1px solid rgba(235,225,203,.13);
  display: grid; place-items: center;
}
.hero__moon::before { content: ""; position: absolute; inset: 7%; border-radius: 50%; border: 1px dashed rgba(235,225,203,.08); }
.hero__moon svg { width: 64%; height: 64%; color: rgba(235,225,203,.085); transform: translateX(9%) rotate(-14deg); }
.hero__title { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1; }
.hero__title-main { display: block; font-size: clamp(2.6rem, 1.2rem + 6.4vw, 6rem); letter-spacing: .06em; color: var(--bone); text-shadow: 0 2px 30px rgba(0,0,0,.6); }
.hero__title-press { display: block; margin-top: .55em; font-size: clamp(.95rem, .8rem + .8vw, 1.35rem); letter-spacing: .9em; padding-left: .9em; color: var(--bone-dim); }
.hero .divider { width: 300px; margin: 2rem auto 1.8rem; }
.hero__tagline { font-family: var(--script); font-style: italic; font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.15rem); line-height: 1.3; max-width: 22em; margin: 0 0 1rem; }
.hero__sub { color: var(--bone-dim); max-width: 34em; margin: 0 0 2.4rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; position: relative; }
.section-head { text-align: center; max-width: 860px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-head__lede { color: var(--parch-mute); font-style: italic; margin: 0 auto; max-width: 34em; }

/* Framed images */
.framed { position: relative; padding: 10px; }
.framed::before, .framed::after { content: ""; position: absolute; pointer-events: none; }
.framed::before { inset: 0; border: 1px solid currentColor; opacity: .55; }
.framed::after { inset: 5px; border: 1px solid currentColor; opacity: .25; }
.framed--dark { color: var(--parch-ink); }
.framed--dark img { box-shadow: 0 24px 50px -18px rgba(27,21,17,.55), 0 4px 10px rgba(27,21,17,.25); }
.framed--bone { color: var(--bone); }

/* ---------- 2. Book ---------- */
.book { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
.book__cover { max-width: 440px; width: 100%; margin: 0 auto; }
.book__subtitle { font-family: var(--script); font-style: italic; font-size: 1.3em; color: var(--parch-mute); margin: 0; }
.book .lead { color: var(--parch-ink); }
.book p { max-width: 34em; }
.facts { list-style: none; padding: 0; margin: 1.6rem 0 2.2rem; border-top: 1px solid var(--parch-line); }
.facts li { padding: .7rem 0; border-bottom: 1px solid var(--parch-line); color: var(--parch-mute); }
.facts span { font-family: var(--display); font-size: .82em; letter-spacing: .12em; color: var(--parch-ink); margin-right: .4em; }
@media (min-width: 860px) {
  .book { grid-template-columns: 5fr 6fr; }
  .book__cover { margin: 0; }
}

/* ---------- 3. Teaser ---------- */
.teaser__grid { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
.teaser__text p { max-width: 32em; }
.teaser__text p:not(.lead):not(.note):not(.eyebrow) { color: var(--bone-dim); }
.teaser__text .btn { margin-top: .8rem; }
.teaser__art { margin: 0; max-width: 460px; width: 100%; justify-self: center; }
.teaser__art img { filter: contrast(1.02); }
.teaser__art figcaption { margin-top: 14px; text-align: center; font-style: italic; font-size: .9em; color: var(--bone-dim); }
@media (min-width: 860px) {
  .teaser__grid { grid-template-columns: 6fr 5fr; }
  .teaser__art { justify-self: end; }
}

/* ---------- 4. Series ---------- */
.series { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2.5vw, 28px); }
@media (min-width: 860px) { .series { grid-template-columns: repeat(4, 1fr); } }
.slot {
  position: relative;
  aspect-ratio: 8.5 / 11;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 18px;
  border: 1px solid var(--parch-line);
  outline: 1px solid rgba(27,21,17,.14); outline-offset: -7px;
  background: linear-gradient(180deg, rgba(27,21,17,.04), rgba(27,21,17,.09));
}
.slot__num { font-family: var(--display); font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); letter-spacing: .08em; color: var(--parch-ink); line-height: 1; }
.slot__moon { width: 26px; height: 26px; color: var(--parch-mute); opacity: .55; margin: 1.1rem 0; }
.slot__title { font-family: var(--script); font-style: italic; font-size: 1.1em; color: var(--parch-mute); }
.slot__status { margin-top: .5rem; font-family: var(--display); font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--parch-mute); }
.slot--next { background: var(--ink); border-color: var(--ink); outline-color: rgba(235,225,203,.25); }
.slot--next .slot__num { color: var(--bone); }
.slot--next .slot__moon { color: var(--bone); opacity: .9; }
.slot--next .slot__title { color: var(--bone); }
.slot--next .slot__status { color: var(--bone-dim); }

/* ---------- 5. Gallery ---------- */
.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 26px; }
@media (min-width: 860px) { .gallery { gap: 56px 40px; } }
@media (min-width: 860px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.plate { margin: 0; }
.plate picture {
  display: block;
  aspect-ratio: 8.5 / 11;
  background: #fff;
  padding: 6%;
  outline: 1px solid rgba(235,225,203,.35); outline-offset: 5px;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.9);
}
.plate img { width: 100%; height: 100%; object-fit: contain; }
.plate figcaption { margin-top: 18px; text-align: center; font-family: var(--script); font-style: italic; font-size: .9em; line-height: 1.3; color: var(--bone-dim); text-wrap: balance; }
@media (min-width: 860px) { .plate figcaption { font-size: 1em; margin-top: 22px; } }

/* ---------- 6. Coven ---------- */
.coven {
  position: relative;
  max-width: 720px; margin: 0 auto;
  text-align: center;
  padding: clamp(56px, 8vw, 84px) clamp(22px, 6vw, 72px);
  border: 1px solid var(--parch-line);
  outline: 1px solid rgba(27,21,17,.14); outline-offset: -8px;
}
.coven .corner { color: var(--parch-mute); }
.coven__moon { width: 34px; height: 34px; color: var(--parch-ink); margin: 0 auto 1.2rem; display: block; }
.coven__offer { font-family: var(--script); font-style: italic; font-size: 1.3em; line-height: 1.35; margin: .6rem auto 1.2rem; max-width: 22em; }
.coven__form { max-width: 520px; margin: 0 auto; text-align: left; }
.coven__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.coven__fields { display: grid; gap: 14px; }
@media (min-width: 560px) { .coven__fields { grid-template-columns: 1fr 1.4fr; } }
.coven__field label { display: block; margin-bottom: 6px; font-family: var(--display); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--parch-ink); }
.coven__field label span { text-transform: none; letter-spacing: 0; font-family: var(--body); font-style: italic; font-size: .85rem; line-height: 1; color: var(--parch-mute); }
.coven__field label { height: 1.1rem; line-height: 1.1rem; white-space: nowrap; }
.coven__field input { width: 100%; min-height: 52px; padding: 0 14px; border-radius: 0; font-family: var(--body); font-size: 1.15rem;
  background: rgba(255,255,255,.55); border: 1px solid rgba(27,21,17,.45); color: var(--parch-ink); }
.coven__field input::placeholder { color: #75665a; }
.coven__field input:focus { outline: 2px solid var(--parch-ink); outline-offset: 1px; background: #fffaf0; }
.coven__form button { position: relative; display: block; width: 100%; margin-top: 16px; min-height: 54px; border: 0; border-radius: 0; cursor: pointer;
  background: var(--parch-ink); color: var(--parch); font-family: var(--display); font-weight: 600; font-size: .82rem; letter-spacing: .24em; text-transform: uppercase; }
.coven__form button::after { content: ""; position: absolute; inset: 4px; border: 1px solid currentColor; opacity: .35; pointer-events: none; }
.coven__form button:hover { background: #000; }
.coven__consent { margin: 1rem auto 0; font-size: .88em; font-style: italic; color: var(--parch-mute); }

/* The Inner Coven teaser */
.inner-coven { position: relative; max-width: 720px; margin: 36px auto 0; padding: 34px clamp(22px, 5vw, 56px) 30px; text-align: center;
  background: var(--ink); color: var(--bone); outline: 1px solid rgba(235,225,203,.25); outline-offset: -7px; }
.badge--ink { margin-bottom: .9rem; }
.inner-coven__title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); letter-spacing: .06em; }
.inner-coven__lede { margin: .3rem 0 1.1rem; font-family: var(--script); font-style: italic; color: var(--bone-dim); }
.inner-coven__perks { list-style: none; margin: 0 auto 1.1rem; padding: 0; display: inline-grid; gap: .45rem; text-align: left; }
.inner-coven__perks li { position: relative; padding-left: 1.6em; color: var(--bone); }
.inner-coven__perks li::before { content: ""; position: absolute; left: 0; top: .42em; width: .7em; height: .7em; border-radius: 50%;
  box-shadow: inset .22em -.05em 0 0 var(--bone); transform: rotate(-20deg); }
.inner-coven__note { margin: 0; font-size: .9em; font-style: italic; color: var(--bone-dim); }

/* ---------- 7. Footer ---------- */
.footer { padding: 64px 0 48px; border-top: 1px solid rgba(235,225,203,.12); text-align: center; }
.footer__moon { width: 28px; height: 28px; color: var(--bone); display: block; margin: 0 auto 14px; }
.footer__name { font-family: var(--display); letter-spacing: .3em; text-transform: uppercase; font-size: .9rem; margin-bottom: 1.2rem; }
.footer__links a { color: var(--bone-dim); text-decoration-color: var(--line); text-underline-offset: 4px; }
.footer__links a:hover { color: var(--bone); }
.footer__copy { margin: 1.6rem 0 0; font-size: .82em; color: var(--bone-dim); letter-spacing: .04em; }

/* ---------- Additions (round 3) ---------- */
.hero__meta { margin: 2rem 0 0; font-family: var(--display); font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--bone-dim); }
.plate__num { display: block; font-family: var(--display); font-style: normal; font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--bone-dim); opacity: .85; margin-bottom: .35rem; }
.footer__about { font-style: italic; color: var(--bone-dim); max-width: 30em; margin: -.4rem auto 1.4rem; }

/* ---------- Whole-page engraved frame (banknote-engraver style, original art) ----------
   Art: assets/img/frame/red/ (oxblood on black, default) or assets/img/frame/ink/ (ink on parchment):
   add the class "frame--ink" to <div class="page"> to switch. --fw = frame width.
   Each edge = two halves; the second half is mirrored, so left/right and top/bottom are symmetrical
   and the two halves meet under a centre medallion. */
:root { --fw: 18px; --edge-v: url("../img/frame/red/edge-v-sm.svg"); --edge-h: url("../img/frame/red/edge-h-sm.svg"); }
.page { position: relative; padding: var(--fw); background: var(--ink); }
.frame { position: absolute; inset: 0; z-index: 60; pointer-events: none; }
.fe, .frame__corner, .frame__crest { position: absolute; background-repeat: no-repeat; }
.fe--t1, .fe--t2, .fe--b1, .fe--b2 { width: calc(50% - var(--fw)); height: var(--fw); background: var(--edge-h) 0 0 / auto 100% repeat-x; }
.fe--l1, .fe--l2, .fe--r1, .fe--r2 { height: calc(50% - var(--fw)); width: var(--fw); background: var(--edge-v) 0 0 / 100% auto repeat-y; }
.fe--t1 { top: 0; left: var(--fw); }
.fe--t2 { top: 0; right: var(--fw); transform: scaleX(-1); }
.fe--b1 { bottom: 0; left: var(--fw); transform: scaleY(-1); }
.fe--b2 { bottom: 0; right: var(--fw); transform: scale(-1, -1); }
.fe--l1 { left: 0; top: var(--fw); }
.fe--l2 { left: 0; bottom: var(--fw); transform: scaleY(-1); }
.fe--r1 { right: 0; top: var(--fw); transform: scaleX(-1); }
.fe--r2 { right: 0; bottom: var(--fw); transform: scale(-1, -1); }
.frame__corner { width: 64px; height: 64px; background: url("../img/frame/red/corner-sm.svg") 0 0 / 100% 100% no-repeat; }
.frame__corner--tl { top: 0; left: 0; }
.frame__corner--tr { top: 0; right: 0; transform: scaleX(-1); }
.frame__corner--bl { bottom: 0; left: 0; transform: scaleY(-1); }
.frame__corner--br { bottom: 0; right: 0; transform: scale(-1, -1); }
.frame__crest { display: none; }
.frame--ink { --edge-v: url("../img/frame/ink/edge-v-sm.svg"); --edge-h: url("../img/frame/ink/edge-h-sm.svg"); }
.frame--ink .frame__corner { background-image: url("../img/frame/ink/corner-sm.svg"); }

@media (min-width: 760px) {
  :root { --fw: 64px; --edge-v: url("../img/frame/red/edge-v.svg"); --edge-h: url("../img/frame/red/edge-h.svg"); }
  .frame--ink { --edge-v: url("../img/frame/ink/edge-v.svg"); --edge-h: url("../img/frame/ink/edge-h.svg"); }
  .frame__corner { width: calc(var(--fw) * 3); height: calc(var(--fw) * 3); background-image: url("../img/frame/red/corner.svg"); }
  .frame--ink .frame__corner { background-image: url("../img/frame/ink/corner.svg"); }
  .frame__crest { display: block; background: url("../img/frame/red/crest.svg") 0 0 / 100% 100% no-repeat; }
  .frame--ink .frame__crest { background-image: url("../img/frame/ink/crest.svg"); }
  .frame__crest--top, .frame__crest--bottom { left: 50%; width: calc(var(--fw) * 76 / 64); height: var(--fw); transform: translateX(-50%); }
  .frame__crest--top { top: 0; }
  .frame__crest--bottom { bottom: 0; transform: translateX(-50%) scaleY(-1); }
  .frame__crest--left, .frame__crest--right { top: 50%; height: calc(var(--fw) * 76 / 64); width: var(--fw);
    background-image: url("../img/frame/red/crest-v.svg"); transform: translateY(-50%); }
  .frame--ink .frame__crest--left, .frame--ink .frame__crest--right { background-image: url("../img/frame/ink/crest-v.svg"); }
  .frame__crest--left { left: 0; }
  .frame__crest--right { right: 0; transform: translateY(-50%) scaleX(-1); }
}
@media (min-width: 1280px) { :root { --fw: 80px; } }

@media (min-width: 760px) { .topbar__inner { padding: 0 calc(var(--gutter) + 24px); } }
@media (max-width: 480px) { .eyebrow { letter-spacing: .22em; font-size: .72rem; } .hero__meta { letter-spacing: .16em; font-size: .64rem; } }

/* ---------- Side columns (skull + acanthus art, desktop only) ----------
   Art: assets/img/columns/skull-column.webp (320x2580 = original + upside-down copy, so repeats meet edge-to-edge).
   Both columns: same top, width and scale, so the skulls line up level; the right one is mirrored with scaleX(-1).
   Turn off by removing "has-columns" from .page. --col = column width. */
.side-col { display: none; }
@media (min-width: 1200px) {
  .has-columns { --col: 112px; padding-left: calc(var(--fw) + var(--col)); padding-right: calc(var(--fw) + var(--col)); }
  .has-columns .side-col {
    display: block; position: absolute; top: var(--fw); bottom: var(--fw); width: var(--col); z-index: 59; pointer-events: none;
    background-color: #0a0807;
    background-image: url("../img/columns/skull-column.jpg");
    background-image: url("../img/columns/skull-column.webp");
    background-position: 50% 0; background-size: 100% auto; background-repeat: repeat-y;
  }
  /* thin oxblood rule between each column and the content */
  .has-columns .side-col::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 3px;
    border-left: 1px solid #a8443a; border-right: 1px solid #a8443a; }
  .has-columns .side-col--left { left: var(--fw); }
  /* right column: its own pre-mirrored file (so the CBH stamp is never shown backwards); same top/width/scale as the left */
  .has-columns .side-col--right { right: var(--fw);
    background-image: url("../img/columns/skull-column-right.jpg");
    background-image: url("../img/columns/skull-column-right.webp"); }
  .has-columns .side-col--right::after { right: auto; left: 0; }
}
@media (min-width: 1440px) { .has-columns { --col: 120px; } }

/* CBH signature stamp in the footer (black ink on a small parchment seal) */
.footer { position: relative; }
.footer__sig { width: 76px; height: 76px; margin: 1.8rem auto 0; padding: 9px; border-radius: 50%;
  background: #e9dfc9; box-shadow: 0 0 0 2px var(--oxblood), 0 0 0 5px #120d0b, 0 0 0 6px var(--oxblood-hi); }
.footer__sig img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 860px) { .footer__sig { position: absolute; right: 40px; bottom: 36px; margin: 0; } }

.badge { display: inline-block; margin: 0 0 1.2rem; padding: .45rem 1rem .4rem 1.25rem; border: 1px solid var(--bone-dim);
  font-family: var(--display); font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--bone); }
.hero__meta span { white-space: nowrap; }

/* thank-you page */
.thanks { min-height: 70vh; display: flex; align-items: center; }
.thanks .container { width: 100%; }
.thanks__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 1.6rem 0 0; }
.btn--outline { background: transparent; color: var(--parch-ink); border: 1px solid var(--parch-ink); }
.btn--outline:hover { background: rgba(27,21,17,.08); }
.teaser__kicker { margin: .6rem 0 0; font-family: var(--display); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--bone-dim); }

/* ---------- Gothic Yule riddle page ---------- */
.riddle { min-height: 72vh; display: flex; align-items: center; }
.riddle .container { width: 100%; }
.riddle__box { position: relative; max-width: 720px; margin: 0 auto; text-align: center;
  padding: clamp(56px, 8vw, 84px) clamp(22px, 6vw, 72px); border: 1px solid var(--line); outline: 1px solid rgba(235,225,203,.12); outline-offset: -8px; }
.riddle__moon { color: var(--bone); }
.riddle__intro { font-family: var(--script); font-style: italic; font-size: 1.3em; margin: 0 0 1.6rem; }
.riddle__form { display: flex; flex-direction: column; gap: 10px; max-width: 440px; margin: 0 auto; }
.riddle__form input { min-height: 54px; padding: 0 16px; border-radius: 0; text-align: center; font-family: var(--display); font-size: 1.05rem; letter-spacing: .2em; text-transform: uppercase;
  background: rgba(235,225,203,.06); border: 1px solid var(--bone-dim); color: var(--bone); }
.riddle__form input::placeholder { color: #8f8471; letter-spacing: .16em; }
.riddle__form input:focus { outline: 2px solid var(--bone); outline-offset: 2px; }
.riddle__form button { min-height: 54px; border: 0; border-radius: 0; cursor: pointer; background: var(--bone); color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: .82rem; letter-spacing: .24em; text-transform: uppercase; }
@media (min-width: 560px) { .riddle__form { flex-direction: row; gap: 0; } .riddle__form input { flex: 1; } .riddle__form button { padding: 0 26px; } }
.riddle__msg { min-height: 1.6em; margin: 1.1rem 0 0; font-family: var(--script); font-style: italic; font-size: 1.15em; }
.riddle__msg--no { color: #e0a39a; animation: shiver .4s ease-in-out 1; }
.riddle__msg--ok { color: var(--bone); }
@keyframes shiver { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .riddle__msg--no { animation: none; } }
.riddle__reward { margin-top: 2rem; padding: 32px clamp(18px, 4vw, 40px) 26px; background: var(--parch); color: var(--parch-ink);
  outline: 1px solid rgba(27,21,17,.25); outline-offset: -7px; }
.riddle__reward-title { margin: 0 0 .4rem; font-family: var(--display); font-weight: 400; font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); letter-spacing: .05em; }
.riddle__reward-lede { margin: 0 0 1.2rem; font-style: italic; color: var(--parch-mute); }
.riddle__small { margin: .8rem 0 0; font-size: .9em; font-style: italic; color: var(--parch-mute); }
.teaser .eyebrow, .teaser__kicker { text-wrap: balance; letter-spacing: .2em; }
