
:root {
    --background: #101014;
    --surface: #17181d;
    --surface-hover: #1d1e25;
    --border: #282833;

    --text: #edf5f1;
    --muted: #8a8999;

    --accent: #558fd6;
    --accent-soft: #1b2a47;
    --accent-hover: #75a2e5;

    --radius: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.header {
    max-width: 960px;
    margin: auto;
    padding: 25px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 22px;
    font-weight: 750;
    letter-spacing: -1px;
}

.logo span,
.hero h1 span {
    color: var(--accent);
}

.github-link,
.release-link {
    color: var(--muted);
    font-size: 13px;
    transition: color .2s;
}

.github-link:hover,
.release-link:hover {
    color: var(--accent);
}

main {
    max-width: 760px;
    margin: auto;
    padding: 70px 24px 30px;
}

.eyebrow {
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.hero {
    margin-bottom: 55px;
}

.hero h1 {
    font-size: clamp(36px, 7vw, 54px);
    letter-spacing: -2.5px;
    margin: 18px 0;
}

.hero p {
    color: var(--muted);
    line-height: 1.7;
    max-width: 480px;
    font-size: 14px;
}

/* Latest release */

.latest-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
}

.section-heading,
.history-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.section-heading h2,
.history-heading h2 {
    font-size: 29px;
    margin: 10px 0;
    letter-spacing: -1px;
}

.latest-badge {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 8px 12px;
    border-radius: 30px;
}

.release-date {
    color: var(--muted);
    font-size: 12px;
}

.release-notes {
    color: #c2cec8;
    font-size: 13px;
    line-height: 1.8;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.downloads h3 {
    font-size: 13px;
    margin: 25px 0 12px;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px;
    background: #1c1c24;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: .2s;
}

.file:hover {
    background: var(--surface-hover);
    border-color: #43426e;
}

.file-info {
    min-width: 0;
}

.file-name {
    font-size: 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.file-meta {
    color: var(--muted);
    font-size: 10px;
    margin-top: 6px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.download {
    flex-shrink: 0;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 9px;
    padding: 9px 13px;
    font-size: 11px;
    font-weight: 750;
    transition: .2s;
}

.download:hover {
    background: var(--accent);
    color: #101020;
}

.release-link {
    display: inline-block;
    margin-top: 23px;
}

/* Release history */

.history-section {
    margin-top: 65px;
}

.history-heading {
    margin-bottom: 22px;
}

.history-heading h2 {
    font-size: 25px;
}

.release-count {
    color: var(--muted);
    font-size: 11px;
}

.releases-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.release-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .2s;
}

.release-item[open] {
    border-color: #43426e;
}

.release-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 17px;
    cursor: pointer;
    list-style: none;
}

.release-summary::-webkit-details-marker {
    display: none;
}

.release-summary:hover {
    background: var(--surface-hover);
}

.release-summary-left {
    min-width: 0;
}

.release-name {
    font-size: 14px;
    font-weight: 750;
}

.release-info {
    color: var(--muted);
    font-size: 11px;
    margin-top: 6px;
}

.release-summary-right {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-shrink: 0;
}

.release-tag {
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 7px;
    padding: 6px 9px;
    font-size: 10px;
    font-weight: 750;
}

.release-arrow {
    color: var(--muted);
    font-size: 14px;
    transition: transform .2s;
}

.release-item[open] .release-arrow {
    transform: rotate(180deg);
}

.release-content {
    padding: 0 17px 18px;
    border-top: 1px solid var(--border);
}

.release-description {
    color: #bdc9c2;
    font-size: 12px;
    line-height: 1.7;
    padding: 15px 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.release-github {
    display: inline-block;
    color: var(--accent);
    font-size: 11px;
    margin-top: 17px;
}

.loading,
.error {
    color: var(--muted);
    padding: 25px;
    text-align: center;
    font-size: 13px;
}

.error {
    color: #ef8b8b;
}

.hidden {
    display: none;
}

/* Footer */

footer {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 11px;
    padding: 45px 0 20px;
}

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

/* Mobile */

@media (max-width: 500px) {
    main {
        padding: 45px 16px 25px;
    }

    .header {
        padding: 20px 16px;
    }

    .hero {
        margin-bottom: 40px;
    }

    .latest-section {
        padding: 19px;
    }

    .section-heading h2 {
        font-size: 25px;
    }

    .file {
        padding: 11px;
    }

    .download {
        padding: 9px;
    }

    .release-summary {
        padding: 14px;
    }

    .release-summary-right {
        gap: 8px;
    }

    .release-count {
        font-size: 10px;
    }
}
