/* RISOGRAPH MATCHBOX ARCHIVE — paper, ink and type foundations */

:root {
  --newsprint: #F7F2E7;
  --newsprint-deep: #EDE5D4;
  --riso-pink: #FF4F8B;
  --soy-blue: #1B4DFF;
  --marigold: #FFB800;
  --forest: #1A8A5A;
  --charcoal: #23201E;

  --ink: var(--charcoal);
  --muted: #6B6259;
  --rule: rgba(35, 32, 30, 0.22);
  --rule-strong: rgba(35, 32, 30, 0.55);

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

  --spring: cubic-bezier(0.22, 1, 0.36, 1);
  --sleeve: cubic-bezier(0.34, 1.4, 0.5, 1);

  --gutter: clamp(1rem, 3vw, 2.5rem);
  --wall: 1280px;

  color-scheme: light;
}

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

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

body {
  margin: 0;
  background-color: var(--newsprint);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Uncoated stock: fine tooth grain over the whole wall */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(94deg, rgba(35,32,30,0.035) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(2deg, rgba(35,32,30,0.03) 0 1px, transparent 1px 4px),
    radial-gradient(rgba(35,32,30,0.10) 0.5px, transparent 0.6px);
  background-size: auto, auto, 3px 3px;
  mix-blend-mode: multiply;
}

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

.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
