
:root {
    --ink: #0E0D0B;
    --sheet: #17150F;
    --sheet-2: #1E1B15;
    --sheet-3: #262219;
    --paper: #EFE8D8;
    --paper-dim: #D9D1BF;
    --muted: #A39A87;
    --muted-2: #7E7667;
    --rule: #37322A;

    --rule-strong: #4A4337;
    --emerald: #127A58;
    --emerald-deep: #0F6B4D;
    --emerald-press: #0B5A40;
    --emerald-hi: #2FA97F;
    --brass: #B4915A;
    --brass-dim: #7D6641;
    --signal: #E58B6E;
    --signal-ground: #2A1812;
    --ok: #6FC39E;

    --kova-542: 'Bodoni Moda', 'Didot', 'Bodoni 72', 'Libre Bodoni', Georgia, 'Times New Roman', serif;
    --kova-7bd: 'Source Sans 3', 'Source Sans Pro', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --kova-751: 'IBM Plex Mono', 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;

    --step--2: clamp(0.72rem, 0.70rem + 0.08vw, 0.78rem);
    --step--1: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
    --kova-1ff: clamp(1.0625rem, 1.02rem + 0.2vw, 1.125rem);
    --kova-e6e: clamp(1.2rem, 1.1rem + 0.45vw, 1.42rem);
    --kova-9ed: clamp(1.42rem, 1.22rem + 0.9vw, 1.9rem);
    --kova-8f0: clamp(1.7rem, 1.36rem + 1.5vw, 2.6rem);
    --kova-b2f: clamp(1.95rem, 1.4rem + 2.6vw, 3.6rem);
    --step-hero: clamp(2.1rem, 1.2rem + 4.6vw, 5.6rem);

    --lh-tight: 1.04;
    --lh-snug: 1.18;
    --lh-body: 1.6;
    --track-display: -0.018em;
    --track-hero: -0.028em;
    --track-mono: 0.08em;
    --measure: 64ch;
    --measure-narrow: 46ch;

    --s-0: 4px;
    --s-1: 8px;
    --s-2: 16px;
    --s-3: 24px;
    --s-4: 40px;
    --s-5: 64px;
    --s-6: 104px;
    --section: clamp(64px, 5vw + 40px, 104px);
    --section-tight: clamp(40px, 3vw + 24px, 64px);

    --shell: 1320px;
    --shell-narrow: 880px;
    --gutter: clamp(16px, 4vw, 40px);
    --col-gap: clamp(16px, 2.4vw, 32px);

    --radius: 0;
    --radius-input: 2px;
    --hair: 1px solid var(--rule);
    --hair-brass: 1px solid var(--brass);
    --hair-strong: 1px solid var(--rule-strong);

    --shadow-plate: 0 1px 0 rgba(239, 232, 216, 0.04) inset, 0 18px 40px -24px rgba(0, 0, 0, 0.85);
    --shadow-lift: 0 10px 24px -14px rgba(0, 0, 0, 0.9);
    --shadow-deep: 0 30px 70px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(239, 232, 216, 0.04);
    --vignette: radial-gradient(120% 90% at 50% 40%, rgba(14, 13, 11, 0) 55%, rgba(14, 13, 11, 0.55) 100%);

    --dur-instant: 90ms;
    --dur-fast: 140ms;
    --dur: 180ms;
    --dur-slow: 420ms;
    --dur-slower: 900ms;
    --dur-ticker: 70s;
    --ease-std: cubic-bezier(0.2, 0.7, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-editorial: cubic-bezier(0.22, 0.61, 0.36, 1);
    --rise: 24px;
    --depth-scale: 1;

    --z-base: 1;
    --z-raise: 10;
    --z-header: 50;
    --z-panel: 60;
    --z-consent: 80;
    --z-chat: 90;
    --z-skip: 100;

    --header-h: 72px;
    --consent-h: 0px;

    color-scheme: dark;
}

@media (max-width: 767px) {
    :root { --depth-scale: 0.5; }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    scroll-padding-block-start: calc(var(--header-h) + 24px);
    background: var(--ink);
    hanging-punctuation: first allow-end last;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--ink);
    color: var(--paper);

    font-family: var(--kova-7bd);
    font-size: var(--kova-1ff);
    font-weight: 400;
    line-height: var(--lh-body);
    font-kerning: normal;
    font-feature-settings: 'kern' 1, 'liga' 1, 'onum' 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[role='list'], ol[role='list'], .list-bare { list-style: none; padding: 0; margin: 0; }

img, picture, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; border-style: none; }
iframe, embed, object { max-width: 100%; }

input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
textarea { resize: vertical; }
table { border-collapse: collapse; border-spacing: 0; }
hr { border: 0; border-top: var(--hair); margin: var(--s-4) 0; }
[hidden] { display: none !important; }

