:root {
    color-scheme: dark;
    --background: #050806;
    --background-raised: #0a100c;
    --border: #254d34;
    --border-strong: #3b8153;
    --green: #58e38b;
    --green-muted: #8dcda2;
    --paper: #eef8f0;
    --paper-muted: #b6c7ba;
    --warning: #e0bd63;
    --pink: #c47f98;
    --focus: #fff1a8;
    font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--background);
    scroll-behavior: smooth;
}

body {
    min-width: 0;
    margin: 0;
    background:
        linear-gradient(rgb(88 227 139 / 3%) 1px, transparent 1px),
        linear-gradient(90deg, rgb(88 227 139 / 3%) 1px, transparent 1px),
        var(--background);
    background-size: 2rem 2rem;
    color: var(--paper);
    line-height: 1.65;
}

a {
    color: var(--green);
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--paper);
}

a:focus-visible {
    border-radius: 0.2rem;
    outline: 0.2rem solid var(--focus);
    outline-offset: 0.22rem;
}

.skip-link {
    position: fixed;
    z-index: 10;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.6rem 0.85rem;
    background: var(--paper);
    color: #000;
    font-weight: 700;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header,
footer {
    display: flex;
    width: min(72rem, calc(100% - 2rem));
    margin-inline: auto;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
}

.site-header {
    min-height: 5.5rem;
    border-bottom: 1px solid var(--border);
}

.brand {
    display: inline-flex;
    align-items: baseline;
    color: var(--paper);
    font-family: "Arial Black", "Segoe UI", sans-serif;
    font-size: clamp(1.25rem, 3vw, 1.7rem);
    font-weight: 900;
    letter-spacing: -0.08em;
    line-height: 1;
    text-decoration: none;
}

.brand-x {
    margin-right: 0.03em;
    color: var(--pink);
    font-size: 1.15em;
    text-shadow: 0.08em 0 var(--green);
}

nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 1rem;
}

nav a {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.045em;
}

nav a[aria-current="page"] {
    color: var(--paper);
    text-decoration-color: var(--green);
    text-decoration-thickness: 0.16rem;
}

main {
    width: min(72rem, calc(100% - 2rem));
    margin-inline: auto;
}

.hero {
    display: grid;
    min-height: 30rem;
    padding-block: clamp(5rem, 12vw, 9rem);
    align-content: center;
    border-bottom: 1px solid var(--border);
}

.eyebrow,
.panel-index,
.effective-date,
.error-code {
    margin: 0 0 0.8rem;
    color: var(--green);
    font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

h1,
h2 {
    line-height: 1.15;
    text-wrap: balance;
}

h1 {
    max-width: 16ch;
    margin: 0;
    font-size: clamp(2.4rem, 8vw, 5.7rem);
    letter-spacing: -0.055em;
}

h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    letter-spacing: -0.025em;
}

p {
    overflow-wrap: anywhere;
}

.lede {
    max-width: 46rem;
    margin: 2rem 0 0;
    color: var(--paper-muted);
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-block: 4rem;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--border);
}

.panel {
    min-width: 0;
    padding: clamp(1.4rem, 3vw, 2.25rem);
    background: var(--background-raised);
}

.panel p:not(.panel-index),
.policy-layout p {
    color: var(--paper-muted);
}

.panel p:last-child,
.policy-layout section p:last-child {
    margin-bottom: 0;
}

.notice {
    margin-block: 4rem 5rem;
    padding: 1.5rem 1.75rem;
    border: 1px solid #6d5b2a;
    border-left: 0.35rem solid var(--warning);
    background: rgb(224 189 99 / 7%);
}

.notice h2 {
    color: var(--warning);
}

.notice p {
    margin-bottom: 0;
}

.policy-layout {
    max-width: 58rem;
    padding-block: clamp(4rem, 10vw, 7rem);
}

.policy-heading {
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-strong);
}

.policy-heading h1 {
    max-width: 18ch;
    font-size: clamp(2.2rem, 7vw, 4.6rem);
}

.policy-heading > p:last-child {
    max-width: 48rem;
    margin-top: 1.5rem;
    font-size: 1.1rem;
}

.effective-date {
    margin-top: 1.5rem;
}

.policy-layout section {
    padding-block: 2.5rem;
    border-bottom: 1px solid var(--border);
}

.policy-layout section h2 {
    color: var(--green-muted);
}

code {
    padding: 0.12em 0.35em;
    border: 1px solid var(--border);
    border-radius: 0.2rem;
    background: #020403;
    color: var(--paper);
    font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.9em;
}

footer {
    min-height: 7rem;
    padding-block: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--paper-muted);
}

footer p {
    margin: 0;
}

.error-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
}

.error-panel {
    max-width: 42rem;
    padding-block: 4rem;
}

.error-panel h1 {
    font-size: clamp(2.3rem, 8vw, 4.8rem);
}

.error-panel > p:not(.error-code) {
    color: var(--paper-muted);
    font-size: 1.1rem;
}

.error-code {
    color: var(--warning);
}

.text-link {
    font-weight: 700;
}

@media (max-width: 48rem) {
    .site-header,
    footer {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
    }

    .site-header {
        padding-block: 1.2rem;
    }

    .content-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    footer {
        min-height: 9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

@media (forced-colors: active) {
    .notice,
    .panel,
    .content-grid {
        border: 1px solid CanvasText;
    }
}
