/* =========================================================
   ONE STEP PROGRESS — Modern CSS Reset
   ========================================================= */

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

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  min-height: 100svh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  overflow-x: hidden;
}

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

img, video { object-fit: cover; }

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

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

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  text-wrap: balance;
}

ul, ol { list-style: none; }

table { border-collapse: collapse; }

:focus-visible {
  outline: 3px dashed var(--red-brand);
  outline-offset: 4px;
  border-radius: 2px;
}

::selection {
  background: var(--red-brand);
  color: var(--paper);
}

/* Hide scrollbar in fullscreen overlays but keep functionality */
.no-scroll { overflow: hidden; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--s-3);
  background: var(--red-brand);
  color: var(--paper);
  padding: var(--s-2) var(--s-3);
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  z-index: var(--z-modal);
  text-transform: uppercase;
}
.skip-link:focus { top: var(--s-3); }

/* Util */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
