/* ===========================================================================
   base.css — design tokens, reset, root typography
   =========================================================================== */

:root {
  /* ---- colour ---- */
  --bg:          #0B0B0C;
  --bg-elev:     #16161A;
  --bg-elev-2:   #1C1C21;
  --line:        #232328;
  --line-soft:   #2C2C32;

  --gold:        #C8A85A;
  --gold-soft:   #8C7541;
  --gold-bright: #D9BD7A;

  --text:        #F3EFE7;
  --text-mute:   #A6A19A;
  --text-dim:    #6F6A63;

  --danger:      #C75450;
  --success:     #6C9870;

  /* ---- fonts ---- */
  --font-serif:  'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  /* ---- type scale ---- */
  --fs-xs:   12px;
  --fs-sm:   14px;
  --fs-base: 16px;
  --fs-md:   18px;
  --fs-lg:   22px;
  --fs-xl:   28px;
  --fs-2xl:  40px;
  --fs-3xl:  56px;
  --fs-4xl:  80px;

  /* ---- spacing ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* ---- radii ---- */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 8px;

  /* ---- transitions ---- */
  --t-fast: 120ms ease-out;
  --t-base: 240ms ease-out;
  --t-slow: 480ms cubic-bezier(0.2, 0.7, 0.2, 1);

  /* ---- layout ---- */
  --container:    1280px;
  --container-sm: 880px;
  --header-h:     72px;

  /* ---- shadows ---- */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 0 0 1px rgba(200, 168, 90, 0.35);
}

/* ===========================================================================
   reset
   =========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11", "tnum";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--text);
}

h1 { font-size: var(--fs-3xl); font-weight: 500; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); font-family: var(--font-sans); font-weight: 500; letter-spacing: 0; }

@media (min-width: 768px) {
  h1 { font-size: var(--fs-4xl); }
}

p { margin: 0 0 var(--space-4) 0; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--gold); }

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  font-size: inherit;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul, ol { padding: 0; margin: 0; list-style: none; }

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

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

/* ===========================================================================
   utility primitives
   =========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

@media (min-width: 768px) {
  .container { padding: 0 var(--space-6); }
}

.container-sm {
  width: 100%;
  max-width: var(--container-sm);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font-sans);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: var(--space-3);
}

.lead {
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--text-mute);
  max-width: 60ch;
}

.muted { color: var(--text-mute); }
.dim   { color: var(--text-dim); }
.gold  { color: var(--gold); }
.serif { font-family: var(--font-serif); }
.tnum  { font-variant-numeric: tabular-nums; }

/* ---- buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--gold-bright);
  color: var(--bg);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-lg { padding: 18px 36px; font-size: var(--fs-base); }

/* ---- section ---- */

.section {
  padding: var(--space-9) 0;
  border-top: 1px solid var(--line);
}
.section:first-of-type { border-top: 0; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-7);
  flex-wrap: wrap;
}

.section-head h2 { margin: 0; }

@media (max-width: 767px) {
  .section { padding: var(--space-8) 0; }
}

/* ---- divider rule ---- */

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: var(--space-6) 0;
}
