/* PULSE design tokens - derived from stitch_gen_z_news_hub / electric_neo_editorial DESIGN.md */

@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --void: #0b0c10;
  --surface: #121317;
  --surface-lowest: #0d0e12;
  --surface-low: #14161d;
  --surface-2: #1a1b20;
  --surface-3: #1f1f24;
  --surface-4: #292a2e;
  --surface-5: #343439;

  --border: #2a2e3d;
  --border-soft: #20232f;
  --border-strong: #444933;

  --text: #e3e2e8;
  --text-dim: #c4c9ac;
  --muted: #8e9379;
  --muted-2: #6a6f5c;

  --lime: #c3f400;
  --lime-dim: #abd600;
  --lime-ink: #283500;
  --lime-glow: rgba(195, 244, 0, 0.35);
  --cyan: #00eefc;
  --cyan-ink: #00363a;
  --magenta: #e024c3;
  --magenta-soft: #ffd7ef;
  --error: #ffb4ab;

  --font-display: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Space Grotesk', 'Consolas', monospace;

  --container: min(86%, 1290px);
  --container-narrow: min(86%, 820px);
  --gutter: 1.25rem;
  --radius: 0.25rem;
  --radius-sm: 0.125rem;
  --radius-lg: 0.5rem;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;

  --header-bar: 96px;
  --header-bar-compact: 64px;
  --section-bar: 48px;
  --header-total: 144px;
  --shadow-hard: 3px 3px 0 var(--lime);
  --micro: 120ms;
  --fast: 200ms;
  --slow: 400ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 82% -8%, rgba(0, 238, 252, 0.07), transparent 60%),
    radial-gradient(900px 460px at 8% -4%, rgba(195, 244, 0, 0.05), transparent 55%),
    var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
h4,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

::selection {
  background: var(--lime);
  color: var(--lime-ink);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.container-narrow {
  width: var(--container-narrow);
  margin-inline: auto;
}

.label,
.label-lg,
.label-md,
.label-sm {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  line-height: 1.3;
}

.label-lg {
  font-size: 14px;
}

.label-md {
  font-size: 12px;
  letter-spacing: 0.06em;
}

.label-sm,
.label {
  font-size: 10px;
  letter-spacing: 0.08em;
}

.mono {
  font-family: var(--font-mono);
}

.body-lg {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 28px;
}

.body-md {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 24px;
}

.body-sm {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 20px;
}

.title-md {
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-transform: uppercase;
}

.accent-lime {
  color: var(--lime);
}

.accent-cyan {
  color: var(--cyan);
}

.accent-magenta {
  color: var(--magenta);
}

.u-muted {
  color: var(--muted);
}

.u-dim {
  color: var(--text-dim);
}

.u-uppercase {
  text-transform: uppercase;
}

.clamp-1,
.clamp-2,
.clamp-3,
.clamp-4 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clamp-1 {
  -webkit-line-clamp: 1;
}

.clamp-2 {
  -webkit-line-clamp: 2;
}

.clamp-3 {
  -webkit-line-clamp: 3;
}

.clamp-4 {
  -webkit-line-clamp: 4;
}

.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;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--lime);
  color: var(--lime-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

main:focus {
  outline: none;
}

.boot-screen {
  min-height: 60vh;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.hairline {
  border: 0;
  border-top: 1px solid var(--border);
}

.hairline-soft {
  border: 0;
  border-top: 1px solid var(--border-soft);
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
