:root {
    --bg: #fbfaf8; --fg: #1d1b19; --muted: #5f5a54; --rule: #e4e0d9;
    --accent: #7a4b1e; --card: #fffefc; --code: #f2eee8;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #17161a; --fg: #eceae6; --muted: #a8a29a; --rule: #33302f;
      --accent: #e0a86a; --card: #1e1d22; --code: #26242a;
    }
  }
  * { box-sizing: border-box; }
  body {
    margin: 0; background: var(--bg); color: var(--fg);
    font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-text-size-adjust: 100%;
  }
  .wrap { max-width: 46rem; margin: 0 auto; padding: 16px; padding-block: 3rem 5rem; }
  header { border-bottom: 2px solid var(--rule); padding-bottom: 1.5rem; margin-bottom: 2.5rem; }
  .brand { font-weight: 700; letter-spacing: -0.01em; color: var(--accent); text-decoration: none; font-size: 1.05rem; }
  h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); line-height: 1.15; margin: 1rem 0 .5rem; letter-spacing: -0.02em; }
  h2 { font-size: 1.25rem; margin: 2.75rem 0 .75rem; letter-spacing: -0.01em; }
  .lede { font-size: 1.08rem; color: var(--muted); }
  .meta { color: var(--muted); font-size: .9rem; }
  a { color: var(--accent); }
  ul { padding-left: 1.25rem; }
  li { margin: .4rem 0; }
  code { background: var(--code); padding: .12em .4em; border-radius: 4px; font-size: .9em;
         font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
  .card { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 1.1rem 1.25rem; margin: 1.25rem 0; }
  .card p:first-child { margin-top: 0; } .card p:last-child { margin-bottom: 0; }
  footer { margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .9rem; }
  footer a { margin-right: 1rem; }
