:root {
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: #202124;
    background: #f4f6f8;
}

* {
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
    scroll-behavior: smooth;
}

body {
    margin: 0;
}

button,
select {
    font: inherit;
}

a {
    color: #0969da;
}

.page {
    width: min(1040px, calc(100% - 32px));
    margin: 42px auto;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 20px;
}

.site-header h1 {
    margin: 0 0 2px;
}

.author-line {
    margin: 0;
    color: #6b7075;
    font-size: 0.92rem;
    font-weight: 500;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 8px;
}

.site-nav a {
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    text-decoration: underline;
}

.card,
.release-card {
    background: white;
    border: 1px solid #dfe3e8;
    border-radius: 12px;
    padding: 26px;
    margin-bottom: 18px;
}

.card h2,
.release-card h2 {
    margin-top: 0;
}

.intro {
    color: #5f6368;
}

.selectors {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);
    gap: 18px;
    margin-top: 24px;
}

.field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
}

.field select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #c7ccd1;
    border-radius: 6px;
    color: #202124;
    background: white;
}

.field select:focus {
    outline: 2px solid #1a73e8;
    outline-offset: 1px;
    border-color: #1a73e8;
}

.field select:disabled {
    background: #f1f3f4;
    color: #80868b;
}

.status {
    margin: 18px 0 0;
    color: #5f6368;
}

.status.error {
    color: #b42318;
}

.release-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e4e7eb;
}

.release-heading h2 {
    margin-bottom: 6px;
}

.release-meta {
    margin: 0;
    color: #6b7075;
    font-size: 0.92rem;
}

.release-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.button {
    display: inline-block;
    padding: 9px 13px;
    border-radius: 6px;
    background: #1a73e8;
    color: white;
    text-decoration: none;
    white-space: nowrap;
}

.button.secondary {
    background: #e8eaed;
    color: #202124;
}

.button:hover {
    filter: brightness(0.96);
}

.notice {
    margin: 18px 0;
    padding: 13px 15px;
    border-left: 4px solid #bf8700;
    border-radius: 6px;
    background: #fff8c5;
    color: #5a4300;
}

.badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #fff1e5;
    color: #9a6700;
    font-size: 0.76rem;
    font-weight: 600;
    vertical-align: middle;
}

.markdown-body {
    margin-top: 22px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.markdown-body h1,
.markdown-body h2 {
    padding-bottom: 0.3em;
    border-bottom: 1px solid #d8dee4;
}

.markdown-body h1 {
    font-size: 1.7rem;
}

.markdown-body h2 {
    margin-top: 1.6em;
    font-size: 1.35rem;
}

.markdown-body h3 {
    margin-top: 1.4em;
}

.markdown-body img {
    max-width: 100%;
}

.markdown-body pre {
    overflow-x: auto;
    padding: 14px;
    border-radius: 6px;
    background: #f6f8fa;
}

.markdown-body code {
    padding: 0.15em 0.35em;
    border-radius: 4px;
    background: #f6f8fa;
}

.markdown-body pre code {
    padding: 0;
    background: transparent;
}

.markdown-body table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.markdown-body th,
.markdown-body td {
    padding: 7px 11px;
    border: 1px solid #d0d7de;
}

.recent-title {
    margin: 8px 0 18px;
    color: #5f6368;
    font-size: 0.95rem;
}

.page-footer {
    padding: 12px 16px 30px;
    text-align: center;
    color: #6b7075;
    font-size: 0.9rem;
}

.page-footer p {
    margin: 0 0 7px;
}

[hidden] {
    display: none !important;
}

@media (max-width: 700px) {
    .page {
        width: min(100% - 20px, 1040px);
        margin: 20px auto;
    }

    .site-header,
    .release-heading {
        flex-direction: column;
    }

    .site-nav {
        padding-top: 0;
    }

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

    .release-actions {
        justify-content: flex-start;
    }

    .card,
    .release-card {
        padding: 20px;
    }
}


/* Home page --------------------------------------------------------- */

.home-page {
    width: min(1040px, calc(100% - 32px));
}

.home-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
    padding: 52px 48px;
    border: 1px solid #d8e2ef;
    border-radius: 18px;
    background:
        radial-gradient(
            circle at top right,
            rgba(26, 115, 232, 0.14),
            transparent 40%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f4f8ff 100%
        );
}

.hero-content {
    max-width: 720px;
}

