/* ========================================================================
   BASE — reset, typography, layout primitives, accessibility
   ======================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-800);
  line-height: 1.08;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1em; max-width: 62ch; }
p.lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 46ch; }

a { color: var(--navy-700); text-decoration-color: var(--gold-500); text-underline-offset: 3px; }
a:not([class]) { text-decoration: underline; text-decoration-thickness: 1px; }

img { max-width: 100%; display: block; }
button { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(3.5rem, 7vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section--dark { background: var(--navy-700); color: var(--navy-050); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark p:not(.lead) { color: rgba(255,255,255,0.78); }
.section--dark p.lead { color: rgba(255,255,255,0.9); }
.section--alt { background: var(--paper-alt); }
.section--navy-100 { background: var(--navy-100); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--green-700);
  letter-spacing: 0.02em;
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--gold-500);
}
.section--dark .eyebrow { color: var(--gold-300); }

.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;
  left: 1rem; top: -60px;
  background: var(--navy-800); color: #fff;
  padding: 0.75rem 1.25rem; border-radius: 0 0 8px 8px;
  z-index: 200; transition: top 0.2s var(--ease);
  font-weight: 600;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2.5px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Grid helpers */
.grid { display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--60-40 { grid-template-columns: 1.2fr 1fr; }
  .split--40-60 { grid-template-columns: 1fr 1.2fr; }
}

.mono-label {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--gray-600);
}

hr.rule { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.section--dark hr.rule { border-top-color: var(--border-on-dark); }

.footer-brand .brand-mark__logo,
.mobile-nav__top .brand-mark__logo { background: #fff; padding: 3px; }