:root {
    --bg: #f7f6f2;
    --fg: #1c1b19;
    --muted: #6b6862;
    --rule: #e2e0d8;
    --accent: #1c1b19;
    --maxw: 38rem;
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --bg: #131211;
      --fg: #e9e7e1;
      --muted: #9a968d;
      --rule: #2a2825;
      --accent: #e9e7e1;
    }
  }

  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }

  body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Monaco,
      Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }

  main {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 10vh 1.5rem 4rem;
  }

  .nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    font-size: 0.8rem;
    color: var(--muted);
  }
  .nav a { color: var(--muted); }

  h1 {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin: 0 0 1.25rem;
  }

  h2 {
    font-size: 0.92rem;
    font-weight: 600;
    margin: 2.25rem 0 0.75rem;
  }

  p { margin: 0 0 1rem; font-size: 0.98rem; }

  a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
  }
  a:hover { text-decoration-thickness: 2px; }

  footer {
    margin-top: 4rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule);
    color: var(--muted);
    font-size: 0.78rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
  }
