/* Theme colors follow the OS until a visitor chooses an override. */
:root {
  color-scheme: light;
  --bg: #faf9f6;
  --surface: #ffffff;
  --soft: #f0eee8;
  --border: #dedcd4;
  --text: #202936;
  --muted: #5e6875;
  --accent: #806019;
  --accent-soft: #eee5cf;
  --button: #e7c579;
  --button-text: #20252e;
  --error: #9a3c23;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #10151f; --surface: #171f2b; --soft: #202a38;
    --border: #303b4b; --text: #f3f1ec; --muted: #adb7c6;
    --accent: #e7c579; --accent-soft: #342f25; --error: #f3ba9d;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #10151f; --surface: #171f2b; --soft: #202a38;
  --border: #303b4b; --text: #f3f1ec; --muted: #adb7c6;
  --accent: #e7c579; --accent-soft: #342f25; --error: #f3ba9d;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.7 "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
button:not(:disabled) { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.035em; font-weight: 600; }
h1 { font-size: clamp(42px, 5vw, 62px); letter-spacing: -.055em; }
h1 span, .brand-dot { color: var(--accent); }
h2 { font-size: 28px; }
h3 { font-size: 17px; }
p { color: var(--muted); }
img { display: block; max-width: 100%; }
.wrap { width: min(1040px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; padding: 10px 18px; background: var(--button); color: var(--button-text); z-index: 10; }
.skip-link:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.site-header { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; gap: 10px; align-items: center; font-size: 25px; font-weight: 650; letter-spacing: -1px; }
.brand img { border-radius: 50%; }
.header-actions, nav { display: flex; align-items: center; gap: 26px; }
nav { font-size: 13px; gap: 20px; color: var(--muted); }
.theme-control { display: flex; padding: 3px; gap: 2px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
.theme-control button { background: transparent; color: var(--muted); border: 0; border-radius: 5px; padding: 9px; width: 38px; height: 38px; display: grid; place-items: center; }
.theme-control button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 74px; align-items: center; padding-block: 56px 64px; }
.hero-copy { padding-bottom: 20px; }
.eyebrow { font-size: 10px; font-weight: 650; letter-spacing: 1.5px; color: var(--accent); margin-bottom: 18px; }
.hero-description { max-width: 390px; font-size: 16px; margin-top: 25px; }
.requirements { margin-top: 22px; font-size: 12px; }
.discord-button { margin-top: 24px; padding: 12px 20px; }
.discord-button:hover { color: var(--button-text); }
.download-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 28px; min-width: 0; }
.release-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.release-top .eyebrow { margin-bottom: 6px; font-size: 9px; }
.release-top h2 { font-size: 25px; }
.pill { color: var(--accent); background: var(--accent-soft); padding: 4px 9px; border-radius: 5px; font-size: 10px; }
.release-status { font-size: 12px; line-height: 1.6; margin-top: 18px; }
.release-status.error { color: var(--error); }
.release-meta { display: flex; justify-content: space-between; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.release-meta strong { font-weight: 500; color: var(--text); margin-left: 4px; }
.compatible { margin-top: 18px; }
.compatible h3 { font-size: 12px; letter-spacing: 0; font-weight: 600; }
.compatible p { font-size: 15px; margin-top: 5px; color: var(--accent); }
.help-section a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.button { min-height: 48px; border: 0; border-radius: 7px; background: var(--button); color: var(--button-text); font-size: 14px; font-weight: 650; display: inline-flex; align-items: center; justify-content: center; gap: 12px; }
.button:hover:not(:disabled) { filter: brightness(1.05); }
.button:disabled { cursor: wait; opacity: .5; }
.download-button { width: 100%; margin-top: 19px; }
.refresh-button { display: block; margin: 0 auto; padding: 12px; border: 0; background: none; color: var(--muted); font-size: 11px; }
.checksum { border-top: 1px solid var(--border); padding-top: 13px; font-size: 11px; }
.checksum h3 { font-size: 12px; letter-spacing: 0; }
.checksum p { margin-top: 12px; }
.checksum code { display: block; overflow-wrap: anywhere; color: var(--accent); font-size: 10px; margin-top: 10px; }
.section { padding-block: 40px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 25px; margin-bottom: 25px; }
.section-heading > p { font-size: 13px; }
.mode-grid, .feature-grid, .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.mode-grid article { border-top: 1px solid var(--border); padding-top: 18px; }
.mode-number { font-size: 11px; color: var(--accent); }
.mode-grid h3 { margin-top: 9px; }
.mode-grid p, .feature-grid p, .steps p { font-size: 13px; margin-top: 9px; }
.section-note { font-size: 11px; margin-top: 23px; }
.feature-grid { gap: 25px 34px; }
.feature-grid article { padding-left: 15px; border-left: 2px solid var(--border); }
.setup-section { border-top: 1px solid var(--border); margin-top: 20px; }
.steps { padding: 0; list-style: none; counter-reset: step; margin: 0; }
.steps li { counter-increment: step; }
.steps h3:before { content: counter(step) ". "; color: var(--accent); }
.help-section { border-top: 1px solid var(--border); display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.help-section h2 { font-size: 22px; margin-bottom: 12px; }
.help-section p { font-size: 12px; }
.site-footer { padding-block: 20px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 24px; font-size: 11px; color: var(--muted); }
.site-footer > span { margin-right: auto; }
[hidden] { display: none !important; }
@media (max-width: 800px) {
  .wrap { width: calc(100% - 40px); }
  .hero { gap: 32px; }
  .hero-description { font-size: 14px; }
  .download-card { padding: 23px; }
  .header-actions { gap: 18px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 10px; }
  .mode-grid, .feature-grid, .steps { gap: 22px; }
}
@media (max-width: 620px) {
  .site-header { min-height: 82px; gap: 12px; }
  .brand { font-size: 23px; gap: 7px; }
  .brand img { width: 34px; height: 34px; }
  nav { display: none; }
  .theme-control button { padding: 7px 9px; font-size: 11px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 30px 24px; gap: 34px; }
  .hero-copy { padding-bottom: 0; }
  h1 { font-size: clamp(40px, 9vw, 52px); }
  .hero-description { font-size: 15px; margin-top: 19px; }
  .requirements { margin-top: 17px; }
  .discord-button { margin-top: 20px; }
  .download-card { padding: 24px; }
  .section { padding-block: 30px; }
  h2 { font-size: 25px; }
  .mode-grid, .steps { grid-template-columns: 1fr; gap: 21px; }
  .mode-grid article { display: grid; grid-template-columns: 28px 1fr; gap: 0 6px; }
  .mode-number { grid-row: 1/3; padding-top: 3px; }
  .mode-grid h3 { margin-top: 0; }
  .mode-grid p { grid-column: 2; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
  .feature-grid h3 { font-size: 16px; }
  .feature-grid p { font-size: 12px; }
  .help-section { grid-template-columns: 1fr; gap: 20px; }
  .site-footer { gap: 16px; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 32px); }
  .brand { font-size: 21px; }
  .brand img { width: 30px; height: 30px; }
  .theme-control button { padding: 7px; }
  .download-card { padding: 20px; }
  .feature-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
