/*
  Modern CSS reset.
  Intentionally has no colours, type, or layout decisions —
  those live in main.css from Phase 2 onward.
*/

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* Preserve list semantics for assistive tech while allowing bullets
   to be removed in main.css; only lists explicitly marked as
   presentational (role="list") are affected. */
ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Accessibility utility: visually hide content without hiding it
   from screen readers. Not a design choice — required for labels
   like the skip link and toggle descriptions from Phase 1 onward. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* The skip link needs to become visible on focus; system colors
   (not brand colors) keep this readable before theming exists. */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 100;
}

.skip-link:focus {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.5rem 1rem;
  background: Canvas;
  color: CanvasText;
  outline: 2px solid currentColor;
}

@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;
  }
}
