/* ============================================================
   UNTANGLED DESIGN SYSTEM — colors_and_type.css
   Brand: Untangled with Charley Johnson
   Version: 1.0 — April 2026
   ============================================================ */

/* Brand fonts — Noto Sans (body/UI) + Noto Serif Bold (display) */
/* Barlow (UI / labels / kickers) */
/* Fallback: monospace from Google Fonts (no brand mono provided) */
/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/JetBrainsMono-8330290a.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/JetBrainsMono-d2decdd5.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/JetBrainsMono-7b4c68c8.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/JetBrainsMono-822d69f4.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/JetBrainsMono-0dc4f810.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/JetBrainsMono-70849d06.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/JetBrainsMono-8330290a.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/JetBrainsMono-d2decdd5.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/JetBrainsMono-7b4c68c8.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/JetBrainsMono-822d69f4.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/JetBrainsMono-0dc4f810.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/JetBrainsMono-70849d06.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ============================================================
   COLOR TOKENS — Base
   ============================================================ */
:root {
  /* Backgrounds */
  --color-bg:           #F9F8F5;   /* warm parchment — primary surface */
  --color-bg-muted:     #F2F1ED;   /* slightly deeper warm off-white */
  --color-surface:      #FFFFFF;   /* white surface (cards, modals) */
  --color-surface-alt:  #F2FAF3;   /* light mint tint — callout surface */
  --color-surface-warm: #FFF0F0;   /* light coral tint — highlight surface */

  /* Text */
  --color-ink:          #1C1C19;   /* near-black, warm undertone — primary */
  --color-ink-muted:    #5A5A53;   /* secondary text, captions */
  --color-ink-faint:    #9A9A92;   /* placeholder, disabled */
  --color-ink-inverse:  #F9F8F5;   /* text on dark backgrounds */

  /* Brand — Coral (Session 1: Widen the Lens) */
  --color-coral-900:    #5C0A0A;
  --color-coral-800:    #8A1212;
  --color-coral-700:    #BC2020;
  --color-coral-600:    #E03535;
  --color-coral-500:    #FF5757;   /* ← Session 1 brand coral */
  --color-coral-400:    #FF7575;
  --color-coral-300:    #FF9696;
  --color-coral-200:    #FFBABA;
  --color-coral-100:    #FFD9D9;
  --color-coral-50:     #FFF0F0;

  /* Brand — Mint (Session 3: Enact New Interactions) */
  --color-mint-900:     #0F3D18;
  --color-mint-800:     #1E5C28;
  --color-mint-700:     #2E7C3A;
  --color-mint-600:     #44A050;
  --color-mint-500:     #70BD78;
  --color-mint-400:     #A4D8A9;   /* ← Session 3 brand mint */
  --color-mint-300:     #BCE2BF;
  --color-mint-200:     #D0EDD3;
  --color-mint-100:     #E4F5E6;
  --color-mint-50:      #F2FAF3;

  /* Brand — Periwinkle (Session 4: Reinforce Relational Infrastructure) */
  --color-blue-900:     #0C2D5E;
  --color-blue-800:     #154586;
  --color-blue-700:     #2460AE;
  --color-blue-600:     #3B7DD8;
  --color-blue-500:     #5E9AEE;
  --color-blue-400:     #7EB1FF;   /* ← Session 4 brand periwinkle */
  --color-blue-300:     #9DC4FF;
  --color-blue-200:     #BDD8FF;
  --color-blue-100:     #DDEAFF;
  --color-blue-50:      #EEF4FF;

  /* Brand — Golden Peach (Session 2: Align Directional Futures) */
  --color-peach-900:    #6B3A00;
  --color-peach-800:    #9A5500;
  --color-peach-700:    #C47010;
  --color-peach-600:    #E89030;
  --color-peach-500:    #FFCB7D;   /* ← Session 2 brand peach */
  --color-peach-400:    #FFD699;
  --color-peach-300:    #FFE0B0;
  --color-peach-200:    #FFEACC;
  --color-peach-100:    #FFF3E3;
  --color-peach-50:     #FFF9F2;

  /* Brand — Violet (content box accent, appears on Session 2 slides) */
  --color-violet-500:   #8C3EFF;
  --color-violet-100:   #EDE0FF;

  /* Neutrals */
  --color-neutral-900:  #1C1C19;
  --color-neutral-800:  #2E2E2A;
  --color-neutral-700:  #3E3E3A;
  --color-neutral-600:  #5A5A53;
  --color-neutral-500:  #78786F;
  --color-neutral-400:  #9A9A92;
  --color-neutral-300:  #C2C2B8;
  --color-neutral-200:  #E2E1DB;
  --color-neutral-100:  #EDECE7;
  --color-neutral-50:   #F2F1ED;

  /* Semantic */
  --color-border:       #E2E1DB;
  --color-border-strong:#C2C2B8;
  --color-rule:         #E2E1DB;
  --color-focus:        #FF5757;

  /* State */
  --color-success:      #44A050;
  --color-warning:      #D4A020;
  --color-error:        #E03535;
  --color-info:         #3B7DD8;

  /* ============================================================
     TYPOGRAPHY TOKENS
     ============================================================ */

  /* Font families */
  --font-display:       'Noto Serif', Georgia, serif;
  --font-body:          'Noto Sans', system-ui, -apple-system, sans-serif;
  --font-ui:            'Barlow', system-ui, -apple-system, sans-serif;
  --font-mono:          'JetBrains Mono', 'Courier New', monospace;

  /* Type scale */
  --text-xs:    0.75rem;    /* 12px */
  --text-sm:    0.875rem;   /* 14px */
  --text-base:  1rem;       /* 16px */
  --text-md:    1.125rem;   /* 18px */
  --text-lg:    1.375rem;   /* 22px */
  --text-xl:    1.75rem;    /* 28px */
  --text-2xl:   2.25rem;    /* 36px */
  --text-3xl:   3rem;       /* 48px */
  --text-4xl:   4rem;       /* 64px */
  --text-5xl:   5rem;       /* 80px */

  /* Font weights */
  --weight-light:       300;
  --weight-regular:     400;
  --weight-medium:      500;
  --weight-semibold:    600;
  --weight-bold:        700;
  --weight-black:       900;

  /* Line heights */
  --leading-tight:      1.15;
  --leading-snug:       1.3;
  --leading-normal:     1.5;
  --leading-relaxed:    1.65;
  --leading-loose:      1.85;

  /* Letter spacing */
  --tracking-tight:     -0.02em;
  --tracking-normal:    0;
  --tracking-wide:      0.04em;
  --tracking-wider:     0.08em;
  --tracking-widest:    0.14em;

  /* ============================================================
     SPACING TOKENS
     ============================================================ */
  --space-1:    0.25rem;   /* 4px */
  --space-2:    0.5rem;    /* 8px */
  --space-3:    0.75rem;   /* 12px */
  --space-4:    1rem;      /* 16px */
  --space-5:    1.25rem;   /* 20px */
  --space-6:    1.5rem;    /* 24px */
  --space-8:    2rem;      /* 32px */
  --space-10:   2.5rem;    /* 40px */
  --space-12:   3rem;      /* 48px */
  --space-16:   4rem;      /* 64px */
  --space-20:   5rem;      /* 80px */
  --space-24:   6rem;      /* 96px */

  /* ============================================================
     BORDER RADIUS
     ============================================================ */
  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    12px;
  --radius-xl:    16px;
  --radius-full:  9999px;

  /* ============================================================
     SHADOWS
     ============================================================ */
  --shadow-xs:  0 1px 2px rgba(28,28,25,0.06);
  --shadow-sm:  0 1px 4px rgba(28,28,25,0.08);
  --shadow-md:  0 4px 12px rgba(28,28,25,0.10);
  --shadow-lg:  0 8px 24px rgba(28,28,25,0.12);
  --shadow-xl:  0 16px 40px rgba(28,28,25,0.14);

  /* ============================================================
     LAYOUT
     ============================================================ */
  --max-width-prose:  720px;
  --max-width-ui:     1140px;
  --max-width-wide:   1400px;
}

