:root {
    --bg: #fbfaf8; --fg: #1d1b19; --muted: #5f5a54; --rule: #e4e0d9;
    --accent: #7a4b1e; --card: #fffefc;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #17161a; --fg: #eceae6; --muted: #a8a29a; --rule: #33302f;
      --accent: #e0a86a; --card: #1e1d22;
    }
  }
  * { 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: 52rem; margin: 0 auto; padding: 16px; padding-block: 2.5rem 5rem; }
  header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
           border-bottom: 2px solid var(--rule); padding-bottom: 1.25rem; margin-bottom: 3rem; }
  .brand { font-weight: 700; color: var(--accent); text-decoration: none; }
  nav a { color: var(--muted); text-decoration: none; margin-left: 1.25rem; font-size: .95rem; }
  h1 { font-size: clamp(2rem, 7vw, 3.25rem); line-height: 1.08; margin: .35rem 0 1rem; letter-spacing: -0.03em; }
  h2 { font-size: 1.3rem; margin: 2.75rem 0 .75rem; }
  h3 { margin: 0 0 .35rem; font-size: 1rem; }
  a { color: var(--accent); }
  .eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
  .lede { color: var(--muted); font-size: 1.15rem; max-width: 46rem; }
  .meta { color: var(--muted); font-size: .9rem; }
  .card { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 1.25rem; margin: 1.5rem 0; }
  .grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
  .grid .card { margin: 0; }
  .cta { display: inline-block; background: var(--accent); color: var(--bg); text-decoration: none;
         font-weight: 650; padding: .75rem 1.35rem; border-radius: 8px; margin-top: .75rem; }
  footer { margin-top: 4.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .9rem; }
  footer a { margin-right: 1rem; }
