/* Neoclassic visual identity. One hue drives every accent through OKLCH, so
   rotating --hue recolours the whole system. Light and dark are two neutral
   ladders under the same accents. Fonts load from <head>, see index.html. */

:root {
  --hue: 168;            /* phosphor emerald, measured from the Lady Justice palette reference */
  --chroma: 0.16;        /* accent saturation, refined with the slider */

  /* accent ladder, light to dark, all from the one hue */
  --accent-050: oklch(97% calc(var(--chroma) * 0.18) var(--hue));
  --accent-100: oklch(93% calc(var(--chroma) * 0.40) var(--hue));
  --accent-200: oklch(88% calc(var(--chroma) * 0.62) var(--hue));
  --accent-300: oklch(82% calc(var(--chroma) * 0.85) var(--hue));
  --accent-400: oklch(76% var(--chroma) var(--hue));
  --accent-500: oklch(68% var(--chroma) var(--hue));
  --accent-600: oklch(58% calc(var(--chroma) * 0.92) var(--hue));
  --accent-700: oklch(48% calc(var(--chroma) * 0.80) var(--hue));
  --accent-800: oklch(38% calc(var(--chroma) * 0.62) var(--hue));
  --accent-900: oklch(26% calc(var(--chroma) * 0.40) var(--hue));

  /* neutrals carry a whisper of the hue */
  --n-000: oklch(99.4% 0.003 var(--hue));
  --n-050: oklch(97.5% 0.004 var(--hue));
  --n-100: oklch(94.5% 0.006 var(--hue));
  --n-200: oklch(89% 0.008 var(--hue));
  --n-300: oklch(80% 0.010 var(--hue));
  --n-400: oklch(66% 0.012 var(--hue));
  --n-500: oklch(52% 0.014 var(--hue));
  --n-600: oklch(40% 0.014 var(--hue));
  --n-700: oklch(30% 0.014 var(--hue));
  --n-800: oklch(22% 0.014 var(--hue));
  --n-900: oklch(15% 0.014 var(--hue));
  --n-950: oklch(9% 0.012 var(--hue));
  --black: oklch(3% 0.01 var(--hue));

  /* lineage accents, fixed hues, used sparingly. gold for the Bitcoin side, purple for the Ethereum side */
  --gold: oklch(80% 0.14 85); --purple: oklch(70% 0.16 300);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --t-xs: .75rem; --t-sm: .875rem; --t-base: 1rem; --t-lg: 1.125rem; --t-xl: 1.375rem; --t-2xl: 1.75rem; --t-3xl: 2.25rem; --t-4xl: 3rem; --t-5xl: 4rem;
  --radius: 10px; --measure: 52ch; /* 52ch of Inter is about 68 characters */
}

