:root {
  --paper: #fcfcfb;
  --paper-2: #f4f4f1;
  --panel: #f7f7f4;
  --stage: #f1f1ed;
  --ink: #171a19;
  --ink-2: #5b6462;
  --ink-3: #737b79;
  --line: #e3e3de;
  --line-2: #cfcfc8;
  --accent: #0f5e58;
  --accent-2: #0b4640;
  --accent-3: #dceae7;
  --on-accent: #fcfcfb;
  --tissue: #ede8e0;
  --tissue-2: #dcd5c9;
  --alert: #8a3428;
  --font-display: "Iowan Old Style", "Charter", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Seravek", "Avenir Next", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "IBM Plex Mono", Menlo, Consolas, monospace;
  --radius: 4px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.14;
  text-wrap: balance;
}

p,
figure {
  margin: 0;
}

ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 9px 13px;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
