/* ============================================================
   Richfields — Base / reset / primitives
   ============================================================ */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--on-light);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, video, svg { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

/* --- Selection --- */
::selection { background: var(--gold); color: #100b02; }

/* --- Focus --- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 1px;
}

/* --- Skip link --- */
.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 200;
  background: var(--ink); color: var(--on-dark);
  padding: 12px 20px; border-radius: var(--r-card);
  font-size: var(--t-body-sm); letter-spacing: 0.02em;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* --- Layout helpers --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-wide { max-width: var(--container-wide); }
.section { padding-block: var(--section-y); }

/* --- Eyebrow / label --- */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-light-muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow--on-dark { color: var(--on-dark-muted); }
.eyebrow--gold { color: var(--gold); }

/* --- Section opener (heading leads; no kicker labels) --- */
.opener { max-width: 760px; }
.opener--center { margin-inline: auto; text-align: center; }
.opener__title { font-size: var(--t-heading); }
.opener__lede {
  font-size: var(--t-lede); color: var(--on-light-muted);
  margin-top: var(--s-4); line-height: 1.5; max-width: 60ch;
}
.opener--center .opener__lede { margin-inline: auto; }

/* --- Utility --- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.u-dark { background: var(--ink); color: var(--on-dark); }
.u-paper2 { background: var(--paper-2); }

/* --- Reveal (JS toggles .is-in). Degrades: no-JS shows content. --- */
[data-reveal] { opacity: 0; transform: translateY(26px); }
[data-reveal].is-in { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
