/* ==========================================================================
   AMLA Design System — Base
   Reset, document defaults, typography primitives, layout helpers.
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--text-on-light);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: -0.005em;
  margin: 0 0 var(--space-2);
  color: var(--navy-900);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }

p { margin: 0 0 var(--space-2); }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }

/* ---- Reusable layout helpers ------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 0.5rem + 3vw, 3rem);
}

.section { padding-block: var(--section-pad-y); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); }

.section--ivory   { background: var(--ivory); }
.section--ivory-2 { background: var(--ivory-200); }
.section--white   { background: var(--white); }
.section--navy    { background: var(--navy-900); color: var(--text-on-dark); }
.section--navy h1,
.section--navy h2,
.section--navy h3 { color: var(--white); }

.measure { max-width: var(--measure); }
.center  { text-align: center; margin-inline: auto; }

/* ---- Eyebrow / small-caps label --------------------------------------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--bronze-deep);
  margin-bottom: var(--space-2);
}
.section--navy .eyebrow { color: var(--bronze-soft); }

/* Hairline accent rule beneath headings */
.rule {
  width: 56px;
  height: 1px;
  background: var(--bronze);
  border: 0;
  margin: var(--space-3) 0;
}
.rule--center { margin-inline: auto; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text-muted);
}
.section--navy .lead { color: var(--text-on-dark-muted); }

/* ---- Accessibility ---------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
}
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy-900); color: var(--ivory);
  padding: var(--space-1) var(--space-2); z-index: 1000;
}
.skip-link:focus { left: var(--space-2); top: var(--space-2); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Scroll reveal (progressive enhancement) -------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}
