:root {
  color-scheme: light;
  --background: #f7f7f4;
  --surface: #ffffff;
  --text: #1f231f;
  --muted: #626962;
  --border: #d7dbd5;
  --accent: #3f6900;
  --accent-soft: #edf5e3;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); font-size: 16px; line-height: 1.65; }
a { color: var(--accent); text-underline-offset: 3px; }
button { font: inherit; }
header, main, footer { width: min(760px, calc(100% - 40px)); margin-inline: auto; }
header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.site-name { color: var(--text); font-weight: 700; text-decoration: none; }
nav { display: flex; gap: 20px; font-size: 14px; }
main { padding: 70px 0 50px; }
section { padding: 38px 0; border-bottom: 1px solid var(--border); }
.intro { padding-top: 0; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 13px; font-weight: 600; }
h1 { margin: 0 0 24px; max-width: 620px; font-size: clamp(40px, 8vw, 64px); line-height: 1.05; letter-spacing: -.04em; }
h2 { margin: 0 0 15px; font-size: 23px; line-height: 1.3; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
.lead { color: #343a34; font-size: 20px; line-height: 1.55; }
ul { margin: 0 0 18px; padding-left: 22px; }
li + li { margin-top: 6px; }
.chooser { margin-top: 28px; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
fieldset { margin: 0; padding: 0; border: 0; }
fieldset + fieldset { margin-top: 24px; }
legend { margin-bottom: 10px; padding: 0; font-size: 14px; font-weight: 700; }
.choices { display: grid; gap: 8px; }
.gpu-choices { grid-template-columns: repeat(4, 1fr); }
.format-choices { grid-template-columns: repeat(3, 1fr); }
.choices button { min-height: 68px; padding: 11px 12px; color: var(--text); text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 5px; cursor: pointer; }
.choices button:hover { border-color: #8c958c; }
.choices button:focus-visible { outline: 3px solid rgba(63, 105, 0, .25); outline-offset: 2px; }
.choices button.selected { border-color: var(--accent); background: var(--accent-soft); }
.choices strong, .choices small { display: block; }
.choices strong { font-size: 14px; }
.choices small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.download-button { margin-top: 24px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; color: #fff; background: #293128; border-radius: 5px; text-decoration: none; }
.download-button:hover { background: #1d231d; }
.download-button b, .download-button small { display: block; }
.download-button small { margin-top: 2px; color: #d0d5cf; font-size: 12px; }
.download-links { margin-top: 12px; color: var(--muted); font-size: 13px; text-align: center; }
footer { min-height: 100px; padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 30px; color: var(--muted); font-size: 12px; }

@media (max-width: 650px) {
  header, main, footer { width: min(100% - 28px, 760px); }
  main { padding-top: 52px; }
  .lead { font-size: 18px; }
  .gpu-choices, .format-choices { grid-template-columns: 1fr 1fr; }
  .format-choices button:last-child { grid-column: 1 / -1; }
  footer { align-items: flex-start; flex-direction: column; gap: 5px; }
}

@media (max-width: 400px) {
  .gpu-choices, .format-choices { grid-template-columns: 1fr; }
  .format-choices button:last-child { grid-column: auto; }
}

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