/* Ars Notoria site layout. Values come from tokens.css; this file places them. No colours here. */

/* Decoration carries the hidden attribute so a page with no CSS is just the words. CSS turns it back on. */
.seal-circle[hidden], .page[hidden], .about__mark[hidden], .arcana__art[hidden], .stripe[hidden], .motes[hidden] { display: block; }
.book[hidden] { display: grid; }

:root { --edge: clamp(1.5rem, 5.5vw, 18rem); --top-h: max(64px, 3.4vw); }
body { overflow-x: hidden; }


/* Top bar: quiet. Wordmark, plain navigation, one action. */
/* The masthead. The name across the top in Cinzel, a ruled row beneath with the volume and folio at
   the ends and the sections centred. Transparent over the hero; once scrolled it collapses to the row
   alone, grounded with a blur. */
:root { --top-h: clamp(6rem, 12vh, 8.5rem); }
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 5; padding: 0 var(--edge); background: transparent; transition: background var(--ease); }
.masthead { display: block; text-align: center; text-decoration: none; padding-top: clamp(.6rem, 1.6vh, 1.2rem); overflow: hidden; }
.masthead__name { display: inline-block; font-family: var(--head); font-weight: 500; font-size: clamp(1.6rem, 3.2vw, 2.75rem); letter-spacing: .16em; text-transform: uppercase; color: var(--cream); transition: transform var(--ease), opacity var(--ease); }
.top__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-3); margin-top: .5rem; padding: .55rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.top__meta { font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.top__meta:last-child { text-align: right; }
.top__nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.2vw, 2.6rem); }
.top__nav a { position: relative; color: var(--muted); text-decoration: none; font-weight: 500; font-size: max(12px, .68vw); letter-spacing: .14em; text-transform: uppercase; padding: .25rem 0; transition: color var(--ease); }
.top__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform var(--ease); }
.top__nav a:hover { color: var(--cream); }
.top__nav a:hover::after, .top__nav a.is-here::after { transform: scaleX(1); }
.top__nav a.is-here { color: var(--cream); }
.top__nav .top__go { color: var(--gold); }
.top__nav .top__go:hover { color: var(--gold-hi); }
.top__progress { position: absolute; left: var(--edge); right: var(--edge); bottom: 0; height: 1px; background: var(--gold); transform: scaleX(var(--progress, 0)); transform-origin: left; opacity: .9; }
/* Scrolled: the name folds away, the row stays and grounds. */
.is-scrolled .top { background: rgba(var(--midnight-rgb), .88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.is-scrolled .masthead { height: 0; padding: 0; }
.is-scrolled .masthead__name { transform: translateY(-120%); opacity: 0; }
.is-scrolled .top__row { border-top-color: transparent; margin-top: 0; }
.masthead { transition: height var(--ease), padding var(--ease); height: calc(clamp(1.6rem, 3.2vw, 2.75rem) * 1.2 + clamp(.6rem, 1.6vh, 1.2rem)); }

main { position: relative; z-index: 1; }

/* Motes: fourteen specks in ramp colours falling slowly behind everything. Depth at the edges:
   a vignette that settles the corners. Both stay under the words. */
.motes { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent var(--top-h), #000 calc(var(--top-h) + 6rem)); mask-image: linear-gradient(to bottom, transparent 0, transparent var(--top-h), #000 calc(var(--top-h) + 6rem)); } /* hardcode-ok: mask alpha, not a colour */
.motes::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 100% at 50% 45%, transparent 55%, rgba(var(--ink-rgb), .55) 100%); }
.motes i { position: absolute; left: var(--x); top: -2vh; width: var(--w); height: var(--w); background: var(--c); opacity: 0; animation: fall var(--d) linear infinite; animation-delay: var(--o); will-change: transform, opacity; }
.motes i[style*="--w:3px"], .motes i[style*="--w:4px"] { box-shadow: 0 0 6px 1px color-mix(in srgb, var(--c), transparent 55%); }
@keyframes fall { 0% { transform: translate(0, 0); opacity: 0; } 8% { opacity: var(--z, .8); } 92% { opacity: calc(var(--z, .8) * .7); } 100% { transform: translate(-3vw, 104vh); opacity: 0; } }

/* Hero: the Seal. Full bleed. The seal is sized by the shorter side of the viewport and centred
   on a fixed share of its width, so it looks the same at any zoom and any screen. */
/* The fold: the hero pins while the seal tips over and thins away. --p runs 0 to 1 across the pin. */
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --b1 { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --f { syntax: "<number>"; inherits: false; initial-value: 0; }
.fold { position: relative; height: 140vh; --seal: max(26rem, min(84vh, 46vw)); --seal-x: 71vw; --p: 0; --b1: clamp(0, var(--p), 1); }
.hero { position: sticky; top: 0; padding: var(--top-h) var(--edge) 0; height: 100vh; display: grid; align-items: center; overflow: hidden; }
.hero__text::before { content: ""; position: absolute; inset: -12% -22% -14% -30%; z-index: -1; background: radial-gradient(closest-side, rgba(var(--midnight-rgb), .96), rgba(var(--midnight-rgb), .8) 60%, transparent); }
.hero__text { position: relative; z-index: 2; width: max(18rem, calc(var(--seal-x) - var(--edge) - var(--seal) * .5 + 2vw)); container-type: inline-size; }
.status { display: inline-flex; align-items: center; gap: .625em; font-size: var(--t-xs); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-3); }
.status i { width: .375em; height: .375em; background: var(--gold); }
.hero h1 { max-width: 12ch; font-family: var(--head); font-weight: 500; font-size: min(max(1.8rem, 9cqi), 8.5vh); line-height: 1.08; letter-spacing: .02em; margin: 0 0 min(var(--s-3), 3vh); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
/* The word: each letter in a band of the ramp, lit. The only glow on type on the site (ADR-004). */
.notorious { white-space: nowrap; }
.notorious i { font-style: normal; color: var(--c); text-shadow: 0 0 .18em color-mix(in srgb, var(--c), transparent 45%), 0 0 .6em color-mix(in srgb, var(--c), transparent 80%); transition: color 160ms linear; }
/* The figure clicks: the star turns one second of arc every second, snap and settle. */
.seal-circle__figure { transform: rotate(var(--tick, 0deg)); transition: transform 160ms cubic-bezier(.2, 1.6, .4, 1); }
.hero .lede { font-size: max(var(--t-m), 2.6cqi); line-height: 1.6; max-width: 38ch; color: var(--muted); }
.hero__actions { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: min(var(--s-3), 3vh); }
.hero .btn { font-size: max(var(--t-s), 1.7cqi); padding: .95em 1.6em; }

/* The seal. Four rings, a heptagram, the four elements, the mark. Two rings turn, slowly and against each other. */
.seal-circle { position: absolute; left: var(--seal-x); top: calc(50% + var(--top-h) * .5); width: var(--seal); aspect-ratio: 1; transform: translate(-50%, -50%) perspective(1600px) rotateX(calc(var(--b1) * -84deg)) translateZ(calc(var(--b1) * -20vh)); transform-origin: 50% 50%; opacity: calc(1 - var(--b1) * var(--b1)); z-index: 1; pointer-events: none; }
.hero__text { opacity: calc(1 - var(--b1) * 1.25); }
.is-scrolled .hero__text > .reveal { transition: none; }
.seal-circle svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--line); stroke-width: .8; overflow: visible; }
.seal-circle__ground .disc { fill: var(--midnight-2); stroke: none; }
.seal-circle__ground .grain { fill: var(--cream); stroke: none; opacity: .045; filter: url(#vellum); }
.seal-circle .thin { stroke-width: .4; }
.seal-circle .dashed { stroke-dasharray: 1 4; }
.seal-circle .gold { stroke: var(--gold); stroke-width: .6; }
.seal-circle text { font: 500 8.4px var(--head); letter-spacing: .44em; fill: var(--gold); stroke: none; }
.seal-circle__ring--inner text { font-size: 7px; fill: var(--muted); }
.seal-circle .tick { stroke: var(--c); stroke-width: 2.4; }
.seal-circle .spoke { stroke: var(--c); stroke-width: .35; opacity: .7; }
.seal-circle__degrees { stroke-width: .5; }
.seal-circle__ring--outer { animation: turn 240s linear infinite; }
.seal-circle__ring--inner { animation: turn 150s linear infinite reverse; }
@keyframes turn { to { transform: rotate(360deg); } }
.seal-circle svg.seal-circle__mark { position: absolute; inset: auto; left: 50%; top: 50%; width: 12%; height: 12%; transform: translate(-50%, -50%); fill: var(--gold); stroke: none; }
.seal-circle svg.seal-circle__mark .fill { fill: var(--gold); }
.pupil { transform-box: fill-box; transform-origin: center; translate: calc(var(--ex, 0) * 1px) calc(var(--ey, 0) * 1px); transition: translate 120ms linear; }

/* Load choreography: everything arrives once, in order. */
.reveal { opacity: 0; transform: translateY(1.1em); transition: opacity 700ms cubic-bezier(.2, .7, .2, 1), transform 900ms cubic-bezier(.2, .7, .2, 1); transition-delay: calc(120ms + var(--i, 0) * 110ms); }
.is-ready .reveal { opacity: 1; transform: none; }
.hero h1 .reveal { display: block; transform: translateY(105%); }
.is-ready .hero h1 .reveal { transform: none; }
.seal-circle.reveal { transition: opacity 1400ms cubic-bezier(.2, .7, .2, 1); }
.is-scrolled .seal-circle.reveal { transition: none; }
.is-ready .seal-circle.reveal { transform: translate(-50%, -50%) perspective(1600px) rotateX(calc(var(--b1) * -88deg)); opacity: calc(1 - var(--b1) * var(--b1)); }

/* The Draw: what lies inside the hole. Cream, sticky under the hero, revealed through a circle at
   the pupil that grows with beat two. */
/* The model card page: parchment in flow under a solid masthead; the card at rest beside the notebook. */
.draw { position: relative; min-height: 100vh; background: radial-gradient(140% 110% at 50% 40%, var(--cream) 0 50%, var(--parchment-edge) 125%); border-bottom: 3px solid transparent; border-image: var(--ramp) 1; color: var(--ink); padding: calc(var(--top-h) + 3rem) var(--edge) var(--s-4); overflow: hidden; }
.draw__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(2rem, 6vw, 8rem); align-items: start; height: 100%; }
.top--solid { background: var(--midnight); }
.draw__table { display: grid; gap: var(--s-2); justify-items: start; min-width: 0; }
.note, .draw__grid > * { min-width: 0; }
.draw .status { color: var(--ink-2); }
.draw .btn { color: var(--ink); border-color: var(--ink); }
.draw .btn::after { color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.card { --c: var(--r05); width: min(100%, 18rem); aspect-ratio: 5 / 8; perspective: 1200px; background: none; border: 0; padding: 0; display: block; }
.card__in { position: relative; display: block; width: 100%; aspect-ratio: 5 / 8; }
/* Undrawn: the card back breathes gold and asks to be turned. */
@keyframes beckon { 0%, 100% { box-shadow: 0 0 0 1px rgba(var(--gold-rgb), .5), 0 8px 24px -4px rgba(var(--ink-rgb), .35), 0 0 0 0 rgba(var(--gold-rgb), 0); } 50% { box-shadow: 0 0 0 2px var(--gold), 0 12px 32px -2px rgba(var(--ink-rgb), .45), 0 0 36px 8px rgba(var(--gold-rgb), .55); } }
.card__face { position: absolute; inset: 0; display: block; }
.card__face svg { width: 100%; height: 100%; display: block; background: var(--card-face); overflow: hidden; }
.card .num { font: 600 9.5px var(--head); letter-spacing: .04em; fill: var(--ink); }
.card .ttl { font: 600 11px var(--head); letter-spacing: .24em; fill: var(--ink); }
.note { position: relative; background: transparent; font-family: var(--display); font-size: max(.95rem, .95vw); line-height: 1.55; padding: 0 0 1.5rem; }
.note__rh { display: flex; justify-content: space-between; font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--cream-3); padding-bottom: .5rem; margin: 0 0 1.2rem; }
.note__title { font-family: var(--head); font-weight: 500; font-size: max(1.8rem, 2.4vw); letter-spacing: .02em; margin: 0 0 .6rem; }
.note__text { margin: 0 0 .8rem; max-width: 56ch; }
.note__rub { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--rubric-ink); margin: 1.2rem 0 .3rem; }
.sheet { display: grid; grid-template-columns: max-content 1fr; gap: .15em 1.5em; font-family: var(--mono); font-size: 13px; line-height: 1.6; margin: 0; }
.sheet dt { color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; padding-top: .2em; }
.sheet dd { margin: 0; }
.sheet .tbd { color: var(--rubric-ink); }
.sheet a { color: var(--ink); }
.pill { display: inline-block; font: 500 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border: 1px solid var(--c); color: var(--c); margin-right: .4em; }
.sample { border-left: 2px solid var(--c); padding-left: 1rem; margin: .6rem 0 .2rem; font-style: italic; color: var(--ink-2); max-width: 60ch; }
.sample b { font-style: normal; color: var(--ink); font-weight: 500; }
.dl { display: inline-flex; align-items: center; gap: .6em; font: 600 13px var(--sans); letter-spacing: .02em; background: var(--ink); color: var(--cream); padding: 12px 20px; text-decoration: none; margin-top: .6rem; }
.dl__h { font: 400 11px var(--mono); color: var(--cream-3); }
/* Unread: the ink has not settled. Each scrambled letter carries a band of the ramp and a glow. */
.note .scr { color: color-mix(in srgb, var(--c, var(--ink)), var(--ink) 45%); }
.note .scr.is-set { color: inherit; }
.note .scr.is-head { color: color-mix(in srgb, var(--c), var(--ink) 45%); text-shadow: 0 0 .45em color-mix(in srgb, var(--c), transparent 15%), 0 0 1.1em color-mix(in srgb, var(--c), transparent 55%); }

