/* Fonts (OFL, see static/fonts/OFL.txt), reset and typography shared by every page. */
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("../fonts/inter-latin-wght.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("../fonts/inter-latin-ext-wght.woff2") format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono Variable"; font-style: normal; font-display: swap; font-weight: 100 800; src: url("../fonts/jetbrains-mono-latin-wght.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--font-body);
  line-height: 1.5;
  font-feature-settings: "cv11" 1, "tnum" 1;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; color: inherit; }
button, a { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4, h5, h6 { letter-spacing: 0; font-weight: var(--weight-heading); }
h1 { font-size: var(--font-heading-1); line-height: 1.25; }
h2 { font-size: var(--font-heading-2); line-height: 1.4; }
h3 { font-size: var(--font-heading-3); line-height: 1.45; }
h1 small, h2 small, h3 small { font-weight: var(--weight-heading); }
strong, b { font-weight: var(--weight-regular); }

[hidden] { display: none; }
small { font-size: max(.85em, 10px, var(--cjk-min, 0px)); }

/* Small technical label (mono caps in the default theme). */
.label { font-family: var(--font-label); font-size: max(var(--label-size), var(--cjk-min, 0px)); line-height: 1.2; letter-spacing: var(--label-tracking); text-transform: var(--label-transform); color: var(--color-text-muted); font-weight: var(--weight-regular); }
:lang(zh) .label { letter-spacing: min(var(--label-tracking), .06em); }
.mono { font-family: var(--font-mono); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible { outline: var(--outline-focus); outline-offset: 2px; }

/* Lucide renders <svg class="lucide"> in place of <i data-lucide>. */
svg.lucide { flex: none; }
