/* The reading table. Night cloth, painted cards, paper sheets.
   Loaded after styles.css and assessment.css. It remaps the folio tokens,
   so existing components pick up the night room without being rewritten. */

@font-face {
  font-family: 'IM Fell English';
  src: url('/fonts/im-fell-english.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IM Fell English';
  src: url('/fonts/im-fell-english-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

/* The Fell face draws 1 like a capital I. Digits in display text come from Alegreya instead. */
@font-face {
  font-family: 'Fell Digits';
  src: url('/fonts/alegreya.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+30-39;
}
@font-face {
  font-family: 'Fell Digits';
  src: url('/fonts/alegreya-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+30-39;
}

:root {
  --night: #12172f;
  --night-2: #1a2142;
  --night-3: #262e58;
  --gilt: #d8b25c;
  --gilt-bright: #ecca7e;
  --gilt-dim: #9c8146;
  --bone: #f1e6cc;
  --bone-dim: #cfc3a8;
  --cinnabar: #b23a2c;
  --verdigris: #5fb3a6;
  --paper-sheet: #f6ecd6;
  --paper-ink: #2a1f17;
  --display: 'Fell Digits', 'IM Fell English', Alegreya, Georgia, serif;
  --card-radius: 14px;
}
:lang(hi), :lang(zh), :lang(ar), :lang(ur) { --display: var(--serif); }

/* ---------- the night room: the default for every app view ---------- */
body {
  --stock: var(--night);
  --leaf: var(--night-2);
  --vellum: var(--night-3);
  --type: var(--bone);
  --body-type: #e0d5bb;
  --caption: #b9ad93;
  --wine: var(--gilt);
  --wine-dark: var(--gilt-bright);
  --brass: var(--gilt-dim);
  --rule: #353d6b;
  --control-rule: #6a73a6;
  --fire: #e58a6c;
  --air: #9dbbe0;
  --water: #7cc9b8;
  --earth: #d2bd66;
  /* The aliases in styles.css resolve on :root, so they are declared again wherever the palette changes. */
  --ink: var(--stock); --ink-2: var(--leaf); --ink-3: var(--vellum);
  --line: var(--rule); --line-2: var(--control-rule);
  --paper: var(--type); --paper-2: var(--body-type); --paper-3: var(--caption);
  --el: var(--wine);
  color-scheme: dark;
  background-color: var(--night);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='620' height='620'%3E%3Cg fill='%23f1e6cc'%3E%3Ccircle cx='41' cy='63' r='1.1' opacity='.55'/%3E%3Ccircle cx='188' cy='29' r='.8' opacity='.4'/%3E%3Ccircle cx='302' cy='118' r='1.3' opacity='.6'/%3E%3Ccircle cx='469' cy='52' r='.9' opacity='.45'/%3E%3Ccircle cx='571' cy='171' r='1.1' opacity='.5'/%3E%3Ccircle cx='96' cy='231' r='.8' opacity='.35'/%3E%3Ccircle cx='247' cy='284' r='1' opacity='.5'/%3E%3Ccircle cx='398' cy='243' r='.7' opacity='.35'/%3E%3Ccircle cx='523' cy='331' r='1.2' opacity='.55'/%3E%3Ccircle cx='58' cy='402' r='1.2' opacity='.5'/%3E%3Ccircle cx='171' cy='468' r='.8' opacity='.4'/%3E%3Ccircle cx='331' cy='421' r='1' opacity='.45'/%3E%3Ccircle cx='452' cy='507' r='.8' opacity='.35'/%3E%3Ccircle cx='589' cy='462' r='1' opacity='.5'/%3E%3Ccircle cx='121' cy='571' r='1' opacity='.45'/%3E%3Ccircle cx='276' cy='553' r='.7' opacity='.3'/%3E%3Ccircle cx='541' cy='598' r='.9' opacity='.4'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(180deg, #1b2347 0, var(--night) 520px);
  background-repeat: repeat, no-repeat;
}
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -.008em; line-height: 1.08; }
h1 em, h2 em { font-style: italic; }
::selection { background: var(--gilt); color: var(--night); }

.topbar { border-bottom: 1px solid var(--rule); }
.wordmark { font-family: var(--display); font-weight: 400; letter-spacing: 0; color: var(--gilt); }
@media (max-width: 560px) {
  .topbar { flex-direction: column; align-items: center; gap: 0; padding-bottom: 2px; }
  .topnav { justify-content: center; gap: 0 22px; width: 100%; }
}
.toplink { color: var(--bone-dim); }
.toplink:hover { color: var(--gilt-bright); }
.foot { border-top: 1px solid var(--rule); color: var(--caption); }
.foot a { color: var(--bone-dim); text-underline-offset: 3px; }
.foot a:hover { color: var(--gilt-bright); }

.btn { border-radius: 999px; padding-inline: 28px; letter-spacing: .01em; }
.btn-primary { color: var(--night); }
.btn:hover { background: var(--night-3); }
.btn-primary:hover { background: var(--gilt-bright); }
.linkbtn { color: var(--bone-dim); }
.input, select { border-radius: 10px; background: var(--night-2); }
.card { border-radius: var(--card-radius); border-top-width: 1px; border-top-style: solid; border-color: var(--rule); }
.toast { border-radius: 10px; }
.modal { border-radius: var(--card-radius); border: 1px solid var(--gilt-dim); }
.skel { border-radius: 10px; }

/* ---------- paper: a written sheet laid on the cloth ---------- */
.sheet {
  --stock: var(--paper-sheet);
  --leaf: #fff8e9;
  --vellum: #eadfc4;
  --type: var(--paper-ink);
  --body-type: #4b3a2d;
  --caption: #6a5646;
  --wine: #7a2f2a;
  --wine-dark: #5c211d;
  --brass: #8a673a;
  --rule: #cdbb98;
  --control-rule: #947b5b;
  --fire: #8d3d29;
  --air: #435b70;
  --water: #28594b;
  --earth: #625623;
  --ink: var(--stock); --ink-2: var(--leaf); --ink-3: var(--vellum);
  --line: var(--rule); --line-2: var(--control-rule);
  --paper: var(--type); --paper-2: var(--body-type); --paper-3: var(--caption);
  --el: var(--wine);
  color-scheme: light;
  background: var(--paper-sheet);
  color: var(--paper-ink);
  border-radius: 6px;
  padding: clamp(22px, 4.6vw, 56px);
  box-shadow: 0 1px 0 #fff8e9 inset, 0 24px 60px -30px rgba(0, 0, 0, .7);
}
.sheet .btn-primary { color: #fff8e9; }
.sheet .btn:hover { background: var(--vellum); }
.sheet .btn-primary:hover { background: var(--wine-dark); }
.sheet .input, .sheet select { background: var(--leaf); }
.sheet + .sheet { margin-top: 22px; }

/* ---------- the card ---------- */
.tcard {
  position: relative;
  margin: 0;
  aspect-ratio: 2 / 3;
  border-radius: var(--card-radius);
  background: var(--night-2);
  border: 1px solid var(--gilt-dim);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .85);
  overflow: hidden;
  isolation: isolate;
}
.tcard::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid color-mix(in srgb, var(--gilt) 62%, transparent);
  border-radius: calc(var(--card-radius) - 6px);
  pointer-events: none;
  z-index: 3;
}
.tcard-plate, .tcard-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.tcard-plate { object-fit: cover; opacity: 0; transition: opacity .5s; z-index: 1; }
.tcard-plate.ok { opacity: 1; }
.tcard-fallback {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 38%, #2e3870 0, transparent 62%),
    linear-gradient(180deg, #1c2449, #12172f);
  color: var(--gilt);
}
.tcard-fallback svg { width: 56%; height: auto; }
.tcard-fallback .tcard-big { font: 400 clamp(3.4rem, 9vw, 6rem)/1 var(--display); color: var(--gilt); }
.tcard-num {
  position: absolute;
  inset-block-start: 15px;
  inset-inline: 0;
  text-align: center;
  font: 400 .95rem/1 var(--display);
  letter-spacing: .14em;
  color: var(--gilt-bright);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
  z-index: 4;
}
.tcard-title {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  padding: 44px 18px 20px;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(11, 14, 32, .9) 58%);
  color: var(--bone);
  z-index: 2;
}
.tcard-title b { display: block; font: 400 clamp(1.15rem, 2.4vw, 1.6rem)/1.12 var(--display); }
.tcard-title small { display: block; margin-top: 4px; font-size: .86rem; color: var(--bone-dim); }
.tcard.square { aspect-ratio: 3 / 4; }

/* a face-down card */
.tcard-back {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg, transparent 0 13px, rgba(216, 178, 92, .13) 13px 14px),
    repeating-linear-gradient(-45deg, transparent 0 13px, rgba(216, 178, 92, .13) 13px 14px),
    linear-gradient(180deg, #232c5b, #161c3b);
  z-index: 5;
}
.tcard-back svg { width: 38%; height: auto; color: var(--gilt); }

/* turning a card over: the one orchestrated moment on reveal screens */
.turn { perspective: 1400px; }
.turn .tcard { transform-style: preserve-3d; isolation: auto; transition: transform .8s cubic-bezier(.3, .7, .2, 1); overflow: visible; background: none; border: 0; box-shadow: none; }
.turn .tcard::after { display: none; }
.turn .tcard > .side {
  position: absolute; inset: 0; border-radius: var(--card-radius); overflow: hidden;
  border: 1px solid var(--gilt-dim); background: var(--night-2);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .85);
}
.turn .tcard > .side::after {
  content: ""; position: absolute; inset: 7px; z-index: 3; pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--gilt) 62%, transparent);
  border-radius: calc(var(--card-radius) - 6px);
}
.turn .tcard > .side-front { transform: rotateY(180deg); }
.turn .tcard.is-up { transform: rotateY(180deg); }
@media (prefers-reduced-motion: reduce) {
  .turn .tcard, .turn .tcard.is-up { transform: none; transition: none; }
  .turn .tcard > .side-front { transform: none; opacity: 0; }
  .turn .tcard.is-up > .side-front { opacity: 1; }
  .turn .tcard.is-up > .side-back { opacity: 0; }
}

/* ---------- table layout: card beside the question ---------- */
.wrap.table-wrap { max-width: calc(1040px + 2 * var(--gut)); padding-top: 18px; }
.table { display: grid; gap: 18px; align-items: start; }
.table-card .tcard { aspect-ratio: 16 / 9; }
.table-card .tcard-plate { object-position: 50% 42%; }
.table-card .tcard-title { text-align: start; padding: 30px 20px 14px; }
.table-card .tcard-num { text-align: end; inset-inline-end: 20px; inset-inline-start: auto; }
.table-panel { min-width: 0; }
@media (min-width: 880px) {
  .table { grid-template-columns: minmax(260px, 350px) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); }
  .table-card { position: sticky; top: 22px; }
  .table-card .tcard { aspect-ratio: 2 / 3; }
  .table-card .tcard-plate { object-position: 50% 50%; }
  .table-card .tcard-title { text-align: center; padding: 44px 18px 20px; }
  .table-card .tcard-num { text-align: center; inset-inline: 0; }
  .table-panel { padding-top: 8px; }
}

