* {
    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: 720px;
    margin: 0 auto;
    padding: 6rem 1.5rem 5rem;
}

/* Hero */
.hero {
    text-align: left;
    margin-bottom: 6rem;
    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.75rem;
    color: var(--text);
}

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

.hero .lede .num {
    color: var(--text);
    font-size: 1.05em;
}

/* 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: 2rem;
    max-width: 60ch;
    font-size: 1rem;
}

/* Sessions */
.sessions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.session {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
}

.session-head {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.session-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.session-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.05em;
}

.exercise-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.exercise-list li {
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
}

.ex-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 500;
    min-width: 1.75rem;
}

.ex-name {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
}

.exercise-list li.optional .ex-name {
    color: var(--text-muted);
}

.ex-tag {
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-dim);
    letter-spacing: 0.05em;
    margin-left: auto;
    text-transform: uppercase;
}

/* Rules */
.rules {
    list-style: none;
    display: flex;
    flex-direction: column;
}

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

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

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

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

.rule-val .num {
    color: var(--text);
}

/* Equipment */
.equipment {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.equipment li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.05rem;
    color: var(--text);
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.equipment li::before {
    content: "—";
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

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

/* 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: 55ch;
}

.closer .num {
    color: var(--text);
}

/* Responsive */
@media (max-width: 640px) {
    .page {
        padding: 3.5rem 1.25rem 3rem;
    }
    .hero {
        margin-bottom: 4rem;
        padding-bottom: 2rem;
    }
    .section {
        margin-bottom: 3.5rem;
    }
    .sessions {
        grid-template-columns: 1fr;
    }
    .rules li {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
    .outro {
        margin-top: 4rem;
    }
}