a {
    color: inherit;
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--brass-dim);
    text-underline-offset: 0.22em;
    transition: color var(--dur-fast) var(--ease-std), text-decoration-color var(--dur-fast) var(--ease-std);
}
a:hover { color: var(--paper); text-decoration-color: var(--brass); }
a:active { color: var(--paper-dim); }

:focus { outline: none; }
:focus-visible {
    outline: 2px solid var(--emerald-hi);
    outline-offset: 3px;
}

::selection { background: var(--emerald); color: var(--paper); }

h1, h2, h3, h4, .display {
    font-family: var(--kova-542);
    font-optical-sizing: auto;
    font-weight: 500;
    line-height: var(--lh-snug);
    letter-spacing: var(--track-display);
    color: var(--paper);
    overflow-wrap: break-word;
    text-wrap: balance;
}
h1, .h1 {
    font-size: var(--step-hero);
    line-height: var(--lh-tight);
    letter-spacing: var(--track-hero);
    font-weight: 500;
}
h2, .h2 { font-size: var(--kova-b2f); line-height: 1.06; }
h3, .h3 { font-size: var(--kova-9ed); line-height: 1.14; }
h4, .h4 { font-size: var(--kova-e6e); line-height: 1.22; letter-spacing: -0.008em; }

h5, h6, .h5 {
    font-family: var(--kova-751);
    font-size: var(--step--1);
    font-weight: 500;
    letter-spacing: var(--track-mono);
    text-transform: uppercase;
    color: var(--muted);
}
.h-page { font-size: clamp(1.95rem, 1.2rem + 3.4vw, 4.4rem); line-height: 1.04; letter-spacing: var(--track-hero); }

p { text-wrap: pretty; }
strong, b { font-weight: 600; }
em, i { font-style: italic; }
small { font-size: var(--step--1); }
abbr[title] { text-decoration: underline dotted; text-decoration-color: var(--muted-2); }
code, kbd, samp, pre { font-family: var(--kova-751); font-size: 0.92em; }

.dek {
    font-family: var(--kova-542);
    font-style: italic;
    font-weight: 400;
    font-size: var(--kova-e6e);
    line-height: 1.38;
    color: var(--paper-dim);
    max-width: 40ch;
}
.lede { font-size: var(--kova-e6e); line-height: 1.5; color: var(--paper-dim); max-width: 52ch; }
.meta, .kicker, .mono {
    font-family: var(--kova-751);
    font-size: var(--step--1);
    font-weight: 400;
    letter-spacing: var(--track-mono);
    line-height: 1.5;
}
.meta, .kicker { text-transform: uppercase; color: var(--muted); }
.kicker { color: var(--brass); font-weight: 500; }
.kicker--emerald { color: var(--emerald-hi); }
.muted { color: var(--muted); }
.num { font-family: var(--kova-751); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.italic { font-family: var(--kova-542); font-style: italic; font-weight: 400; }

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: var(--kova-8f0); margin-top: 1.9em; }
.prose h3 { font-size: var(--kova-9ed); margin-top: 1.6em; }
.prose h4 { font-size: var(--kova-e6e); margin-top: 1.4em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--brass); font-family: var(--kova-751); font-size: 0.86em; }
.prose a { color: var(--paper); text-decoration-color: var(--emerald-hi); }
.prose a:hover { text-decoration-color: var(--paper); }
.prose blockquote {
    border-left: var(--hair-brass);
    padding: 0.2em 0 0.2em 1.1em;
    font-family: var(--kova-542);
    font-style: italic;
    font-size: var(--kova-e6e);
    line-height: 1.42;
    color: var(--paper-dim);
}
.prose dl { display: grid; gap: 0.6em 1.4em; grid-template-columns: minmax(0, 12ch) minmax(0, 1fr); }
.prose dt { font-family: var(--kova-751); font-size: var(--step--1); text-transform: uppercase; letter-spacing: var(--track-mono); color: var(--muted); padding-top: 0.2em; }
.prose dd { margin: 0; }
.prose code { background: var(--sheet-2); padding: 0.08em 0.36em; border: var(--hair); }
.prose pre { background: var(--sheet); border: var(--hair); padding: var(--s-2); overflow-x: auto; max-width: 100%; }
.prose table { width: 100%; font-size: var(--step--1); }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: var(--hair); vertical-align: top; }
.prose th { font-family: var(--kova-751); font-weight: 500; text-transform: uppercase; letter-spacing: var(--track-mono); color: var(--muted); }
.prose hr { border-top: var(--hair-brass); width: 64px; margin: 2em 0; }
.prose > p:first-child.dropcap::first-letter,
.dropcap::first-letter {
    float: left;
    font-family: var(--kova-542);
    font-weight: 500;
    font-size: 3.6em;
    line-height: 0.82;
    padding: 0.06em 0.1em 0 0;
    color: var(--paper);
}

