/* ── tokens ──────────────────────────────────────────── */
html,
html[data-mode="ink"] {
    --bg: #1d2021;
    --ink: #d4be98;
    --dim: #bdae93;
    --faint: #928374;
    --line: #32302f;
    --line2: #3c3836;
    --spot: #e78a4e;
    --spot-ink: #1d2021;
    --grid: #232625;
}
html[data-mode="paper"] {
    --bg: #f9f5d7;
    --ink: #514036;
    --dim: #7c6f64;
    --faint: #928374;
    --line: #ebdbb2;
    --line2: #d5c4a1;
    --spot: #c35e0a;
    --spot-ink: #fff;
    --grid: #f2e5bc;
}
:root {
    --disp: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
    --body: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --gut: 34px;
}

/* ── base ────────────────────────────────────────────── */
body.site {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--body);
    font-size: 14.5px;
    line-height: 1.65;
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 72px 72px;
    overflow-x: clip;
    padding-bottom: 72px;
}
body.site ::selection { background: var(--spot); color: var(--spot-ink); }
body.site a { color: inherit; }
body.site .hd-frame {
    max-width: 1440px;
    margin: 0 auto;
    background: var(--bg);
    border-left: 1px solid var(--line2);
    border-right: 1px solid var(--line2);
    border-bottom: 1px solid var(--line2);
}

/* ── nav ─────────────────────────────────────────────── */
body.site .hd-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 60px;
    padding: 0 var(--gut);
    border-bottom: 1px solid var(--line2);
}
body.site .lock { display: flex; align-items: center; gap: 10px; text-decoration: none; }
body.site .lock b { font-family: var(--disp); font-weight: 900; font-size: 20px; letter-spacing: -.045em; color: var(--ink); }
body.site .hd-nav .sp { flex: 1; }
body.site .hd-nav .btn {
    border: 1px solid var(--line2);
    padding: 7px 15px;
    color: var(--ink);
    text-decoration: none;
    font-size: 11.5px;
    letter-spacing: .07em;
    text-transform: uppercase;
}
body.site .hd-nav .btn:hover { background: var(--spot); color: var(--spot-ink); border-color: var(--spot); }
body.site .hd-nav .ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border: 1px solid var(--line2);
    color: var(--dim);
    text-decoration: none;
}
body.site .hd-nav .ico svg { width: 14px; height: 14px; fill: currentColor; }
body.site .hd-nav .ico:hover { color: var(--spot); border-color: var(--spot); }
body.site .hd-nav .menu {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid var(--line2);
    background: none;
    color: var(--dim);
    cursor: pointer;
}
body.site .hd-nav .menu span { display: block; width: 13px; height: 1px; background: currentColor; }
body.site .hd-nav .menu[aria-expanded="true"] { color: var(--spot); border-color: var(--spot); }

body.site .mode { display: flex; border: 1px solid var(--line2); }
body.site .mode button {
    background: none;
    border: 0;
    color: var(--faint);
    cursor: pointer;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    padding: 7px 10px;
}
body.site .mode button:hover { color: var(--ink); }
body.site .mode button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

body.site .sheet { display: none; border-bottom: 1px solid var(--line2); }
body.site .sheet-ground {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px var(--gut);
}
body.site .sheet-ground > span {
    color: var(--faint);
    font-size: 10.5px;
    letter-spacing: .2em;
    text-transform: uppercase;
}

/* ── hero ────────────────────────────────────────────── */
body.site .hd-hero { padding: 68px var(--gut) 56px; }
body.site h1 {
    font-family: var(--disp);
    font-weight: 900;
    letter-spacing: -.055em;
    line-height: .88;
    font-size: clamp(38px, 6.6vw, 132px);
    margin: 24px 0 0;
    max-width: 20ch;
    color: var(--ink);
}
body.site h1 em { font-style: normal; color: var(--spot); }
body.site .lede {
    color: var(--dim);
    font-size: 16px;
    line-height: 1.7;
    max-width: 56ch;
    margin: 32px 0 0;
}
body.site .lede b { color: var(--ink); font-weight: 400; }
body.site .go { display: flex; align-items: center; gap: 22px; margin-top: 38px; flex-wrap: wrap; }
body.site .btn-solid,
body.site .btn-ghost {
    text-decoration: none;
    padding: 12px 18px;
    font-size: 11.5px;
    letter-spacing: .07em;
    text-transform: uppercase;
    border: 1px solid var(--line2);
}
body.site .btn-solid { background: var(--spot); border-color: var(--spot); color: var(--spot-ink); }
body.site .btn-ghost { color: var(--ink); }
body.site .btn-ghost:hover { background: var(--spot); border-color: var(--spot); color: var(--spot-ink); }

/* ── strip ───────────────────────────────────────────── */
body.site .strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--line2);
    border-bottom: 1px solid var(--line2);
}
body.site .stat {
    display: block;
    padding: 26px var(--gut);
    border-right: 1px solid var(--line);
    text-decoration: none;
}
body.site .stat:last-child { border-right: 0; }
body.site .stat:hover { background: color-mix(in srgb, var(--spot) 5%, transparent); }
body.site .stat b {
    display: block;
    font-family: var(--disp);
    font-weight: 900;
    font-size: clamp(26px, 3vw, 40px);
    letter-spacing: -.045em;
    line-height: 1;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
body.site .stat span {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 11px;
    color: var(--faint);
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
}
body.site .stat:hover span { color: var(--dim); }
body.site .stat .ic {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    fill: currentColor;
    stroke: currentColor;
    color: var(--spot);
    opacity: .85;
}
body.site .stat .ic [fill="none"] { fill: none; }

/* ── footer ──────────────────────────────────────────── */
body.site .foot {
    padding: 22px var(--gut);
    border-top: 1px solid var(--line2);
    display: flex;
    gap: 22px;
    align-items: center;
    flex-wrap: wrap;
    color: var(--faint);
    font-size: 11.5px;
}

/* ── mono labels ─────────────────────────────────────── */
body.site .hd-nav .btn,
body.site .stat span,
body.site .foot,
body.site .btn-solid,
body.site .btn-ghost {
    font-family: var(--mono);
}

/* ── responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
    :root { --gut: 20px; }
    body.site { background-size: 40px 40px; padding-bottom: 40px; }
    body.site .hd-nav .mode { display: none; }
    body.site .hd-nav .menu { display: inline-flex; }
    body.site .sheet.open { display: block; }
    body.site .strip .stat { border-bottom: 1px solid var(--line); }
    body.site .strip .stat:nth-last-child(-n + 2) { border-bottom: 0; }
    body.site .strip .stat:nth-child(2n) { border-right: 0; }
    body.site .hd-hero { padding: 60px var(--gut) 52px; }
}

@media (max-width: 560px) {
    body.site .hd-nav { gap: 14px; }
}