:root {
    --paper: #fafaf8;
    --surface: #ffffff;
    --ink: #17181a;
    --muted: #6a7079;
    --faint: #8a8f97;
    --blue: #0575b6;
    --blue-soft: #edf5fa;
    --manila: #f2e8ce;
    --green: #1e7a54;
    --green-soft: #e5f2ec;
    --amber: #9a4b1c;
    --amber-soft: #f7e9df;
    --line: rgba(23, 24, 26, 0.12);
    --line-strong: rgba(23, 24, 26, 0.2);
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 280px;
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI",
        sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--blue);
    text-underline-offset: 3px;
}

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

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
    border-radius: 3px;
}

.top {
    border-bottom: 1px solid var(--line);
    background: rgba(250, 250, 248, 0.94);
}

.top-inner,
.footer-inner {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.top-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.brand svg {
    width: 26px;
    height: 26px;
}

/* Matches the homepage header links (.toplink in landing.css). */
.top nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
    margin-left: auto;
    white-space: nowrap;
    font-size: 0.82rem;
    font-weight: 550;
}

.top nav a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    color: var(--muted);
    text-decoration: none;
}

.top nav a:hover {
    color: var(--ink);
    background: rgba(23, 24, 26, 0.05);
}

/* GitHub button, as .ghico on the homepage. */
.top nav .ghico {
    width: 38px;
    margin-left: 2px;
    padding: 0;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
}

.top nav .ghico:hover {
    border-color: var(--blue);
    background: var(--surface);
    color: var(--blue);
}

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

.shell {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(48px, 8vw, 92px) 0 88px;
    display: grid;
    grid-template-columns: minmax(180px, 0.7fr) minmax(0, 2.3fr);
    gap: clamp(38px, 7vw, 88px);
    align-items: start;
}

.shell > * {
    min-width: 0;
}

.index-card {
    position: sticky;
    top: 28px;
    border: 1px solid var(--line-strong);
    border-radius: 15px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 10px 34px rgba(23, 24, 26, 0.06);
}

.index-row {
    min-height: 52px;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.78rem;
    text-decoration: none;
}

.index-row:hover {
    background: var(--blue-soft);
    text-decoration: none;
}

.index-row:last-child {
    border-bottom: 0;
}

.index-row.current {
    background: var(--blue-soft);
    color: var(--ink);
    font-weight: 700;
}

.index-code,
.kicker,
.badge,
code {
    font-family: "Spline Sans Mono", ui-monospace, SFMono-Regular, Menlo,
        monospace;
}

.index-code {
    color: var(--blue);
    font-weight: 750;
}

.kicker {
    margin: 0 0 18px;
    color: var(--blue);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2 {
    letter-spacing: -0.015em;
}

h1 {
    max-width: 18ch;
    margin: 0;
    font-size: clamp(2.5rem, 7vw, 5.2rem);
    line-height: 0.98;
}

.lede {
    max-width: 62ch;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.23rem);
}

.notice {
    margin: 34px 0 0;
    padding: 17px 19px;
    border: 1px solid #ddb99e;
    border-radius: 12px;
    background: var(--amber-soft);
    color: #683415;
}

.notice strong {
    display: block;
    margin-bottom: 3px;
}

.status-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge.blocked {
    background: var(--amber-soft);
    color: var(--amber);
}

.badge.ready {
    background: var(--green-soft);
    color: var(--green);
}

.content section {
    max-width: 72ch;
    padding-top: 48px;
    margin-top: 48px;
    border-top: 1px solid var(--line);
}

.content h2 {
    margin: 0 0 14px;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.15;
}

.content p,
.content ul {
    margin-top: 12px;
    margin-bottom: 0;
}
.content code {
    overflow-wrap: anywhere;
}

.content li + li {
    margin-top: 8px;
}

.fact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.fact {
    padding: 16px 17px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.fact strong {
    display: block;
    margin-bottom: 4px;
}

.fact span {
    color: var(--muted);
    font-size: 0.9rem;
}


.footer {
    border-top: 1px solid var(--line);
}

.footer-inner {
    min-height: 88px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 22px;
    color: var(--muted);
    font-size: 0.8rem;
}

.footer a {
    color: var(--muted);
}

@media (max-width: 640px) {
    .top nav {
        font-size: 0.78rem;
    }

    .top nav a {
        padding: 0 8px;
    }
}

@media (max-width: 760px) {
    .shell {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .index-card {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .index-row {
        border-bottom: 1px solid var(--line);
    }

    .fact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    .top-inner {
        gap: 6px;
    }

    .brand {
        gap: 5px;
    }

    .brand svg {
        width: 23px;
        height: 23px;
    }

    .top nav a {
        min-height: 34px;
        padding: 0 6px;
    }

    .top nav .ghico {
        width: 34px;
    }
}

@media (max-width: 460px) {
    /* Information pages carry five links; drop Docs so they fit. */
    .top:not(.blog-top) nav a:last-child {
        display: none;
    }

    .top-inner,
    .footer-inner,
    .shell {
        width: min(100% - 28px, 1120px);
    }


    .index-card {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: clamp(2.35rem, 14vw, 3.4rem);
    }
}
@media (max-width: 340px) {
    .top nav a[href="/support/"] {
        display: none;
    }
}

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