/* ==========================================================================
   Base Reset, Editorial Typography & Accessibility Utilities
   ========================================================================== */

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

html {
  font-size: 100%;
  scroll-padding-top: calc(var(--nav-height) + 1.25rem);
  -webkit-text-size-adjust: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-ink);
  background-color: var(--color-bg);
  overflow-x: clip;
  scrollbar-width: none;
  -ms-overflow-style: none;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin-block: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--color-navy);
}

h3,
h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-navy);
}

h1 {
  font-size: var(--text-hero);
}

h2 {
  font-size: var(--text-2xl);
}

h3 {
  font-size: var(--text-xl);
}

.heading-accent,
.heading-accent .magnify-char {
  color: var(--color-azure);
  font-style: normal;
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 1rem;
  z-index: 2000;
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--color-navy);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: top var(--dur-fast) var(--ease-out-expo);
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

[inert],
[inert] * {
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.36rem 0.95rem;
  border-radius: var(--radius-pill);
  background-color: var(--color-surface-tint);
  border: 1px solid rgba(29, 111, 165, 0.22);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-azure);
}

.eyebrow--dark {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(194, 155, 97, 0.45);
  color: var(--color-champagne-soft);
}

.lead {
  font-size: var(--text-lg);
  color: var(--color-ink-muted);
  max-width: 58ch;
}
