* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0b0b0c;
    --surface: #141416;
    --border: #26262a;
    --border-strong: #35353b;
    --text: #f5f5f6;
    --text-muted: #8a8a92;
    --text-dim: #5a5a62;
    --accent: #f5f5f6;
    --radius: 10px;
}

html, body {
    background: var(--bg);
    color: var(--text);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
}

.num {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 500;
    font-feature-settings: "tnum";
    color: var(--text);
}

.page {
    max-width: 860px;
    margin: 0 auto;
    padding: 6rem 1.5rem 5rem;
}

/* Hero */
.hero {
    text-align: left;
    margin-bottom: 5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 3rem;
}

.eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.08;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.hero .lede {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 60ch;
}

.hero .lede strong {
    color: var(--text);
    font-weight: 600;
}

/* Section scaffolding */
.section {
    margin-bottom: 5rem;
}

.section-title {
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.section-note {
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    max-width: 65ch;
    font-size: 1rem;
}

.prose {
    color: var(--text-muted);
    max-width: 65ch;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Assumptions */
.assumptions {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.assumptions li {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
    align-items: baseline;
}

.assumptions li:last-child {
    border-bottom: 0;
}

.a-key {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.a-val {
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.5;
}

/* Table */
.table-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
}

.outcome-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.outcome-table thead th {
    text-align: right;
    padding: 1rem 1.25rem;
    background: #19191c;
    border-bottom: 1px solid var(--border);
    font-weight: 500;
    vertical-align: bottom;
}

.outcome-table thead th.th-h {
    text-align: left;
}

.th-main {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--text);
    text-transform: uppercase;
}

.th-sub {
    display: block;
    font-size: 0.72rem;
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
    text-transform: uppercase;
    font-weight: 400;
}

.outcome-table tbody td {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--border);
    vertical-align: baseline;
}

.outcome-table tbody tr:last-child td {
    border-bottom: 0;
}

.outcome-table tbody tr:hover td {
    background: #17171a;
}

.outcome-table tbody tr.row-highlight td {
    background: #18181d;
    border-top: 1px solid var(--border-strong);
    border-bottom: 1px solid var(--border-strong);
}

.h-cell {
    text-align: left;
    color: var(--text);
    white-space: nowrap;
    font-weight: 500;
}

.y-cell {
    text-align: right;
    color: var(--text);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.y-sub {
    display: block;
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-top: 0.15rem;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.w-cell {
    text-align: right;
    color: var(--text);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.table-foot {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-dim);
    max-width: 70ch;
    line-height: 1.6;
}

/* Outro */
.outro {
    margin-top: 6rem;
    margin-bottom: 0;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.closer {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 60ch;
}

.closer strong {
    color: var(--text);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 760px) {
    .page {
        padding: 3.5rem 1.25rem 3rem;
    }
    .hero {
        margin-bottom: 3.5rem;
        padding-bottom: 2rem;
    }
    .section {
        margin-bottom: 3.5rem;
    }
    .assumptions li {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
    .table-wrap {
        overflow-x: auto;
    }
    .outcome-table {
        min-width: 620px;
    }
    .outcome-table thead th,
    .outcome-table tbody td {
        padding: 0.75rem 0.9rem;
    }
    .outro {
        margin-top: 4rem;
    }
}