/* progress: a gold thread with a bead */
.qtop { gap: 14px; margin-bottom: 20px; }
.back { border-radius: 50%; background: transparent; border-color: var(--control-rule); }
.back:hover:not(:disabled) { background: var(--night-3); }
.prog-bar { height: 2px; background: var(--rule); overflow: visible; position: relative; }
.prog-bar i { background: var(--gilt); position: relative; }
.prog-bar i::after {
  content: ""; position: absolute; inset-inline-end: -5px; top: 50%;
  width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
  background: var(--gilt-bright); box-shadow: 0 0 0 3px var(--night);
}
.prog small { margin-top: 12px; font-size: .86rem; color: var(--caption); }
.chapter-line { font: 400 1.02rem/1.3 var(--display); font-style: italic; color: var(--gilt); margin-bottom: .6rem; }

.qprompt { font-size: clamp(1.7rem, 4.4vw, 2.6rem); line-height: 1.14; margin-bottom: 24px; max-width: 24ch; text-wrap: balance; }
.qprompt.is-statement { font-style: italic; }
.qprompt.is-statement::before { content: "\201C"; }
.qprompt.is-statement::after { content: "\201D"; }
.q-lead { color: var(--body-type); margin-bottom: .5rem; font-size: 1.02rem; }

/* answers as small cards */
.opts { border-top: 0; gap: 10px; }
.opt {
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: color-mix(in srgb, var(--night-2) 82%, transparent);
  min-height: 60px;
  padding: 12px 16px;
  transition: border-color .15s, background .15s, transform .12s;
}
.opt:hover { background: var(--night-3); border-color: var(--gilt-dim); }
.opt:active { transform: scale(.985); background: var(--night-3); }
.opt .k {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--gilt-dim); font: 400 .98rem/1 var(--display); color: var(--gilt);
}
.opt.sel, .opt[aria-pressed="true"] { background: var(--gilt); border-color: var(--gilt); color: var(--night); }
.opt.sel .k, .opt[aria-pressed="true"] .k { border-color: var(--night); color: var(--night); }
@media (min-width: 700px) { .opts.choice-options { grid-template-columns: 1fr 1fr; } }

