:root {
    color-scheme: light;
    --bg: #f6f8fa;
    --surface: #ffffff;
    --surface-subtle: #f6f8fa;
    --border: #d0d7de;
    --border-muted: #d8dee4;
    --text: #1f2328;
    --text-muted: #59636e;
    --accent: #0969da;
    --accent-hover: #0550ae;
    --success: #1a7f37;
    --shadow: 0 1px 0 rgb(31 35 40 / 4%);
    --radius: 6px;
    --content-width: 74rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
        sans-serif;
    font-synthesis: none;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 20rem;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    color: var(--text);
    background: var(--bg);
    font-size: 1rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    text-decoration: underline;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.5rem 0.75rem;
    color: #fff;
    background: var(--accent);
    border-radius: var(--radius);
    transform: translateY(-200%);
}

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

.site-header {
    color: var(--text);
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.header-inner,
.footer-inner,
.page-shell,
.article-shell {
    width: min(calc(100% - 2rem), var(--content-width));
    margin-inline: auto;
}

.header-inner {
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    display: block;
    line-height: 0;
}

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

.brand img {
    width: 8.5rem;
    height: auto;
}

.project-nav {
    display: flex;
    align-items: stretch;
    gap: 0.25rem;
    align-self: stretch;
}

.project-nav a {
    position: relative;
    display: grid;
    place-items: center;
    padding: 0 0.8rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 550;
}

.project-nav a:hover {
    color: var(--text);
    background: var(--surface-subtle);
    text-decoration: none;
}

.project-nav a.is-current::after {
    content: "";
    position: absolute;
    inset: auto 0.8rem 0;
    height: 0.2rem;
    background: #f78166;
    border-radius: 0.2rem 0.2rem 0 0;
}

.site-main {
    flex: 1;
}

.page-shell {
    padding-block: 3rem 4rem;
}

.project-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 20rem);
    gap: clamp(2rem, 7vw, 6rem);
    align-items: end;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}

