/* reset.css - shared baseline reset + a11y primitives.
   Imported by main.css (homepage) and linked by episode pages.
   Brand tokens come from tokens.css; this file holds no colors of its own
   except where it reads a token. */

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }

/* Screen-reader-only: present in the a11y tree, invisible on screen. Used by the
   ticker's static fallback list and skip link. */
.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 - first focusable element, jumps to #main-content. */
.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(-120%);
  z-index: 1000;
  background: var(--ember);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-md) 0;
  transition: transform var(--transition-base);
}
.skip-link:focus { transform: translateY(0); }

/* Visible, on-brand focus ring for keyboard users only. */
:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

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