*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

/* WP standard a11y class — hide labels visually but keep accessible to
 * screen readers. Required by core (WP only emits the class, theme defines
 * the rule). Footer newsletter label was leaking on home as visible vertical
 * text without this. (v1.9.25) */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: #fff;
  clip: auto !important;
  clip-path: none;
  color: #1e3a6b;
  display: block;
  height: auto;
  left: 6px;
  top: 7px;
  padding: 10px 18px;
  width: auto;
  z-index: 100000;
  font-weight: 700;
  text-decoration: underline;
}

button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.022em;
  color: var(--color-ink);
}
h1 { font-weight: 800; letter-spacing: -0.03em; }

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.container-wide {
  width: min(100% - 1.5rem, var(--container-wide));
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-3);
}

.section {
  padding-block: var(--space-9);
}

.section-tight { padding-block: var(--space-7); }

.section-head {
  text-align: center;
  margin-bottom: var(--space-7);
}

.section-head h2 {
  font-size: var(--fs-2xl);
}

.section-head-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-7);
  flex-wrap: wrap;
}

.section-head-row h2 { font-size: var(--fs-2xl); }

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
  /* Belt-and-suspenders for future sections without explicit height —
   * reserve a placeholder so slow image loads don't pop in below. */
  min-height: 60px;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
