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

html {
  scroll-behavior: smooth;
  /* Archivo is a variable font with a width axis. Setting the width once on
     the root lets every display rule keep plain `font-family: var(--serif)`.
     DM Sans and JetBrains Mono have no width axis, so they simply ignore it. */
  font-stretch: 125%;
}

/* Keyboard focus indicator (mouse clicks stay clean via :focus-visible) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

body {
  background: var(--bg);
  color: var(--chrome-lt);
  font-family: var(--sans);
  overflow-x: hidden;
}

/* Film grain noise overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 999;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)'/%3E%3C/svg%3E");
}
