/* Base — reset, typography defaults, focus styles, utility layout */

*,*::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: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--text-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { background: var(--stone-2); }

a { color: var(--link); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--link-hover); }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  margin: 0;
}
h1 { font-size: var(--fs-display); line-height: var(--lh-tight); }
h2 { font-size: clamp(1.75rem, 2.4vw + 1rem, 3rem); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-md); }

p { margin: 0 0 var(--space-4); }

button { font: inherit; cursor: pointer; }

/* Focus */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--brand-blue-vivid);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff;
  padding: .75rem 1rem; z-index: 999;
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

/* Layout */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.section { padding: clamp(3.5rem, 8vw, 7rem) 0; position: relative; }
.section--tight { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.section--dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section--dark h1,.section--dark h2,.section--dark h3,.section--dark h4,.section--dark h5,.section--dark h6 { color: #fff; }
.section--alt { background: var(--bg-alt); }

/* Eyebrow label */
.eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--brand-blue);
  display: inline-flex; align-items: center; gap: .625rem;
  margin: 0 0 var(--space-4);
}
.eyebrow::before {
  content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor;
}
.section--dark .eyebrow { color: #F2A5A3; }

/* Utility */
.stack > * + * { margin-top: var(--space-4); }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.max-prose { max-width: 60ch; }

.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Section heading block */
.section-head { max-width: 780px; margin: 0 0 var(--space-12); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--text-muted); font-size: var(--fs-md); }
.section--dark .section-head p { color: var(--text-on-dark-muted); }

/* Blueprint grid background */
.bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
}
.bg-grid-light {
  background-image:
    linear-gradient(rgba(10,22,40,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,22,40,.04) 1px, transparent 1px);
  background-size: 56px 56px;
}

.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border) 20%, var(--border) 80%, transparent);
  border: 0;
}
.section--dark .divider { background: linear-gradient(to right, transparent, rgba(255,255,255,.14) 20%, rgba(255,255,255,.14) 80%, transparent); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Screen reader */
.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;
}
