/* Astra Noire presentation, adapted from character-sheets/primers/astra-noire. */
:root { color-scheme: dark; --ink: #0a0612; --panel: #1a1028; --panel-2: #22163a; --gold: #f3d98a; --gold-2: #e2c06a; --text: #f4ecf8; --muted: #c4b0d4; --violet: #b794f4; --teal: #5ec8c0; --line: #c8a0ff40; --line-soft: #c8a0ff24; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--text); }
body { font-family: Lora, Georgia, serif; }
a { color: var(--gold); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ── Toolbar ─────────────────────────────── */
.primer-toolbar { height: 60px; position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 24px; background: #0a0612ed; border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); font: 14px Outfit, sans-serif; }
.primer-toolbar > a { text-decoration: none; letter-spacing: .04em; }
.primer-toolbar__actions { display: flex; gap: 8px; }
.primer-toolbar__btn { background: transparent; border: 1px solid var(--line); border-radius: 7px; color: #ddd0ea; padding: 8px 14px; min-height: 38px; }
.primer-toolbar__btn:hover, .primer-toolbar__btn[aria-pressed="true"] { background: #b794f41a; border-color: var(--gold); color: var(--gold); }

/* ── Stage ───────────────────────────────── */
.viewport { margin-top: 60px; height: calc(100dvh - 60px); position: relative; overflow: hidden; background: radial-gradient(ellipse at 20% 0%, #b794f426, transparent 50%), radial-gradient(ellipse at 80% 100%, #e2c06a12, transparent 45%), var(--ink); }
.stage { width: 1920px; height: 1080px; position: absolute; top: 50%; left: 50%; transform-origin: top left; box-shadow: 0 24px 80px #0009; }
.slide { position: absolute; inset: 0; display: none; padding: 84px 104px 112px; overflow: hidden; background: radial-gradient(ellipse at 50% 0%, #b794f41f, transparent 55%), linear-gradient(180deg, #1a1028, #120a1c); }
.slide.active { display: flex; flex-direction: column; animation: arrive .45s ease both; }
.slide::before, .slide::after { content: ''; position: absolute; inset: 22px; border: 1px solid var(--line); pointer-events: none; z-index: 3; }
.slide::after { inset: 30px; border-color: #e2c06a20; }
.slide.tint-dusk { background: radial-gradient(ellipse at 70% 20%, #c8a0ff33, transparent 50%), linear-gradient(180deg, #1e1430, #100818); }
.slide.tint-fade { background: radial-gradient(ellipse at 30% 80%, #5ec8c01a, transparent 50%), linear-gradient(180deg, #1a1028, #120a1c); }
.slide.bleed { padding: 0; }
.bg, .veil { position: absolute; inset: 0; }
.bg { background-size: cover; background-position: center; }
.veil.bottom { background: linear-gradient(180deg, #0a06120a 15%, #0a061277 50%, #0a0612f5 100%); }
.veil.deep { background: linear-gradient(180deg, #0a061240, #0a0612b3 50%, #0a0612f5); }
.content { position: relative; z-index: 4; height: 100%; display: flex; flex-direction: column; }
.content--bleed { padding: 72px 104px 120px; justify-content: flex-end; }

/* ── Type ────────────────────────────────── */
.kicker { color: #c8a0ff; font: 700 20px Outfit, sans-serif; text-transform: uppercase; letter-spacing: .28em; margin-bottom: 20px; display: flex; align-items: center; gap: 18px; }
.kicker::before { content: ''; width: 40px; height: 2px; background: var(--gold); }
.chapter-mark { font: 600 26px Cinzel, Georgia, serif; color: #c8a0ff; letter-spacing: .3em; text-transform: uppercase; margin-bottom: 14px; display: flex; align-items: center; gap: 18px; }
.chapter-mark::before, .chapter-mark::after { content: '✦'; color: var(--gold); font-size: 18px; }
h1, h2, h3 { font-family: Cinzel, Georgia, serif; color: var(--gold); font-weight: 600; }
h1 { font-size: 112px; line-height: 1.04; margin: 0; text-shadow: 0 4px 40px #0008; }
h2 { font-size: 58px; line-height: 1.15; margin: 0 0 36px; max-width: 32ch; text-wrap: balance; }
h2.h-display { font-size: 92px; line-height: 1.05; text-shadow: 0 4px 40px #000a; max-width: none; }
h3 { font-size: 31px; line-height: 1.25; margin: 0 0 16px; }
p { margin: 0; line-height: 1.6; }
b { color: #fff; font-weight: 600; }
.rule { width: 420px; height: 2px; margin: 30px 0; background: linear-gradient(90deg, var(--gold-2), #c8a0ff, transparent); }
.lede { font-size: 32px; line-height: 1.55; max-width: 72ch; }
.lede--wide { font-size: 28px; max-width: 64ch; margin-bottom: 36px; }
.tiny { font-size: 23px; line-height: 1.55; color: var(--muted); }
.note { margin-top: 32px; }
.motto { font: italic 26px Lora, Georgia, serif; color: var(--gold); opacity: .85; text-align: center; letter-spacing: .02em; }
.pull { margin: 28px 0 0; padding-left: 26px; border-left: 2px solid var(--gold-2); font: italic 30px/1.5 Lora, Georgia, serif; color: #eadff5; max-width: 52ch; }
.fineprint { margin-top: 40px; font-size: 18px; color: #c4b0d499; }

/* ── Layout helpers ──────────────────────── */
.grid { display: grid; gap: 28px; align-items: stretch; margin: 0; padding: 0; }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rules-body { margin: auto 0; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: stretch; }
.stack { display: flex; flex-direction: column; gap: 28px; }

/* ── Cards ───────────────────────────────── */
.card { --accent: var(--violet); border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, #22163ad0, #1a1028c0); padding: 36px 36px 34px; display: flex; flex-direction: column; position: relative; overflow: hidden; list-style: none; }
.card::before { content: ''; position: absolute; top: 0; left: 36px; width: 62px; height: 3px; background: var(--accent); }
.c-sun { --accent: var(--gold-2); }
.c-teal { --accent: var(--teal); }
.card p { font-size: 26px; color: #e8def0; }
.card.has-art { padding-top: 0; }
.card.has-art::before { display: none; }
.card-art { width: calc(100% + 72px); margin: 0 -36px 28px; height: 250px; object-fit: cover; border-bottom: 3px solid var(--accent); }
.card-art--short { width: 100%; margin: auto 0 0; height: 150px; border-radius: 10px; border: 0; padding-top: 0; }
.card .card-art--short { margin-top: 22px; }
.tag { display: flex; align-items: center; gap: 12px; font: 700 17px Outfit, sans-serif; text-transform: uppercase; letter-spacing: .18em; color: var(--accent); margin-bottom: 14px; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; border: 1px solid #5ec8c066; background: #5ec8c01a; color: #9fe3dc; font: 600 14px Outfit, sans-serif; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }
.badge--key { border-color: #e2c06a66; background: #e2c06a1a; color: var(--gold); }
.note .badge { margin-right: 10px; }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.ticks li { font-size: 26px; line-height: 1.45; padding-left: 36px; position: relative; color: #e8def0; }
.ticks li::before { content: '✦'; position: absolute; left: 0; color: var(--gold); font-size: 20px; top: 4px; }

/* Numbered steps */
.steps { counter-reset: none; }
.step-num { position: absolute; top: 22px; right: 30px; font: 700 64px Cinzel, Georgia, serif; color: var(--accent); opacity: .22; line-height: 1; }

/* ── Links & buttons ─────────────────────── */
.primer-link { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin-top: auto; padding-top: 26px; text-decoration: none; font: 600 22px Outfit, sans-serif; color: var(--gold); }
.primer-link::after { content: '→'; transition: transform .2s; }
.primer-link:hover { color: #fff; }
.primer-link:hover::after { transform: translateX(5px); }
.primer-actions { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 40px; }
.primer-btn { display: inline-flex; align-items: center; padding: 18px 30px; border-radius: 12px; border: 1px solid #e2c06a88; background: #0a0612aa; color: var(--gold); text-decoration: none; font: 600 24px Outfit, sans-serif; letter-spacing: .02em; transition: background .2s, color .2s; }
.primer-btn:hover { background: #e2c06a22; color: #fff; }
.primer-btn--primary { background: linear-gradient(135deg, #f3d98a, #d9a94a); color: #1a1028; border-color: transparent; box-shadow: 0 8px 30px #e2c06a40; }
.primer-btn--primary:hover { background: linear-gradient(135deg, #fff0bf, #e8bb5c); color: #1a1028; }

/* ── Title-slide chapter strip ───────────── */
.chapter-strip { display: flex; gap: 0; margin: 44px 0 0; padding: 0; list-style: none; font: 600 20px Outfit, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #ddd0ea; }
.chapter-strip li { display: flex; align-items: center; gap: 12px; padding: 0 28px; border-left: 1px solid var(--line); }
.chapter-strip li:first-child { padding-left: 0; border-left: 0; }
.chapter-strip span { font-family: Cinzel, Georgia, serif; color: var(--gold); letter-spacing: 0; }

/* ── Timeline (history) ──────────────────── */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; position: relative; }
.timeline::before { content: ''; position: absolute; top: 15px; left: 8px; right: 8px; height: 2px; background: linear-gradient(90deg, var(--gold-2), #c8a0ff 60%, var(--teal)); opacity: .55; }
.timeline li { position: relative; padding-top: 52px; }
.timeline li::before { content: ''; position: absolute; top: 6px; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); border: 2px solid var(--gold-2); box-shadow: 0 0 0 5px #e2c06a1a; }
.timeline li.is-now::before { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 0 6px #5ec8c033, 0 0 24px #5ec8c0aa; }
.timeline__when { display: block; font: 700 16px Outfit, sans-serif; text-transform: uppercase; letter-spacing: .18em; color: #c8a0ff; margin-bottom: 12px; }
.timeline li.is-now .timeline__when { color: var(--teal); }
.timeline h3 { font-size: 28px; min-height: 2.5em; }
.timeline p { font-size: 22px; line-height: 1.55; color: #e2d6ec; }

/* ── A day (six columns) ─────────────────── */
.day { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: linear-gradient(90deg, #f3d98a12, #b794f414 55%, #0a061280); }
.day li { padding: 34px 26px 36px; border-left: 1px solid var(--line-soft); }
.day li:first-child { border-left: 0; }
.day li.is-night { background: #0a0612a8; }
.day__when { display: block; font: 700 15px Outfit, sans-serif; text-transform: uppercase; letter-spacing: .16em; color: var(--gold-2); margin-bottom: 14px; }
.day li.is-night .day__when { color: #c8a0ff; }
.day h3 { font-size: 26px; margin-bottom: 14px; min-height: 2.5em; }
.day p { font-size: 21px; line-height: 1.55; color: #e2d6ec; }

/* ── Arrival letter ──────────────────────── */
.letter { margin: 0; padding: 44px 48px; border-radius: 6px; background: linear-gradient(180deg, #f5ead2, #e9d8b4); color: #3a2a18; box-shadow: 0 20px 60px #0008, inset 0 0 60px #a0782a33; transform: rotate(-.6deg); display: flex; flex-direction: column; gap: 18px; }
.letter p { font-size: 25px; line-height: 1.55; }
.letter em { color: #6a2e8a; font-weight: 600; }
.letter__head { font: 600 16px Cinzel, Georgia, serif !important; letter-spacing: .14em; text-transform: uppercase; color: #7a5a2a; border-bottom: 1px solid #7a5a2a55; padding-bottom: 14px; }
.letter figcaption { margin-top: auto; font: italic 24px Lora, Georgia, serif; color: #5a3e1e; text-align: right; }

/* ── Places (facility tiles) ─────────────── */
.places { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.place { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #1a1028c8; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.place:hover { border-color: #e2c06a99; transform: translateY(-3px); }
.place img { width: 100%; height: 190px; object-fit: cover; display: block; }
.place__body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.place__body b { font: 600 24px Cinzel, Georgia, serif; color: var(--gold); }
.place__body span { font-size: 19px; line-height: 1.5; color: #ddd0ea; }

/* ── Faculty ─────────────────────────────── */
.leaders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.person { display: flex; gap: 28px; align-items: center; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: #1a1028c8; text-decoration: none; color: inherit; transition: border-color .2s; }
.person:hover { border-color: #e2c06a99; }
.person__portrait { width: 150px; height: 150px; flex: none; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 2px solid #e2c06a88; box-shadow: 0 0 0 6px #e2c06a14; }
.person__body { display: flex; flex-direction: column; gap: 6px; }
.person__body b { font: 600 28px Cinzel, Georgia, serif; color: var(--gold); }
.person__title { font: 700 15px Outfit, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #c8a0ff; }
.person__line { font-size: 21px; line-height: 1.5; color: #e2d6ec; margin-top: 6px; }

/* ── Rules ───────────────────────────────── */
.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 40px; counter-reset: rule; }
.rules li { counter-increment: rule; position: relative; padding: 24px 28px 24px 96px; border: 1px solid var(--line-soft); border-radius: 14px; background: #1a10289c; }
.rules li::before { content: counter(rule, upper-roman); position: absolute; left: 26px; top: 22px; width: 48px; text-align: center; font: 700 30px Cinzel, Georgia, serif; color: var(--gold-2); }
.rules h3 { font-size: 26px; margin-bottom: 8px; }
.rules p { font-size: 21px; line-height: 1.5; color: #ddd0ea; }

/* ── Secrets ─────────────────────────────── */
.secrets { gap: 22px; }
.secrets .card { padding: 30px 32px; }
.secrets .card::before { left: 32px; }
.secrets h3 { font-size: 27px; margin-bottom: 10px; }
.secrets p { font-size: 21px; line-height: 1.5; }

/* ── Houses ──────────────────────────────── */
.houses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.house { --house: var(--violet); position: relative; padding: 26px 30px 24px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(160deg, color-mix(in srgb, var(--house) 16%, transparent), transparent 55%), #1a1028d0; display: flex; flex-direction: column; overflow: hidden; }
.house::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--house); }
.house__head { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.house .house-crest { width: 72px; height: 72px; object-fit: contain; flex: none; filter: drop-shadow(0 4px 12px #0008); }
.house h3 { font-size: 32px; margin: 0; }
.house__stat { display: inline-block; margin-top: 4px; font: 700 15px Outfit, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: color-mix(in srgb, var(--house) 65%, white); }
.house__motto { font: italic 23px/1.45 Lora, Georgia, serif; color: #fff; margin-bottom: 8px; }
.house__desc { font-size: 19px; line-height: 1.5; color: var(--muted); margin-bottom: 16px; }
.house__master { margin-top: auto; padding-top: 14px; min-height: 0; border-top: 1px solid var(--line-soft); font: 600 18px Outfit, sans-serif; color: #eadff5; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.house__master span { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: color-mix(in srgb, var(--house) 60%, white); width: 100%; }
.house__master i { font: italic 16px Lora, Georgia, serif; color: var(--muted); }

/* ── Opening prompt ──────────────────────── */
.prompt { margin-top: 34px; padding: 26px 32px; border-radius: 14px; border: 1px dashed #e2c06a66; background: #e2c06a0d; font: italic 25px/1.5 Lora, Georgia, serif; color: #f4ecf8; }
.prompt span { display: block; font: 700 15px Outfit, sans-serif; font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 8px; }

/* ── Chrome, progress, nav ───────────────── */
.chrome { position: absolute; bottom: 42px; left: 104px; right: 104px; display: flex; justify-content: space-between; z-index: 6; pointer-events: none; color: var(--muted); font: 16px Outfit, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
#chapter-name { color: #c8a0ffcc; }
.progress { position: absolute; bottom: 0; left: 0; right: 0; height: 6px; z-index: 6; display: flex; gap: 4px; background: #0a0612; }
.progress__seg { flex: var(--n) 1 0; background: #2a1d3e; position: relative; overflow: hidden; }
.progress__seg span { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #c8a0ff, #e2c06a); transition: width .25s; }
.primer-nav { position: absolute; z-index: 8; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; border-radius: 10px; border: 1px solid var(--line); background: #120a1cbb; color: var(--gold); font: 32px Georgia, serif; }
.primer-nav--prev { left: 12px; }
.primer-nav--next { right: 12px; }
.primer-nav:disabled { opacity: .2; cursor: default; }
.primer-nav:not(:disabled):hover { background: #b794f440; }

/* ── Overlays ────────────────────────────── */
.overlay { position: fixed; inset: 60px 0 0; z-index: 40; display: grid; place-items: center; background: #050309d9; padding: 24px; backdrop-filter: blur(12px); }
.box { width: min(100%, 960px); max-height: 100%; overflow-y: auto; position: relative; padding: 36px; background: #1a1028; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 90px #0008; }
.box h3 { font-size: 25px; padding-right: 30px; }
.box li { font-size: 16px; line-height: 1.9; margin-bottom: 12px; }
.box ul { padding-left: 22px; }
kbd { font: 14px Outfit, sans-serif; border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; color: var(--gold); }
.overlay__close { position: absolute; right: 16px; top: 12px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); font-size: 28px; }
.toc { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.toc__chapter { grid-column: 1 / -1; margin: 14px 0 2px; font: 700 13px Outfit, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #c8a0ff; border-bottom: 1px solid var(--line-soft); padding-bottom: 6px; }
.toc__chapter:first-child { margin-top: 0; }
.toc button { text-align: left; border: 1px solid transparent; background: #120a1c77; border-radius: 6px; color: #eee4f3; padding: 10px 12px; font: 16px/1.45 Outfit, sans-serif; }
.toc button span { color: #c4b0d499; margin-right: 8px; font-variant-numeric: tabular-nums; }
.toc button:hover, .toc button[aria-current="true"] { border-color: var(--line); color: var(--gold); background: #b794f41a; }
.noscript-note { padding: 80px 24px 0; }

/* ── Reading mode: the same slides as a scrolling guide ── */
.reading .viewport { height: auto; overflow: visible; }
.reading .stage { position: static; transform: none !important; width: min(100%, 1200px); height: auto; margin: 0 auto; }
.reading .slide { position: relative; display: block; padding: 64px 56px; min-height: 0; overflow: visible; animation: none; scroll-margin-top: 60px; }
.reading .slide.bleed { min-height: 620px; display: flex; }
.reading .content { height: auto; width: 100%; }
.reading .content--bleed { padding: 120px 0 24px; }
.reading h1 { font-size: clamp(46px, 7vw, 86px); }
.reading h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 28px; }
.reading h2.h-display { font-size: clamp(38px, 6vw, 68px); }
.reading h3 { font-size: 22px; margin-bottom: 10px; }
.reading .kicker { font-size: 13px; letter-spacing: .2em; margin-bottom: 14px; }
.reading .chapter-mark { font-size: 17px; }
.reading .lede { font-size: 21px; }
.reading .lede--wide { margin-bottom: 24px; }
.reading .pull { font-size: 20px; }
.reading .tiny { font-size: 16px; }
.reading .note { margin-top: 20px; }
.reading .motto { font-size: 19px; }
.reading .fineprint { font-size: 13px; }
.reading .rule { margin: 22px 0; }
.reading .primer-actions { margin-top: 28px; }
.reading .card { padding: 24px; }
.reading .card::before { left: 24px; }
.reading .card.has-art { padding-top: 0; }
.reading .card-art { width: calc(100% + 48px); margin: 0 -24px 20px; height: 180px; }
.reading .card .card-art--short { width: 100%; margin: 16px 0 0; height: 140px; }
.reading .card p, .reading .ticks li { font-size: 17px; }
.reading .ticks li { padding-left: 28px; }
.reading .ticks li::before { font-size: 14px; top: 2px; }
.reading .tag { font-size: 12px; margin-bottom: 10px; }
.reading .badge { font-size: 11px; padding: 3px 8px; }
.reading .step-num { font-size: 44px; top: 16px; right: 20px; }
.reading .primer-link { font-size: 16px; padding-top: 18px; }
.reading .primer-btn { font-size: 17px; padding: 13px 22px; }
.reading .grid, .reading .places, .reading .leaders, .reading .houses { gap: 16px; }
.reading .rules-body { margin: 0; }
.reading .chapter-strip { font-size: 13px; margin-top: 28px; flex-wrap: wrap; row-gap: 10px; }
.reading .chapter-strip li { padding: 0 16px; }
.reading .chapter-strip li:first-child { padding-left: 0; }
.reading .timeline { gap: 16px; }
.reading .timeline__when, .reading .day__when { font-size: 11px; }
.reading .timeline h3, .reading .day h3 { font-size: 19px; min-height: 0; }
.reading .timeline p, .reading .day p { font-size: 15px; }
.reading .day li { padding: 22px 16px; }
.reading .letter { padding: 30px 32px; }
.reading .letter p { font-size: 18px; }
.reading .letter__head { font-size: 12px !important; }
.reading .letter figcaption { font-size: 18px; }
.reading .split, .reading .stack { gap: 16px; }
.reading .place img { height: 130px; }
.reading .place__body { padding: 14px 16px 16px; }
.reading .place__body b { font-size: 17px; }
.reading .place__body span { font-size: 14px; }
.reading .person { gap: 18px; padding: 18px; }
.reading .person__portrait { width: 96px; height: 96px; }
.reading .person__body b { font-size: 19px; }
.reading .person__title { font-size: 11px; }
.reading .person__line { font-size: 15px; }
.reading .rules { gap: 14px 20px; }
.reading .rules li { padding: 18px 20px 18px 68px; }
.reading .rules li::before { font-size: 20px; left: 16px; width: 36px; top: 18px; }
.reading .rules h3 { font-size: 18px; }
.reading .rules p, .reading .secrets p { font-size: 15px; }
.reading .secrets h3 { font-size: 19px; }
.reading .secrets .card { padding: 22px 24px; }
.reading .house { padding: 20px 22px; }
.reading .house .house-crest { width: 52px; height: 52px; }
.reading .house h3 { font-size: 22px; }
.reading .house__stat { font-size: 11px; }
.reading .house__motto { font-size: 17px; }
.reading .house__desc { font-size: 14px; }
.reading .house__master { font-size: 14px; }
.reading .house__master span { font-size: 10px; }
.reading .house__master i { font-size: 13px; }
.reading .prompt { font-size: 18px; padding: 18px 22px; margin-top: 22px; }
.reading .prompt span { font-size: 11px; }
.reading .chrome, .reading .progress, .reading .primer-nav { display: none; }

@keyframes arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .reading .timeline, .reading .day { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reading .timeline::before { display: none; }
  .reading .places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reading .houses, .reading .leaders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reading .split { grid-template-columns: 1fr; }
  .reading .day li:nth-child(odd) { border-left: 0; }
  .reading .day li { border-top: 1px solid var(--line-soft); }
}
@media (max-width: 700px) {
  .primer-toolbar { padding: 0 10px; gap: 6px; font-size: 12px; }
  .primer-toolbar__actions { gap: 4px; }
  .primer-toolbar__btn { padding: 7px 8px; font-size: 12px; }
  #fullscreen-btn { display: none; }
  .reading .slide { padding: 46px 20px; }
  .reading .slide.bleed { min-height: 540px; }
  .reading .content--bleed { padding: 110px 8px 20px; }
  .reading .slide::before { inset: 8px; }
  .reading .slide::after { inset: 13px; }
  .reading .grid, .reading .places, .reading .houses, .reading .leaders, .reading .rules, .reading .timeline, .reading .day { grid-template-columns: 1fr; }
  .reading .day li { border-left: 0; }
  .reading .rule { width: 80%; }
  .reading .primer-actions { gap: 12px; }
  .reading .kicker { letter-spacing: .12em; }
  .reading .person__portrait { width: 76px; height: 76px; }
  .reading .letter { transform: none; }
  .reading .timeline::before { display: block; top: 10px; bottom: 10px; left: 9px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--gold-2), #c8a0ff 60%, var(--teal)); }
  .reading .timeline li { padding: 0 0 0 40px; }
  .reading .timeline li::before { top: 2px; }
  .reading .person { align-items: flex-start; }
  .box { padding: 28px 20px; }
  .toc { grid-template-columns: 1fr; }
  .primer-nav { width: 32px; height: 48px; }
  .primer-nav--prev { left: 2px; }
  .primer-nav--next { right: 2px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .primer-toolbar, .primer-nav, .chrome, .progress, .overlay { display: none !important; }
  .viewport { margin: 0; height: auto; overflow: visible; }
  .stage { position: static; transform: none !important; width: 100%; height: auto; }
  .slide { position: relative; display: block; min-height: 100vh; break-after: page; }
}
