:root {
    /* Light palette */
    --bg: #F5F2EB;
    --ink: #1A1A1A;
    --mid: #6E6E6E;
    --light: #C8C4BA;
    --accent: #12794A;   /* emerald (approx. app emeraldInk) */
    --max: 680px;

    /* Roles lifted out of hardcoded hex values (and split
       --light where one variable was serving both a surface and a text or
       border role) so the dark block can address each separately. In light
       each is set to exactly the value it replaced — nothing shifts. */
    --body-text: #2A2A2A;     /* was hardcoded on p and ul li                 */
    --hairline:  #EFECE4;     /* h2 + li bottom borders */
    --faint:     #C8C4BA;     /* was var(--light) on footer text + li dash    */
  }

  /* Dark theme (app dark tokens) */
  @media (prefers-color-scheme: dark) {
    :root {
      --bg:        #0B0B0D;                     /* bg                        */
      --ink:       #F4F2EC;                     /* ink       — 17.6:1        */
      --body-text: #F4F2EC;                     /* ink       — 17.6:1        */
      --mid:       #9D9B91;                     /* ink2      —  7.1:1        */
      --faint:     #9D9B91;                     /* ink2      —  7.1:1        */
      --accent:    #5FD39A;                     /* accentInk — 12.5:1        */
      --light:     rgba(255, 255, 255, 0.098);  /* line2 — border role only  */
      --hairline:  rgba(255, 255, 255, 0.098);  /* line2                     */
    }
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { font-size: 16px; scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    line-height: 1.75;
    padding: 0 24px 80px;
  }

  nav {
    max-width: var(--max);
    margin: 0 auto;
    padding: 32px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-logo {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
  }

  .nav-links { display: flex; gap: 24px; }

  .nav-links a {
    font-size: 13px;
    color: var(--mid);
    text-decoration: none;
    transition: color 0.2s;
  }

  .nav-links a:hover { color: var(--ink); }
  .nav-links a.active { color: var(--ink); font-weight: 500; }

  header {
    max-width: var(--max);
    margin: 64px auto 0;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--light);
  }

  .doc-label {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mid);
    margin-bottom: 16px;
  }

  h1 {
    font-family: ui-serif, 'New York', Georgia, 'Times New Roman', serif;
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 20px;
  }

  .meta {
    font-size: 13px;
    color: var(--mid);
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
  }

  main { max-width: var(--max); margin: 0 auto; }

  section { padding: 48px 0 0; }

  h2 {
    font-family: ui-serif, 'New York', Georgia, 'Times New Roman', serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--hairline);
  }

  h3 {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mid);
    margin: 28px 0 10px;
  }

  p { font-size: 15px; color: var(--body-text); margin-bottom: 14px; }

  ul { list-style: none; margin: 8px 0 16px; }

  ul li {
    font-size: 15px;
    color: var(--body-text);
    padding: 6px 0 6px 20px;
    position: relative;
    border-bottom: 1px solid var(--hairline);
  }

  ul li:last-child { border-bottom: none; }

  ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--faint);
    font-size: 13px;
  }

  a { color: var(--accent); text-decoration: none; }
  a:hover { text-decoration: underline; }

  footer {
    max-width: var(--max);
    margin: 64px auto 0;
    padding-top: 32px;
    border-top: 1px solid var(--light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  footer p { font-size: 12px; color: var(--faint); margin: 0; }
  .footer-logo { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }

  @media (max-width: 480px) {
    .meta { flex-direction: column; gap: 8px; }
    footer { flex-direction: column; align-items: flex-start; }
  }

  /* LANDING / SUPPORT */
  .hero { max-width: var(--max); margin: 72px auto 0; padding-bottom: 40px; border-bottom: 1px solid var(--light); }
  .hero img { width: 88px; height: 88px; border-radius: 20px; display: block; margin-bottom: 28px; }
  .hero h1 { margin-bottom: 12px; }
  .tagline { font-size: 18px; color: var(--body-text); margin-bottom: 24px; }
  .promise { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; letter-spacing: 0.04em; color: var(--mid); }
  .games li strong { font-weight: 500; }
  .notfound { max-width: var(--max); margin: 96px auto 0; }

  .badge { display: inline-block; line-height: 0; }
  .badge img { height: 40px; width: auto; display: block; }
