@font-face {
  font-family: 'Newsreader';
  src: url('/assets/fonts/newsreader-wght.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('/assets/fonts/newsreader-wght-italic.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/assets/fonts/plex-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/assets/fonts/plex-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/assets/fonts/plex-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

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

/* Smoothness comes from Lenis when JS runs; native jump otherwise. */

body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

::selection {
  background: var(--ink);
  color: var(--bone);
}

.skip-link {
  position: absolute;
  left: -200vw;
  top: 0;
  background: var(--ink);
  color: var(--bone);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-ui);
  z-index: 20;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Outlined monochrome button; the fill sweeps up on hover. */
.btn {
  --fg: var(--ink);
  --fg-hover: var(--bone);
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  padding: 1rem 1.75rem;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--fg);
  transition: color 0.4s var(--ease-precise);
}
.btn:hover {
  color: var(--fg-hover);
}

.link-quiet {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  transition: opacity 0.3s var(--ease-precise);
}
.link-quiet:hover {
  opacity: 0.7;
}
