/* Modern reset + base typography ------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--mist);
  background: var(--ink);
  min-height: 100dvh;
  overflow-x: hidden;
  /* Subtle film grain across the whole page for tactile feel */
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(43,182,255, .12), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(255,31,143, .10), transparent 55%),
    linear-gradient(180deg, #06070A 0%, #05060A 100%);
}

body::before {
  /* Stage-light grain overlay. Position fixed so it stays put on scroll. */
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .25;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1   0 0 0 0 1   0 0 0 0 1   0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
}

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .015em;
  line-height: 1;
  color: var(--mist);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { max-width: 65ch; }

a {
  color: var(--brand);
  text-decoration: none;
  transition: color var(--dur) var(--easing);
}
a:hover { color: var(--pop); }

::selection { background: var(--pop); color: #fff; }

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

.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: var(--pop); color: #fff;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; color: #fff; }

main { position: relative; z-index: 2; }

.wrap {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--content-pad);
}

/* Reusable display utilities ---------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-body);
  font-size: var(--fs-tiny);
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--mist-3);
  font-weight: 600;
}
.eyebrow::before {
  content: ''; width: 28px; height: 1px;
  background: linear-gradient(90deg, var(--pop), transparent);
}

.handwritten {
  font-family: var(--font-hand);
  font-weight: 700;
  color: var(--pop-soft);
  transform: rotate(-2deg);
  display: inline-block;
}

.text-pop  { color: var(--pop); }
.text-brand{ color: var(--brand); }
.text-muted{ color: var(--mist-3); }

.divider {
  height: 1px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
  margin-block: var(--s-7);
}