/* Sections below the fold arrive once: head first, then the content, from below. */
/* Seams. Every section carries --q, 0 to 1, driven by its own scroll progress and lerped, so each
   arrives with a beat that belongs to it. Nothing here transitions; the scrub is the animation. */
@property --q { syntax: "<number>"; inherits: true; initial-value: 0; }
.section { --q: 0; }
.section__head { opacity: calc(var(--q) * 1.6); transform: translateY(calc((1 - var(--q)) * 1.2rem)); }

/* Models: the cards are dealt from the left, each one a little later, landing flat. */
.section .tarot { --i: 0; --qi: clamp(0, calc((var(--q) - var(--i) * .18) / .6), 1); opacity: var(--qi); transform: translateX(calc((1 - var(--qi)) * -6rem)) rotate(calc((1 - var(--qi)) * -8deg)); }
.section .tarot:nth-child(2) { --i: 1; }
.section .tarot:nth-child(3) { --i: 2; }

/* Method: the book rises out of the ground and its ribbon drops after it lands. */
.book { --ql: clamp(0, calc(var(--q) / .7), 1); opacity: var(--ql); transform: translateY(calc((1 - var(--ql)) * 4rem)) perspective(1400px) rotateX(calc((1 - var(--ql)) * 18deg)); transform-origin: 50% 100%; }
.page__ribbon { --qr: clamp(0, calc((var(--q) - .6) / .4), 1); transform: scaleY(var(--qr)); transform-origin: 50% 0; }

