@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  /* ============================================================
     PARENT PALETTE — prodct (deep green)
     Derived from the logo: dark teal-green, rich and serious.
     ============================================================ */
  --prodct-950: #061914;
  --prodct-900: #0B2A22;   /* logo block · primary surface dark */
  --prodct-800: #123B30;
  --prodct-700: #1A4F40;
  --prodct-600: #226553;
  --prodct-500: #2D8168;   /* primary brand green */
  --prodct-400: #4EA388;
  --prodct-300: #82C2AD;
  --prodct-200: #BADDD0;
  --prodct-100: #DCEDE5;
  --prodct-50:  #EEF6F2;

  /* ============================================================
     LIME — the logo accent. High-voltage.
     Used for: logo mark, rare attention moments.
     Never used for body text or large surfaces.
     ============================================================ */
  --lime-500:  #DCFF4B;   /* logo lime */
  --lime-400:  #C8EB35;
  --lime-300:  #E9FF88;
  --lime-100:  #F6FFCE;

  /* ============================================================
     NEUTRALS — Bone scale (warm off-white, not pure white)
     Matches Anthropic's paper feel; reads as enterprise-calm.
     ============================================================ */
  --bone-50:  #FAF8F4;   /* page / paper */
  --bone-100: #F3F0E9;   /* muted surface */
  --bone-200: #E7E2D5;   /* hairline */
  --bone-300: #CFC8B7;   /* borders */
  --bone-400: #9C9585;   /* muted text */
  --bone-500: #6E6858;   /* secondary text */
  --bone-600: #4A4538;   /* body */
  --bone-700: #2E2B23;   /* strong text */
  --bone-800: #1A1814;   /* near-black */
  --bone-900: #0A0907;   /* ink */

  /* ============================================================
     UNIT ACCENTS — one per delivery unit
     Jewel tones. Same tonal value across all four so they combine
     as a coherent family. No warm hues.

     [CX]       emerald  — carries the green thread of the brand
     [Labs]     sapphire — build, ship, trust
     [Elements] amethyst — data foundation, depth
     /skills    teal     — enablement, calm
     ============================================================ */
  /* [CX] — emerald */
  --cx-700:  #0B5238;
  --cx-500:  #137A4E;
  --cx-300:  #5DA886;
  --cx-100:  #D4E8DD;

  /* [Labs] — sapphire */
  --labs-700: #162B6B;
  --labs-500: #1F3B8F;
  --labs-300: #7086BF;
  --labs-100: #D7DCEC;

  /* [Elements] — amethyst */
  --elements-700: #4C2A7A;
  --elements-500: #6B3DA8;
  --elements-300: #A68BC9;
  --elements-100: #E4DAEE;

  /* /skills — teal */
  --skills-700: #14505A;
  --skills-500: #1E6E7A;
  --skills-300: #70A4AC;
  --skills-100: #D5E3E6;

  /* ============================================================
     SECONDARY PALETTE — supporting hues
     Four muted companions at consistent chroma. Cool-editorial,
     no warm tones. Use for: charts, illustrations, background
     washes, data viz, secondary callouts. Never compete with
     the unit accents above.
     ============================================================ */

  /* Sage — desaturated green, quieter than prodct */
  --sage-700: #4A6554;
  --sage-500: #7A9383;
  --sage-300: #B2C4B8;
  --sage-100: #DEE6E0;

  /* Sky — soft periwinkle, lighter than labs */
  --sky-700: #3F5B7A;
  --sky-500: #7A97B6;
  --sky-300: #B4C5D6;
  --sky-100: #DFE7EF;

  /* Plum — muted aubergine, complements elements */
  --plum-700: #5A3E56;
  --plum-500: #86677F;
  --plum-300: #B8A1B2;
  --plum-100: #E2D7DE;

  /* Stone — cool neutral-blue-grey, holds charts together */
  --stone-700: #4A5560;
  --stone-500: #7A8794;
  --stone-300: #B2BCC6;
  --stone-100: #DFE3E7;

  /* ============================================================
     SEMANTIC — status
     ============================================================ */
  --success-500: #3E8F5F;
  --success-100: #DCEDE3;
  --warning-500: #C28A2B;
  --warning-100: #F5EAD0;
  --danger-500:  #B53A2F;
  --danger-100:  #F0D5D0;
  --info-500:    var(--labs-500);
  --info-100:    var(--labs-100);

  /* ============================================================
     SEMANTIC — surface + text + border
     ============================================================ */
  --bg:           var(--bone-50);
  --bg-elevated:  #FFFFFF;
  --bg-muted:     var(--bone-100);
  --bg-sunken:    var(--bone-200);
  --bg-inverse:   var(--prodct-900);
  --bg-dark:      var(--prodct-900);

  --fg:           var(--bone-700);
  --fg-strong:    var(--bone-900);
  --fg-muted:     var(--bone-500);
  --fg-subtle:    var(--bone-400);
  --fg-inverse:   var(--bone-50);
  --fg-brand:     var(--prodct-500);
  --fg-on-brand:  #FFFFFF;

  --border:        var(--bone-200);
  --border-strong: var(--bone-300);
  --border-dark:   rgba(255,255,255,0.12);
  --border-focus:  var(--prodct-500);

  /* ============================================================
     TYPE
     Inter     — primary UI & body
     Instrument Serif — editorial display moments (light, airy)
     JetBrains Mono — unit tags, metadata, code, labels
     ============================================================ */
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif:   'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* Scale */
  --fs-xxs:  11px;
  --fs-xs:   12px;
  --fs-sm:   14px;
  --fs-base: 16px;
  --fs-md:   18px;
  --fs-lg:   22px;
  --fs-xl:   28px;
  --fs-2xl:  36px;
  --fs-3xl:  48px;
  --fs-4xl:  64px;
  --fs-5xl:  88px;
  --fs-6xl:  120px;

  /* Line heights */
  --lh-tight:  1.05;
  --lh-snug:   1.2;
  --lh-normal: 1.5;
  --lh-loose:  1.7;

  /* Letter spacing */
  --ls-tight:  -0.03em;
  --ls-snug:   -0.015em;
  --ls-normal: 0em;
  --ls-wide:   0.04em;
  --ls-caps:   0.08em;
  --ls-mono:   -0.01em;

  /* Weights */
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  /* ============================================================
     SPACING — 4px base
     ============================================================ */
  --s-0: 0;
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;
  --s-32: 128px;
  --s-40: 160px;

  /* ============================================================
     RADII — restrained. prodct uses small, confident radii.
     ============================================================ */
  --r-none: 0;
  --r-xs:   2px;
  --r-sm:   4px;
  --r-md:   6px;
  --r-lg:   10px;
  --r-xl:   16px;
  --r-full: 9999px;

  /* ============================================================
     SHADOWS — minimal, ink-tinted
     ============================================================ */
  --shadow-xs: 0 1px 0 rgba(10, 9, 7, 0.04);
  --shadow-sm: 0 1px 2px rgba(10, 9, 7, 0.06);
  --shadow-md: 0 4px 12px rgba(10, 9, 7, 0.06), 0 1px 2px rgba(10, 9, 7, 0.04);
  --shadow-lg: 0 16px 36px rgba(10, 9, 7, 0.08), 0 4px 8px rgba(10, 9, 7, 0.04);
  --shadow-xl: 0 32px 64px rgba(10, 9, 7, 0.12), 0 8px 16px rgba(10, 9, 7, 0.06);

  /* ============================================================
     MOTION
     ============================================================ */
  --ease-out:   cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-inout: cubic-bezier(0.5, 0, 0.2, 1);
  --dur-instant: 80ms;
  --dur-fast:    160ms;
  --dur-base:    240ms;
  --dur-slow:    400ms;

  /* Layout */
  --max-prose:   680px;
  --max-content: 960px;
  --max-wide:    1200px;
  --max-full:    1440px;
  --page-pad-x:  48px;
}

