:root {
  color-scheme: light dark;
  --paper: #f6f4ef;
  --stage: #e9e5db;
  --ink: #17171a;
  --muted: #55555b;
  --faint: #66666c;
  --line: rgba(23, 23, 26, 0.10);
  --focus: #2a64d6;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, "Arial Hebrew", "Noto Sans Hebrew", Roboto, Arial, sans-serif;
  --display: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --r-xs: 4px;
  --r-sm: 8px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t: 160ms;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121214;
    --stage: #1b1b1f;
    --ink: #ececee;
    --muted: #a8a8af;
    --faint: #94949b;
    --line: rgba(236, 236, 238, 0.12);
    --focus: #7fa6ff;
  }
}
:lang(he) { --display: var(--sans); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-xs); }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 760px) { .wrap { padding-inline: 40px; } }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px; }
.brand { font: italic 400 21px/1 ui-serif, "New York", Georgia, "Times New Roman", serif; letter-spacing: 0.005em; color: var(--ink); text-decoration: none; }
.langs { display: inline-flex; gap: 4px; }
.langs button {
  font: inherit; font-size: 13px; color: var(--muted); background: transparent; border: 0;
  border-radius: var(--r-sm); padding: 6px 10px; min-height: 32px; cursor: pointer;
  transition: color var(--t) var(--ease), background-color var(--t) var(--ease);
  border-block-end: 2px solid transparent;
}
.langs button:hover { color: var(--ink); background: var(--stage); }
.langs button[aria-pressed="true"] { color: var(--ink); font-weight: 600; border-block-end-color: var(--ink); border-radius: 0; }

.doc { max-width: 68ch; padding-block: 32px 96px; }
.doc h1 { font: 400 clamp(36px, 4vw, 52px)/1.1 var(--display); letter-spacing: -0.02em; margin: 0 0 12px; text-wrap: balance; }
:lang(he) .doc h1 { font-weight: 650; letter-spacing: -0.01em; }
.doc h2 { font: 400 clamp(22px, 2.4vw, 28px)/1.2 var(--display); letter-spacing: -0.01em; margin: 40px 0 8px; }
:lang(he) .doc h2 { font-weight: 650; letter-spacing: 0; }
.doc p, .doc li { color: var(--muted); }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-inline-start: 22px; }
.doc li { margin-block-end: 8px; }
.doc strong { color: var(--ink); }
.doc code { font: 0.9em ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.doc .updated { font-size: 13px; color: var(--faint); margin: 0 0 32px; }

html.js .doc[hidden] { display: none; }

footer { border-block-start: 1px solid var(--line); padding-block: 32px 56px; font-size: 13px; color: var(--faint); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
footer p { margin: 0; }
footer .brand { font-size: 17px; }
