/* Reset, type defaults, helpers and motion mechanics. Values come from tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--scroll-pad); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--color-cream);
  color: var(--color-navy);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--weight-body);
  line-height: var(--leading-body);
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
h1, h2, h3 { text-wrap: balance; text-rendering: optimizeLegibility; font-kerning: normal; }
p, li { text-wrap: pretty; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
:focus-visible { outline: var(--focus-width) solid var(--color-focus); outline-offset: var(--focus-offset); border-radius: var(--radius-small); }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--color-focus-on-dark); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--space-s); top: calc(-1 * var(--space-3xl) * 2); z-index: var(--z-skip); background: var(--color-navy); color: var(--color-white); padding: var(--space-xs) var(--space-m); border-radius: var(--radius-btn); font-weight: var(--weight-heavy); }
.skip-link:focus { top: var(--space-xs); }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: var(--safe-top); z-index: var(--z-nav); background: var(--color-cream); }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Toast: links to pages that come with the WordPress build */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--space-l) + var(--safe-bottom)); z-index: var(--z-toast);
  transform: translate(-50%, var(--space-s)); opacity: 0; pointer-events: none;
  max-width: min(var(--toast-max), var(--toast-width));
  background: var(--color-toast); color: var(--color-toast-ink);
  padding: var(--space-xs) var(--space-m); border-radius: var(--radius-btn);
  font-size: var(--fs-small); font-weight: var(--weight-bold); line-height: var(--leading-small);
  box-shadow: var(--shadow-btn);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Motion: only feedback on things you can press, and smooth jumps to sections */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
