*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
/* The background is set on html, body and main rather than body alone. A host page or
   preview viewer that injects its own body background would otherwise show through. */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--color-background-primary);
}
body {
  min-height: 100vh;
  background: var(--color-background-primary);
  background-color: var(--color-background-primary);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { background: var(--color-background-primary); }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); line-height: 1.2; font-weight: 700; }
p { text-wrap: pretty; }
hr { border: 0; border-top: 1px solid var(--color-border); }
:focus-visible {
  outline: 2px solid var(--color-gold-highlight);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
.skip-link {
  position: absolute; inset-inline-start: var(--sp-4); top: -60px; z-index: 200;
  background: var(--color-gold-primary); color: var(--color-text-inverse);
  padding: var(--sp-3) var(--sp-5); border-radius: var(--r-md); font-weight: 600;
  transition: top var(--t-base);
}
.skip-link:focus { top: var(--sp-4); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
::selection { background: var(--color-gold-primary); color: var(--color-text-inverse); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--color-background-deep); }
::-webkit-scrollbar-thumb { background: var(--color-border-strong); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: #35495F; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}
