:root {
    color-scheme: dark;
    font-family: "Instrument Sans", "Microsoft YaHei UI", "PingFang SC", sans-serif;
    --background: #10110f;
    --surface: #181916;
    --text: #f1eee7;
    --muted: #b7b8ad;
    --line: #37392f;
    --accent: #d4b77b;
    --accent-hover: #e7cb91;
    --on-accent: #16150e;
    --ink: #23241f;
    --paper: #edeee8;
    --paper-muted: #4d5044;
    --paper-line: #c8cabf;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--background); color: var(--text); }
a { color: inherit; }
button { font: inherit; }
p, h1, h2, h3 { margin: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

.container { width: min(1080px, calc(100% - 64px)); margin-inline: auto; }
.topbar { border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 68px; gap: 20px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; text-decoration: none; }
nav { display: flex; gap: 26px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 14px; text-decoration: none; }
nav a:hover { color: var(--accent); }

.download-band { border-bottom: 1px solid var(--line); }
.download-body { padding-block: 88px 76px; }
h1 { font-size: 108px; line-height: .98; font-weight: 700; overflow-wrap: anywhere; }
.subtitle { margin-top: 16px; color: var(--accent); font-size: 26px; line-height: 1.3; }
.description { margin-top: 20px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.download-row { display: flex; min-height: 52px; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-top: 32px; }
.download-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 19px; min-height: 52px; background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 700; border-radius: 4px; }
.download-button:hover { background: var(--accent-hover); }
.download-button:focus-visible { outline-color: var(--accent); }
.download-icon { font-size: 22px; line-height: 1; }
#release-status { color: var(--muted); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
#retry { cursor: pointer; padding: 0 14px; min-height: 44px; color: var(--accent); background: transparent; border: 1px solid var(--line); border-radius: 4px; }
#retry:hover { border-color: var(--accent); }
.platform { margin-top: 12px; color: var(--muted); font-size: 13px; }
.download-row:has(noscript p) #release-status { display: none; }

.updates { display: grid; grid-template-columns: 1fr 2fr; gap: 38px; padding-block: 50px; }
h2 { font-size: 25px; line-height: 1.3; }
.release-empty { margin-top: 10px; color: var(--muted); font-size: 14px; }
article { min-width: 0; padding-top: 16px; border-top: 1px solid var(--line); }
.release-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.release-header h3 { font-size: 20px; overflow-wrap: anywhere; }
#release-minimum, details { color: var(--muted); font-size: 13px; }
.release-notes { margin-top: 10px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
details { margin-top: 6px; }
summary { min-height: 44px; line-height: 44px; cursor: pointer; }
code { display: block; overflow-wrap: anywhere; color: var(--text); }

.preview-band { background: var(--paper); color: var(--ink); border-block: 1px solid var(--paper-line); }
.preview-content { padding-block: 50px 56px; }
.preview-content img { display: block; width: 100%; height: auto; margin-top: 22px; border: 1px solid var(--paper-muted); border-radius: 6px; background: var(--surface); }
.footer { padding-block: 24px; color: var(--muted); font-size: 13px; }

@media (max-width: 760px) {
    .container { width: calc(100% - 40px); }
    .download-body { padding-block: 62px 54px; }
    h1 { font-size: 76px; }
    .updates { column-gap: 26px; }
}

@media (max-width: 520px) {
    .topbar-inner { min-height: 60px; }
    nav { gap: 15px; }
    .wordmark { gap: 6px; }
    .wordmark img { width: 30px; height: 30px; }
    .download-body { padding-block: 46px 45px; }
    h1 { font-size: 49px; }
    .subtitle { margin-top: 12px; font-size: 23px; }
    .description { margin-top: 16px; line-height: 1.6; }
    .download-row { margin-top: 24px; min-height: 44px; }
    .updates { grid-template-columns: 1fr; gap: 17px; padding-block: 30px; }
    .preview-content { padding-block: 32px; }
    .preview-content img { margin-top: 16px; }
}