/* Contribute: the four ways rise in a wave, left to right, with their coloured rule drawing in. */
.section .way { --i: 0; --qw: clamp(0, calc((var(--q) - var(--i) * .12) / .55), 1); opacity: var(--qw); transform: translateY(calc((1 - var(--qw)) * 2rem)); border-top-color: color-mix(in srgb, var(--c) calc(var(--qw) * 100%), var(--line)); }
.section .way:nth-child(2) { --i: 1; }
.section .way:nth-child(3) { --i: 2; }
.section .way:nth-child(4) { --i: 3; }

/* About: the text settles in. */
.about p { --i: 0; --qa: clamp(0, calc((var(--q) - var(--i) * .15) / .5), 1); opacity: var(--qa); transform: translateY(calc((1 - var(--qa)) * 1rem)); }
.about p:nth-child(2) { --i: 1; }

@media (prefers-reduced-motion: reduce) { .section { --q: 1; } .section__head, .section .tarot, .book, .page__ribbon, .section .way, .about p { opacity: 1; transform: none; } }

/* Below the fold: one document. Every section opens with a status tag and a Cinzel heading; a
   ramp stripe separates the hero from the rest, and the footer closes with another. */
.section { position: relative; z-index: 1; padding: calc(var(--top-h) * .6 + 2rem) var(--edge) clamp(3.5rem, 6vw, 6rem); border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(16rem, 26rem) minmax(0, 1fr); gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.section__head { position: sticky; top: calc(var(--top-h) + 2rem); padding-top: .4rem; }
.section h1, .section h2 { font-family: var(--head); font-weight: 500; letter-spacing: .02em; font-size: var(--t-xl); margin: 0 0 var(--s-2); line-height: 1.05; }
.section .lede { font-size: var(--t-m); color: var(--muted); max-width: 36ch; line-height: 1.55; }
.section .btn { margin-top: var(--s-3); }
.section h3 { font-family: var(--head); font-weight: 500; font-size: var(--t-l); letter-spacing: .02em; margin: 0 0 .4rem; }
.stripe { position: relative; z-index: 1; }

/* Arcana strip: three cards. The Scribe turns on click to show its model card on the back; the
   other two are face down with one figure and a wax seal each. */
.arcana { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.2vw, 2.2rem); align-items: start; padding-top: .5rem; }
.tarot { display: grid; gap: var(--s-2); text-decoration: none; color: var(--muted); background: none; border: 0; padding: 0; text-align: left; font: inherit; }
/* Scroll drives .tarot and .way; hover must not transition the same properties. */
.tarot--link { cursor: pointer; }
.tarot--link .tarot__face svg { background: var(--card-face); }
.tarot--link:hover .tarot__face svg { outline: 2px solid var(--c); outline-offset: -2px; }
.tarot__face { position: relative; display: block; width: 100%; aspect-ratio: 5 / 8; }
.tarot__face svg { width: 100%; height: 100%; display: block; background: var(--midnight); }
.tarot .num { font: 600 9.5px var(--head); letter-spacing: .04em; fill: var(--ink); }
.tarot .ttl { font: 600 11px var(--head); letter-spacing: .24em; fill: var(--ink); }
.tarot .rune { font: 400 14px serif; letter-spacing: .3em; fill: var(--c); }
.tarot .num--dark { fill: var(--c); }
/* The sealed figures turn, slowly, against each other. */
.tarot .turn { transform-box: view-box; transform-origin: 100px 150px; }
.tarot .turn--cw { animation: turn 90s linear infinite; }
.tarot .turn--ccw { animation: turn 120s linear infinite reverse; }
.tarot__card { display: grid; gap: .3rem; }
.tarot__name { font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tarot__name b { font-family: var(--sans); }
.tarot__name b { color: var(--cream); font-weight: 500; margin-left: .4em; }
.tarot__soon { font-size: var(--t-xs); letter-spacing: .04em; color: var(--muted); }
.arcana__sep { color: var(--line); margin: 0 .4em; }

/* The page: a cream book page as the method teaser. */
/* An open book: two leaves on a spine, the block of pages showing at both fore-edges. */
.section--page { grid-template-columns: 1fr; }
.section--page .section__head { position: static; }
.page__text + .page__text { margin-top: .6em; }
.book { position: relative; display: grid; grid-template-columns: 1.2rem minmax(0, 1fr) 1.6rem minmax(0, 1fr) 1.2rem; width: min(100%, 68rem); justify-self: center; margin-top: var(--s-2); }
.book__edges { align-self: stretch; margin: .6rem 0; background: repeating-linear-gradient(to right, var(--cream-2) 0 2px, var(--cream-3) 2px 3px); }
.book__edges--l { margin-right: -.1rem; }
.book__edges--r { margin-left: -.1rem; }
.book__spine { background: linear-gradient(to right, var(--parchment-edge), var(--cream-3) 45%, var(--cream-3) 55%, var(--parchment-edge)); box-shadow: inset 0 0 14px rgba(var(--ink-rgb), .35); }
.page { position: relative; background: radial-gradient(120% 90% at 45% 35%, var(--cream) 0 55%, var(--parchment-edge) 130%); color: var(--ink); padding: clamp(1.6rem, 3vw, 2.6rem) clamp(1.6rem, 3.2vw, 2.8rem); overflow: hidden; font-family: var(--display); font-size: max(1rem, 1.05vw); line-height: 1.6; }
.page--verso { box-shadow: inset -22px 0 26px -22px rgba(var(--ink-rgb), .5); }
.page--recto { box-shadow: inset 22px 0 26px -22px rgba(var(--ink-rgb), .5); padding-left: clamp(2.6rem, 4.4vw, 4rem); }
.page__ribbon { position: absolute; top: -1px; left: clamp(.9rem, 1.6vw, 1.5rem); width: .7rem; height: 36%; display: grid; }
.page__ribbon i { background: var(--c); }
.page__ribbon::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.6rem; border-left: .45rem solid transparent; border-right: .45rem solid transparent; border-top: .6rem solid var(--r14); }
.page__rh { display: flex; justify-content: space-between; font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--cream-3); padding-bottom: .5rem; margin: 0 0 1.4rem; }
.page__rub { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--rubric-ink); margin: 1.2rem 0 .4rem; }
.page__text { margin: 0; max-width: 44ch; }
.page__note { position: relative; padding-left: 1.6rem; font-style: italic; font-size: .9em; color: var(--ink-2); max-width: 34ch; margin-top: 1.2rem; }
.page__note::before { content: ""; position: absolute; left: 0; top: .2em; width: 1em; height: .8em; background: var(--rubric-ink); clip-path: polygon(0 35%, 55% 35%, 55% 0, 100% 50%, 55% 100%, 55% 65%, 0 65%); }
.page__cap { float: left; font-family: var(--head); font-size: 3em; line-height: .8; padding: .06em .1em 0 0; color: var(--rubric-ink); }

