/* Reset + document chrome */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg-void);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--signal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--dur-fast) var(--ease-out);
}

a:hover {
  color: var(--herald);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
  margin: 0 0 var(--s-4);
  color: var(--ink);
}

p {
  margin: 0 0 var(--s-4);
  color: var(--ink-muted);
}

p:last-child {
  margin-bottom: 0;
}

code,
kbd {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

::selection {
  background: var(--herald);
  color: var(--ink-invert);
}

/* Atmosphere layers (fixed, non-interactive) */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 85% 55% at 50% -8%, rgba(232, 184, 74, 0.14), transparent 58%),
    radial-gradient(ellipse 45% 38% at 95% 22%, rgba(94, 234, 212, 0.055), transparent 52%),
    radial-gradient(ellipse 38% 28% at 5% 78%, rgba(251, 113, 133, 0.045), transparent 48%),
    var(--bg-void);
}

.atmosphere__grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(238, 241, 247, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 241, 247, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent);
}

/* Intentionally no noise bitmap / filter — keeps paint cheap on low-end GPUs */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
