/* ==========================================================================
   Reset and base elements
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

body {
  min-height: 100svh;
  overflow-x: clip;
  background-color: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none; /* the accent font has no italic: never fake it */
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

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

img,
video {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400;
  font-size: inherit;
  line-height: inherit;
}

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

::selection {
  background-color: var(--color-teal);
  color: var(--color-ivory);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Hidden until JS animates it (only when JS + motion are available) */
.js [data-reveal] {
  visibility: hidden;
}

.js [data-reveal].is-revealed,
.reduced-motion [data-reveal] {
  visibility: visible;
}

/* SplitText helpers (block "split", created by js/modules/reveal.js) */
.split__word {
  display: inline-block;
  will-change: transform, opacity;
}

.split__line {
  display: block;
  will-change: transform;
}

/* line mask (SplitText names it linesClass + "-mask");
   extra bottom room keeps descenders (g, y, p) visible */
.split__line-mask {
  padding-bottom: 0.2em;
  margin-bottom: -0.2em;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