.eyebrow,
.download-card__label {
    margin: 0 0 0.5rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-hero h1 {
    margin: 0;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.project-summary {
    max-width: 42rem;
    margin: 1.25rem 0 0;
    color: var(--text-muted);
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    line-height: 1.55;
}

.hero-actions {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.button {
    min-height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.9rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.25;
}

.button:hover {
    background: var(--surface-subtle);
    border-color: #afb8c1;
    text-decoration: none;
}

.button--primary {
    color: #fff;
    background: #1f883d;
    border-color: rgb(31 35 40 / 15%);
}

.button--primary:hover {
    color: #fff;
    background: #1a7f37;
    border-color: rgb(31 35 40 / 15%);
}

.button--full {
    width: 100%;
}

.text-link {
    padding: 0.35rem 0.25rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.project-facts {
    margin: 0;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.project-facts div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    padding: 0.75rem 1rem;
}

.project-facts div + div {
    border-top: 1px solid var(--border-muted);
}

.project-facts dt {
    color: var(--text-muted);
}

.project-facts dd {
    margin: 0;
    font-weight: 600;
}

.status-dot {
    width: 0.55rem;
    height: 0.55rem;
    display: inline-block;
    margin-right: 0.4rem;
    background: var(--success);
    border-radius: 50%;
}

.project-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18rem;
    gap: clamp(2.5rem, 7vw, 6rem);
    align-items: start;
    padding-top: 2.5rem;
}

.prose {
    min-width: 0;
}

.prose h2 {
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-muted);
    font-size: 1.7rem;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

.prose > h2:not(:first-child) {
    margin-top: 2.5rem;
}

.prose h3 {
    margin: 1.75rem 0 0.35rem;
    font-size: 1.05rem;
}

.prose p {
    margin: 0 0 1rem;
}

.prose ol,
.prose ul {
    margin: 0 0 1rem;
    padding-left: 1.6rem;
}

.prose li + li {
    margin-top: 0.35rem;
}

.prose abbr {
    text-decoration: underline dotted;
    text-underline-offset: 0.15em;
}

.table-of-contents {
    margin-block: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding: 1rem;
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.table-of-contents strong {
    width: 100%;
}

.config-list,
.command-list {
    margin: 0 0 1.5rem;
}

.config-list dt,
.command-list dt {
    margin-top: 1rem;
    font-weight: 650;
}

.config-list dd,
.command-list dd {
    margin: 0.25rem 0 0;
    color: var(--text-muted);
}

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

.feature-card {
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.feature-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.note {
    margin-top: 2rem;
    padding: 1rem 1.1rem;
    background: #ddf4ff;
    border: 1px solid #54aeff66;
    border-left: 0.25rem solid #218bff;
    border-radius: var(--radius);
}

.warning {
    margin-block: 2rem;
    padding: 1rem 1.1rem;
    background: #fff8c5;
    border: 1px solid #d4a72c66;
    border-left: 0.25rem solid #bf8700;
    border-radius: var(--radius);
}

.download-card {
    position: sticky;
    top: 1.5rem;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.download-card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}

.download-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.download-card__meta {
    margin: 0.75rem 0 0;
    text-align: center;
}

.download-card__count {
    margin: 0.75rem 0 0;
    text-align: center;
}

.download-card__count [data-download-count] {
    color: var(--text);
    font-variant-numeric: tabular-nums;
    font-weight: 650;
}

.article-shell {
    max-width: 56rem;
    padding-block: 2rem 4rem;
}

.not-found-shell {
    width: min(calc(100% - 2rem), 64rem);
    margin-inline: auto;
    padding-block: clamp(3rem, 10vw, 7rem);
}

.not-found {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(2rem, 7vw, 5rem);
    align-items: center;
}

.not-found__code {
    color: var(--border);
    font-size: clamp(7rem, 22vw, 13rem);
    font-weight: 750;
    line-height: 0.8;
    letter-spacing: -0.09em;
    user-select: none;
}

.not-found__content h1 {
    max-width: 13ch;
    margin: 0;
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.not-found__content > p:not(.eyebrow) {
    max-width: 38rem;
    margin: 1.25rem 0 0;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.not-found__content > .not-found__contact {
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.breadcrumbs {
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.article {
    padding: clamp(1.25rem, 4vw, 3rem);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-muted);
}

.article-header h1 {
    margin: 0;
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.article-summary {
    margin: 0.75rem 0 0;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.release-list {
    display: grid;
    gap: 1rem;
}

.release {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.release header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--surface-subtle);
    border-bottom: 1px solid var(--border);
}

.release header h2 {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 1.05rem;
}

.release header span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.release ul {
    margin: 0;
    padding: 1rem 1rem 1rem 2.5rem;
}

.prose pre {
    overflow-x: auto;
    padding: 1rem;
    background: #f6f8fa;
    border: 1px solid var(--border-muted);
    border-radius: var(--radius);
    font: 0.86rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.prose code {
    padding: 0.15em 0.35em;
    background: rgb(175 184 193 / 20%);
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.88em;
}

.prose pre code {
    padding: 0;
    background: transparent;
}

.site-footer {
    color: var(--text-muted);
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.site-footer a {
    color: inherit;
}

.footer-inner {
    min-height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.82rem;
}

.footer-inner p {
    margin: 0;
}

@media (max-width: 48rem) {
    .project-hero,
    .project-layout {
        grid-template-columns: 1fr;
    }

    .project-hero {
        align-items: start;
        gap: 2rem;
    }

    .project-layout {
        gap: 2rem;
    }

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

    .download-card {
        position: static;
    }

    .not-found {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .not-found__code {
        font-size: 7rem;
    }

}

@media (max-width: 36rem) {
    .header-inner {
        width: 100%;
        min-height: auto;
        display: block;
    }

    .brand {
        padding: 0.8rem 1rem 0.55rem;
    }

    .project-nav {
        min-height: 2.8rem;
        overflow-x: auto;
        border-top: 1px solid var(--border);
    }

    .project-nav a {
        flex: 1 0 auto;
    }

    .page-shell {
        padding-top: 2rem;
    }

    .project-hero h1 {
        font-size: 3rem;
    }

    .hero-actions .button {
        flex: 1 1 auto;
    }

    .footer-inner {
        padding-block: 1.25rem;
        display: block;
    }

    .footer-inner p + p {
        margin-top: 0.35rem;
    }

}

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

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --bg: #0d1117;
        --surface: #161b22;
        --surface-subtle: #21262d;
        --border: #30363d;
        --border-muted: #30363d;
        --text: #e6edf3;
        --text-muted: #8b949e;
        --accent: #58a6ff;
        --accent-hover: #79c0ff;
        --success: #3fb950;
        --shadow: 0 0 transparent;
    }

    .site-header {
        color: #1f2328;
        background: #fff;
        border-bottom-color: #d0d7de;
    }

    .site-header .project-nav {
        border-color: #d0d7de;
    }

    .site-header .project-nav a {
        color: #59636e;
    }

    .site-header .project-nav a:hover {
        color: #1f2328;
        background: #f6f8fa;
    }

    .button--primary {
        background: #238636;
        border-color: #2ea043;
    }

    .button--primary:hover {
        background: #2ea043;
    }

    .note {
        background: #121d2f;
        border-color: #1f6feb66;
        border-left-color: #1f6feb;
    }

    .warning {
        background: #272115;
        border-color: #9e6a0366;
        border-left-color: #d29922;
    }

    .prose pre {
        background: #0d1117;
    }
}
