:root {
    --bg: #070b10;
    --panel: #0d131b;
    --panel-raised: #121a25;
    --text: #f5f7fb;
    --muted: #a7b0c0;
    --soft: #6f7a8c;
    --line: #263040;
    --accent: #9bbcff;
    --good: #7ee08a;
    --warning: #f2c66d;
    --content-width: 980px;
    --reading-width: 740px;
    --page-gutter: clamp(1.25rem, 5vw, 4rem);
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top, #121a25 0%, var(--bg) 45%),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.9em;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 2rem var(--page-gutter);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text);
}

.brand:hover {
    text-decoration: none;
}

.logo {
    width: 64px;
    height: 64px;
    border: 2px solid var(--text);
    display: grid;
    place-items: center;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.brand-title {
    font-weight: 800;
    font-size: 1.3rem;
}

.brand-subtitle {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
}

.site-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}

.site-nav a[aria-current="page"] {
    color: var(--text);
}

.page {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 5rem 1.5rem 3rem;
}

.hero {
    text-align: center;
    margin-bottom: 5rem;
}

.hero h1 {
    font-size: clamp(4rem, 10vw, 6.5rem);
    line-height: 1;
    margin: 0 0 1rem;
    letter-spacing: -0.08em;
}

.report-hero {
    max-width: 820px;
    margin: 0 auto 4rem;
    text-align: left;
}

.report-hero h1 {
    max-width: 760px;
    margin: 0 0 1rem;
    font-size: clamp(2.8rem, 7vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.eyebrow {
    margin: 0 0 1rem;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tagline {
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 2rem;
}

.dek {
    max-width: 700px;
    margin: 0;
    color: #d6dbe5;
    font-size: 1.15rem;
}

.rule {
    width: 120px;
    height: 1px;
    margin: 2rem auto;
    background: var(--line);
}

.intro,
.prose {
    max-width: var(--reading-width);
    margin: 0 auto;
    color: #d6dbe5;
}

.intro {
    font-size: 1.1rem;
}

.status,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    color: #d6dbe5;
}

.status {
    margin-top: 2rem;
}

.badge {
    margin-top: 1.5rem;
    border-color: color-mix(in srgb, var(--warning) 40%, var(--line));
    color: var(--warning);
}

.badge-good {
    border-color: color-mix(in srgb, var(--good) 40%, var(--line));
    color: var(--good);
}

.dot {
    width: 10px;
    height: 10px;
    background: var(--good);
    border-radius: 50%;
}

.section {
    border-top: 1px solid var(--line);
    padding: 3.5rem 0;
}

.section-title {
    text-align: center;
    margin: 0 0 2rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 1.1rem;
}

.section-title-left {
    text-align: left;
}

.resources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1px;
    background: var(--line);
}

.card {
    padding: 1.5rem;
    background: var(--bg);
    text-align: center;
}

.icon {
    min-height: 3rem;
    color: var(--soft);
    font-size: 2rem;
    font-weight: 800;
}

.card h3 {
    margin: 0 0 0.5rem;
}

.card p {
    margin: 0 0 1rem;
    color: var(--muted);
}

.about {
    max-width: var(--reading-width);
    margin: 0 auto;
    text-align: center;
    color: #d6dbe5;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.report-switcher {
    border-top: 1px solid var(--line);
    padding-top: 2rem;
}

.switcher-header,
.slide-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.switcher-header {
    margin-bottom: 1.5rem;
}

.switcher-header h2,
.slide-header h2 {
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.switcher-header .eyebrow {
    margin-bottom: 0.35rem;
}

.switcher-controls {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 0.75rem;
}

.switcher-button {
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--panel);
    color: var(--text);
    cursor: pointer;
    font: inherit;
    font-size: 1.25rem;
}

.switcher-button:hover,
.switcher-button:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
}

.switcher-position {
    min-width: 3rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.report-viewport {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(7, 11, 16, 0.65);
}

.report-track {
    display: flex;
    align-items: flex-start;
    transition: transform 420ms ease;
    will-change: transform;
}

.report-slide {
    min-width: 100%;
    padding: clamp(1.25rem, 4vw, 2.5rem);
}

.slide-header {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--line);
}

.slide-header p {
    max-width: 650px;
    margin-bottom: 0;
    color: var(--muted);
}

.slide-kicker {
    margin: 0 0 0.5rem;
    color: var(--accent) !important;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.slide-header .badge {
    margin-top: 0;
    white-space: nowrap;
}

.report-section {
    padding: 2rem 0;
    border-top: 1px solid var(--line);
}

.metric-grid + .report-section {
    border-top: 0;
}

.report-section h3 {
    margin: 0 0 1rem;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.prose-wide {
    max-width: none;
}

.switcher-dots {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    padding: 1.25rem;
}

.switcher-dot {
    width: 2.25rem;
    height: 0.3rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--line);
    cursor: pointer;
}

.switcher-dot.is-active {
    background: var(--accent);
}

.metric {
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
}

.metric-value {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--text);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.metric-label {
    color: var(--muted);
    font-size: 0.9rem;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.data-table th,
.data-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--line);
    text-align: right;
    white-space: nowrap;
}

.data-table th:first-child,
.data-table td:first-child {
    text-align: left;
}

.data-table th {
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

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

.data-table .interval {
    color: var(--muted);
    font-size: 0.85rem;
}

.quality {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.1rem 0.4rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: 0.1em;
}

.quality-write {
    border-color: color-mix(in srgb, var(--warning) 35%, var(--line));
    color: var(--warning);
}

.note {
    margin-top: 1.25rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--line);
}

.detail {
    min-width: 0;
    padding: 1rem 1.25rem;
    background: var(--panel);
}

.detail dt {
    margin-bottom: 0.25rem;
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.detail dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.callout {
    padding: 1.5rem;
    border-left: 3px solid var(--warning);
    background: var(--panel);
}

.callout h3 {
    margin-top: 0;
}

.callout p:last-child {
    margin-bottom: 0;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--muted);
}

.site-footer nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.2rem;
    margin-top: 1rem;
}

@media (max-width: 720px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .page {
        padding-top: 3.5rem;
    }

    .metric-grid,
    .details-grid {
        grid-template-columns: 1fr;
    }

    .switcher-header,
    .slide-header {
        flex-direction: column;
        gap: 1rem;
    }

    .switcher-controls {
        align-self: stretch;
        justify-content: space-between;
    }

    .slide-header .badge {
        white-space: normal;
    }

    .data-table th,
    .data-table td {
        padding: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .report-track {
        transition: none;
    }
}