/* Three ways in. */
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
.way { border: 1px solid var(--line); border-top: 2px solid var(--c); padding: var(--s-2) var(--s-2) var(--s-2); display: grid; gap: .4rem; align-content: start; }
.way__n { font-family: var(--head); font-weight: 600; font-size: var(--t-xs); letter-spacing: .2em; color: var(--c); }
.way p { margin: 0; color: var(--muted); font-size: var(--t-s); line-height: 1.5; max-width: 34ch; }
.way__go { margin-top: var(--s-2); color: var(--c); }

.section--about .section__head { position: static; }
.about { display: grid; gap: 1rem; max-width: 62ch; }
.about p { margin: 0; font-size: var(--t-m); line-height: 1.6; color: var(--cream); }
.about a { color: var(--cream); }

/* Footer */
/* The wordmark, used in the footer. */
.mark { display: inline-flex; align-items: center; gap: .6em; text-decoration: none; color: var(--cream); font-family: var(--wordmark); font-weight: 400; font-size: max(17px, .9vw); letter-spacing: .04em; white-space: nowrap; -webkit-text-stroke: .05em currentColor; }
.mark__seal { width: 1.5em; height: 1.5em; fill: var(--gold); }
.mark__seal .fill { fill: var(--gold); }

/* Footer: the standard colophon. Wordmark and line, four columns of links, a legal row. */
.foot { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: var(--s-4) var(--edge) var(--s-3); display: grid; gap: var(--s-4); }
.foot__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
.foot__tag { margin: 0; color: var(--muted); font-size: var(--t-s); }
.foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); }
.foot__col { display: grid; gap: .55rem; align-content: start; }
.foot__h { margin: 0 0 .3rem; font: 500 var(--t-xs) var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--cream); }
.foot__col a { color: var(--muted); text-decoration: none; font-size: var(--t-s); transition: color var(--ease); }
.foot__col a:hover { color: var(--cream); }
.foot__bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); flex-wrap: wrap; padding-top: var(--s-3); border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--muted); }
.foot__legal { display: flex; gap: var(--s-3); }
.foot__legal a { color: var(--muted); text-decoration: none; font-size: var(--t-xs); letter-spacing: .06em; }
.foot__legal a:hover { color: var(--cream); }

