/* Reset + element defaults for the public site. */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: auto; /* Lenis drives smooth scroll where available */
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--av-bg);
  color: var(--av-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: clip;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--av-ink);
}

p { margin: 0; }

a {
  color: var(--av-text);
  text-decoration: none;
}
a:hover { color: var(--av-accent); }

img, svg { display: block; max-width: 100%; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

::selection { background: var(--av-ink); color: var(--av-bg); }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--av-surface-alt); }
::-webkit-scrollbar-thumb { background: var(--av-ink); border-radius: 99px; }

:focus-visible {
  outline: 2px solid var(--av-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.av-container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-section-x);
}

.av-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.av-skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 1000;
  background: var(--av-ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: top var(--dur-fast) var(--ease-out);
}
.av-skip-link:focus {
  top: 12px;
  color: #fff;
}

/* Compatibility shim: a couple of shared components (e.g. x-turnstile) still emit
   a Bootstrap utility class from the pre-redesign layout. Bootstrap's CSS is no
   longer loaded on public pages, so give the one class actually used a plain
   equivalent rather than letting it render unstyled. */
.text-danger { color: #D92D20; font-size: 12.5px; }
.text-muted { color: var(--av-muted); }
