/* Marg HSE — design tokens (v0.1, from the approved Claude Design concept)
   Fonts: Geist + Geist Mono (SIL OFL, Google Fonts):
   https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600&family=Geist+Mono:wght@400;500&display=swap */

:root {
  /* colour */
  --forest-950: #071A15;  /* footer, deepest ground */
  --forest-900: #092F27;  /* advisory, final CTA, mobile menu */
  --forest-800: #0B4034;  /* dark buttons, approach panel, duotone tint */
  --brand-600:  #106552;  /* logo green: labels, hover, focus, status dots */
  --mint-300:   #9CC5B5;  /* labels and linework on dark ONLY — never a fill */
  --charcoal-900: #17201D;
  --ink: #121816;         /* headlines and body on light */
  --grey-700: #4E5753;    /* secondary body (6.8:1 on paper) */
  --grey-600: #626B66;    /* meta, captions (5.0:1 on paper) */
  --sage-200: #DCE4DF;    /* hover fill on light pills */
  --sage-100: #E4E9E5;    /* founder section ground */
  --paper: #F5F5F0;       /* editorial sections */
  --white: #FFFFFF;
  --line: rgba(18, 24, 22, .14);
  --line-soft: rgba(18, 24, 22, .08);
  --line-on-dark: rgba(255, 255, 255, .18);
  --text-on-dark: #FFFFFF;
  --text-on-dark-2: rgba(255, 255, 255, .78);
  --text-on-dark-3: rgba(255, 255, 255, .6);
  --sample-bg: #F3E6C9;   /* "Sample content" flag — concept/staging only */
  --sample-fg: #7A4B00;
  --error: #A8382B;

  /* type */
  --font-sans: "Geist", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --fs-display-xl: clamp(46px, 7vw, 108px);   /* final CTA */
  --fs-display: clamp(46px, 6.4vw, 96px);     /* hero */
  --fs-h2: clamp(32px, 4.3vw, 64px);          /* section titles */
  --fs-h2-advisory: clamp(44px, 5.4vw, 80px);
  --fs-h3: clamp(30px, 3.4vw, 52px);          /* practice panels */
  --fs-h4: clamp(20px, 2.2vw, 32px);          /* cards */
  --fs-row: clamp(19px, 1.8vw, 26px);         /* list rows */
  --fs-lead: clamp(16px, 1.3vw, 19px);
  --fs-body: clamp(15px, 1.2vw, 17px);
  --fs-small: 14px;
  --fs-label: 12px;      /* mobile 11px */
  --lh-tight: .98;
  --lh-head: 1.04;
  --lh-body: 1.65;
  --ls-display: -.035em;
  --ls-head: -.03em;
  --ls-row: -.02em;
  --ls-label: .08em;     /* labels are UPPERCASE Geist Mono 500 */
  --fw-light: 300;       /* leads on dark */
  --fw-regular: 400;     /* ALL headlines — no bold headings */
  --fw-medium: 500;      /* buttons, labels */

  /* space (4-px base) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;  --s-5: 24px;  --s-6: 32px;
  --s-7: 40px; --s-8: 56px; --s-9: 72px; --s-10: 96px; --s-11: 128px; --s-12: 152px;
  --section-y: clamp(72px, 9vw, 152px);
  --gutter: clamp(12px, 1.7vw, 24px);
  --margin: clamp(24px, 5.6vw, 80px);
  --content-max: 1600px;

  /* shape, depth, motion */
  --r-tag: 4px; --r-thumb: 6px; --r-image: 8px; --r-card: 10px;
  --r-panel: 12px; --r-sheet: 16px; --r-pill: 999px;
  --shadow: none; /* depth comes from tone, never shadow */
  --ring: 0 0 0 3px rgba(16, 101, 82, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 250ms; --t-mid: 350ms; --t-slow: 1400ms;
  --btn-h: 52px; --btn-h-sm: 40px; --btn-h-mobile: 54px; --touch: 44px;
  --header-h: 96px; --header-h-scrolled: 72px; --header-h-mobile: 72px;
}

/* Grain: dark brand surfaces and photographs only — never behind long text */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../assets/texture/grain.webp") 0 0 / 240px 240px;
  mix-blend-mode: overlay; opacity: .18;
}
.grain--soft::after { mix-blend-mode: multiply; opacity: .07; } /* sage surfaces */

/* Photography treatment */
.photo { position: relative; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); }
.photo--duotone::before {           /* forest tint, 30–55% depending on slot */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--forest-800); mix-blend-mode: color; opacity: .55;
}
/* scrims (apply as an extra layer wherever text sits on a photo) */
.scrim-left   { background: linear-gradient(90deg, rgba(6,22,18,.92) 0%, rgba(6,22,18,.7) 34%, rgba(6,22,18,.18) 70%, rgba(6,22,18,.05) 100%); }
.scrim-bottom { background: linear-gradient(180deg, rgba(6,22,18,0) 50%, rgba(6,22,18,.88) 100%); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
