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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--bg);
}

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

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

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* Typography scale */
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem);  font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
h4 { font-size: 1.0625rem; font-weight: 600; line-height: 1.4; }
p  { font-size: 1.0625rem; color: var(--muted); line-height: 1.65; }

/* Layout helpers */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section--dark {
  background: var(--navy);
  color: var(--white);
}

.section--dark p {
  color: rgba(255,255,255,0.7);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}

/* Accent rule bar */
.rule-accent {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--navy));
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.section--dark .rule-accent {
  background: linear-gradient(90deg, var(--accent), rgba(255,255,255,0.2));
}

/* Skip to content */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 9999;
  transition: top var(--transition);
}

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

/* Focus ring */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* Insights hub hidden: URLs redirect to 404; strip from chrome and in-page hub links */
.site-header a[href="/insights"].nav__link,
#nav-mobile a[href="/insights"].nav__link,
footer.footer a[href="/insights"],
.nav__links li:has(> a[href="/insights"]) {
  display: none !important;
}
main a[href="/insights"] {
  display: none !important;
}
