/* Exceptions ACSS cannot cover: page backdrop gradient, grain overlay, sticky-header scroll offset. */
html { scroll-padding-top: calc(var(--_header-height) + var(--space-s)); }
body {
  background:
    radial-gradient(900px 520px at 88% -12%, color-mix(in srgb, var(--primary) 5%, transparent), transparent 58%),
    linear-gradient(180deg, var(--_paper-0) 0%, var(--_paper) 38%, var(--_paper-2) 100%);
}
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* v2 polish: type rendering and selection */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
::selection { background: color-mix(in srgb, var(--primary) 30%, transparent); color: var(--_ink); }

/* v3 system */
:root {
  --_ink: #0b0f1a;
  --_paper-0: #fbf8f2;
  --_paper: #f6f2eb;
  --_paper-2: #ebe5d8;
  --_body: #1c202b;
  --_light: #f6f2eb;
  --_mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --_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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body { color: var(--_body); }
.site-main { --text-dark-muted: #454a57; }
/* end v3 system */
