/* ============================================================
   SOLENIC — PAGE SHELL
   The ground, the typeface and the grain for a normal scrolling
   document page. Linked after the tokens and base, before the
   page's own stylesheet.

   WHY THIS EXISTS
   These three things are the brand, not a page decision, yet they
   were redeclared in home.css, about/, technology.css and (briefly)
   news.css — four copies, drifting. home.css still names the legacy
   --black / --cream palette. A change to the site ground had to be
   made four times or it silently did not apply.

   Anything in here must be true of EVERY document page. Page-specific
   layout stays in the page stylesheet. The homepage carousel is a
   deliberate exception: it locks scrolling and manages its own body,
   so it does not load this file.
   ============================================================ */

html { scroll-behavior: smooth; }

body {
  background: var(--c-ground-deep);
  color: var(--c-ink-strong);
  font-family: 'Arimo', Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Grain. Fixed, inert, above content but not interactive. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

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