/* ═══════════════════════════════════════════════════════════
   BASE — Reset, Typography, Global Styles
   ═══════════════════════════════════════════════════════════ */

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; }

/* ─── Body ─── */
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--sky-deep);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Typography Scale ─── */
h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 72px;
  letter-spacing: -1px;
  line-height: 1.0;
  color: var(--sky-deep);
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 56px;
  letter-spacing: -1px;
  line-height: 1.0;
  color: var(--sky-deep);
}

h2.article-heading {
  font-size: 32px;
  letter-spacing: -1px;
}

h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -1px;
  line-height: 1.0;
  color: var(--sky-deep);
}

h3.article-heading {
  letter-spacing: -1px;
}

h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -1px;
  line-height: 1.2;
  color: var(--sky-deep);
}

/* ─── Text Utilities ─── */
.lead {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.body-text {
  font-size: 16px;
  font-weight: 400;
  color: rgba(11,31,58,0.8);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.body-muted {
  font-size: 16px;
  font-weight: 400;
  color: rgba(11,31,58,0.6);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.caption {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.88px;
  line-height: 1.0;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  line-height: 1.0;
}

/* ─── Accent Word (blue highlight in headings) ─── */
.accent { color: var(--sky-bright); }

/* ─── Links ─── */
a:hover { color: var(--sky-electric); }

.link-primary {
  font-weight: 500;
  color: var(--sky-bright);
  transition: color 0.2s;
}
.link-primary:hover { color: var(--sky-electric); }

.link-underline {
  font-weight: 500;
  color: var(--sky-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.link-underline:hover { color: var(--sky-electric); }

/* ─── Skip Link (accessibility) ─── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 100000;
}
.skip-link:focus {
  display: block;
  left: 8px;
  top: 8px;
  width: auto;
  height: auto;
  padding: 12px 24px;
  background: var(--sky-deep);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-input);
  z-index: 100000;
}

/* ─── Screen Reader Text ─── */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  clip: auto !important;
  clip-path: none;
  display: block;
  height: auto;
  width: auto;
  left: 8px;
  top: 8px;
  padding: 12px 24px;
  background: var(--sky-deep);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-input);
  z-index: 100000;
}

/* ─── Selection ─── */
::selection {
  background: var(--sky-bright);
  color: #fff;
}

/* ─── Focus Visible ─── */
:focus-visible {
  outline: 2px solid var(--sky-bright);
  outline-offset: 2px;
}

/* ─── Responsive Typography ─── */
@media (max-width: 1439px) {
  h1 { font-size: 56px; letter-spacing: -1px; }
  h2 { font-size: 44px; letter-spacing: -1px; }
}

@media (max-width: 1023px) {
  h1 { font-size: 44px; letter-spacing: -1px; }
  h2 { font-size: 36px; letter-spacing: -1px; }
  h3 { font-size: 22px; }
  .lead { font-size: 18px; }
}

@media (max-width: 767px) {
  h1 { font-size: 36px; letter-spacing: -1px; }
  h2 { font-size: 28px; letter-spacing: -1px; }
  h3 { font-size: 20px; }
  .lead { font-size: 15px; }
  h2.article-heading { font-size: 24px; letter-spacing: -1px; }
}
