/* ==========================================================================
   Converge-Con — Reset & Base
   ========================================================================== */

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

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  /* Offset anchor jumps so section titles clear the sticky header */
  scroll-padding-top: calc(var(--header-height) + 0.5rem);
  -webkit-text-size-adjust: 100%;
  background: var(--color-black);
  /* Clip on the root — body alone still lets abspos letters widen html scrollWidth */
  overflow-x: clip;
}

body {
  min-height: 100vh;
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-mono);
  font-size: var(--font-size-body);
  line-height: 1.5;
  overflow-x: clip;
  max-width: 100%;
}

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

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

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

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
}

p {
  max-width: 75ch;
}

/* Respect reduced-motion preferences ahead of the animation pass */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 2px solid var(--color-lime);
  outline-offset: 3px;
}

/* Screen-reader-only utility, used for asset placeholders that carry no
   visible text so the page stays meaningful before final art is dropped in */
.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;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--color-black);
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--duration-fast) var(--ease-standard);
}

.skip-link:focus {
  top: 1rem;
}
