/* STORM — base typography & layout primitives */

body {
  font-family: var(--font-body);
  background: var(--storm-black);
  color: var(--text-primary);
  overflow-x: hidden;
}

a {
  color: var(--storm-yellow);
  text-decoration: none;
}
a:hover { color: var(--storm-white); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--storm-yellow);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(241, 213, 62, 0.22);
}

::selection {
  background: var(--storm-yellow);
  color: var(--storm-black);
}

main { display: block; }

.container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

.section {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}
.section--tight { padding-top: var(--section-space-tight); padding-bottom: var(--section-space-tight); }
.section--top-only { padding-bottom: 0; }
.section--surface { background: var(--surface-01); }
.section--yellow { background: var(--storm-yellow); color: var(--text-on-yellow); }
.section--bordered { border-top: 1px solid var(--border-hairline); border-bottom: 1px solid var(--border-hairline); }
.section--border-top { border-top: 1px solid var(--border-hairline); }
.section--border-bottom { border-bottom: 1px solid var(--border-hairline); }
.section--relative { position: relative; overflow: hidden; }

/* ---- Eyebrow / mono microcopy ---- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--storm-yellow);
}
.eyebrow--muted { color: var(--text-label); }
.eyebrow--on-yellow { color: rgba(9, 9, 11, 0.65); }

/* ---- Display headings ---- */
.h-display-xl {
  font-family: var(--font-display);
  font-size: clamp(56px, 6.6vw, 104px);
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
}
.h-display-l {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.6vw, 72px);
  line-height: 0.92;
  text-transform: uppercase;
  margin: 0;
}
.h-display-m {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 50px);
  line-height: 1;
  text-transform: uppercase;
  margin: 0;
}
.h-display-s {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1;
  text-transform: uppercase;
  margin: 0;
}

.subhead {
  font-family: var(--font-subhead);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.12;
  margin: 0;
}

.body-copy {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 60ch;
}
.body-copy--sm { font-size: 15px; line-height: 1.55; }

.mono-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-label);
}
.mono-label--accent { color: var(--storm-yellow); }

/* ---- Layout grids ---- */
.grid {
  display: grid;
  gap: 16px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.hairline-grid {
  display: grid;
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
}
.hairline-grid > * { background: var(--surface-02); }

.divider {
  border: none;
  border-top: 1px solid var(--border-hairline);
}

/* ---- Decorative gradient / texture primitives (kept out of inline styles) ---- */
.radial-glow { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.radial-glow--hero { background: radial-gradient(900px 480px at 50% -10%, rgba(241, 213, 62, 0.16), transparent 70%); }
.radial-glow--hero-left { background: radial-gradient(800px 420px at 20% -10%, rgba(241, 213, 62, 0.16), transparent 70%); }
.radial-glow--hero-right { background: radial-gradient(900px 460px at 75% 0%, rgba(241, 213, 62, 0.18), transparent 70%); }
.radial-glow--hero-top-30 { background: radial-gradient(900px 500px at 30% -10%, rgba(241, 213, 62, 0.14), transparent 70%); }
.radial-glow--hero-top-50 { background: radial-gradient(800px 400px at 50% -20%, rgba(241, 213, 62, 0.16), transparent 70%); }
.radial-glow--mid-right { background: radial-gradient(700px 400px at 80% 20%, rgba(241, 213, 62, 0.1), transparent 70%); }
.radial-glow--mid-right-2 { background: radial-gradient(700px 400px at 75% 15%, rgba(241, 213, 62, 0.1), transparent 70%); }
.radial-glow--bottom { background: radial-gradient(700px 520px at 50% 100%, rgba(241, 213, 62, 0.22), transparent 72%); }
.radial-glow--bottom-sm { background: radial-gradient(600px 420px at 50% 100%, rgba(241, 213, 62, 0.2), transparent 72%); }
.radial-glow--featured { background: radial-gradient(700px 320px at 50% 0%, rgba(241, 213, 62, 0.16), transparent 70%); }
.radial-glow--cta-discover { background: radial-gradient(500px 300px at 50% 100%, rgba(241, 213, 62, 0.2), transparent 72%); }
.radial-glow--panel { background: radial-gradient(55% 55% at 50% 45%, rgba(241, 213, 62, 0.2), transparent 72%); }
.radial-glow--panel-2 { background: radial-gradient(55% 55% at 45% 45%, rgba(241, 213, 62, 0.2), transparent 72%); }
.radial-glow--banner { background: radial-gradient(60% 120% at 25% 50%, rgba(241, 213, 62, 0.2), transparent 70%); }

.grid-lines { position: absolute; inset: 0; pointer-events: none; opacity: 0.35; background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 120px); }
.grid-lines--fine { opacity: 1; background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 40px); }

.sweep-decor { position: absolute; top: 0; bottom: 0; width: 35%; background: linear-gradient(90deg, transparent, rgba(241, 213, 62, 0.18), transparent); animation: stormSweep 3.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .sweep-decor { animation: none; opacity: 0.4; }
}

.bolt-decor-bg { position: absolute; opacity: 0.5; background: rgba(241, 213, 62, 0.08); clip-path: polygon(62% 0, 20% 56%, 46% 56%, 32% 100%, 82% 40%, 52% 40%); pointer-events: none; }

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