/* ============================================================
   base.css  — reset + typography + utilities
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--fg-200);
  background: var(--ink-900);
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--fg-100);
  margin: 0;
  line-height: 0.98;
  letter-spacing: 0.01em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
hr { border: 0; height: 1px; background: rgba(255,255,255,0.08); }

::selection { background: var(--gold); color: var(--ink-900); }

/* Focus ring — accessible, on-brand */
:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.6em 1em;
  background: var(--ink-700);
  color: var(--fg-100);
  border: 1px solid var(--gold);
  border-radius: 6px;
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

/* Containers */
.container {
  width: min(var(--container), 100% - 2 * var(--space-6));
  margin-inline: auto;
}

/* Section rhythm */
.section { padding-block: clamp(4rem, 10vw, 8rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

/* Editorial serif accent (Instrument Serif italic) */
.editorial {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
}

/* UI label (Syne) small caps style */
.label {
  font-family: var(--font-ui);
  font-size: var(--fs-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--fg-400);
}

.label--gold { color: var(--gold-bright); }
.label--teal { color: var(--teal); }

/* Headlines */
.h2 {
  font-size: var(--fs-h2);
  letter-spacing: 0.005em;
}
.h3 { font-size: var(--fs-h3); }

/* Gradient text */
.text-grad {
  background: linear-gradient(120deg, var(--gold-bright), var(--gold), var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.text-teal { color: var(--teal); }
.text-gold { color: var(--gold-bright); }

/* Background ambient blobs (z-plane 0) — drift slowly */
.ambient-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: drift 22s var(--ease-soft) infinite alternate;
}
.blob--gold { width: 36vw; height: 36vw; left: -8vw; top: -10vw; background: var(--gold); }
.blob--teal { width: 30vw; height: 30vw; right: -6vw; bottom: -8vw; background: var(--teal); animation-delay: -8s; }
.blob--gold2{ width: 24vw; height: 24vw; right: 18vw; top: 30vh; background: var(--gold-deep); opacity: 0.28; animation-delay: -14s; }

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(4vw, -3vw) scale(1.12); }
}

/* Skeleton loader for hero particles before canvas inits */
[aria-busy="true"] { opacity: 0.99; }