/* Light mode: paper surfaces, dark ink, accent as a shade dark enough to carry white text. */
[data-theme="light"] {
  --bg: var(--n-000); --bg-2: var(--n-050); --bg-3: var(--n-100);
  --line: var(--n-200); --line-2: var(--n-300);
  --ink: var(--n-900); --ink-2: var(--n-600); --ink-3: var(--n-500);
  --accent: var(--accent-700); --accent-ink: var(--accent-700); --accent-soft: var(--accent-100); --accent-glow: var(--accent-300);
  --on-accent: var(--n-000);
  --panel: var(--black); --panel-ink: var(--accent-300);
  --gold: oklch(62% 0.13 80); --purple: oklch(52% 0.18 300);
  --danger: oklch(50% .18 25);
  color-scheme: light;
}
/* Dark mode: the phosphor register, near-black, glow accents. */
[data-theme="dark"] {
  --bg: var(--black); --bg-2: var(--n-950); --bg-3: var(--n-900);
  --line: var(--n-800); --line-2: var(--n-700);
  --ink: var(--accent-050); --ink-2: var(--n-300); --ink-3: var(--n-400);
  --accent: var(--accent-400); --accent-ink: var(--accent-300); --accent-soft: var(--accent-900); --accent-glow: var(--accent-500);
  --on-accent: var(--black);
  --panel: var(--n-950); --panel-ink: var(--accent-300);
  --danger: oklch(70% .17 25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { margin: 0; font-variant-numeric: tabular-nums; }
a { color: var(--accent-ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: .15em; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: var(--t-4xl); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-xl); letter-spacing: -0.01em; margin: 2.5rem 0 .75rem; }
h3 + p { margin-top: 0; }
p { margin: .75rem 0; }
p, li { text-wrap: pretty; }
code, .mono { font-family: var(--font-mono); font-size: .9em; }
small, .muted { color: var(--ink-3); }
.muted-2 { color: var(--ink-2); }
img { max-width: 100%; height: auto; display: block; }
.probe { position: absolute; left: -9999px; }

/* layout */
.page { max-width: 76rem; margin: 0 auto; padding: 0 2rem 6rem; }
.controls { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; padding: .75rem 0; margin-bottom: 2rem; background: color-mix(in oklab, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.controls { flex-direction: column; align-items: stretch; gap: .5rem; }
.controls .row { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.controls label { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink-2); }
.controls .fontpick { display: inline-flex; align-items: center; gap: .4rem; }
.controls .fontpick label { font-size: var(--t-xs); color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.controls .fontpick input { font: inherit; font-size: var(--t-sm); padding: .3rem .6rem; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-2); color: var(--ink); width: 11rem; }
.controls input[type="range"] { width: 9rem; accent-color: var(--accent); }
.controls button { font: inherit; font-size: var(--t-sm); padding: .35rem .7rem; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-2); color: var(--ink); cursor: pointer; }
.controls .picker { position: relative; display: inline-block; }
.controls .picker-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: .6rem; min-width: 9.5rem; text-align: left; }
.controls .picker-btn[aria-expanded="true"] { border-color: var(--accent); }
.controls .picker-caret { color: var(--ink-3); font-size: .7em; font-family: var(--font-body); }
.controls .picker-list { position: absolute; top: calc(100% + .35rem); left: 0; z-index: 30; margin: 0; padding: .35rem; list-style: none; min-width: 16rem; max-width: calc(100vw - 2rem); max-height: min(60vh, 26rem); overflow-y: auto; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: .75rem; box-shadow: 0 12px 32px rgb(0 0 0 / .35); }
.controls .picker-list.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .1rem .35rem; width: min(58rem, calc(100vw - 2rem)); }
.controls .picker-list.grid .picker-other { grid-column: 1 / -1; }
.controls .picker-list[hidden] { display: none; }
.controls .picker-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .45rem .7rem; border-radius: .5rem; font-size: var(--t-lg); line-height: 1.25; color: var(--ink); white-space: nowrap; cursor: pointer; }
.controls .picker-list li:hover, .controls .picker-list li:focus { background: var(--bg-3); outline: none; }
.controls .picker-list li[aria-selected="true"] { color: var(--accent); }
.controls .picker-list li[aria-selected="true"]::after { content: "●"; font-family: var(--font-body); font-size: .5em; }
.controls .picker-list .picker-other { margin-top: .35rem; padding-top: .6rem; border-top: 1px solid var(--line); border-radius: 0; font-size: var(--t-sm); color: var(--ink-2); }
.controls button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.controls .swatch-dot { width: .75rem; height: .75rem; border-radius: 50%; display: inline-block; margin-right: .35rem; vertical-align: -1px; }
.controls .spacer { flex: 1; }
.controls .readout { font-family: var(--font-mono); color: var(--ink-3); }
@media screen and (max-width: 80rem) { .controls .readout { display: none; } }
@media screen and (max-width: 60rem) { .controls { position: static; margin-bottom: 1.5rem; } .controls .readout, .controls .spacer { display: none; } }

