@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/Archivo-Variable.woff2') format('woff2');
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('/fonts/JetBrainsMono-Variable.woff2') format('woff2');
}

:root {
    --bg: #f5f3ed;
    --bg-alt: #ece8dd;
    --surface: #ffffff;
    --border: #e6e1d3;
    --border-strong: #cfc8b4;
    --text: #1e1b16;
    --text-muted: #5f594c;
    --primary: #9c6712;
    --primary-hover: #7e540e;
    --on-primary: #ffffff;
    --link: #7e540e;
    --ok-bg: #e2f2e7;
    --ok-text: #14693a;
    --warn-bg: #f8ecd4;
    --warn-text: #8a5000;
    --plan-bg: #e6e1d3;
    --plan-text: #4d4739;
    --shadow: 0 1px 2px rgb(30 27 22 / 6%), 0 12px 32px rgb(30 27 22 / 10%);

    --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
    --wrap: 1120px;
    --r: 6px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #14171c;
        --bg-alt: #181c22;
        --surface: #1b1f26;
        --border: #2b313b;
        --border-strong: #3a424f;
        --text: #e8e5dc;
        --text-muted: #a8a293;
        --primary: #e0a526;
        --primary-hover: #efb93f;
        --on-primary: #14171c;
        --link: #e0a526;
        --ok-bg: #16311f;
        --ok-text: #6fdc97;
        --warn-bg: #3a2c0d;
        --warn-text: #fbbf24;
        --plan-bg: #2b313b;
        --plan-text: #c9c4b6;
        --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 16px 40px rgb(0 0 0 / 35%);
    }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 17px/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 650; }
p { text-wrap: pretty; }

a { color: var(--link); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-size: 0.86em; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: var(--r); }
.skip:focus { left: 8px; z-index: 20; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--border); }
.top-row { display: flex; align-items: center; gap: 32px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.mark { width: 24px; height: 24px; color: var(--primary); }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--text-muted); font-size: 15px; text-decoration: none; padding: 8px 0; }
.nav a:hover { color: var(--text); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 46px; padding: 0 22px;
    border: 1px solid transparent; border-radius: var(--r);
    font: 600 16px/1 var(--font); text-decoration: none; white-space: nowrap;
    transition: background-color .15s, border-color .15s, color .15s;
}
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-muted); }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 64px; align-items: center; }
.eyebrow { color: var(--link); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 16px; }
.lead { margin-top: 20px; max-width: 34em; color: var(--text-muted); font-size: 19px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.pledges { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; color: var(--text-muted); font-size: 15px; }
.pledges li { display: flex; align-items: center; gap: 8px; }
.pledges li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }

/* Object card */
.object { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); padding: 24px; font-size: 14px; line-height: 1.4; }
.kind { color: var(--text-muted); font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.object-name { margin-top: 4px; font: 600 24px/1.2 var(--mono); letter-spacing: -0.02em; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: 0; }
.badge.ok { background: var(--ok-bg); color: var(--ok-text); }
.badge.warn { background: var(--warn-bg); color: var(--warn-text); }
.badge.plan { background: var(--plan-bg); color: var(--plan-text); }
.object-caption { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); font-weight: 650; }
.sources { width: 100%; margin-top: 8px; border-collapse: collapse; }
.sources th, .sources td { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--border); text-align: left; vertical-align: baseline; }
.sources thead th { color: var(--text-muted); font-size: 12px; font-weight: 500; }
.sources tbody th { font-weight: 500; white-space: nowrap; }
.sources td:last-child { color: var(--text-muted); padding-right: 0; white-space: nowrap; }
.sources td.mono { overflow-wrap: anywhere; }
.where { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 16px; }
.where dt { color: var(--text-muted); font-size: 12px; }
.where dd { font-weight: 500; }
.object figcaption { margin-top: 16px; color: var(--text-muted); font-size: 12px; }

/* Sections */
.section { padding: 88px 0; }
.alt, .band { background: var(--bg-alt); border-block: 1px solid var(--border); }
.band { padding: 72px 0; }
.section-lead { margin-top: 12px; max-width: 44em; color: var(--text-muted); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.split p { margin-top: 16px; color: var(--text-muted); }

.questions li { padding: 16px 0 16px 20px; border-left: 2px solid var(--primary); font-size: 18px; font-weight: 500; line-height: 1.4; }
.questions li + li { margin-top: 12px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 40px; }
.step-n { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--border-strong); border-radius: 50%; font: 600 15px/1 var(--mono); color: var(--link); }
.steps h3 { margin-top: 16px; font-size: 20px; }
.steps h3 + p { margin-top: 8px; color: var(--text-muted); }

.areas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 40px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.areas li { background: var(--surface); padding: 24px; }
.areas p { margin-top: 8px; color: var(--text-muted); font-size: 15px; line-height: 1.5; }

.source-list div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.source-list div:first-child { border-top: 1px solid var(--border); }
.source-list dt { color: var(--text-muted); font-size: 15px; }
.source-list dd { font-weight: 500; }

.status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.status-col { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 28px; }
.status-col ul { margin-top: 16px; }
.status-col li { position: relative; padding: 8px 0 8px 20px; border-top: 1px solid var(--border); }
.status-col li::before { content: ''; position: absolute; left: 2px; top: 19px; width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); }

/* Call to action */
.cta { padding: 96px 0; }
.cta-inner { max-width: 760px; text-align: center; }
.cta p { margin: 16px auto 32px; color: var(--text-muted); font-size: 19px; }

/* Footer */
.foot { border-top: 1px solid var(--border); padding: 28px 0; color: var(--text-muted); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; }
.fine { max-width: 46em; }

.notfound { min-height: 70vh; display: grid; place-content: center; text-align: center; gap: 16px; padding: 24px; }

@media (max-width: 960px) {
    .hero { padding: 48px 0 64px; }
    .hero-grid, .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .section { padding: 64px 0; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .wrap { padding: 0 16px; }
    .nav { display: none; }
    .top-row { justify-content: space-between; }
    .areas, .status-grid { grid-template-columns: minmax(0, 1fr); }
    .object { padding: 18px; }
    .sources td:last-child { white-space: normal; }
    .source-list div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