/* five-point ratings drawn as a waxing moon */
.opts.rating-options { gap: 8px; }
.opt.moon .k { border: 0; width: 34px; height: 34px; }
.opt.moon .k svg { width: 34px; height: 34px; display: block; }
.moon-disc { fill: #0d1127; stroke: var(--gilt-dim); }
.moon-lit { fill: var(--bone); }
.opt.moon.sel .moon-disc, .opt.moon[aria-pressed="true"] .moon-disc { fill: var(--night); stroke: var(--night); }
@media (min-width: 700px) {
  .opts.rating-options { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .opt.moon { flex-direction: column; text-align: center; gap: 10px; padding: 16px 8px; min-height: 124px; justify-content: flex-start; font-size: .96rem; line-height: 1.25; }
  .opt.moon .k, .opt.moon .k svg { width: 44px; height: 44px; }
}

/* this-or-that: two statements and five stops between them */
.pair { display: grid; gap: 12px; }
.pair-side {
  padding: 16px 18px; border: 1px solid var(--rule); border-radius: 12px;
  font: 400 1.18rem/1.35 var(--serif); color: var(--bone);
  background: color-mix(in srgb, var(--night-2) 82%, transparent);
}
.pair-side small { display: block; font: 400 .84rem/1.2 var(--sans); color: var(--gilt); margin-bottom: 4px; }
.pair-stops { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 10px 6px 0; border: 0; background: none; width: 100%; max-width: 25rem; margin-inline: auto; }
.pair-stops .opt {
  width: auto; min-height: 0; padding: 0; border-radius: 50%; flex: none;
  justify-content: center; aspect-ratio: 1; inline-size: var(--s, 46px);
  border-color: var(--gilt-dim); background: transparent;
}
.pair-stops .opt:nth-child(1), .pair-stops .opt:nth-child(5) { --s: 58px; }
.pair-stops .opt:nth-child(2), .pair-stops .opt:nth-child(4) { --s: 48px; }
.pair-stops .opt:nth-child(3) { --s: 40px; }
.pair-stops .opt span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pair-stops { order: 3; }
.pair-hint { display: flex; justify-content: space-between; gap: 12px; font-size: .86rem; color: var(--caption); max-width: 25rem; margin: 6px auto 0; }
@media (min-width: 700px) {
  .pair { grid-template-columns: 1fr 1fr; align-items: stretch; gap: 14px; }
  .pair-stops { grid-column: 1 / -1; gap: 10px; }
}
.q-next { margin-top: 22px; display: flex; gap: 12px; align-items: center; min-height: 52px; }

/* ---------- single-question steps (birth details) ---------- */
.step-form { display: grid; gap: 18px; max-width: 34rem; }
.step-form .lede { font: 400 1.14rem/1.5 var(--serif); color: var(--body-type); max-width: 46ch; }
.step-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 6px; }
.dob-fields { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: 10px; }
.dob-fields label > span { display: block; font-size: .9rem; color: var(--caption); margin-bottom: 6px; }
.dob-fields .input, .dob-fields select { font: 400 1.5rem/1 var(--display); min-height: 62px; text-align: center; }
.dob-fields select { text-align: start; padding-inline-start: 14px; }
.choice-list { display: grid; gap: 10px; }
.choice-list .opt b { font: 400 1.18rem/1.2 var(--display); display: block; }
.choice-list .opt small { display: block; color: var(--caption); font-size: .92rem; margin-top: 2px; }
.choice-list .opt.sel small, .choice-list .opt[aria-pressed="true"] small { color: var(--night); }
.place-results button { border-radius: 10px; background: var(--night-2); border-color: var(--rule); color: var(--bone); }
.place-results button:hover { background: var(--night-3); border-color: var(--gilt-dim); }
.place-chosen { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px solid var(--gilt-dim); border-radius: 12px; }
.err:empty { display: none; }

/* ---------- reveal screens ---------- */
.reveal { text-align: center; padding-top: 10px; }
.reveal h1 { font-size: clamp(2rem, 6vw, 3.4rem); max-width: 18ch; margin-inline: auto; text-wrap: balance; }
.reveal .lede { font: 400 1.16rem/1.5 var(--serif); color: var(--body-type); margin: 14px auto 0; max-width: 44ch; }
.spread { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 3vw, 30px); margin: clamp(22px, 5vw, 44px) auto 0; max-width: 860px; align-items: start; }
.spread-item { min-width: 0; }
.spread-item .turn { width: 100%; }
.spread-item .tcard { width: 100%; cursor: pointer; }
.spread-note { margin-top: 14px; opacity: 0; transform: translateY(6px); transition: opacity .5s .5s, transform .5s .5s; }
.spread-item.is-up .spread-note { opacity: 1; transform: none; }
.spread-note b { display: block; font: 400 clamp(1.1rem, 3.4vw, 1.5rem)/1.1 var(--display); color: var(--gilt-bright); }
.spread-note small { display: block; color: var(--caption); font-size: .84rem; margin-top: 4px; }
.spread-note p { font: 400 .98rem/1.45 var(--serif); color: var(--body-type); margin: 8px auto 0; max-width: 30ch; }
.spread-cta { margin-top: 30px; opacity: 0; transition: opacity .5s; }
.spread-cta.is-ready { opacity: 1; }
@media (max-width: 620px) {
  .spread { grid-template-columns: 1fr; max-width: 21rem; gap: 26px; }
  .spread-item { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); gap: 16px; align-items: center; text-align: start; }
  .spread-note { margin-top: 0; }
  .spread-note p { margin-inline: 0; }
}
@media (prefers-reduced-motion: reduce) { .spread-note, .spread-cta { opacity: 1; transform: none; transition: none; } }