section { padding: 3.5rem 0; border-top: 1px solid var(--line); }
section > header { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: baseline; margin-bottom: 1.5rem; }
section > header .num { font-family: var(--font-mono); color: var(--accent-ink); font-size: var(--t-sm); }
.lede { font-size: var(--t-lg); color: var(--ink-2); max-width: var(--measure); }
.prose { max-width: var(--measure); }
.grid { display: grid; gap: 1.25rem; }
.grid > * { min-width: 0; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.five { grid-template-columns: repeat(5, 1fr); }
@media screen and (max-width: 60rem) { .grid.two, .grid.three, .grid.five { grid-template-columns: repeat(2, 1fr); } .page { padding: 0 1.25rem 4rem; } h1 { font-size: var(--t-3xl); } }
@media screen and (max-width: 36rem) { .grid.two, .grid.three, .grid.five { grid-template-columns: 1fr; } .controls input[type='range'] { width: 8rem; } }

/* cover */
.cover { padding: 5rem 0 3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.cover h1 { font-size: var(--t-5xl); }
.cover .mark { width: 100%; max-width: 20rem; justify-self: center; color: var(--accent); filter: drop-shadow(0 0 24px color-mix(in oklab, var(--accent-glow) 55%, transparent)); }
[data-theme="light"] .cover .mark { filter: none; }
.cover .eyebrow { font-family: var(--font-mono); font-size: var(--t-sm); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 1rem; }
.cover .subtitle { font-family: var(--font-display); font-weight: 400; font-size: var(--t-xl); color: var(--ink-2); margin: .5rem 0 1.25rem; }
.wordmark { font-family: var(--font-display); font-weight: 500; font-size: var(--t-xl); letter-spacing: .08em; text-transform: uppercase; }
@media screen and (max-width: 60rem) { .cover { grid-template-columns: 1fr; padding-top: 3rem; } }

/* logo section */
.logo-tiles .tile { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1rem; display: grid; place-items: center; min-height: 14rem; }
.logo-tiles .tile svg { width: 5.5rem; height: auto; }
.tile.on-light { background: var(--n-000); color: var(--accent-700); }
.tile.on-dark { background: var(--black); color: var(--accent-400); }
.tile.on-accent { background: var(--accent); color: var(--on-accent); }
.tile.mono-dark { background: var(--n-000); color: var(--n-900); }
.tile.mono-light { background: var(--black); color: var(--n-000); }
.tile figcaption { font-family: var(--font-mono); font-size: var(--t-xs); margin-top: 1rem; text-align: center; }
.tile.on-dark figcaption, .tile.mono-light figcaption { color: var(--n-400); }
.tile.on-light figcaption, .tile.mono-dark figcaption { color: var(--n-500); }
.tile.on-accent figcaption { color: var(--on-accent); opacity: .8; }
.lockup { margin: 2rem 0 0; display: flex; align-items: center; gap: 1rem; color: var(--accent); }
.lockup svg { width: 2.2rem; height: auto; }
.lockup figcaption { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--ink-3); margin-left: 1rem; }
.clearspace { position: relative; display: inline-block; padding: 3rem; border: 1px solid var(--line-2); border-radius: 0; outline: 1px dashed var(--line-2); outline-offset: -3rem; color: var(--accent); }
.clearspace svg { width: 6rem; height: auto; display: block; }
.clearspace .x { position: absolute; font-family: var(--font-mono); font-size: var(--t-xs); color: var(--ink-3); }
.clearspace .x.t { top: 1.2rem; left: 50%; transform: translateX(-50%); } .clearspace .x.b { bottom: 1.2rem; left: 50%; transform: translateX(-50%); }
.clearspace .x.l { left: 1.2rem; top: 50%; transform: translateY(-50%); } .clearspace .x.r { right: 1.2rem; top: 50%; transform: translateY(-50%); }
.minsize { display: flex; gap: 2rem; align-items: flex-end; color: var(--accent); }
.minsize figure { margin: 0; text-align: center; }
.minsize figcaption { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--ink-3); margin-top: .5rem; }
ul.rules { padding-left: 1.2rem; max-width: var(--measure); }
ul.rules li { margin: .35rem 0; }

