

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  padding: 0;
  padding-top: calc(var(--topbar-height) + var(--navbar-height));
  width: 100%;
  min-height: 100vh;
  background-color: var(--dark-black);
  color: var(--text-light);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}


section[id] {
  scroll-margin-top: calc(var(--navbar-height) + var(--topbar-height) + 16px);
}


.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  background-color: var(--light-yellow);
  color: var(--dark-black);
  padding: 10px 18px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 99999;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 16px;
  outline: 3px solid var(--white);
}

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


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

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

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul,
ol {
  list-style: none;
}


h1, h2, h3, h4, h5, h6 {
  color: var(--white);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: var(--space-3);
}

p {
  margin-bottom: var(--space-4);
  color: var(--text-light);
}

p:last-child {
  margin-bottom: 0;
}


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