@font-face {
  font-family: Archivo;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/archivo-latin.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --brand-1: #feb000;
  --white: #ffffff;
  --lighter: #f4f4f5;
  --light: #a1a1aa;
  --midtone: #52525b;
  --dark: #27272a;
  --darker: #18181b;
  --black: #09090b;
  --text: #d4d4d8;
  --rule: #3f3f46;
  --link: var(--brand-1);
  --highlight: #fef08a;
  --section-max-width: 1600px;
  --text-max-width: 50rem;
  --border-radius: 3px;
  /* Prewind lg fluid spacing, from a 320px to 1600px viewport. */
  --space-lg: clamp(1.688rem, 1.328rem + 1.798vw, 3.126rem);
  --fluid-gutter: var(--space-lg);
  --header-height: 88px;
}

html { scroll-behavior: smooth; scrollbar-color: var(--midtone) var(--darker); }
body {
  min-height: 100svh;
  background: var(--darker);
  color: var(--text);
  font-family: Archivo, ui-sans-serif, system-ui, sans-serif;
  font-size: var(--fluid-text-lg);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; cursor: pointer; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 5px; }
::selection { color: var(--black); background: var(--brand-1); }
.container { width: min(100%, var(--section-max-width)); margin-inline: auto; padding-inline: var(--fluid-gutter); }
p { margin-top: var(--fluid-space-xs); }
h1, h2, h3, h4 { color: var(--lighter); font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; }
h1 { font-size: var(--fluid-text-3xl); }
h2 { font-size: var(--fluid-text-2xl); margin-top: var(--fluid-space-xl); }
h3 { font-size: var(--fluid-text-xl); margin-top: var(--fluid-space-lg); }
h4 { font-size: var(--fluid-text-lg); margin-top: var(--fluid-space-md); }
[id] { scroll-margin-top: calc(var(--header-height) + var(--fluid-space-md)); }
hr { border-top: 1px solid var(--rule); margin-block: var(--fluid-space-lg); }
blockquote { padding-left: var(--fluid-space-xs); border-left: 1px solid var(--brand-1); }
:not(pre) > code {
  font-size: 0.84em;
  color: var(--lighter);
  background: var(--black);
  border: 1px solid var(--rule);
  border-radius: var(--border-radius);
  padding: 0.15em 0.3em;
  white-space: normal;
  overflow-wrap: anywhere;
}
h1 code, h2 code, h3 code, h4 code { border: 0; padding: 0; background: transparent; color: var(--brand-1); }
ul, ol { margin-block: var(--fluid-space-sm); padding-left: 1.4em; }
ul { list-style: disc; }
ol { list-style: decimal; }
li { margin-block: var(--fluid-space-2xs); padding-left: 0.2em; }
li::marker { color: var(--brand-1); }
table { width: 100%; border-collapse: collapse; font-size: var(--fluid-text-base); }
th, td { text-align: left; padding: var(--fluid-space-2xs) var(--fluid-space-xs); border-bottom: 1px solid var(--rule); }
th { color: var(--lighter); font-weight: 600; background: var(--dark); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 0.01ms !important; } }
