:root {
    color-scheme: dark;
    --background: #100d14;
    --surface: #1b161f;
    --line: #3b2c3d;
    --text: #fff5fc;
    --muted: #c6b5c7;
    --accent: #ff6fae;
    font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
    font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
    min-width: 280px;
    margin: 0;
    background: var(--background);
    color: var(--text);
    line-height: 1.5;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; }

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.shell {
    width: min(1120px, calc(100% - 72px));
    margin-inline: auto;
}

.site-header {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
}

.brand, .header-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand {
    gap: 10px;
    font-size: 25px;
    font-weight: 750;
    letter-spacing: -.04em;
}

.brand img { object-fit: contain; }
.accent, .header-link span { color: var(--accent); }

.header-link {
    min-height: 44px;
    gap: 8px;
    padding-inline: 2px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
}

.header-link:hover { color: var(--text); }

.hero {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    min-height: 454px;
    gap: 22px;
    padding-block: 32px 24px;
}

.hero h1 {
    font-size: clamp(3.65rem, 7.3vw, 6.25rem);
    font-weight: 780;
    line-height: .99;
    letter-spacing: -.065em;
}

.hero em { color: var(--accent); font-style: normal; }

.hero p {
    max-width: 38ch;
    margin-top: 24px;
    color: var(--muted);
    font-size: clamp(1.06rem, 1.8vw, 1.28rem);
    line-height: 1.58;
    text-wrap: pretty;
}

.hero-art {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-width: 0;
    aspect-ratio: 1.25;
    background: radial-gradient(ellipse at center, #ac145641, transparent 72%);
}

.hero-art::before, .hero-art::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: 1px solid #ac44794a;
    border-radius: 50%;
}

.hero-art::before { inset: 8% 15%; }
.hero-art::after { inset: 2% 9%; border-color: #ac44792c; }

.hero-art img {
    width: 70%;
    height: auto;
    filter: drop-shadow(0 18px 32px #070308a8);
}

.download-section {
    padding-block: 22px 56px;
    scroll-margin-top: 20px;
    border-top: 1px solid var(--line);
}

.download-section h2 {
    margin-bottom: 15px;
    font-size: clamp(1.55rem, 3vw, 2rem);
    font-weight: 730;
    letter-spacing: -.035em;
}

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

.download-card {
    display: grid;
    align-content: space-between;
    gap: 22px;
    min-height: 165px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(150deg, #241923, var(--surface) 68%);
}

.card-top, .card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.card-actions {
    min-height: 44px;
    flex-wrap: wrap;
}

.download-card h3 { font-size: 1.4rem; line-height: 1.15; }
.details { margin-top: 6px; }
.details, .release-status, .notice { color: var(--muted); font-size: .925rem; }
.notice { margin-bottom: 16px; }

.release-status.is-version {
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.file-type {
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--accent);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
}

.action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 44px;
    padding: 8px 15px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.action span { font-size: 1.18em; line-height: 1; }
.action[aria-disabled="true"] { opacity: .65; cursor: wait; }
.primary { background: #fa538f; color: #190610; }
.primary:hover { background: #ff82b0; }

.secondary {
    border-color: #583c53;
    background: #2a1d2b;
    color: var(--text);
}
.secondary:hover { background: #39243a; }

.site-footer {
    padding-block: 18px 26px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .925rem;
}

.site-footer strong { color: var(--text); font-weight: 650; }

@media (max-width: 860px) {
    .shell { width: calc(100% - 48px); }
    .hero { min-height: 365px; }
    .download-card { padding: 18px; }
}

@media (max-width: 640px) {
    .shell { width: calc(100% - 36px); }
    .site-header { min-height: 62px; }

    .hero {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 7px;
        min-height: 0;
        padding-block: 34px 14px;
        text-align: center;
    }

    .hero h1 { font-size: clamp(2.6rem, 11vw, 4.25rem); }
    .hero p { margin: 16px auto 0; }
    .hero-art { width: min(100%, 230px); }
    .download-list { grid-template-columns: 1fr; }
    .download-section { padding-bottom: 36px; }
}