/* ============================================================
   Base
   ============================================================ */
html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ============================================================
   Typography
   ============================================================ */

/* Display — serif, italic optional, used sparingly for hero & editorial */
.t-display {
  font-family: var(--font-serif);
  font-weight: var(--fw-regular);
  font-size: clamp(56px, 9vw, var(--fs-6xl));
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--fg-strong);
}
.t-display em { font-style: italic; color: var(--prodct-500); }

/* H1 — sans, for page titles */
.t-h1, h1 {
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-4xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--fg-strong);
  margin: 0;
}

.t-h2, h2 {
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-3xl);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-snug);
  color: var(--fg-strong);
  margin: 0;
}

.t-h3, h3 {
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-snug);
  color: var(--fg-strong);
  margin: 0;
}

.t-h4, h4 {
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
  color: var(--fg-strong);
  margin: 0;
}

/* Lede — larger body paragraph */
.t-lede {
  font-size: var(--fs-md);
  line-height: var(--lh-normal);
  color: var(--fg-muted);
  font-weight: var(--fw-regular);
}

/* Body */
.t-body, p {
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--fg);
}

.t-small {
  font-size: var(--fs-sm);
  color: var(--fg-muted);
}

/* Mono label — for unit tags and code only */
.t-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-mono);
  color: var(--fg-muted);
  text-transform: lowercase;
}

/* Eyebrow — small-caps label, used above section titles & metadata.
   Replaces the previous mono "// comment" treatment. */
.t-eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* Unit tag — the bracketed signature  e.g. [CX]  [Labs]  /skills */
.u-tag {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-mono);
  padding: 2px 6px;
  border-radius: var(--r-xs);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.u-tag--cx       { color: var(--cx-500);       background: var(--cx-100); }
.u-tag--labs     { color: var(--labs-500);     background: var(--labs-100); }
.u-tag--elements { color: var(--elements-500); background: var(--elements-100); }
.u-tag--skills   { color: var(--skills-500);   background: var(--skills-100); }
.u-tag--prodct   { color: var(--prodct-500);   background: var(--prodct-100); }

/* Inline code */
code, .t-code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--bone-100);
  padding: 0.08em 0.32em;
  border-radius: var(--r-xs);
  color: var(--fg-strong);
}
