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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

p { margin: 0; }

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

::selection {
  background: var(--color-primary);
  color: #000;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.section--tight {
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.section--dark {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

.section--soft {
  background: var(--color-bg-soft);
}

/* Typography utilities */
.eyebrow {
  display: inline-block;
  font-size: clamp(0.75rem, 1.6vw, 0.875rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-4);
}

.section--dark .eyebrow { color: var(--color-primary); }

.h-display {
  font-size: clamp(2.25rem, 6.5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 800;
  text-transform: uppercase;
}

.h-section {
  font-size: clamp(1.6rem, 5.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-transform: uppercase;
}

.h-card {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 700;
  line-height: 1.2;
}

.text-lead {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--color-text-muted);
  font-weight: 400;
}

.text-muted { color: var(--color-text-muted); }
.text-success { color: var(--color-primary-strong); }
.text-danger { color: var(--color-danger); }
.text-center { text-align: center; }

.highlight {
  background: var(--color-primary);
  color: #000;
  padding: 0.05em 0.25em;
  border-radius: 4px;
}

/* 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;
}
