/* =============================================================================
   reset.css — VBS Minimal Normalisation
   Establishes a consistent baseline. Opinionated where VBS design requires it.
   Import after tokens.css, before layout.css.
   ============================================================================= */

/* Box sizing — universal */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Document */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Body — apply design system base */
body {
  background-color: var(--color-bg);
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings — display font, tight leading */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-cream);
}

/* Paragraphs */
p {
  max-width: 68ch;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-gold);
}

/* Lists */
ul, ol {
  list-style: none;
}

/* Media */
img, svg, video, canvas {
  display: block;
  max-width: 100%;
}

/* Form elements — inherit type */
button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

button {
  cursor: pointer;
}

/* Horizontal rule */
hr {
  border: none;
  border-top: 1px solid var(--color-gold-20);
}

/* Code & mono elements */
code, pre, kbd, samp {
  font-family: var(--font-mono);
  font-size: var(--text-small);
}

/* Strong */
strong, b {
  font-weight: 600;
}

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

/* Remove animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
