
  @import url('https://fonts.googleapis.com/css2?family=Libre+Caslon+Text:ital,wght@0,400;0,700;1,400&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

  :root {
    --paper: #eff1ec;
    --surface: #ffffff;
    --ink: #1c2521;
    --muted: #5b665f;
    --line: #d7dcd2;
    --accent: #b5551e;
    --accent-ink: #7a3812;
    --accent-soft: #ecd9c4;
    --focus: #2f6e68;
    --code-bg: #e7e9e2;
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --paper: #141a17;
      --surface: #1b2320;
      --ink: #e9ece6;
      --muted: #9aa69d;
      --line: #303c35;
      --accent: #e2924f;
      --accent-ink: #f4c295;
      --accent-soft: #3a2a1c;
      --focus: #6fb3a9;
      --code-bg: #222a26;
    }
  }

  :root[data-theme="dark"] {
    --paper: #141a17;
    --surface: #1b2320;
    --ink: #e9ece6;
    --muted: #9aa69d;
    --line: #303c35;
    --accent: #e2924f;
    --accent-ink: #f4c295;
    --accent-soft: #3a2a1c;
    --focus: #6fb3a9;
    --code-bg: #222a26;
  }

  * { box-sizing: border-box; }

  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  a { color: var(--focus); text-decoration-thickness: 1px; text-underline-offset: 2px; }
  a:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

  .shell {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 56px) 96px;
  }

  header.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 40px 0 28px;
    border-bottom: 1px solid var(--line);
  }

  .brand { display: flex; align-items: center; gap: 12px; }
  .brand svg { width: 30px; height: 30px; flex: none; }
  .brand-name {
    font-family: "Libre Caslon Text", Georgia, serif;
    font-size: 1.35rem;
    letter-spacing: 0.01em;
  }
  .brand-tag {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  nav.toc {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
  }
  nav.toc a {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.78rem;
    color: var(--muted);
    text-decoration: none;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
  }
  nav.toc a:hover { color: var(--ink); border-color: var(--muted); }

  main { display: grid; gap: 0; }

  section {
    padding: 56px 0;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 24px;
  }
  section:last-of-type { border-bottom: none; }

  .eyebrow {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 10px;
  }

  h1 {
    font-family: "Libre Caslon Text", Georgia, serif;
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.12;
    text-wrap: balance;
    margin: 0 0 18px;
  }

  h2 {
    font-family: "Libre Caslon Text", Georgia, serif;
    font-weight: 400;
    font-size: 1.7rem;
    text-wrap: balance;
    margin: 0 0 20px;
  }

  h3 {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 600;
    font-size: 1.02rem;
    margin: 28px 0 8px;
  }

  .lede {
    font-size: 1.14rem;
    color: var(--muted);
    max-width: 62ch;
    margin: 0 0 8px;
  }

  .measure { max-width: 66ch; }
  .measure p, .measure li { color: var(--ink); }
  .measure p { margin: 0 0 14px; }
  .measure ul, .measure ol { margin: 0 0 14px; padding-left: 1.25em; }
  .measure li { margin-bottom: 6px; }

  .updated {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.78rem;
    color: var(--muted);
    margin: 0 0 28px;
  }

  code, .field {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.88em;
    background: var(--code-bg);
    padding: 0.12em 0.42em;
    border-radius: 4px;
  }

  .cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin: 28px 0 8px;
  }
  .card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 18px 20px;
  }
  .card h4 {
    margin: 0 0 6px;
    font-size: 0.95rem;
    font-weight: 600;
  }
  .card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
  .card code { display: inline-block; margin-bottom: 8px; }

  .scope-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.95rem;
  }
  .scope-table th, .scope-table td {
    text-align: left;
    padding: 10px 14px 10px 0;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
  }
  .scope-table th {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
  }

  .fill {
    background: var(--accent-soft);
    color: var(--accent-ink);
    padding: 0.05em 0.5em;
    border-radius: 4px;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.85em;
  }

  .callout {
    background: var(--accent-soft);
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
    border-radius: 10px;
    padding: 16px 20px;
    margin: 24px 0;
    font-size: 0.94rem;
  }
  .callout p { margin: 0; color: var(--accent-ink); }
  .callout strong { font-weight: 600; }

  ol.legal { counter-reset: item; list-style: none; padding-left: 0; }
  ol.legal > li {
    counter-increment: item;
    position: relative;
    padding-left: 2.1em;
    margin-bottom: 18px;
  }
  ol.legal > li::before {
    content: counter(item, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0.05em;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.78rem;
    color: var(--accent);
  }
  ol.legal h3 { margin: 0 0 6px; }

  footer {
    padding: 36px 0 0;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.76rem;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }

  @media (max-width: 600px) {
    header.masthead { flex-direction: column; align-items: flex-start; }
  }
