:root {
  color-scheme: dark;
  --bg: #111916;
  --panel: #1b2620;
  --panel-strong: #26362b;
  --ink: #f0f1e8;
  --muted: #adb9ae;
  --line: #354338;
  --accent: #e8c478;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.6; }
main { max-width: 1180px; margin: auto; padding: 0 40px; }
a { color: inherit; text-underline-offset: 5px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }

header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.wordmark { font-size: 1.6rem; letter-spacing: -.06em; font-weight: 900; text-decoration: none; }
.wordmark span { color: var(--accent); }
.edition, .eyebrow, .file-label, .platform-kind { font-size: .78rem; letter-spacing: .12em; font-weight: 700; }
.edition { color: var(--muted); }
.eyebrow { margin: 0 0 18px; color: var(--accent); }
.eyebrow > span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }

.banner { margin: 24px 0 0; }
.banner img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 4px; }
.banner figcaption { margin-top: 7px; color: var(--muted); font-size: .875rem; text-align: right; }
.download { display: grid; grid-template-columns: 1.25fr .9fr; gap: 72px; align-items: center; padding: 60px 0 64px; }
h1 { margin: 0 0 26px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.7rem, 5.2vw, 4.8rem); font-weight: 400; letter-spacing: -.055em; line-height: 1.08; }
.description { max-width: 520px; margin: 0 0 20px; font-size: 1.2rem; }
.note { max-width: 480px; margin: 0; color: var(--muted); }
.release-callout { padding: 30px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 3px; }
.file-label { color: var(--muted); }
.release-version { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 13px 0 18px; font-size: 1.65rem; font-weight: 650; }
.release-version span { color: var(--muted); font-size: .875rem; font-weight: 400; }
.release-callout p { margin: 0 0 24px; color: var(--muted); }

.button { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 54px; padding: 12px 18px; background: var(--accent); color: var(--bg); border-radius: 3px; font-size: 1rem; font-weight: 750; text-decoration: none; }
.button:hover { background: #f6d797; }
.button span { font-size: 1.5rem; line-height: 1; }
.button--dark { margin-bottom: 19px; background: transparent; color: var(--ink); border: 1px solid var(--line); }
.button--dark:hover { background: var(--panel-strong); color: var(--ink); border-color: var(--accent); }
.text-link { font-size: .95rem; text-decoration-color: var(--line); }
.text-link:hover { color: var(--accent); text-decoration-color: var(--accent); }

.platforms, .screenshots, .install, .help { border-top: 1px solid var(--line); }
.platforms { padding: 44px 0 54px; }
.section-heading .eyebrow { margin-bottom: 10px; }
h2 { margin: 0 0 12px; font-size: 1.6rem; font-weight: 550; letter-spacing: -.03em; line-height: 1.25; }
.capture-note { max-width: 730px; margin: 0 0 28px; color: var(--muted); }
.platform-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.platform-card { display: flex; flex-direction: column; min-width: 0; padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 3px; }
.platform-card--featured { background: linear-gradient(145deg, #29392d, var(--panel)); border-color: #78663d; }
.platform-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.platform-mark { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .875rem; }
.platform-kind { color: var(--muted); text-align: right; }
.platform-card h3 { margin: 0 0 9px; font-size: 1.3rem; }
.platform-card > p { min-height: 78px; margin: 0 0 20px; color: var(--muted); }
.platform-requirement { display: grid; gap: 3px; min-height: 68px; margin: auto 0 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .875rem; }
.platform-requirement strong { color: var(--ink); font-size: .8rem; letter-spacing: .03em; }
.platform-requirement span { color: var(--muted); }
.platform-card small { display: block; margin-top: 12px; color: var(--muted); font-size: .8rem; }

.screenshots { padding: 38px 0 48px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gallery figure { min-width: 0; margin: 0; }
.gallery a { display: flex; align-items: center; justify-content: center; aspect-ratio: 844 / 390; overflow: hidden; background: #060908; border: 1px solid var(--line); border-radius: 3px; }
.gallery a:hover { border-color: var(--accent); }
.gallery img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gallery figcaption { padding-top: 17px; }
.gallery figcaption > span { color: var(--accent); font-size: .875rem; letter-spacing: .08em; }
.gallery h3 { margin: 8px 0 7px; font-size: 1.08rem; }
.gallery p { margin: 0 0 10px; color: var(--muted); }
.gallery small { color: var(--muted); font-size: .875rem; }

.install { padding: 44px 0 52px; }
.install-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.install-grid > div { position: relative; padding-top: 4px; }
.number { display: block; margin-bottom: 12px; color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .875rem; }
.install-grid h3 { margin: 0 0 7px; font-size: 1rem; }
.install-grid p { margin: 0; color: var(--muted); }

.help { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; padding: 40px 0 48px; }
.help h2 { margin-bottom: 10px; font-size: 1.2rem; }
.help p { margin: 0 0 14px; color: var(--muted); }
details { margin-bottom: 16px; padding: 0 0 16px; border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-size: 1rem; }
details p { padding-top: 16px; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 22px 0 30px; color: var(--muted); font-size: .875rem; }
footer a { text-decoration: none; }
footer a:hover { color: var(--accent); }

@media (max-width: 1040px) {
  .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-card > p { min-height: auto; }
}
@media (max-width: 850px) {
  main { padding: 0 24px; }
  .download { gap: 36px; padding: 48px 0; }
  .install-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .help { gap: 32px; }
  .gallery { gap: 18px; }
  .release-callout { padding: 24px; }
}
@media (max-width: 620px) {
  header { padding: 20px 0; }
  .edition { max-width: 170px; font-size: .7rem; line-height: 1.45; text-align: right; }
  .banner { margin-top: 18px; }
  .banner figcaption { text-align: left; }
  .download { grid-template-columns: 1fr; gap: 30px; padding: 34px 0 38px; }
  .release-callout { order: -1; }
  .platform-grid, .install-grid { grid-template-columns: 1fr; }
  .platforms, .screenshots, .install { padding: 32px 0 38px; }
  .gallery { grid-template-columns: 1fr; gap: 30px; }
  .gallery a { aspect-ratio: auto; }
  .gallery img { height: auto; }
  .help { grid-template-columns: 1fr; gap: 28px; }
  .release-version { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: no-preference) { a { transition: background-color .15s, color .15s, border-color .15s; } }
