/* ================================================================
   Base — reset, typography, primitives shared by every page
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--gold-deep); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

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

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2.5rem;
  margin-bottom: clamp(2.25rem, 5vw, 3.75rem);
}
.section-head h2 { margin-bottom: 0; max-width: 26ch; }
.section-head > .eyebrow { flex-basis: 100%; margin-bottom: 0; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }

/* ---- Eyebrow label ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.1rem;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}
.eyebrow--light { color: var(--gold-soft); }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.95rem 2.1rem;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out),
              border-color 0.35s var(--ease-out);
}
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--navy-950); }
.btn--gold:hover { background: transparent; color: var(--gold); }
.btn--ghost { border-color: var(--line-light); color: var(--ivory); }
.btn--ghost:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.btn--line { border-color: var(--line); color: var(--ink); }
.btn--line:hover { border-color: var(--gold-deep); color: var(--gold-deep); }
.btn--block { display: block; width: 100%; }
.btn--nav {
  padding: 0.62rem 1.4rem;
  font-size: 0.7rem;
  border-color: rgba(201, 164, 92, 0.75);
  color: var(--ivory);
}
.btn--nav:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-950); }

/* ---- Arrow link ---- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  transition: gap 0.3s var(--ease-out);
}
.link-arrow::after { content: "⟶"; font-size: 1rem; line-height: 1; }
.link-arrow:hover { gap: 1rem; }

/* ---- Framed image (gold offset border) ---- */
.framed { position: relative; }
.framed img { position: relative; z-index: 1; box-shadow: var(--shadow-card); }
.framed::after {
  content: "";
  position: absolute;
  inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  border: 1px solid var(--gold);
  opacity: 0.55;
  pointer-events: none;
}

/* ---- Scroll reveal (activated by animations.js) ---- */
.js .reveal { opacity: 0; transform: translateY(28px); }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Without GSAP the reveal is driven by class + CSS transition instead */
.no-gsap .reveal { transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }

/* ---- Accessibility ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.7rem 1.2rem;
  background: var(--navy-900);
  color: var(--ivory);
  font-size: var(--fs-small);
}
.skip-link:focus { top: 1rem; }

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

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