/* =============================================================
   base.css — Typography & body defaults
   Element-level styles for headings, body text, links, etc.
   Mobile-first; responsive scaling lives in responsive.css.
   ============================================================= */

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-gray-600);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Headings ---------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-navy-deep);
}

/* Hero H1 uses the display font (Barlow 900) */
.hero h1,
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.875rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--color-white);
  text-transform: uppercase;
}

/* Section H2 — Barlow Condensed 800, uppercase */
h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* Card / sub-section H3 */
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-navy-deep);
}

/* ---------- Eyebrow label ---------- */
/* Small uppercase tag used above headings.
   Editorial signature: small orange "tab" indicator sits ABOVE each eyebrow,
   creating a consistent rhythm of accents across all sections. */
.eyebrow {
  display: inline-block;
  position: relative;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-orange);
  margin-bottom: var(--space-4);
  padding-top: 14px;
}

.eyebrow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--color-orange);
}

/* Centered context (e.g. about section) — center the tab too */
.about__container .eyebrow::before {
  left: 50%;
  transform: translateX(-50%);
}

/* On dark backgrounds the eyebrow stays orange (good contrast) */

/* ---------- Generic punctuation/text accent ----------
   Used to wrap final periods in headings, branding them with orange.
   Reusable across hero, section H2s, and inline copy. */
.text-accent {
  color: var(--color-orange);
}

/* ---------- Body text ---------- */

p {
  font-size: 1rem;
  line-height: 1.6;
  color: inherit;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.6;
}

.small {
  font-size: 0.875rem;
  font-weight: 500;
}

/* ---------- Links ---------- */

a {
  color: var(--color-orange);
  transition: color var(--transition-fast);
}

a:hover,
a:focus-visible {
  color: var(--color-orange);
}

/* ---------- Focus states (accessibility) ---------- */

:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---------- Skip link (keyboard accessibility) ---------- */

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  background: var(--color-navy-deep);
  color: var(--color-white);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 1000;
  border-radius: var(--radius-sm);
  transition: top var(--transition-base);
}

.skip-link:focus {
  top: var(--space-4);
}

/* ---------- Sections ---------- */

section {
  scroll-margin-top: calc(var(--nav-height) + var(--space-4));
}

/* ---------- Selection ---------- */
::selection {
  background: var(--color-orange);
  color: var(--color-white);
}
