:root {
  /* Riso ink drums */
  --newsprint: #F7F2E7;
  --newsprint-deep: #EFE7D6;
  --pink: #FF4F8B;
  --cobalt: #1B4DFF;
  --marigold: #FFB800;
  --forest: #1A8A5A;
  --charcoal: #23201E;

  --paper-edge: #E3D9C4;
  --cardboard: #C9B79A;
  --cardboard-dark: #A8906F;
  --wood: #D8B98A;
  --wood-dark: #B08F5E;
  --striker: #6B4A2E;

  --ink-soft: rgba(35, 32, 30, 0.62);
  --rule: rgba(35, 32, 30, 0.18);

  --font-poster: system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "Courier New", Courier, ui-monospace, monospace;

  --spring: cubic-bezier(0.22, 1, 0.36, 1);
  --spring-slow: cubic-bezier(0.22, 1, 0.36, 1);

  --gutter: clamp(1rem, 3.2vw, 2.5rem);
  --max: 1240px;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}

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

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

body {
  margin: 0;
  background-color: var(--newsprint);
  background-image: var(--grain);
  background-blend-mode: multiply;
  color: var(--charcoal);
  font-family: var(--font-poster);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure, blockquote {
  margin: 0;
}

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

a {
  color: inherit;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

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

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
