/* Hallmark · shape: Feature Stack · genre: editorial · theme: Garden (by request) · job: join · draw: manual
 * hero: Stage · nav: edge-aligned · footer: mast · imagery: user, library · signature: interactive-seva-hub
 * axes: light/roman-serif/chromatic-green · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V5 · weakest: none, authentic grassroots NGO aesthetic with brand-true colors */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: clip;
}

html {
  scrollbar-color: var(--color-muted) var(--color-paper);
  scroll-padding-top: var(--space-3xl);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--color-brand-blue);
}

::selection {
  background-color: var(--tint-blue);
  color: var(--color-ink);
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-synthesis: none;
  letter-spacing: var(--tracking-display);
  line-height: 1.1;
  overflow-wrap: break-word;
  min-width: 0;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-display);
}

h2 {
  font-size: var(--text-section);
}

h3 {
  font-size: var(--text-title);
  line-height: 1.25;
}

.lead {
  font-size: var(--text-lead);
  line-height: 1.45;
  color: var(--color-ink-2);
}

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

p:not([class]) {
  max-width: 65ch;
}

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

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  box-sizing: border-box;
}

.num, .figure, td.num {
  font-variant-numeric: tabular-nums;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Button Foundation - Compliant with Hallmark 8 States */
button:active, a:active {
  transform: translateY(1px);
}

button:disabled, input:disabled, textarea:disabled, select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 60rem) {
  :root {
    --gutter: max(20px, env(safe-area-inset-left));
    --gap-columns: 20px;
    --section-gap-s: 40px;
    --section-gap: 56px;
    --section-gap-l: 72px;
  }
}

@media (max-width: 40rem) {
  :root {
    --gutter: max(16px, env(safe-area-inset-left));
    --gap-columns: 16px;
    --section-gap-s: 32px;
    --section-gap: 44px;
    --section-gap-l: 56px;
  }
}

@media (pointer: coarse) {
  button, .btn-primary, .btn-secondary, select, input {
    min-height: 48px;
  }
}

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