/* Reset and element defaults. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid var(--border); }
[hidden] { display: none !important; }

html { line-height: 1.5; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); }
body { background-color: var(--background); color: var(--foreground); font-family: var(--font-sans); font-size: var(--text-base); font-weight: var(--weight-body); -webkit-font-smoothing: antialiased; }

h1, h2, h3, h4 { font-size: inherit; font-weight: inherit; letter-spacing: 0; }
a { color: inherit; text-decoration: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; background: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { list-style: none; }
table { border-collapse: collapse; }
fieldset { min-width: 0; }
::selection { background: var(--teal-bright); color: var(--brand-deep); }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 50; padding: 12px 16px; background: var(--primary); color: var(--primary-foreground); border-radius: var(--radius-sm); font-size: var(--text-sm); font-weight: 700; }
.skip-link:focus { top: 16px; }

/* Icons: <svg class="icon"><use href="/assets/icons.svg#name"/></svg>, rendered by the `icon` template helper. */
.icon { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--xxs { width: 12px; height: 12px; }
.icon--xs { width: 14px; height: 14px; }
.icon--sm { width: 16px; height: 16px; }
.icon--md { width: 22px; height: 22px; stroke-width: 1.75; }
.icon--lg { width: 28px; height: 28px; stroke-width: 1.6; }

/* Hidden visually but still read by screen readers (e.g. form labels shown as placeholders). */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
