/* ==========================================================================
   base.css — reset and bare-element typography. No components here.
   ========================================================================== */

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;   /* 16px: Inter has a large x-height, so it reads like 17px elsewhere */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;     /* belt and braces against horizontal scroll */
}

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

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--space-2);
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;  /* Inter is spaced for text; display sizes tighten */
  color: var(--petrol-blue);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
}

h3 {
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  font-weight: 600;
}

h4 {
  font-size: 1.0625rem;
  font-weight: 600;
}

p {
  margin: 0 0 var(--space-2);
  max-width: 68ch;          /* readable measure */
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

/* Text-safe orange: Process Orange is 3.44:1 on white, below AA for text. */
a:hover {
  color: var(--orange-text);
}

ul,
ol {
  margin: 0 0 var(--space-2);
  padding-left: var(--space-3);
}

li {
  margin-bottom: var(--space-1);
}

strong {
  font-weight: 600;
}

hr {
  border: 0;
  border-top: 2px solid var(--process-orange);
  width: 56px;
  margin: var(--space-3) 0;
}

/* --- Focus: visible, always. Never remove without replacing. ------------- */

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

/* --- Utilities ---------------------------------------------------------- */

.visually-hidden {
  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: -100px;
  left: var(--space-2);
  z-index: 999;
  padding: var(--space-1) var(--space-2);
  background: var(--process-orange);
  color: var(--deep-ink);   /* Deep Ink on orange, per the brand guide */
  font-family: var(--font-head);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--transition);
}

.skip-link:focus {
  top: var(--space-2);
  color: var(--deep-ink);
}

.eyebrow {
  display: block;
  margin-bottom: var(--space-1);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-text);
}

.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
}
