/* ==========================================================================
   Foundation — reset, base type, focus, utilities, reduced motion
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--adminbar-h) + 12px);
}

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

body {
  margin: 0;
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: .04em;
  overflow-wrap: break-word;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

@media (min-width: 1024px) {
  body { font-size: 16px; }
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, h5, h6,
p, figure, dl, dd, blockquote {
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: 600;
}

address {
  font-style: normal;
}

small {
  font-size: inherit;
}

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

input,
select,
textarea {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--color-brand-dark);
  color: var(--color-white);
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 13px;
}

.skip-link:focus {
  top: calc(var(--adminbar-h) + 12px);
}

/* Unconfirmed facts and missing assets stay visible on purpose. */
.content-required,
.asset-required {
  display: inline-block;
  padding: .05em .5em;
  outline: 1px dashed currentColor;
  outline-offset: -1px;
  background: #fff4ec;
  color: var(--color-required);
  font-family: var(--font-sans);
  font-size: .78em;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .02em;
  vertical-align: middle;
}

.asset-required {
  background: #eef4fb;
  color: #1e4f86;
}

.content-required__what {
  color: #6e2c0a;
}

/* ---------- reduced motion (spec §48) ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
}
