/* ==========================================================================
   THE COUNSELOR GROUP — Design System
   Aesthetic: quiet authority — senior, restrained, global
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* — Color (deep ink + antique gold + warm cream) — */
  --ink: #0E1B2C;
  --ink-2: #14233A;
  --ink-3: #1B2F4A;
  --gold: #B89968;
  --gold-2: #C9AC7D;
  --gold-3: #8B7048;
  --cream: #FAF6F0;
  --cream-2: #F1ECE3;
  --paper: #FFFFFF;
  
  --line: rgba(14, 27, 44, 0.10);
  --line-2: rgba(14, 27, 44, 0.18);
  --line-gold: rgba(184, 153, 104, 0.35);
  
  --mute: #5C6779;
  --mute-2: #8A93A1;

  /* — Type — */
  --font-display: 'Cormorant Garamond', 'Cormorant', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-eyebrow: 'Inter', sans-serif;

  /* — Scale — */
  --t-hero: clamp(48px, 6.5vw, 92px);
  --t-h1: clamp(40px, 5vw, 72px);
  --t-h2: clamp(32px, 3.6vw, 52px);
  --t-h3: clamp(24px, 2.2vw, 32px);
  --t-h4: 20px;
  --t-body: 17px;
  --t-small: 14px;
  --t-eyebrow: 12px;

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

  /* — Layout — */
  --container: 1280px;
  --container-narrow: 920px;
  --radius: 2px;

  /* — Motion — */
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  font-feature-settings: "ss01", "cv11";
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

input, textarea, select {
  font: inherit;
  color: inherit;
}

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--ink);
  margin: 0;
}
h4, h5 { font-weight: 600; }
strong, em { font-weight: 800; }

h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.2; }
h4 { font-size: var(--t-h4); line-height: 1.3; }

p {
  margin: 0 0 1em;
  color: var(--ink);
}

.lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 60ch;
}

.eyebrow {
  font-family: var(--font-eyebrow);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}
.eyebrow--gold { color: var(--gold); }

.serif-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

.heading-line {
  display: inline-block;
  position: relative;
  padding-bottom: var(--s-4);
}
.heading-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 2px;
  background: var(--gold);
}
.heading-line.center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ---------- 4. Layout Utilities ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-6);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding: var(--s-9) 0; }
.section--lg { padding: calc(var(--s-9) + 32px) 0; }
.section--sm { padding: var(--s-8) 0; }

.grid { display: grid; gap: var(--s-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }

.gap-4 { gap: var(--s-4); }
.gap-5 { gap: var(--s-5); }
.gap-6 { gap: var(--s-6); }

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}
.divider-gold {
  width: 48px;
  height: 1px;
  background: var(--gold);
  border: 0;
  margin: var(--s-4) 0;
}
.divider-gold.center {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: 16px 36px;
  font-family: var(--font-eyebrow);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all .35s var(--ease);
  cursor: pointer;
}
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { background: var(--ink-3); }

.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--cream); }

.btn--gold { background: var(--gold); border-color: transparent; color: var(--ink); }
.btn--gold:hover { background: var(--ink); color: var(--gold); }

.btn--ghost { padding: 0; gap: var(--s-3); }
.btn--ghost::after {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  transition: width .35s var(--ease);
}
.btn--ghost:hover::after { width: 40px; }