.glimpse { display: grid; gap: 22px; justify-items: center; text-align: center; padding-top: 12px; }
.glimpse .tcard { width: min(62vw, 270px); }
.glimpse .ms-kicker { color: var(--gilt); font: 400 1.05rem/1.2 var(--display); font-style: italic; }
.glimpse .ms-line { color: var(--bone); max-width: 26ch; }
.glimpse .ms-fw { color: var(--caption); }
.glimpse .animal-cameo { width: 100%; height: 100%; border-radius: 0; margin: 0; background-color: #0b0d14; }

/* twelve cards, some turned: the gate and the offer */
.twelve-spread { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 26px 0; }
.twelve-spread li { min-width: 0; }
.twelve-spread .tcard { border-radius: 9px; }
.twelve-spread .tcard::after { inset: 4px; border-radius: 6px; }
.twelve-spread .tcard-title { padding: 22px 6px 9px; }
.twelve-spread .tcard-title b { font-size: clamp(.72rem, 2.3vw, .98rem); }
.twelve-spread .tcard-num { inset-block-start: 9px; font-size: .7rem; }
.twelve-spread .tcard-back svg { width: 44%; }
@media (min-width: 760px) { .twelve-spread { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; } }
.offer { display: grid; gap: 26px; }
@media (min-width: 880px) { .offer { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: 48px; } }
.price { font-family: var(--display); color: var(--gilt-bright); }
.bullets svg { stroke: var(--gilt); }
.tease { border-radius: var(--card-radius); border: 1px solid var(--rule); }

/* ---------- landing ---------- */
.hero-night {
  position: relative;
  margin: 0 calc(-1 * var(--gut));
  padding: clamp(34px, 8vw, 110px) var(--gut) clamp(40px, 8vw, 110px);
  min-height: min(82vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.hero-night picture, .hero-night .hero-art { position: absolute; inset: 0; z-index: -2; }
.hero-night .hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-night::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 18, 40, .94) 0, rgba(14, 18, 40, .72) 42%, rgba(14, 18, 40, .12) 78%),
    linear-gradient(0deg, var(--night) 0, transparent 30%);
}
.hero-night h1 { font-size: clamp(2.7rem, 7.4vw, 6rem); line-height: .98; max-width: 11ch; text-wrap: balance; }
.hero-night h1 em { color: var(--gilt-bright); display: block; }
.hero-night .hero-sub { font: 400 clamp(1.14rem, 2vw, 1.42rem)/1.45 var(--serif); color: var(--bone); max-width: 36ch; margin-top: 1.3rem; }
.hero-night .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-top: 1.7rem; }
.hero-night .text-link { color: var(--gilt-bright); }
@media (max-width: 700px) {
  .hero-night { min-height: 0; padding-top: 46vw; }
  .hero-night .hero-art img { object-position: 50% 0; height: 74vw; }
  .hero-night::before { background: linear-gradient(0deg, var(--night) 0, var(--night) 38%, rgba(18, 23, 47, .2) 78%, transparent); }
}

