/* ==========================================================================
   BASE — fonts, reset, typography
   ========================================================================== */

@font-face { font-family: 'Sora'; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url('../fonts/Sora-latin.woff2') format('woff2');
  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: 'Sora'; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url('../fonts/Sora-latin-ext.woff2') format('woff2');
  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'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('../fonts/JetBrainsMono-latin.woff2') format('woff2');
  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: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('../fonts/JetBrainsMono-latin-ext.woff2') format('woff2');
  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; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p a, li a, dd a { color: var(--cyan); text-decoration: underline; text-decoration-color: rgb(22 213 255 / .4); text-underline-offset: .18em; }
p a:hover, li a:hover, dd a:hover { text-decoration-color: var(--cyan); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; }
kbd { font-family: var(--mono); font-size: .78em; padding: .1em .45em; border-radius: 5px; border: 1px solid var(--line-strong); background: rgb(170 215 255 / .06); color: var(--text); white-space: nowrap; }
code { font-family: var(--mono); font-size: .9em; color: var(--cyan-hi); }
pre { font-family: var(--mono); font-size: var(--fs-mono); }
::selection { background: rgb(22 213 255 / .35); color: #fff; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; background: var(--cyan); color: var(--on-cyan); border-radius: 8px; font-weight: 600; }
.skip:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Text helpers */
.lead { font-size: var(--fs-lead); color: var(--text-muted); line-height: 1.55; max-width: 36em; text-wrap: pretty; }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.text-cyan { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--fs-h3); margin: 2.4rem 0 .7rem; }
.prose h3 { font-size: 1.05rem; margin: 1.8rem 0 .5rem; }
.prose p + p { margin-top: 1em; }
.prose ul { margin: .6em 0 1em 1.2em; }
.prose li + li { margin-top: .3em; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: var(--fs-small); }
.prose th, .prose td { text-align: left; padding: .55em .7em; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text-muted); font-weight: 500; }
.prose dl { margin: 1em 0; }
.prose dt { font-weight: 600; margin-top: 1.4em; }
.prose dd { margin: .35em 0 0; color: var(--text-muted); }
