:root {
    color-scheme: dark;
    --background: #080b10;
    --surface: #111722;
    --border: #283244;
    --text: #f3f6fa;
    --muted: #aeb8c6;
    --accent: #65b8ff;
    --max-width: 760px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--background);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #0c111a 0%, var(--background) 45%);
}

a {
    color: var(--accent);
}

a:hover,
a:focus-visible {
    text-decoration-thickness: 2px;
}

.shell {
    width: min(calc(100% - 2rem), var(--max-width));
    margin: 0 auto;
}

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

.site-header a {
    color: var(--text);
    text-decoration: none;
}

.site-header nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.site-header nav a {
    color: var(--muted);
}

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

main {
    padding: 4rem 0 5rem;
}

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

h1,
h2 {
    line-height: 1.15;
}

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

h2 {
    margin: 2.4rem 0 0.7rem;
    font-size: 1.35rem;
}

p,
ul {
    color: var(--muted);
}

.lede {
    max-width: 42rem;
    margin: 1.3rem 0 0;
    color: var(--text);
    font-size: 1.18rem;
}

.actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1.7rem;
}

.button {
    display: inline-block;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 0.4rem;
    color: var(--text);
    background: var(--surface);
    font-weight: 650;
    text-decoration: none;
}

.button.primary {
    border-color: var(--accent);
    color: #04111e;
    background: var(--accent);
}

.panel,
pre {
    margin: 2rem 0 0;
    padding: 1.1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--surface);
}

pre {
    overflow-x: auto;
    color: var(--text);
    font-size: 0.9rem;
}

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

.updated {
    margin-top: 0.6rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.2rem 0 2.5rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.85rem;
}

.site-footer p {
    margin: 0;
}

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

    main {
        padding-top: 3rem;
    }
}