.band { margin-top: clamp(48px, 9vw, 110px); }
.band-head { display: grid; gap: 12px; margin-bottom: clamp(20px, 4vw, 38px); }
.band-head h2 { font-size: clamp(1.9rem, 5vw, 3.2rem); max-width: 18ch; text-wrap: balance; }
.band-head p { font: 400 1.14rem/1.5 var(--serif); color: var(--body-type); max-width: 54ch; }
@media (min-width: 860px) { .band-head { grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; } }

/* the twelve readings laid out as a row of cards */
.deck { list-style: none; padding: 4px 0 18px; margin: 0 calc(-1 * var(--gut)); padding-inline: var(--gut); display: grid; grid-auto-flow: column; grid-auto-columns: min(46vw, 210px); gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-color: var(--gilt-dim) transparent; }
.deck li { scroll-snap-align: start; min-width: 0; }
.deck .tcard { width: 100%; }
.deck-note { margin-top: 12px; }
.deck-note b { display: block; font: 400 1.16rem/1.2 var(--display); color: var(--bone); }
.deck-note small { display: block; color: var(--gilt); font-size: .84rem; margin-top: 2px; }
.deck-note p { font-size: .96rem; line-height: 1.45; color: var(--body-type); margin-top: 6px; }
@media (min-width: 1040px) { .deck { grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; margin: 0; padding-inline: 0; row-gap: 34px; } }

