/* ==========================================================================
   reportwithecho.com — base styles

   Reset, body, focus ring, 48×48 minimum tap targets per the citizen
   profile in PRODUCT.md (gloved-input tolerance). The shell + .section__inner
   live here too since they wrap every section.
   ========================================================================== */

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

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
  body { font-size: 19px; }
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--accent-violet);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-violet-hover);
}

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

/* Focus ring — visible, brand-colored, generous. The hero overrides this
   to white-on-violet for legibility on the drenched section. */
:focus-visible {
  outline: 3px solid var(--focus-ring, var(--accent-violet));
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* 48×48 minimum tap targets for gloved input.
   Scoped to standalone interactive controls only — applying this to
   bare <a> would force inline links inside paragraphs (FAQ partner
   list, footer credit) to behave like blocks and break line flow.
   Inline links inherit their tap area from the surrounding line-height
   plus the 2px underline thickness; that's adequate for body copy.
   Standalone link affordances (.btn, .hero__cta) set their own
   min-width/height explicitly via padding + min-height. */
button,
[role="button"],
summary,
input[type="checkbox"],
input[type="radio"] {
  min-width: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

button {
  font: inherit;
  cursor: pointer;
}

/* Eyebrow label. Used at the top of every section. Industrial-utilitarian
   per PRODUCT.md aesthetic direction. */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-violet);
  margin-bottom: var(--space-lg);
}

/* Layout shell — sections are full-bleed, .section__inner is the constrained
   content rail inside them. This lets sections paint background color edge-
   to-edge without breaking the content rhythm. */
.section__inner {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

@media (min-width: 768px) {
  .section__inner { padding: 0 var(--space-2xl); }
}

/* Visually hidden but available to screen readers */
.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;
}