/* ============================================================
   SEMANTIC ELEMENT STYLES
   ============================================================ */

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--color-ink);
  background-color: var(--color-bg);
  line-height: var(--leading-relaxed);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Display / headings — serif */
h1, .h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink);
  text-wrap: pretty;
}

h2, .h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink);
  text-wrap: pretty;
}

h3, .h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  color: var(--color-ink);
}

h4, .h4 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  color: var(--color-ink);
}

h5, .h5 {
  font-family: var(--font-ui);
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

h6, .h6 {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-ink-faint);
}

p, .body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-ink);
  text-wrap: pretty;
}

.lead {
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--color-ink-muted);
}

.caption {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-ink-muted);
}

.label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--color-neutral-800);
  background: var(--color-neutral-100);
  padding: 0.1em 0.35em;
  border-radius: var(--radius-sm);
}

blockquote, .quote {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  line-height: var(--leading-relaxed);
  color: var(--color-ink-muted);
  border-left: 3px solid var(--color-coral-500);
  padding-left: var(--space-6);
  margin: var(--space-6) 0;
}

a {
  color: var(--color-coral-600);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}
a:hover {
  text-decoration-color: currentColor;
  color: var(--color-coral-700);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-brand    { color: var(--color-coral-500); }
.text-accent   { color: var(--color-blue-400); }
.text-muted    { color: var(--color-ink-muted); }
.text-faint    { color: var(--color-ink-faint); }
.text-inverse  { color: var(--color-ink-inverse); }

.bg-surface    { background-color: var(--color-surface); }
.bg-muted      { background-color: var(--color-bg-muted); }
.bg-brand      { background-color: var(--color-coral-500); color: var(--color-ink-inverse); }
.bg-mint-tint  { background-color: var(--color-surface-alt); }
.bg-coral-tint { background-color: var(--color-surface-warm); }
.bg-dark       { background-color: var(--color-neutral-900); color: var(--color-ink-inverse); }

.font-display  { font-family: var(--font-display); }
.font-body     { font-family: var(--font-body); }
.font-mono     { font-family: var(--font-mono); }

@font-face { font-family: 'Noto Serif'; src: url("/fonts/NotoSerif-Bold.ttf") format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Noto Sans'; src: url("/fonts/NotoSans-Light.ttf") format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Noto Sans'; src: url("/fonts/NotoSans-SemiBold.ttf") format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url("/fonts/Barlow-Light.ttf") format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url("/fonts/Barlow-Bold.ttf") format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }


  body { margin: 0; background: #F9F8F5; }
  a { color: #3B0A1A; } a:hover { color: #FF5757; }
