/* ============================================================
   Altru Radiance — base.css
   Canonical design tokens, reset, body baseline, and shared
   accessibility rules. Linked from every page's <head>, loaded
   before each page's inline <style> block so page-specific
   styles can override these defaults via the normal cascade.

   When a token changes here, it propagates to every page.
   ============================================================ */

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

/* ── Design tokens ── */
:root {
  --black:      #06100a;
  --deep:       #0a1810;
  --forest:     #162b1c;
  --gold:       #c9a84c;
  --gold-light: #e8cc88;
  --cream:      #f4f0e6;
  --mist:       #8aaa8a;
}

/* ── Document defaults ── */
html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--cream);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ── Focus indicators (WCAG 2.4.7) ──
   Keyboard users see a clear gold ring. Mouse users keep the
   no-outline experience the original :focus rules were trying
   to preserve. */
:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

/* ── Reduced motion ── */
@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;
  }
}

/* ── Tablet nav: hamburger from 860px to avoid the
       922px-into-672px overflow at 641-859px viewport widths. ── */
@media (max-width: 860px) and (min-width: 641px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── Touch target sizing for mobile (WCAG 2.5.5 AAA, 44px floor).
       Expands the tap area for link lists without changing visual size. ── */
@media (max-width: 640px) {
  .footer-links a,
  .breadcrumb-inner a,
  .breadcrumb a {
    display: inline-block;
    min-height: 44px;
    line-height: 1.55;
    padding: 0.45rem 0;
  }
  .footer-address a {
    display: inline-block;
    min-height: 44px;
    line-height: 1.55;
    padding: 0.3rem 0;
  }
  .footer-address br + a,
  .footer-address a + br {
    margin: 0;
  }
}
