/* Plumbing only: no look of its own. The design lives in design-tokens.css and styles.css.
   Every page needs this in <head>, so hidden states only apply when JavaScript runs:
   <script>document.documentElement.classList.add('js')</script> */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: var(--text); line-height: 1.6; overflow-wrap: break-word; }
img, video, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; }
a[href^="mailto:"] { overflow-wrap: anywhere; }
section[id], [id] { scroll-margin-top: 96px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--surface); color: var(--ink); }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* spam trap: never left:-9999px, that creates sideways scroll on phones */
.hp { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* the menu panel opens on phones: site.js toggles .is-open on [data-nav] */
body.nav-open { overflow: hidden; }

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

.field-error { display: block; margin-top: 4px; font-size: var(--text-sm); color: #b3261e; }
.field-hint { display: block; margin-top: 4px; font-size: var(--text-sm); }
.field-hint button { padding: 0; border: 0; background: none; text-decoration: underline; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
