/* ============================================================================
   Base — reset, typography, layout primitives, texture, accessibility
   ========================================================================== */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul[role="list"] { list-style: none; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---- Typography ---- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: var(--lh-head); color: var(--cream); }
h1 { font-size: var(--fs-display); line-height: var(--lh-display); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 500; }
p  { max-width: var(--measure); }
strong { color: var(--cream); font-weight: 600; }
em { font-style: italic; }

a { color: var(--gold-bright); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--gold-hi); }

::selection { background: rgba(190,143,97,0.30); color: var(--cream); }

/* ---- Layout primitives ---- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; scroll-margin-top: 76px; }
.section--pure { background: var(--bg-pure); }
.measure { max-width: var(--measure); }

/* ---- Eyebrow / label ---- */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  color: var(--gold);
  display: inline-flex; align-items: center; gap: var(--sp-3);
}
.eyebrow--muted { color: var(--muted); }

/* short gold tick that precedes some eyebrows */
.eyebrow::before {
  content: ""; inline-size: 1.75rem; block-size: 1px;
  background: var(--gold); opacity: .8;
}
.eyebrow--plain::before { content: none; }

/* ---- Accessibility helpers ---- */
.skip-link {
  position: absolute; left: var(--sp-4); top: -3rem; z-index: 200;
  background: var(--surface-2); color: var(--cream);
  padding: var(--sp-2) var(--sp-4); border: 1px solid var(--border-gold);
  transition: top var(--dur) var(--ease-out);
}
.skip-link:focus { top: var(--sp-4); }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

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

/* ---- Edge vignette (subtle cinematic framing) ---- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 30%, transparent 55%, rgba(0,0,0,.55) 100%);
}
/* keep real content above the vignette layer */
.site-header, main, .site-footer { position: relative; z-index: 2; }

/* ---- Scroll-reveal initial state ---- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
