  :root {
    --bg: #ffffff; --text: #1b1f24; --muted: #57606a; --line: #d8dee4; --soft: #f6f8fa;
    --button: #22c55e; --button-hover: #1fb455; --on-button: #0b1410; --note: #9a6700;
    color-scheme: light dark;
  }
  @media (prefers-color-scheme: dark) {
    :root { --bg: #0f1216; --text: #e6e9ed; --muted: #9aa4af; --line: #2a313b; --soft: #161b22; --note: #d29922; }
  }
  * { box-sizing: border-box; }
  body {
    margin: 0; background: var(--bg); color: var(--text);
    font: 17px/1.65 "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  }
  main, header, footer { max-width: 700px; margin: 0 auto; padding: 0 20px; }
  a { color: inherit; text-underline-offset: 2px; }
  a:hover { color: var(--muted); }
  a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 3px; }
  code { font: 14px/1.5 "Cascadia Mono", Consolas, ui-monospace, monospace; background: var(--soft); padding: 2px 5px; border-radius: 4px; overflow-wrap: anywhere; }

  header { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; padding-bottom: 22px; font-size: 15px; }
  header .name { display: flex; align-items: center; gap: 9px; font-weight: 600; text-decoration: none; }
  header nav a { margin-left: 18px; color: var(--muted); }

  h1 { font-size: 34px; line-height: 1.2; margin: 36px 0 14px; letter-spacing: -0.01em; }
  h2 { font-size: 21px; margin: 48px 0 10px; }
  p, ul, ol { margin: 0 0 14px; }
  li { margin-bottom: 6px; }
  .muted { color: var(--muted); }

  .download {
    display: inline-block; margin: 10px 0 8px; padding: 12px 22px; border-radius: 8px;
    background: var(--button); color: var(--on-button); font-weight: 600; text-decoration: none;
  }
  .download:hover { background: var(--button-hover); color: var(--on-button); }
  .download:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
  .meta { font-size: 15px; color: var(--muted); }

  figure { margin: 32px 0 0; }
  figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; }
  figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

  dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
  dt { font-weight: 600; }
  dd { margin: 0; color: var(--muted); }

  .note { border-left: 3px solid var(--note); padding: 2px 0 2px 16px; margin: 18px 0 0; }

  footer { margin-top: 64px; padding-top: 22px; padding-bottom: 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

  @media (max-width: 560px) {
    body { font-size: 16px; }
    h1 { font-size: 28px; margin-top: 20px; }
    dl { grid-template-columns: 1fr; gap: 0; }
    dd { margin-bottom: 10px; }
    .download { display: block; text-align: center; }
  }
  header nav a:first-child { margin-left: 0; }
  header .name { white-space: nowrap; }
  @media (max-width: 400px) {
    header nav a[href*="github.com"] { display: none; }
  }

  /* Language chooser (first visit) */
  .lang-choice { position: fixed; inset: 0; z-index: 10; background: var(--bg); display: grid; place-items: center; padding: 20px; }
  .lang-choice[hidden] { display: none; }
  html.choosing body { overflow: hidden; }
  .lang-box { text-align: center; max-width: 440px; width: 100%; }
  .lang-box img { display: block; margin: 0 auto 18px; }
  .lang-box h1 { font-size: 22px; margin: 0 0 26px; font-weight: 600; }
  .lang-box .slash { color: var(--muted); font-weight: 400; margin: 0 4px; }
  .lang-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .lang-btn {
    display: block; padding: 16px 12px; border-radius: 10px; border: 1px solid var(--line);
    background: var(--soft); font-size: 18px; font-weight: 600; text-decoration: none; color: var(--text);
    transition: border-color .15s ease, background-color .15s ease;
  }
  .lang-btn:hover { border-color: var(--button); color: var(--text); }
  .lang-btn:focus-visible { outline: 3px solid var(--button); outline-offset: 2px; }
  @media (prefers-reduced-motion: reduce) { .lang-btn { transition: none; } }
  @media (max-width: 400px) { .lang-buttons { grid-template-columns: 1fr; } }