/* colour */
.ladder { display: grid; grid-template-columns: repeat(10, 1fr); gap: .35rem; }
.ladder .step { border-radius: 6px; height: 4.5rem; min-width: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: .4rem; font-family: var(--font-mono); font-size: var(--t-xs); line-height: 1.3; border: 1px solid color-mix(in oklab, var(--ink) 8%, transparent); }
.ladder .step b { font-weight: 500; }
.roles .role { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.roles .role .chip { height: 5rem; }
.roles .role .meta { padding: .75rem .9rem; font-size: var(--t-sm); }
.roles .role .meta code { display: block; color: var(--ink-3); font-size: var(--t-xs); margin-top: .25rem; }
.contrast { font-family: var(--font-mono); font-size: var(--t-xs); }
.contrast .pass { color: var(--accent-ink); } .contrast .fail { color: var(--danger); }
.table-wrap { overflow-x: auto; }
.scheme-table { width: 100%; min-width: 40rem; border-collapse: collapse; font-size: var(--t-sm); }
.scheme-table th, .scheme-table td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.scheme-table th { font-family: var(--font-mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); font-weight: 500; }
.scheme-table .mono { font-size: var(--t-sm); }
.scheme-table .dot { width: 1.1rem; height: 1.1rem; border-radius: 4px; display: inline-block; vertical-align: -3px; margin-right: .5rem; border: 1px solid var(--line-2); }

/* type */
.type-sample { border-top: 1px solid var(--line); padding: 1.25rem 0; display: grid; grid-template-columns: 15rem 1fr; gap: 1rem; align-items: baseline; }
.type-sample .spec { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--ink-3); }
.type-sample .display { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.type-sample .body { font-family: var(--font-body); max-width: var(--measure); }
.type-sample .mono { font-family: var(--font-mono); }
.families { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.families .fam { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.families .fam .big { font-size: var(--t-3xl); line-height: 1; margin-bottom: .75rem; }
.families .fam .name { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--ink-3); }
@media screen and (max-width: 60rem) { .families { grid-template-columns: 1fr; } .type-sample { grid-template-columns: 1fr; } }

.lineage-sample { font-family: var(--font-display); font-weight: 600; font-size: var(--t-2xl); letter-spacing: -.02em; line-height: 1.2; margin: 1rem 0 .25rem; text-wrap: balance; }
.lineage-sample .gold { color: var(--gold); }
.lineage-sample .purple { color: var(--purple); }

/* imagery */
.gallery figure { margin: 0; }
/* every render is desaturated and re-tinted through the #tint filter, whose ramp app.js sets from the hue and chroma */
.gallery img { border-radius: var(--radius); border: 1px solid var(--line); background: var(--black); filter: url(#tint); }
/* the poster is composed live: the render cropped to 2:3, the mark and the line stacked bottom right, all sized from the sheet width */
.poster { margin: 0 auto 1rem; max-width: 30rem; }
.poster .sheet { position: relative; aspect-ratio: 2 / 3; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--black); container-type: inline-size; }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: url(#tint); }
.poster .stamp { position: absolute; right: 7cqw; bottom: 6cqw; display: flex; flex-direction: column; align-items: flex-end; gap: 4cqw; color: var(--accent-200); filter: drop-shadow(0 0 1.5cqw color-mix(in oklab, var(--accent-500) 55%, transparent)); }
.poster .stamp svg { width: 9cqw; height: auto; display: block; }
.poster .stamp .line { font-family: var(--font-display); font-weight: 600; font-size: 11cqw; line-height: .92; letter-spacing: -.02em; text-transform: uppercase; text-align: right; }
.poster figcaption { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--ink-3); margin-top: .6rem; text-align: center; }
.gallery figcaption { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--ink-3); margin-top: .5rem; }
.prompt { background: var(--panel); color: var(--panel-ink); border-radius: var(--radius); padding: 1.5rem; font-family: var(--font-mono); font-size: var(--t-sm); line-height: 1.6; white-space: pre-wrap; max-height: 28rem; overflow: auto; border: 1px solid var(--line); }
.dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.dodont div { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; }
.dodont h4 { font-family: var(--font-mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem; }
.dodont .do h4 { color: var(--accent-ink); } .dodont .dont h4 { color: var(--danger); }
.dodont ul { padding-left: 1.1rem; margin: 0; } .dodont li { margin: .3rem 0; }
@media screen and (max-width: 36rem) { .dodont { grid-template-columns: 1fr; } }

/* applications */
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media screen and (max-width: 60rem) { .apps { grid-template-columns: 1fr; } }
.app { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.app .label { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--ink-3); padding: .5rem .9rem; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.post { padding: 1.25rem; display: grid; grid-template-columns: 2.75rem 1fr; gap: .9rem; }
.post .avatar { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--black); color: var(--accent-400); display: grid; place-items: center; }
.post .avatar svg { width: 1.4rem; }
.post .who { font-weight: 600; } .post .who span { color: var(--ink-3); font-weight: 400; margin-left: .35rem; }
.post .text { margin: .35rem 0 .75rem; }
.post .stat { border: 1px solid var(--line); border-radius: 8px; padding: .9rem 1rem; font-family: var(--font-mono); font-size: var(--t-sm); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; }
.post .stat b { font-family: var(--font-mono); font-size: var(--t-2xl); font-weight: 500; color: var(--accent-ink); white-space: nowrap; margin-left: auto; }
.banner { background: var(--black); color: var(--accent-300); padding: 2.5rem; display: flex; align-items: center; gap: 1.5rem; min-height: 11rem; background-image: radial-gradient(ellipse at 20% 120%, color-mix(in oklab, var(--accent-glow) 35%, transparent), transparent 55%); }
.banner svg { width: 3.5rem; filter: drop-shadow(0 0 14px color-mix(in oklab, var(--accent-glow) 60%, transparent)); }
.banner .t { font-family: var(--font-display); font-size: var(--t-xl); font-weight: 600; letter-spacing: -0.01em; }
.banner .s { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--accent-500); letter-spacing: .08em; text-transform: uppercase; }
.card { padding: 1.25rem; }
.card .kicker { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.card h4 { font-family: var(--font-display); font-size: var(--t-xl); margin: .35rem 0 .5rem; letter-spacing: -0.02em; }
.card .btn { display: inline-block; margin-top: .75rem; padding: .55rem 1rem; background: var(--accent); color: var(--on-accent); border-radius: 8px; font-weight: 600; text-decoration: none; font-size: var(--t-sm); }
.card .btn.ghost { background: transparent; color: var(--accent-ink); border: 1px solid var(--line-2); margin-left: .5rem; }
@media screen and (max-width: 36rem) { .banner { padding: 1.5rem; flex-wrap: wrap; } }

/* footer */
.foot { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--ink-3); font-family: var(--font-mono); }

/* print: white paper, no controls, each section starts on a new page.
   The tokens repeat the light block so a print from any route matches the light readouts. */
@media print {
  @page { size: A4; margin: 16mm 14mm; }
  :root, [data-theme="dark"], [data-theme="light"] {
    --bg: var(--n-000); --bg-2: var(--n-050); --bg-3: var(--n-100);
    --line: var(--n-200); --line-2: var(--n-300);
    --ink: var(--n-900); --ink-2: var(--n-600); --ink-3: var(--n-500);
    --accent: var(--accent-700); --accent-ink: var(--accent-700); --accent-soft: var(--accent-100); --accent-glow: var(--accent-300);
    --on-accent: var(--n-000);
    --panel: var(--black); --panel-ink: var(--accent-300);
    --gold: oklch(62% 0.13 80); --purple: oklch(52% 0.18 300);
    --danger: oklch(50% .18 25);
    color-scheme: light;
  }
  html { font-size: 11pt; }
  .controls, .no-print { display: none !important; }
  .page { max-width: none; padding: 0; }
  section { page-break-before: always; break-before: page; border: 0; padding: 1rem 0; }
  .roles { grid-template-columns: repeat(6, 1fr) !important; gap: .6rem; }
  .cover { page-break-before: avoid; padding: 2rem 0; grid-template-columns: 1fr 1fr !important; }
  .cover .mark { filter: none; max-width: 9rem; }
  .cover h1 { font-size: var(--t-5xl); }
  .grid.five, .logo-tiles { grid-template-columns: repeat(5, 1fr) !important; gap: .6rem; }
  .grid.three, .families { grid-template-columns: repeat(3, 1fr) !important; }
  .grid.two, .apps, .dodont { grid-template-columns: 1fr 1fr !important; }
  .type-sample { grid-template-columns: 11rem 1fr !important; padding: .6rem 0; }
  .logo-tiles .tile { min-height: 9rem; padding: 1rem .5rem; }
  img { page-break-inside: avoid; break-inside: avoid; max-height: 28vh; width: auto; margin: 0 auto; }
  .gallery img { max-height: none; }
  .poster { max-width: 22rem; }
  .poster img { max-height: none; width: 100%; }
  .prompt { max-height: none; overflow: visible; white-space: pre-wrap; background: none; color: var(--ink); border: 1px solid var(--line-2); font-size: 8pt; line-height: 1.35; padding: .9rem 1rem; columns: 2; column-gap: 1.25rem; }
  .tile, .fam, .app, .role, .dodont div, .type-sample, figure, .clearspace, .minsize { break-inside: avoid; page-break-inside: avoid; }
  h2, h3 { break-after: avoid; page-break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
  a { color: inherit; text-decoration: none; }
  .ladder .step { height: 3.2rem; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* phone overrides that must follow their base rules, so they stay at the end */
@media screen and (max-width: 60rem) { .cover h1 { font-size: var(--t-3xl); } }
@media screen and (max-width: 48rem) { .ladder { grid-template-columns: repeat(5, 1fr); } }
@media screen and (max-width: 36rem) { .cover .mark { max-width: 9rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
