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

  html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    scroll-padding-top: max(96px, 12vh);
  }

  body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: var(--body);
    font-size: var(--fs-body);
    line-height: 1.5;
    letter-spacing: -0.005em;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
  }

  /* Curtain in front of sticky footer reveal (see footer.css). */
  #main {
    flex: 1 0 auto;
    min-height: 100vh;
    min-height: 100svh;
    position: relative;
    z-index: 1;
    background: var(--canvas);
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    text-wrap: balance;
  }

  .skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: 12px 20px;
    margin: min(16px, 2vw);
    background: var(--blue-mist);
    color: var(--ink);
    font-family: var(--sans);
    font-size: var(--fs-ui);
    font-weight: 600;
    border-radius: var(--radius-pill);
    text-decoration: none;
  }
  .skip-link:focus {
    left: auto;
    right: auto;
    clip: auto;
    outline: 2px solid var(--accent-bright);
    outline-offset: 4px;
  }

  /* Hero gallery fallback is editor-only (see editor.css); canvas paints on front. */
  img:not(.hero__editor-gallery-fallback),
  svg {
    display: block;
    max-width: 100%;
  }
  button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
  }
  a {
    color: inherit;
    text-decoration: none;
  }

  /* WordPress WYSIWYG / prose fields only — not nav, footer, buttons, cards */
  [class*="__prose"] a:where(:not(.btn):not(.wp-element-button)),
  .wp-block-post-content a:where(:not(.wp-element-button)),
  .rich-list__body a,
  .people__intro a,
  .quote-hero__lede-copy a,
  .primary-cta__sub a {
    text-decoration: underline;
    text-underline-offset: 0.12em;
  }

  em {
    font-style: italic;
    color: var(--accent-em-body);
    font-weight: 400;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
