/*
 * Element defaults and typography.
 */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
  /* Never set overflow-x here: it propagates to the viewport and breaks
     window.scrollY, sticky positioning and scroll-driven animation. */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--pg-white);
  color: var(--pg-ink-soft);
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--pg-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--pg-ink);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
address { font-style: normal; }
table { border-collapse: collapse; width: 100%; }

a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 0.25em; }
a:hover { text-decoration-color: currentColor; }

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

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--pg-green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link: visible only once focused. */
.pg-skip {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--pg-navy);
  color: #fff;
  border-radius: var(--pg-r-pill);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--pg-dur-fast) var(--pg-ease);
}
.pg-skip:focus { top: 1rem; }

.pg-main { display: block; }

/* Utility type */
.pg-display { font-size: var(--pg-display); font-weight: 700; line-height: 0.98; letter-spacing: -0.04em; color: var(--pg-ink); }
.pg-h2 { font-size: var(--pg-h2); line-height: 1.02; }
.pg-h3 { font-size: var(--pg-h3); line-height: 1.1; }
.pg-lead { font-size: var(--pg-lead); line-height: 1.6; color: var(--pg-ink-soft); }
.pg-text { font-size: var(--pg-body); line-height: 1.65; color: var(--pg-ink-soft); }
.pg-compact { font-size: var(--pg-compact); line-height: 1.6; color: var(--pg-ink-soft); }
.pg-tabular { font-variant-numeric: tabular-nums; }
/* `ch` resolves against the element's own font-size, so the cap belongs on the
   text element itself, never on a wrapper. */
.pg-measure { max-width: 62ch; }

/* Editor / fallback prose */
.pg-prose > * + * { margin-top: 1rem; }
.pg-prose h2 { font-size: var(--pg-h3); margin-top: 2.5rem; }
.pg-prose h3 { font-size: 1.25rem; margin-top: 2rem; }
.pg-prose ul { list-style: disc; padding-left: 1.25rem; }
.pg-prose ol { list-style: decimal; padding-left: 1.25rem; }
.pg-prose li + li { margin-top: 0.35rem; }
.pg-prose a { color: var(--pg-green); font-weight: 600; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