.hero-eyebrow,
.section-eyebrow,
.home-link-kicker {
    margin: 0 0 8px;
    color: #1a73e8;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-hero h2 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.hero-copy {
    max-width: 680px;
    margin: 22px 0 0;
    color: #5f6368;
    font-size: 1.08rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.home-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.home-link-card {
    display: flex;
    min-height: 190px;
    flex-direction: column;
    padding: 22px;
    border: 1px solid #dfe3e8;
    border-radius: 12px;
    background: white;
    color: #202124;
    text-decoration: none;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}

.home-link-card:hover {
    transform: translateY(-2px);
    border-color: #b8c7dc;
    box-shadow:
        0 10px 28px
        rgba(32, 33, 36, 0.08);
}

.home-link-card strong {
    margin-bottom: 8px;
    font-size: 1.18rem;
}

.home-link-card > span:not(
    .home-link-kicker,
    .home-link-arrow
) {
    color: #5f6368;
    line-height: 1.55;
}

.home-link-arrow {
    margin-top: auto;
    padding-top: 20px;
    color: #1a73e8;
    font-size: 0.92rem;
    font-weight: 600;
}

.home-section {
    padding: 30px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 22px;
}

.section-heading h2 {
    margin: 0;
}

.section-heading a {
    white-space: nowrap;
}

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

.latest-release {
    display: flex;
    min-height: 118px;
    flex-direction: column;
    padding: 18px;
    border: 1px solid #e1e5ea;
    border-radius: 10px;
    background: #fafbfc;
    color: #202124;
    text-decoration: none;
}

.latest-release:hover {
    border-color: #b8c7dc;
    background: #f7faff;
}

.latest-release strong {
    line-height: 1.35;
}

.latest-meta {
    margin-top: 6px;
    color: #6b7075;
    font-size: 0.86rem;
}

.readme-section .markdown-body {
    margin-top: 0;
}

.readme-section .markdown-body > h1:first-child {
    display: none;
}

.readme-section .markdown-body > h2:first-of-type {
    margin-top: 0;
}

@media (max-width: 900px) {
    .home-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 760px) {
    .home-page {
        width: min(100% - 20px, 1040px);
    }

    .home-hero {
        padding: 34px 24px;
    }

    .home-grid,
    .latest-grid {
        grid-template-columns: 1fr;
    }

    .home-link-card {
        min-height: 165px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}


/* Roadmap page ------------------------------------------------------ */

.roadmap-page {
    width: min(1040px, calc(100% - 32px));
}

.roadmap-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 28px;
    margin-bottom: 18px;
    padding: 34px;
    border: 1px solid #d8e2ef;
    border-radius: 14px;
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f4f8ff 100%
        );
}

.roadmap-hero h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    letter-spacing: -0.025em;
}

.roadmap-hero .hero-copy {
    margin-top: 14px;
}

.roadmap-summary {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.roadmap-summary-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 78px;
    padding: 16px 18px;
    border: 1px solid #dfe3e8;
    border-radius: 12px;
    background: white;
    color: #202124;
    text-align: left;
}

.roadmap-summary-card:hover {
    border-color: #b8c7dc;
    background: #f8fbff;
}

.roadmap-summary-card strong {
    font-size: 1.7rem;
    line-height: 1;
}

.roadmap-summary-card span {
    color: #5f6368;
    font-weight: 600;
}

.roadmap-filters {
    padding: 28px;
}

.roadmap-filter-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr))
        minmax(220px, 1.25fr);
    gap: 14px;
}

.roadmap-search-field input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #c7ccd1;
    border-radius: 6px;
    color: #202124;
    background: white;
}

.roadmap-search-field input:focus {
    outline: 2px solid #1a73e8;
    outline-offset: 1px;
    border-color: #1a73e8;
}

.roadmap-search-field input:disabled {
    background: #f1f3f4;
    color: #80868b;
}

.filter-reset {
    padding: 0;
    border: 0;
    background: transparent;
    color: #1a73e8;
    text-decoration: underline;
}

.filter-reset:hover {
    filter: none;
    text-decoration: none;
}

.roadmap-mod-card {
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid #dfe3e8;
    border-radius: 12px;
    background: white;
}

.roadmap-mod-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    padding: 24px 26px 18px;
    border-bottom: 1px solid #e4e7eb;
}

.roadmap-mod-heading h2 {
    margin: 0;
}

.roadmap-mod-heading .section-eyebrow {
    margin-bottom: 4px;
}

.roadmap-item-list {
    display: grid;
    gap: 0;
}

.roadmap-item {
    position: relative;
    padding: 20px 26px 22px;
    border-bottom: 1px solid #edf0f2;
}

.roadmap-item:last-child {
    border-bottom: 0;
}

.roadmap-item::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    content: "";
    background: #c7ccd1;
}

.roadmap-item.status-in-development::before {
    background: #1a73e8;
}

.roadmap-item.status-planned::before {
    background: #bf8700;
}

.roadmap-item.status-ideas::before {
    background: #8250df;
}

.roadmap-item-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.roadmap-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.roadmap-status-badge,
.roadmap-type-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.roadmap-status-badge {
    background: #eef1f4;
}

.roadmap-status-badge.status-in-development {
    background: #e8f0fe;
    color: #174ea6;
}

.roadmap-status-badge.status-planned {
    background: #fff4ce;
    color: #7a4f01;
}

.roadmap-status-badge.status-ideas {
    background: #f3e8ff;
    color: #6639a6;
}

.roadmap-type-badge {
    background: #f1f3f4;
    color: #5f6368;
}

.roadmap-item h3 {
    margin: 0 0 7px;
    font-size: 1.04rem;
}

.roadmap-item p {
    margin: 0;
    color: #5f6368;
    line-height: 1.6;
}

.roadmap-empty {
    text-align: center;
}

@media (max-width: 820px) {
    .roadmap-filter-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .roadmap-page {
        width: min(100% - 20px, 1040px);
    }

    .roadmap-hero,
    .roadmap-mod-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .roadmap-hero {
        padding: 26px 22px;
    }

    .roadmap-filter-grid {
        grid-template-columns: 1fr;
    }

    .roadmap-item {
        padding: 18px 20px 20px;
    }
}



/* Back to top ------------------------------------------------------- */

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 20;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border: 1px solid #c7ccd1;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.94);
    color: #1a73e8;

    box-shadow:
        0 4px 14px
        rgba(32, 33, 36, 0.14);

    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
}

.back-to-top:hover {
    background: #f4f8ff;
    border-color: #9db9df;
    text-decoration: none;
}

@media (max-width: 600px) {
    .back-to-top {
        right: 14px;
        bottom: 14px;

        width: 38px;
        height: 38px;
    }
}
