@font-face {
  font-family: "Inter";
  src: url("../static/fonts/Inter.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #080b10;
  --surface: #121820;
  --surface-raised: #18212b;
  --line: #2a343f;
  --line-strong: #465463;
  --text: #f3f7fa;
  --soft: #c4ced8;
  --muted: #8f9cab;
  --green: #26e08c;
  --cyan: #65c9e8;
  --magenta: #e872ad;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; scroll-padding-top: 120px; background: var(--background); }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--background); color: var(--text); font-family: var(--font); letter-spacing: 0; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.content { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.skip-link { position: fixed; top: 10px; left: 12px; z-index: 100; border-radius: 5px; background: var(--green); color: #03120a; padding: 9px 12px; font-weight: 850; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(255,255,255,0.08); background: rgba(8,11,16,0.94); backdrop-filter: blur(16px); }
.header-inner { width: min(1180px, calc(100% - 32px)); min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand img { border: 1px solid var(--line); border-radius: 7px; object-fit: cover; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; font-weight: 900; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 700; }
.back-link { min-height: 40px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); padding: 0 12px; color: var(--soft); text-decoration: none; font-size: 11px; font-weight: 800; }
.back-link:hover { border-color: var(--line-strong); color: var(--text); }
.back-link svg { width: 17px; height: 17px; }

.intro { border-bottom: 1px solid var(--line); padding: 72px 0 62px; background: #0b1016; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr); align-items: end; gap: 70px; }
.eyebrow, .release-label { color: var(--green); font-size: 10px; font-weight: 900; text-transform: uppercase; }
h1 { max-width: 720px; margin: 14px 0 0; font-size: clamp(48px, 7vw, 82px); line-height: 0.98; letter-spacing: 0; }
.intro-copy > p { margin: 0; color: var(--soft); font-size: 18px; font-weight: 650; line-height: 1.6; }
.current-version { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 10px; margin-top: 28px; border-top: 1px solid var(--line); padding-top: 18px; }
.current-version span, .current-version small { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.current-version strong { color: var(--green); font-size: 25px; }

.version-nav { position: sticky; top: 72px; z-index: 15; border-bottom: 1px solid var(--line); background: rgba(8,11,16,0.96); backdrop-filter: blur(14px); }
.version-nav-inner { min-height: 58px; display: flex; align-items: center; gap: 6px; overflow-x: auto; }
.version-nav a { min-width: 76px; min-height: 34px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 5px; color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 850; }
.version-nav a:hover { color: var(--text); }
.version-nav a.active { border-color: rgba(38,224,140,0.3); background: rgba(38,224,140,0.1); color: #b8f5d1; }

.release-history { padding-top: 44px; padding-bottom: 90px; }
.release { scroll-margin-top: 145px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.current-release { border-color: rgba(38,224,140,0.3); padding: 32px; box-shadow: inset 4px 0 var(--green); }
.release-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.release-header h2 { margin: 7px 0 0; font-size: 32px; letter-spacing: 0; }
.release-date { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.platforms { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.platforms span { border: 1px solid var(--line); border-radius: 5px; background: #0d1218; color: var(--soft); padding: 5px 8px; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.release-lead { max-width: 880px; margin: 28px 0 0; color: var(--soft); font-size: 17px; font-weight: 650; line-height: 1.6; }

.change-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.change-group { padding: 24px 24px 24px 0; }
.change-group + .change-group { border-left: 1px solid var(--line); padding-left: 24px; }
.change-group h3 { margin: 0; color: var(--soft); font-size: 12px; text-transform: uppercase; }
.change-group h3 span { width: 22px; height: 22px; display: inline-grid; place-items: center; margin-right: 7px; border-radius: 4px; background: rgba(38,224,140,0.1); color: var(--green); }
.change-group.improved h3 span { background: rgba(101,201,232,0.1); color: var(--cyan); }
.change-group.fixed h3 span { background: rgba(232,114,173,0.1); color: var(--magenta); }
.change-group ul, .compact-changes { margin: 18px 0 0; padding: 0; list-style: none; }
.change-group li { position: relative; margin-top: 13px; padding-left: 14px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.change-group li::before { content: ""; position: absolute; top: 7px; left: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--green); }
.change-group.improved li::before { background: var(--cyan); }
.change-group.fixed li::before { background: var(--magenta); }
.change-group strong { color: var(--soft); }

.release-downloads { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 16px; margin-top: 28px; }
.download-button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--green); border-radius: 5px; background: var(--green); color: #03120a; padding: 0 15px; text-decoration: none; font-size: 11px; font-weight: 900; }
.download-button.secondary { border-color: var(--line-strong); background: var(--surface-raised); color: var(--text); }
.download-button:hover { filter: brightness(1.06); }
.download-button svg { width: 16px; height: 16px; }
.checksum-link { color: var(--soft); font-size: 10px; font-weight: 800; text-underline-offset: 3px; }

.previous-releases { margin-top: 80px; }
.history-heading { margin-bottom: 28px; }
.history-heading h2 { margin: 8px 0 0; font-size: 34px; }
.compact-release { margin-top: 12px; padding: 25px 28px; }
.compact-release .release-header h2 { font-size: 23px; }
.compact-release .release-lead { margin-top: 17px; font-size: 14px; }
.compact-changes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 30px; margin-top: 20px; border-top: 1px solid var(--line); padding-top: 18px; }
.compact-changes li { position: relative; padding-left: 15px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.compact-changes li::before { content: ""; position: absolute; top: 7px; left: 0; width: 5px; height: 1px; background: var(--cyan); }

footer { border-top: 1px solid var(--line); background: #070a0e; }
.footer-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 10px; font-weight: 700; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-inner a:hover { color: var(--text); }

@media (max-width: 860px) {
  .intro { padding: 54px 0 48px; }
  .intro-grid { grid-template-columns: 1fr; gap: 34px; }
  .intro-copy > p { max-width: 660px; }
  .change-columns { grid-template-columns: 1fr; }
  .change-group { padding: 21px 0; }
  .change-group + .change-group { border-top: 1px solid var(--line); border-left: 0; padding-left: 0; }
}

@media (max-width: 600px) {
  .content { width: min(100% - 28px, 1120px); }
  .header-inner { width: calc(100% - 24px); min-height: 64px; }
  .brand small { display: none; }
  .back-link span { display: none; }
  .back-link { width: 40px; padding: 0; justify-content: center; }
  .version-nav { top: 64px; }
  .version-nav-inner { width: 100%; padding-inline: 14px; }
  h1 { font-size: 46px; }
  .intro-copy > p { font-size: 15px; }
  .current-version { grid-template-columns: 1fr auto auto; }
  .release-history { padding-top: 24px; padding-bottom: 60px; }
  .current-release, .compact-release { padding: 21px 18px; }
  .release-header { display: block; }
  .release-header h2 { font-size: 27px; }
  .platforms { justify-content: flex-start; margin-top: 15px; }
  .release-lead { margin-top: 20px; font-size: 14px; }
  .release-downloads { display: grid; grid-template-columns: 1fr; }
  .download-button { width: 100%; }
  .checksum-link { justify-self: center; padding: 8px; }
  .previous-releases { margin-top: 58px; }
  .history-heading h2 { font-size: 28px; }
  .compact-changes { grid-template-columns: 1fr; }
  .footer-inner { min-height: 118px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 12px; }
}

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