/* Base: reset, typography, focus, utilities. */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  min-height: 100vh;
  background: var(--surface-1);
  color: var(--text);
  font: 400 var(--fs-body)/var(--lh-base) var(--ff-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, picture, svg { display: block; max-width: 100%; }
picture > img { width: 100%; height: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-weight: 400; text-wrap: balance; line-height: var(--lh-snug); }
p, li, dd { text-wrap: pretty; }
strong, b { font-weight: 600; }
[hidden][hidden] { display: none !important; }

.icon { width: 20px; height: 20px; flex: none; stroke-width: 1.75; }

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-s); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--color-brand); color: var(--color-brand-ink); font-weight: 600;
  transition: top var(--dur-base) var(--ease);
}
.skip-link:focus { top: 12px; }

.muted { color: var(--text-2); }
.center { display: flex; justify-content: center; margin-top: var(--space-32); }
.h3 { display: flex; align-items: center; gap: 8px; font: 600 var(--fs-h3)/1.3 var(--ff-body); margin-bottom: var(--space-16); }
.h3 .icon { color: var(--color-brand); }

/* Content text inside documents and cards */
.prose p + p { margin-top: .9em; }
.prose a, .doc__body a, .note a, .check a, .faq .acc__inner a, .field a { color: var(--color-brand-hi); text-decoration: underline; text-decoration-color: rgba(236, 211, 154, .4); text-underline-offset: 3px; transition: text-decoration-color var(--dur-fast); }
.prose a:hover, .doc__body a:hover, .note a:hover, .check a:hover, .faq .acc__inner a:hover { text-decoration-color: currentColor; }

::selection { background: rgba(213, 180, 107, .35); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; border: 2px solid var(--surface-1); }
::-webkit-scrollbar-track { background: transparent; }
/* Inline links can sit inside clipped containers (accordions): a ring would be cut off, a highlight is not. */
p a:focus-visible, li a:focus-visible, .acc__inner a:focus-visible { box-shadow: none; background: rgba(213, 180, 107, .28); outline: 2px solid var(--color-brand-hi); outline-offset: 1px; border-radius: 3px; }
