/* One visual language for the introduction and the field guide. */
:root {
  color-scheme: light;
  --paper: #f8f5ec;
  --paper-deep: #eeeee1;
  --white: #fffdf7;
  --ink: #203f35;
  --muted: #56685c;
  --line: #cbd3c1;
  --green: #254d3c;
  --green-deep: #183b30;
  --pink: #dfa0b0;
  --pink-light: #f3dfe4;
  --rose: #96445e;
  --leaf: #e2ebd2;
  --butter: #eee0b4;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --site-header-height: 73px;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--site-header-height) + 21px); }
body { margin: 0; font-size: 15px; line-height: 1.65; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--rose); }
button { font: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 4px; }
::selection { background: var(--pink-light); color: var(--green-deep); }
img { max-width: 100%; height: auto; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.1; letter-spacing: -.04em; }
h1 em, h2 em { color: var(--rose); font-weight: 400; }
h3 { line-height: 1.3; letter-spacing: -.025em; }
main { min-width: 0; }
.wrap, .header-inner, .footer-inner { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 30; padding: 9px 16px; background: var(--green-deep); color: white; border-radius: 5px; }
.skip-link:focus { top: 10px; color: white; }
.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font: 750 30px/1 var(--sans); letter-spacing: -1.7px; text-decoration: none; white-space: nowrap; }
.brand img { width: 31px; height: 31px; transition: transform .2s ease; }
.brand:hover img { transform: rotate(30deg); }
.brand-dot { color: var(--rose); }
.header-links { margin-left: auto; display: flex; align-items: center; gap: 25px; font-size: 12px; font-weight: 600; }
.header-links a { text-decoration: none; }
.header-links a[aria-current="page"] { color: var(--rose); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.repository-link { padding: 5px 11px; border: 1px solid var(--ink); border-radius: 6px; }
.menu-toggle { display: none; }
.eyebrow, .small-label, .chapter-label, .toc-label { font: 10px/1.5 var(--mono); text-transform: uppercase; letter-spacing: 1.4px; }
.eyebrow { color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 25px; padding: 10px 17px; border: 1px solid var(--green-deep); border-radius: 6px; background: var(--green-deep); color: var(--paper); font-size: 12px; font-weight: 600; text-decoration: none; box-shadow: 3px 3px 0 var(--pink); }
.button:hover { color: var(--paper); background: var(--green); }
code { font-family: var(--mono); font-size: .84em; color: var(--green); background: var(--paper-deep); padding: 2px 4px; border-radius: 3px; overflow-wrap: anywhere; }
.code-block { min-width: 0; overflow: hidden; border: 1px solid var(--green-deep); border-radius: 8px; background: var(--green-deep); color: #edf0de; }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 35px; padding: 7px 12px; border-bottom: 1px solid #42614f; color: #c3d2bd; font: 10px/1.5 var(--mono); }
.code-head > span { min-width: 0; }
.code-head .file { color: #f4f1dc; }
.copy-button { display: none; flex-shrink: 0; padding: 2px 7px; border: 1px solid #78917c; border-radius: 4px; background: transparent; color: #f1f1de; font: 10px/1.5 var(--mono); }
.js-enabled .copy-button { display: inline-block; }
.copy-button:hover { background: #365944; }
.copy-button[data-copied="true"] { color: #ffc6d4; border-color: var(--pink); }
pre { margin: 0; overflow-x: auto; padding: 16px; font: 12px/1.65 var(--mono); tab-size: 2; scrollbar-color: #78917c var(--green-deep); }
pre code { font: inherit; white-space: pre; color: inherit; background: none; padding: 0; border-radius: 0; overflow-wrap: normal; }
pre::selection, pre *::selection { background: #c2d5b5; color: var(--green-deep); }
.kw { color: #f0abc1; }
.str { color: #d8dda2; }
.comment { color: #b5c7b7; }
.num { color: #efcaa0; }
.var { color: #a9d9dc; }
.site-footer { margin-top: 12px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; gap: 22px; padding-block: 20px 24px; color: var(--muted); font-size: 11px; }
.footer-inner .brand { font-size: 24px; color: var(--ink); }
.footer-inner .brand img { width: 25px; height: 25px; }
.footer-inner p { margin: 0; }
.footer-inner nav { margin-left: auto; display: flex; gap: 19px; }
.benchmark-latest { margin: 22px 0; padding: 21px; border: 1px solid #d3b6c0; border-radius: 8px 28px 8px 8px; background: var(--pink-light); }
.benchmark-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.benchmark-heading .eyebrow { margin: 0 0 5px; }
.benchmark-latest .benchmark-heading h2 { margin: 0; font-size: 28px; }
.benchmark-heading img { flex: 0 0 36px; transform: rotate(15deg); }
.benchmark-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 19px 0 15px; }
.benchmark-stats dt { font: 10px/1.5 var(--mono); color: var(--muted); }
.benchmark-stats dd { margin: 4px 0 0; font: 36px/1.1 var(--serif); letter-spacing: -.035em; }
.benchmark-stats dd small { display: inline-block; font: 12px/1.3 var(--sans); letter-spacing: normal; }
.benchmark-latest p { margin: 9px 0 0; font-size: 12px; line-height: 1.65; }
.benchmark-latest .benchmark-context { color: var(--muted); font-size: 11px; }
.benchmark-links { display: flex; flex-wrap: wrap; gap: 7px 20px; }
.benchmark-links a { font-weight: 600; }
@media (max-width: 820px) {
  :root { --site-header-height: 109px; }
  .header-inner { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding-block: 10px; }
  .header-links { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-left: 0; font-size: 11px; text-align: center; }
  .header-links a { padding: 6px 2px; }
  .header-links a[aria-current="page"] { text-underline-offset: 4px; }
}
@media (max-width: 500px) {
  .benchmark-latest { padding: 16px; }
  .benchmark-stats { gap: 14px 10px; }
  .benchmark-stats dt { font-size: 9px; }
  .benchmark-stats dd { font-size: 29px; }
  .benchmark-stats dd small { display: block; margin-top: 4px; font-size: 10px; }
}
@media (max-width: 720px) {
  .wrap, .header-inner, .footer-inner { width: calc(100% - 32px); }
  .header-inner { min-height: 64px; }
  .brand { font-size: 27px; }
  .brand img { width: 27px; height: 27px; }
  .footer-inner { flex-wrap: wrap; gap: 10px 18px; }
  .footer-inner nav { width: 100%; margin: 0; gap: 18px; }
  pre { font-size: 11px; padding: 13px; }
  .code-head { font-size: 9px; padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
