  :root {
    --paper: #f9f8f6;
    --ink: #1a1918;
    --muted: #66645e;
    --rule: #e2e0d8;
    --surface: #f0eee9;
    --control: #858179;
    --measure: 35rem;
    --sans: Inter, "Segoe UI", system-ui, sans-serif;
    --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
    color-scheme: light;
    font: clamp(1.125rem, .96rem + .6vw, 1.375rem)/1.7 var(--sans);
  }

  @media (prefers-color-scheme: dark) {
    :root {
      --paper: #161616;
      --ink: #dedede;
      --muted: #a6a6a6;
      --rule: #363636;
      --surface: #232323;
      --control: #858585;
      color-scheme: dark;
    }
  }

  *, *::before, *::after { box-sizing: border-box; }
  html { background: var(--paper); color: var(--ink); scroll-behavior: smooth; }
  body { margin: 0; padding: clamp(18px, 3vh, 34px) clamp(18px, 5vw, 27px) 3rem; }
  h1, h2, h3, p { margin: 0; }
  h1, h2, h3 { line-height: 1.28; letter-spacing: -.02em; text-wrap: balance; }
  a { color: inherit; text-decoration-color: var(--control); text-decoration-thickness: 1px; text-underline-offset: .2em; }
  a:hover { text-decoration-color: currentColor; }
  :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
  [hidden] { display: none !important; }
  .wrap { width: 100%; max-width: var(--measure); margin-inline: auto; }
  .skip:not(:focus) { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .skip:focus { position: fixed; z-index: 2; inset: .6rem auto auto .6rem; background: var(--paper); padding: .45rem .8rem; }

  .topbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .25rem 1rem;
    align-items: baseline;
    margin-bottom: clamp(1.75rem, 4.7vw, 3rem);
    color: var(--muted);
    font-size: .78rem;
  }
  .handle { color: var(--ink); font-weight: 700; }
  nav { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; }
  .topbar a { padding-block: .25rem; text-decoration: none; }
  .topbar a:hover { text-decoration: underline; }
  .eyebrow { color: var(--muted); font-size: .78rem; letter-spacing: .085em; text-transform: uppercase; }
  h1 { margin: .48rem 0 .62rem; font-size: clamp(1.9rem, 1.25rem + 2.3vw, 2.55rem); line-height: 1.12; }
  .intro { color: var(--muted); }
  .intro + .intro { margin-top: .55rem; }
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .15rem .9rem;
    align-items: baseline;
    margin-top: .85rem;
  }
  .button { font-size: .84rem; font-weight: 700; }
  .availability { color: var(--muted); font-size: .78rem; }
  .stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .55rem 1rem;
    margin-top: 1.55rem;
    padding-block: .7rem .8rem;
    border-block: 1px solid var(--rule);
  }
  .stats strong { display: block; font-size: 1.52rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
  .stats p { color: var(--muted); font-size: .78rem; margin-top: .16rem; }

  .section { margin-top: 2.6rem; }
  .section h2 { margin: .26rem 0 .55rem; font-size: 1.5rem; }
  .section-intro { color: var(--muted); font-size: .93rem; }
  .cases { margin-top: .9rem; }
  .case { border-top: 1px solid var(--rule); padding-block: .75rem .85rem; }
  .case:last-child { border-bottom: 1px solid var(--rule); }
  .case h3 { font-size: 1.07rem; margin: .22rem 0 .25rem; }
  .case p:not(.eyebrow) { color: var(--muted); font-size: .9rem; }
  .case a { display: inline-block; margin-top: .28rem; font-size: .8rem; }
  .case-links { display: flex; flex-wrap: wrap; gap: 0 .9rem; }
  #dify { scroll-margin-top: 1rem; }
  .legend { display: flex; flex-wrap: wrap; gap: .2rem .9rem; margin: .65rem 0 .85rem; }
  .legend b { color: var(--ink); }
  .status { color: var(--muted); font-size: .83rem; }
  .status.confirmed { color: var(--ink); font-weight: 700; }

  .directory { border-block: 1px solid var(--rule); }
  form {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(10rem, 1fr) minmax(11rem, 1.1fr) auto;
    gap: .55rem;
    align-items: end;
    padding-block: .8rem;
    border-bottom: 1px solid var(--rule);
  }
  form label { min-width: 0; color: var(--muted); font-size: .78rem; }
  form input, form select, form button {
    display: block;
    width: 100%;
    min-height: 2.15rem;
    margin-top: .18rem;
    padding: .38rem .47rem;
    color: var(--ink);
    background-color: var(--paper);
    border: 1px solid var(--control);
    border-radius: 2px;
    font: 400 max(16px, .8rem)/1.3 var(--sans);
  }
  form select {
    appearance: none;
    padding-right: 1.18rem;
    text-overflow: ellipsis;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 13px) 50%, calc(100% - 8px) 50%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
  }
  form button { width: auto; cursor: pointer; }
  form button:hover { background: var(--surface); }
  .keyboard-tools {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .2rem .85rem;
    font-size: .78rem;
    color: var(--muted);
  }
  .keyboard-tools a { color: var(--ink); }
  .keyboard-tools button { margin-top: 0; }
  .keyboard-tools kbd { font: inherit; font-weight: 700; }
  .count { padding-block: .52rem .28rem; color: var(--muted); font-size: .78rem; }
  table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: left; font-size: .86rem; }
  th, td { padding: .42rem .48rem .42rem 0; vertical-align: top; overflow-wrap: anywhere; }
  th { border-bottom: 1px solid var(--control); font-size: .8rem; }
  th:nth-child(1) { width: 42%; }
  th:nth-child(2) { width: 34%; }
  td { border-bottom: 1px solid var(--rule); }
  tr:last-child td { border-bottom: 0; }
  th:last-child, td:last-child { padding-right: 0; }
  td:last-child { color: var(--muted); font-size: .8rem; }
  .pr { font-weight: 700; }
  .pr span { font: 400 .84em/1.3 var(--mono); white-space: nowrap; color: var(--muted); }
  .empty { padding-block: .6rem; color: var(--muted); }
  .quiet-reviews { border-top: 1px solid var(--rule); }
  .quiet-reviews summary { padding: .6rem 0; cursor: pointer; font-size: .86rem; font-weight: 700; }
  .quiet-reviews summary:hover { text-decoration: underline; text-underline-offset: .2em; }
  .scope { margin-block: 2.4rem 1.8rem; }
  .scope h2 { font-size: 1.1rem; margin-bottom: .35rem; }
  .scope p { color: var(--muted); font-size: .9rem; }
  footer .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .25rem 1rem;
    padding-top: .7rem;
    border-top: 1px solid var(--rule);
    color: var(--muted);
    font-size: .78rem;
  }

  @media (max-width: 840px) {
    form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    form button { justify-self: start; }
  }
  @media (max-width: 500px) {
    form { grid-template-columns: minmax(0, 1fr); }
  }
  @media (max-width: 440px) {
    .topbar { flex-direction: column; align-items: flex-start; }
    .stats { gap: .45rem .55rem; }
    .stats p { line-height: 1.35; }
    th:nth-child(1) { width: 38%; }
    th:nth-child(2) { width: 35%; }
  }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

  .benchmark .results th:first-child { width: 46%; }
  .benchmark .results th:nth-child(2) { width: 26%; }
  .benchmark .results td:last-child { font-variant-numeric: tabular-nums; }
  .benchmark .result-notes { margin-top: .75rem; color: var(--muted); font-size: .86rem; }
  .benchmark .result-notes p + p { margin-top: .45rem; }
  .benchmark .sample-index { margin-top: .9rem; border-block: 1px solid var(--rule); }
  .benchmark .sample-index table th:first-child { width: 3em; }
  .benchmark .sample-index table th:nth-child(2) { width: auto; }
  .benchmark .sample-index table th:last-child { width: 7em; }
  .benchmark .revision { font-family: var(--mono); font-size: .92em; }
