/* EndurAPP V2 — reset, type scale, utilities. */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--white);
  background: var(--black-deep);
  overflow-x: hidden;
  min-height: 100dvh;
  min-height: 100svh;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

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

/* Component display rules must not un-hide beta/live pairs. Never put [hidden] on the hero video. */
[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
}

p {
  color: var(--white);
}

::selection {
  background: rgba(231, 255, 0, 0.28);
  color: var(--black-deep);
}

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.btn--primary:focus-visible {
  outline-color: var(--white);
}

/* ---------- Type — race-plate headlines, sentence-case body ---------- */

.t-display-xl {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 11vw, 9.5rem);
  letter-spacing: -0.015em;
  line-height: 0.88;
  text-transform: uppercase;
  text-wrap: balance;
}

.t-display-l {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  letter-spacing: -0.01em;
  line-height: 0.92;
  text-transform: uppercase;
  text-wrap: balance;
}

.t-display-m {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 3rem);
  letter-spacing: -0.01em;
  line-height: 1;
  text-transform: uppercase;
}

.t-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-100);
}

.t-metric {
  font-family: var(--font-mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}

.t-caption {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--steel-100);
}

.t-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 1.05vw, 1.125rem);
  line-height: 1.6;
  max-width: 60ch;
  color: var(--white);
}

.t-body-secondary {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 1.05vw, 1.125rem);
  line-height: 1.6;
  max-width: 60ch;
  color: var(--steel-100);
}

.u-neon { color: var(--neon); }
.u-steel { color: var(--steel-100); }
.u-center { text-align: center; }

.u-stack-sm { display: flex; flex-direction: column; gap: var(--sp-sm); }
.u-stack-md { display: flex; flex-direction: column; gap: var(--sp-md); }
.u-stack-lg { display: flex; flex-direction: column; gap: var(--sp-lg); }

.visually-hidden,
.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: -48px;
  left: var(--sp-md);
  z-index: 1000;
  background: var(--neon);
  color: var(--black-deep);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.65rem 1rem;
  border-radius: var(--r-button);
  transition: top var(--dur-base) var(--ease-out);
}

.skip-link:focus {
  top: var(--sp-md);
}

@media (max-width: 379px) {
  .t-display-xl {
    font-size: clamp(2.5rem, 12vw, 3.25rem);
  }
}
