/* ==========================================================
   BASE: variables, reset, typography
   Change your brand colors and fonts here, in one place.
   ========================================================== */

:root {
  /* Noir & Gold palette */
  --black: #0f0f0f;
  --charcoal: #1a1a1a;
  --graphite: #2a2a2a;
  --white: #f7f5f2;
  --muted: #9a968f;
  --gold: #b8975a;
  --gold-light: #d4b77e;

  /* Semantic colors (use these in your CSS, not the raw ones) */
  --bg: var(--black);
  --bg-alt: var(--charcoal);
  --text: var(--white);
  --text-muted: var(--muted);
  --accent: var(--gold);
  --line: rgba(247, 245, 242, 0.12);

  /* Fonts */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Fluid type: scales smoothly between phone and desktop */
  --fs-body: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --fs-h1: clamp(2.75rem, 2rem + 5vw, 6.5rem);
  --fs-h2: clamp(2rem, 1.5rem + 2.5vw, 3.75rem);
  --fs-h3: clamp(1.4rem, 1.2rem + 1vw, 2rem);
  --fs-small: 0.8rem;

  /* Spacing */
  --space-section: clamp(4rem, 3rem + 6vw, 9rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max-width: 1500px;
  --header-h: 76px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-open,
body.lb-open {
  overflow: hidden; /* stops page scrolling behind the mobile menu and the lightbox */
}

img,
picture,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p + p {
  margin-top: 1em;
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}

em.accent {
  font-style: italic;
  color: var(--gold-light);
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--space-section);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: var(--gutter);
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--black);
}
.skip-link:focus {
  top: 1rem;
}

::selection {
  background: var(--accent);
  color: var(--black);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ---------- Respect "reduce motion" accessibility setting ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}