/* archetype gallery */
.agrid { gap: 22px; margin-top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .agrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
@media (min-width: 1100px) { .agrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.acard { display: block; padding: 0; border-top: 0; }
.acard .tcard { aspect-ratio: 1; }
.acard-body { padding-top: 14px; }
.acard-el { color: var(--el); font-size: .86rem; font-weight: 700; }
.acard h3 a { font-size: clamp(1.25rem, 3vw, 1.6rem); min-height: 0; padding-block: 4px; text-decoration: none; color: var(--bone); }
.acard h3 a:hover { color: var(--gilt-bright); }
.acard-tag { color: var(--gilt); font-style: italic; }
.acard-sum { font-size: .98rem; color: var(--body-type); }
@media (max-width: 520px) { .acard-sum { display: none; } }

.letter-band { display: grid; gap: 26px; align-items: center; }
@media (min-width: 860px) { .letter-band { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: 56px; } }
.letter-sample { transform: rotate(1.2deg); }
.letter-sample h3 { font-size: 1.5rem; margin: 4px 0 10px; }
.letter-sample p { font: 400 1.02rem/1.5 var(--serif); margin-top: 10px; }
.letter-sample .working { font-style: italic; font-size: .9rem; color: var(--caption); }
.letter-sample .mast { font-size: .86rem; color: var(--caption); border-bottom: 1px solid var(--rule); padding-bottom: 8px; }
.method-list { list-style: none; padding: 0; display: grid; gap: 0; margin-top: 18px; }
.method-list li { padding: 14px 0; border-top: 1px solid var(--rule); font: 400 1.06rem/1.45 var(--serif); }
.method-list b { font-weight: 600; }
.closing { margin-top: clamp(56px, 9vw, 110px); text-align: center; }
.closing h2 { font-size: clamp(1.9rem, 5vw, 3rem); max-width: 16ch; margin: 0 auto 22px; text-wrap: balance; }

/* ---------- report ---------- */
.rhero { padding: 6px 0 26px; }
.rhero .art { border-radius: var(--card-radius); border: 1px solid var(--gilt-dim); outline: 0; padding: 0; background: var(--night-2); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .85); }
.rhero h1 { color: var(--gilt-bright); }
.rhero .meta { color: var(--el); letter-spacing: 0; }
.rhero .tag { color: var(--bone); }
.report-index { border-block: 1px solid var(--rule); justify-content: center; }
.reading-lead h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); margin-bottom: 18px; text-wrap: balance; }
.reading-lead p { font: 400 1.2rem/1.62 var(--serif); margin-top: 1rem; max-width: 64ch; }
.reading-lead > h2 + p::first-letter { font: 400 3.4em/.8 var(--display); float: inline-start; padding: .08em .12em 0 0; color: var(--wine); }
.reading-lead .eyebrow { font: italic 400 1.1rem/1.3 var(--display); margin: 0 0 .4rem; }
.reading-shadow { margin-top: 1.6rem; padding: 18px 20px; border-block: 3px double var(--brass); }
.reading-shadow p { margin-top: 0; }
.reading-step { font-style: italic; }
.threads { list-style: none; padding: 0; margin-top: 1.6rem; display: grid; gap: 0; }
.threads li { display: grid; gap: 2px 18px; padding: 12px 0; border-top: 1px solid var(--rule); }
.threads b { font: 600 .92rem/1.3 var(--sans); color: var(--wine); }
.threads span { font: 400 1.04rem/1.45 var(--serif); }
@media (min-width: 700px) { .threads li { grid-template-columns: 13rem 1fr; } }
.rd-list { border-top: 0; display: grid; gap: 18px; }
.rd { grid-template-columns: 5.4rem minmax(0, 1fr); gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.rd .tcard { border-radius: 8px; width: 100%; }
.rd .tcard::after { inset: 4px; border-radius: 5px; }
.rd .tcard-num { inset-block-start: 8px; font-size: .72rem; }
.rd-val { color: var(--wine); }
.rd-working, .working { font: italic 400 .94rem/1.4 var(--serif); color: var(--caption); margin-top: 8px; }
@media (min-width: 700px) { .rd { grid-template-columns: 7.6rem minmax(0, 1fr); gap: 26px; } }
.sharebar { background: var(--night); border-top: 1px solid var(--rule); }
.sharebar .btn:not(.btn-primary) { background: var(--night-2); }
.rd-head { flex-wrap: wrap; gap: 4px 16px; }
.rd-val { min-width: 0; }
@media (max-width: 520px) {
  .rd { display: flow-root; }
  .rd > div:first-child { float: left; width: 4.6rem; margin: 2px 16px 8px 0; }
  .rd-head { display: block; }
  .rd-val { display: block; text-align: start; margin-top: 4px; }
}
@media (max-width: 380px) {
  .sharebar { padding-inline: 12px; }
  .sharebar .in { gap: 6px; }
  .sharebar .btn { padding: 0 10px; font-size: .92rem; }
}
.day-picker button { border-radius: 999px; }
.day-sections { display: grid; gap: 0; }
.day-sections section { padding: 16px 0; border-top: 1px solid var(--rule); }
.day-sections h4 { font: 600 .9rem/1.2 var(--sans); color: var(--wine); margin-bottom: 4px; }
.day-sections .day-value { font: 400 1.3rem/1.2 var(--display); }
.day-mast { font: italic 400 1.04rem/1.4 var(--serif); color: var(--caption); }
.subscription-callout { border-radius: var(--card-radius); }
.rcard, .soon-card { border-radius: var(--card-radius); border-color: var(--rule); }
.rcard { grid-template-columns: 6.4rem minmax(0, 1fr); gap: 18px; align-items: center; }
.rcard-img { aspect-ratio: auto; border: 0; border-radius: 0; background: none; overflow: visible; }
.membership { max-width: 38rem; }
.membership .field > span { font-weight: 600; }
.fine a, .sheet .fine a { color: inherit; }

/* family and seal art were recoloured for paper; put the night values back */
.family-art svg [fill="#151921"] { fill: #151921; }
.family-art svg [fill="#f2ebdd"], .family-art svg [fill="#bab5aa"] { fill: #f2ebdd; }
.family-art svg [fill="#e8a24a"] { fill: #e8a24a; }
.birth-seal svg [fill="#0b0d14"], .milestone-seal svg [fill="#0b0d14"], .question-seal svg [fill="#0b0d14"] { fill: #0b0d14; }
.birth-seal svg [fill="#f2ebdd"], .milestone-seal svg [fill="#f2ebdd"], .question-seal svg [fill="#f2ebdd"] { fill: #f2ebdd; }
.birth-seal svg [fill="#e8a24a"], .milestone-seal svg [fill="#e8a24a"], .question-seal svg [fill="#e8a24a"] { fill: #e8a24a; }
.sheet .family-art svg [fill="#151921"] { fill: var(--vellum); }
.sheet .family-art svg [fill="#f2ebdd"], .sheet .family-art svg [fill="#bab5aa"] { fill: var(--type); }
.sheet .family-art svg [fill="#e8a24a"] { fill: var(--wine); }

@media (prefers-reduced-motion: reduce) { .tcard-plate { transition: none; } }
