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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  font-weight: 600;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

h1 em, h2 em {
  font-style: italic;
  font-variation-settings: "SOFT" 20, "WONK" 1;
}

p {
  margin: 0 0 1.05rem;
  max-width: var(--measure);
  text-align: justify;
  hyphens: auto;
  text-wrap: pretty;
}
p:last-child { margin-bottom: 0; }

a { color: inherit; }

ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

code, pre, kbd {
  font-family: var(--font-mono);
  font-feature-settings: normal;
}
code { font-size: 0.8125em; letter-spacing: -0.01em; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0;
}

figure { margin: 0; }

::selection {
  background: color-mix(in oklab, var(--primary) 28%, transparent);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 1px;
}

.label,
.eyebrow,
.fine {
  text-align: left;
  hyphens: manual;
}

.label,
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--label-size);
  font-weight: 500;
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.fine {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 30;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.65rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-decoration: none;
}
.skip:focus { left: 0; }