/* Tablet and narrow desktop: the seal slides toward the edge and bleeds; the words keep their column. */
@media (max-width: 1100px) and (min-width: 821px) {
  .fold { --seal-x: 78vw; --seal: max(30rem, min(100vh, 86vw)); }
  .hero__text { width: clamp(18rem, 52vw, 40rem); }
}
/* Phone: its own composition. The seal sits above the words, cropped at the top, the words on
   clean midnight below it. The nav action moves into the hero. */
@media (max-width: 820px) {
  :root { --top-h: 7.5rem; }
  .top { background: rgba(var(--midnight-rgb), .7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .masthead__name { font-size: 1.4rem; letter-spacing: .12em; }
  .top__row { grid-template-columns: 1fr; gap: .4rem; }
  .top__meta { display: none; }
  .top__nav { gap: .9rem; flex-wrap: wrap; justify-content: center; }
  .top__nav a { font-size: 11px; letter-spacing: .1em; }
  .section { grid-template-columns: 1fr; gap: var(--s-3); }
  .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section__head { position: static; }
  .arcana { grid-template-columns: 1fr; }
  .tarot { max-width: 18rem; }
  .ways { grid-template-columns: 1fr; }
  .book { grid-template-columns: 1fr; width: 100%; }
  .book__edges, .book__spine { display: none; }
  .page--recto { padding-left: clamp(1.6rem, 3.2vw, 2.8rem); border-top: 1px solid var(--cream-3); }
  .page__ribbon { left: auto; right: .6rem; width: .55rem; height: 16%; }
  .page__text { max-width: none; }
  .page--recto .page__rh, .page--recto .page__rub, .page--recto .page__text { padding-right: 1.4rem; }
  .about__mark { justify-self: start; }

  .fold { height: auto; }
  .fold { --seal: 92vw; --seal-x: 50vw; }
  .hero { position: relative; height: auto; min-height: 0; padding-top: calc(var(--top-h) + var(--seal) + var(--s-3)); padding-bottom: var(--s-4); overflow: hidden; }
  .seal-circle, .hero__text > * { transform: none; opacity: 1; }
  .seal-circle { transform: translate(-50%, 0); }
  .draw__grid { grid-template-columns: 1fr; }
  .note { opacity: 1; }
  .note__rh { flex-wrap: wrap; gap: .3rem 1rem; }
  .sheet { grid-template-columns: 1fr; gap: 0; }
  .sheet dt { margin-top: .5em; }
  .dl { flex-wrap: wrap; }
  .card { width: min(100%, 14rem); }
  .card__in { transform: rotateY(0); }
  .hero__text { width: 100%; }
  .hero__text::before { display: none; }
  .hero h1 { font-size: clamp(2rem, 10.5vw, 3rem); }
  .seal-circle { top: calc(var(--top-h) + var(--s-2)); transform: translate(-50%, 0); }
  .seal-circle.reveal { transform: translate(-50%, 0) scale(.96); }
  .is-ready .seal-circle.reveal { transform: translate(-50%, 0); }
  .seal-circle text { font-size: 9.5px; }
}
@media (prefers-reduced-motion: reduce) { .motes i { animation: none; opacity: .5; top: var(--t, 40vh); } .fold { height: auto; } .hero { position: relative; height: auto; min-height: 100vh; } .seal-circle, .hero__text > * { transform: none; opacity: 1; } .reveal, .seal-circle.reveal { transition: none; opacity: 1; transform: none; } .seal-circle__ring--outer, .seal-circle__ring--inner { animation: none; } .seal-circle__figure { transition: none; } }
