/* ============================================================
   LFCD — Base
   Reset, typography, accessibility primitives.
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-s);
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 var(--space-s); max-width: 62ch; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* Visible focus everywhere — gold ring on light, cream ring on dark */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
.band--dark :focus-visible { outline-color: var(--sage); }

::selection { background: var(--gold); color: var(--forest); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 200;
  background: var(--forest);
  color: var(--cream);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-s);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

/* Layout primitives */
.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.container--wide {
  width: min(var(--container-wide), 100% - 2 * var(--gutter));
}

.band { padding-block: var(--space-2xl); position: relative; }
.band--tight { padding-block: var(--space-xl); }
.band--dark { background: var(--forest); color: var(--cream-on-dark); }
.band--canopy { background: var(--canopy); color: var(--cream-on-dark); }
.band--sage { background: var(--pale-sage); }
.band--dark h1, .band--dark h2, .band--dark h3,
.band--canopy h2, .band--canopy h3 { color: var(--cream); }

/* Subtle organic grain on dark bands — keeps large flats from going dead */
.band--dark::before, .band--canopy::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(rgba(244,239,224,0.045) 1px, transparent 1.4px);
  background-size: 26px 26px;
}
.band > * { position: relative; }

/* Section header pattern */
.section-head { max-width: 46rem; margin-bottom: var(--space-l); }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: var(--space-xs);
}
.band--dark .kicker, .band--canopy .kicker { color: var(--gold); }
.kicker::before {
  content: "";
  width: 1.8rem; height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 54ch;
}
.band--dark .lede, .band--canopy .lede { color: var(--cream-on-dark-soft); }

/* No-JS / data-load failure notice */
.boot-notice {
  padding: var(--space-l) var(--gutter);
  text-align: center;
  font-weight: 600;
}
