/* ===================================================
   Lean Counsel — Base Styles
   Tokens, Reset, Typography, Utilities, Animations
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&family=DM+Mono:wght@400;500&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap');

/* --- Design Tokens (per approved Brand Guidelines v7) --- */
:root {
  /* Master Palette */
  --ink:        #0F0E0C;   /* Ink — primary dark, headlines, marks */
  --paper:      #E8E4DE;   /* Linen — neutral off-white surfaces */
  --gold:       #7C8C6E;   /* Warm Sage — Studio accent */
  --gold-light: #EFF1ED;   /* Sage tint — light Studio backgrounds */
  --rule:       #E8E4DE;   /* Linen — borders, dividers */
  --dim:        #B0AAA2;   /* Stone — captions, labels, secondary */
  --dark:       #2E2C29;   /* Charcoal — body text, dark backgrounds */
  --white:      #FFFFFF;

  /* Brand accent */
  --olive:      #6B7A2A;   /* Olive Green — growth accent */

  /* Ecosystem arm colors */
  --propel:     #B5622A;   /* Burnt Amber */
  --colleague:  #A67070;   /* Dusty Rose */
  --connect:    #4A6478;   /* Slate Blue */

  /* Accent system — defaults to Studio (Warm Sage), overridden per arm */
  --accent:       var(--gold);
  --accent-light: var(--gold-light);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-sub:     'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', Helvetica, Arial, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;
}

/* --- Arm accent overrides --- */
.page--propel {
  --accent: var(--propel);
  --accent-light: #F5EEEA;  /* Amber tint */
}

.page--colleague {
  --accent: var(--colleague);
  --accent-light: #F3EEEE;  /* Rose tint */
}

.page--connect {
  --accent: var(--connect);
  --accent-light: #ECF0F2;  /* Slate tint */
}

/* --- Text Selection --- */
::selection {
  background: var(--accent);
  color: var(--white);
}

::-moz-selection {
  background: var(--accent);
  color: var(--white);
}

/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--paper);
}

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

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

ul, ol {
  list-style: none;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--dim);
  margin-bottom: 16px;
}

.section-label--accent {
  color: var(--accent);
}

/* --- Scroll Animation --- */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Shared Headline Pattern --- */
.page-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 48px;
}

.page-headline--light {
  color: var(--paper);
}

/* --- Responsive — Tablet --- */
@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }

  .page-headline {
    font-size: 36px;
  }
}

/* --- Responsive — Desktop --- */
@media (min-width: 1200px) {
  .container {
    padding: 0 48px;
  }

  .page-headline {
    font-size: 44px;
  }
}
