/* ==========================================================================
   RESET + BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { line-height: 1; }
img, video, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* ==========================================================================
   BASE TYPOGRAPHY
   ========================================================================== */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.5rem, 5vw, var(--text-5xl)); }
h2 { font-size: clamp(1.75rem, 3.5vw, var(--text-4xl)); }
h3 { font-size: clamp(1.25rem, 2vw, var(--text-2xl)); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }

p { line-height: 1.75; }

.text-display {
  font-family: var(--font-display);
  font-style: italic;
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}
.skip-link {
  position: absolute; top: 0; left: 0; z-index: 9999;
  padding: .75rem 1.5rem;
  background: var(--gold); color: var(--ink);
  transform: translateY(-100%);
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-8);
}
.container--narrow {
  max-width: var(--container-text);
}
.container--wide {
  max-width: 1600px;
}

/* Asymmetric editorial grid — the signature layout device */
.grid-editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }

/* ==========================================================================
   SCROLL REVEAL (motion system)
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="scale"] { transform: scale(.96); }
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Stagger children */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
[data-stagger].revealed > *:nth-child(1) { transition-delay: 0s; }
[data-stagger].revealed > *:nth-child(2) { transition-delay: .1s; }
[data-stagger].revealed > *:nth-child(3) { transition-delay: .2s; }
[data-stagger].revealed > *:nth-child(4) { transition-delay: .3s; }
[data-stagger].revealed > * { opacity: 1; transform: none; }

/* ==========================================================================
   SECTION SYSTEM
   ========================================================================== */
.section {
  padding: var(--space-24) 0;
}
.section--dark {
  background: var(--ink);
  color: var(--white);
}
.section--cream {
  background: var(--cream);
}
.section--gold {
  background: var(--gold-pale);
}
.section--flush { padding: 0; }

/* Section eyebrow — the gold left-border device (signature) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-6);
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-heading {
  max-width: 640px;
}
.section-heading--center {
  text-align: center;
  margin: 0 auto;
  max-width: 560px;
}

/* ==========================================================================
   DIVIDERS
   ========================================================================== */
.divider-gold {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: var(--space-8) 0;
}
.divider-gold--center { margin: var(--space-8) auto; }

/* ==========================================================================
   GOLD RULE (vertical — signature element)
   The repeating vertical gold line used as section connectors
   ========================================================================== */
.gold-rule {
  width: 1px;
  background: var(--gold-light);
  margin: 0 auto;
  flex-shrink: 0;
}

/* ==========================================================================
   IMAGE UTILITIES
   ========================================================================== */
.img-cover { width: 100%; height: 100%; object-fit: cover; }
.img-ratio-16-9  { aspect-ratio: 16/9; overflow: hidden; }
.img-ratio-4-3   { aspect-ratio: 4/3;  overflow: hidden; }
.img-ratio-3-4   { aspect-ratio: 3/4;  overflow: hidden; }
.img-ratio-1-1   { aspect-ratio: 1/1;  overflow: hidden; }
.img-ratio-21-9  { aspect-ratio: 21/9; overflow: hidden; }

/* ==========================================================================
   TYPOGRAPHY UTILITIES
   ========================================================================== */
.text-gold    { color: var(--gold); }
.text-muted   { color: var(--charcoal); }
.text-cream   { color: var(--cream); }
.text-white   { color: var(--white); }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.font-display { font-family: var(--font-display); }
.font-italic  { font-style: italic; }
.tracking-wide { letter-spacing: .08em; }

/* ==========================================================================
   SPACING UTILITIES
   ========================================================================== */
.mt-4  { margin-top: var(--space-4); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
