html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  font-weight: 400;
  overflow-x: clip;
}

html { overflow-x: clip; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h1 { font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -0.035em; font-weight: 500; }
h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.025em; font-weight: 500; }
h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.015em; font-weight: 500; }
h4 { font-size: var(--fs-h4); }

p {
  color: var(--color-text-soft);
  max-width: 65ch;
}

strong { color: var(--color-text); font-weight: 600; }

a {
  color: var(--color-blue-deep);
  transition: color var(--dur-fast) var(--ease);
}

a:hover { color: var(--color-cyan); }

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

/* Eyebrow */
.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin-bottom: var(--sp-2);
  display: inline-block;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  background: var(--color-blue-deep);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 600;
  transition: top var(--dur-fast) var(--ease);
}

.skip-link:focus { top: 8px; color: #fff; }

/* Focus visible (custom for whole page) */
:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* Section spacing — Meridian generous rhythm */
section { padding-block: var(--sp-section); }

/* Conditional line breaks */
.br-desktop { display: none; }
@media (min-width: 720px) {
  .br-desktop { display: initial; }
}

.br-mobile { display: initial; }
@media (min-width: 720px) {
  .br-mobile { display: none; }
}

/* Visually hidden util */
.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;
}

/* Selection */
::selection {
  background: var(--color-cyan-light);
  color: var(--color-text);
}

/* Smooth scroll respecting motion pref */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