.shell {
    width: 100%;
    max-width: calc(var(--shell) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.shell--narrow { max-width: calc(var(--shell-narrow) + var(--gutter) * 2); }
.shell--bleed { max-width: none; }

.section { padding-block: var(--section); }
.section--tight { padding-block: var(--section-tight); }
.section--sheet { background: var(--sheet); }
.section--ruled { border-top: var(--hair); }
.section--brass { border-top: var(--hair-brass); }

.stack { display: flex; flex-direction: column; gap: var(--stack-gap, var(--s-2)); }
.stack > * { min-width: 0; }
.stack--sm { --stack-gap: var(--s-1); }
.stack--lg { --stack-gap: var(--s-3); }
.stack--xl { --stack-gap: var(--s-4); }

.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cluster-gap, var(--s-2)); }
.cluster > * { min-width: 0; }
.cluster--tight { --cluster-gap: var(--s-1); }

.split { display: grid; gap: var(--col-gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
    .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .split--wide-left { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
    .split--wide-right { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    row-gap: var(--col-gap);
}
.grid-12 > * { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 768px) {
    .grid-12 > .md-3 { grid-column: span 3; }
    .grid-12 > .md-4 { grid-column: span 4; }
    .grid-12 > .md-5 { grid-column: span 5; }
    .grid-12 > .md-6 { grid-column: span 6; }
    .grid-12 > .md-7 { grid-column: span 7; }
    .grid-12 > .md-8 { grid-column: span 8; }
    .grid-12 > .md-12 { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
    .grid-12 > .lg-2 { grid-column: span 2; }
    .grid-12 > .lg-3 { grid-column: span 3; }
    .grid-12 > .lg-4 { grid-column: span 4; }
    .grid-12 > .lg-5 { grid-column: span 5; }
    .grid-12 > .lg-6 { grid-column: span 6; }
    .grid-12 > .lg-7 { grid-column: span 7; }
    .grid-12 > .lg-8 { grid-column: span 8; }
    .grid-12 > .lg-9 { grid-column: span 9; }
    .grid-12 > .lg-12 { grid-column: 1 / -1; }
}

.grid-ruled {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    border-top: var(--hair);
}
.grid-ruled > * { min-width: 0; padding: var(--s-3) 0; border-bottom: var(--hair); }
@media (min-width: 768px) {
    .grid-ruled { grid-template-columns: repeat(var(--cols-md, 2), minmax(0, 1fr)); }
    .grid-ruled > * { padding: var(--s-3) var(--col-gap); border-left: var(--hair); }
    .grid-ruled > *:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
}
@media (min-width: 1024px) {
    .grid-ruled { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
    .grid-ruled > *:nth-child(2n + 1) { border-left: var(--hair); padding-left: var(--col-gap); }
    .grid-ruled > *:nth-child(var(--cols, 3)n + 1) { border-left: 0; padding-left: 0; }
    .grid-ruled--3 > *:nth-child(3n + 1),
    .grid-ruled--4 > *:nth-child(4n + 1),
    .grid-ruled--2 > *:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
    .grid-ruled--2 { --cols: 2; }
    .grid-ruled--3 { --cols: 3; }
    .grid-ruled--4 { --cols: 4; }
}

.rule { border: 0; border-top: var(--hair); margin: 0; }
.rule--brass { border-top: var(--hair-brass); }
.rule--double { border-top: var(--hair-brass); box-shadow: 0 3px 0 -2px var(--brass-dim); height: 4px; }

.frame { position: relative; overflow: hidden; background: var(--sheet); }
.frame > img { width: 100%; height: 100%; object-fit: cover; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-1x1 { aspect-ratio: 1 / 1; }

[data-depth] { will-change: transform; }

.visually-hidden,
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--s-1); }
.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.measure { max-width: var(--measure); }
.measure-narrow { max-width: var(--measure-narrow); }

@media (max-width: 400px) {
    h1, .h1, h2, .h2 { hyphens: auto; -webkit-hyphens: auto; }
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --dur-instant: 0ms;
        --dur-fast: 0ms;
        --dur: 0ms;
        --dur-slow: 0ms;
        --dur-slower: 0ms;
        --rise: 0px;
        --depth-scale: 0;
    }
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    [data-depth] { transform: none !important; will-change: auto; }
}

@media print {
    :root { --ink: #FFF; --sheet: #FFF; --paper: #111; --muted: #444; --rule: #BBB; }
    body { background: #FFF; color: #111; }
    a { color: #111; }
}
