:root {
    --black: #0a0a0a;
    --surface: #121214;
    --border: #242428;
    --orange: #ff6b00;
    --red: #ff2d55;
    --white: #fff;
    --gray: #b8b8bd;
    --muted: #77777f;
    --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --display: "Syne", var(--sans);
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
    margin: 0;
    background: var(--black);
    color: var(--white);
    font-family: var(--sans);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: #ff8d3d; }
a:hover { color: #ff5a38; }

.site-header {
    border-bottom: 1px solid var(--border);
    background: rgba(10, 10, 10, .92);
}

.site-header-inner,
.page-shell,
.site-footer-inner {
    width: min(920px, calc(100% - 3rem));
    margin: 0 auto;
}

.site-header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    color: var(--white);
    text-decoration: none;
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: -.02em;
}

.brand span {
    background: linear-gradient(135deg, var(--orange), var(--red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1rem; }
.site-nav a { color: var(--gray); text-decoration: none; font-size: .82rem; font-weight: 700; }
.site-nav a:hover { color: var(--white); }

.page-shell { padding: 5.5rem 0 6rem; }

.page-intro {
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
}

.app-mark {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border: 1px solid #38383d;
    color: var(--white);
    font-family: var(--display);
    font-weight: 800;
    font-size: .86rem;
    margin-bottom: 1.5rem;
}

h1, h2, h3 { font-family: var(--display); line-height: 1.15; }
h1 { margin: 0; font-size: clamp(2.5rem, 7vw, 4.75rem); letter-spacing: -.055em; }
h2 { margin: 3rem 0 1rem; font-size: clamp(1.35rem, 3vw, 1.8rem); letter-spacing: -.025em; }
h3 { margin: 2rem 0 .5rem; font-size: 1.05rem; }

.lede {
    max-width: 720px;
    margin: 1.25rem 0 0;
    color: var(--gray);
    font-size: 1.08rem;
}

.meta { margin-top: 1rem; color: var(--muted); font-size: .82rem; }
.content { color: var(--gray); }
.content p, .content ul { max-width: 790px; }
.content strong { color: var(--white); }
.content li + li { margin-top: .6rem; }

.scope {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.scope h2 { margin-top: 0; }
.scope code { color: #ff9b55; word-break: break-word; }

.site-footer { border-top: 1px solid var(--border); color: var(--muted); }
.site-footer-inner { padding: 2rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .78rem; }
.site-footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: var(--gray); }

@media (max-width: 680px) {
    .site-header-inner { align-items: flex-start; flex-direction: column; padding: 1.1rem 0; }
    .site-nav { justify-content: flex-start; }
    .page-shell { padding-top: 3.5rem; }
}
