/* css/base.css — reset, base typography, utilities */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-family-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-body);
  color: var(--color-text);
  background: var(--color-bg);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.25;
  margin: 0 0 var(--space-4);
}
p { margin: 0 0 var(--space-4); }
img, svg { display: block; max-width: 100%; }
a { color: var(--color-primary); }

/* Disclosure widgets (<details>/<summary>) replace every JS-driven
   toggle on this site. Suppress the browser's default marker/triangle
   everywhere so each component's own class controls the look. */
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.cs-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-surface);
  color: var(--color-ink);
  padding: var(--space-2) var(--space-4);
  z-index: var(--z-toast);
  border-radius: var(--radius-sm);
}
.cs-skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}
.cs-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
}
.cs-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;
}
@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;
  }
}
