/* ============================================================
   SIEBERT CREATIVE — Design System entry point
   This is the canonical stylesheet consumers should link.
   It re-exports the token + element layer from colors_and_type.css.

   The per-kit stylesheets under ui_kits/ (pca.css, bb-styles.css)
   are intentionally NOT imported here — they are app-scoped
   extensions (PCA burnt-sand accent, severity scales, slot
   treatments) layered on top of these base tokens.
   ============================================================ */

/* ============================================================
   SIEBERT CREATIVE — Design Tokens
   colors_and_type.css
   ============================================================ */

/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-cyrillic-ext.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: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-greek-ext.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-greek.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: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-vietnamese.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: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.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: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin.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: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-cyrillic-ext.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: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-greek-ext.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-greek.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: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-vietnamese.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: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.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: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin.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: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-cyrillic-ext.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: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-greek-ext.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-greek.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: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-vietnamese.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: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.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: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin.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: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-serif-4-italic-cyrillic-ext.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: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-serif-4-italic-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-serif-4-italic-greek.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: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-serif-4-italic-vietnamese.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: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-serif-4-italic-latin-ext.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: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-serif-4-italic-latin.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: 'Source Serif 4';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-serif-4-italic-cyrillic-ext.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: 'Source Serif 4';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-serif-4-italic-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-serif-4-italic-greek.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: 'Source Serif 4';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-serif-4-italic-vietnamese.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: 'Source Serif 4';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-serif-4-italic-latin-ext.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: 'Source Serif 4';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-serif-4-italic-latin.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: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-serif-4-cyrillic-ext.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: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-serif-4-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-serif-4-greek.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: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-serif-4-vietnamese.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: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin-ext.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: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin.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: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-serif-4-cyrillic-ext.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: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-serif-4-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-serif-4-greek.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: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-serif-4-vietnamese.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: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin-ext.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: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin.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;
}


/* ============================================================
   BASE COLOR TOKENS
   ============================================================ */

/* ============================================================
   CREATIVE PERFORMANCE SYSTEM — Extended tokens
   Used by the CPS loop charts, Bundle CTA, and all CPS UI.
   Icons: assets/icons/cps/{diagnostic,brief,variations,review,learning-loop,check}.svg
   ============================================================ */
:root {
  --color-cps-accent:        #C47A3A;   /* Burnt orange — entry/exit node border, CTA button, primary loop-back */
  --color-cps-accent-hover:  #A1612C;   /* Burnt orange hover */
  --color-cps-accent-warm:   #E9C49B;   /* Gold sand — entry/exit border on dark theme */
  --color-cps-node-border:   #E7DBC4;   /* Sand — mid-flow chip border (light theme) */
  --color-cps-connector:     #A89F90;   /* Warm grey — forward connector arrows */
  --color-cps-rescore:       #B3A99A;   /* Muted taupe — secondary re-score loop-back stroke */
  --color-cps-label:         #6B655C;   /* Ink mid — node labels and caption (light theme) */
  --color-cps-card-bg:       #F1ECE1;   /* Soft cream — CTA card / chart card surface */
  --color-cps-icon-dark:     #F2EAD9;   /* Pale cream — mid-node icon color (dark theme) */
}
/* End CPS tokens */


:root {
  /* Surfaces */
  --color-bg:            #F7F4EE;   /* Primary background — warm cream */
  --color-bg-alt:        #EDE9E1;   /* Secondary surface — inset/callout blocks */
  --color-bg-card:       #FFFFFF;   /* White card surface on cream */
  --color-bg-invert:     #1E4035;   /* Inverted surface — accent fill (buttons) */

  /* Foreground */
  --color-fg-1:          #1A1916;   /* Primary text — near-black, warm */
  --color-fg-2:          #5C5750;   /* Secondary text — dark warm gray */
  --color-fg-3:          #9C9690;   /* Tertiary / muted text */
  --color-fg-invert:     #F7F4EE;   /* Text on accent/inverted surfaces */

  /* Accent — Forest (use on cream backgrounds) */
  --color-accent:        #1E4035;   /* Deep forest green — primary accent */
  --color-accent-hover:  #163329;   /* Accent darkened ~10% for hover */
  --color-accent-press:  #0F2720;   /* Accent darkened ~20% for press */
  --color-accent-subtle: #E8F0ED;   /* Very light green tint — for subtle highlights */

  /* Accent — Warm / Sand (use on cream backgrounds; GOLD on forest backgrounds) */
  --color-sand:          #A0612B;   /* Burnt orange — eyebrows, emphasized words, small labels on cream */
  --color-sand-strong:   #844E1F;   /* Darker sand — hover/pressed states and heavier emphasis */
  --color-sand-line:     #DCC6A8;   /* Light sand hairline / border */
  --color-sand-subtle:   #F1E7D8;   /* Pale sand tint — fills / backgrounds */
  --color-gold:          #C8964A;   /* Warm gold — emphasis on forest (dark) backgrounds ONLY */
  /* Rule: sand on cream, gold on forest. Never sand on forest — it muddies. */

  /* Borders & Rules */
  --color-border:        #DDD9D1;   /* Default border — warm gray */
  --color-border-strong: #B8B3AA;   /* Stronger border for emphasis */
  --color-rule:          #DDD9D1;   /* Horizontal rule color */

  /* Semantic */
  --color-link:          #1E4035;   /* Link color */
  --color-link-hover:    #163329;   /* Link hover */
  --color-focus:         #1E4035;   /* Focus ring */
  --color-error:         #8B2020;   /* Error state — muted oxblood */
  --color-success:       #1E4035;   /* Success state — reuse accent */
}

/* ============================================================
   BASE TYPOGRAPHY TOKENS
   ============================================================ */
:root {
  /* Font families */
  --font-serif:    'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans:     'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-mono:     'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;

  /* Font weights */
  --weight-regular:   400;
  --weight-medium:    500;
  --weight-semibold:  600;

  /* Type scale */
  --text-xs:    13px;
  --text-sm:    14px;
  --text-base:  17px;
  --text-lg:    20px;
  --text-xl:    clamp(20px,18.667px + 0.37vw,24px);
  --text-2xl:   clamp(25px,22.667px + 0.648vw,32px);
  --text-3xl:   clamp(30px,26.667px + 0.926vw,40px);
  --text-4xl:   clamp(36px,30.667px + 1.481vw,52px);
  --text-5xl:   clamp(42px,33.333px + 2.407vw,68px);

  /* Line heights */
  --leading-tight:    1.1;
  --leading-snug:     1.2;
  --leading-normal:   1.4;
  --leading-relaxed:  1.7;

  /* Letter spacing */
  --tracking-tight:   -0.01em;
  --tracking-normal:   0em;
  --tracking-wide:     0.02em;
  --tracking-widest:   0.08em;
}

/* ============================================================
   SPACING TOKENS
   ============================================================ */
:root {
  --space-1:    4px;
  --space-2:    8px;
  --space-3:    12px;
  --space-4:    16px;
  --space-5:    24px;
  --space-6:    32px;
  --space-7:    48px;
  --space-8:    64px;
  --space-9:    80px;
  --space-10:  120px;

  /* Layout */
  --max-width-editorial:  760px;
  --max-width-layout:    1100px;
  --gutter-mobile:        24px;
  --gutter-desktop:       80px;

  /* Component */
  --radius-sm:   3px;
  --radius-md:   4px;
  --radius-lg:   6px;  /* max; rarely used */
  --radius-none: 0px;

  /* Borders */
  --border-width:   1px;
  --border-default: 1px solid var(--color-border);
  --border-strong:  1px solid var(--color-border-strong);

  /* No shadows — brand does not use shadows */
  --shadow-none: none;
}

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

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

html {
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--color-bg);
  color: var(--color-fg-1);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
}

/* ---- Headings ---- */
h1, .h1 {
  font-family: var(--font-serif);
  font-size: var(--text-5xl);
  font-weight: var(--weight-regular);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-fg-1);
  text-wrap: pretty;
  margin: 0 0 var(--space-5);
}

h2, .h2 {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--color-fg-1);
  text-wrap: pretty;
  margin: 0 0 var(--space-4);
}

h3, .h3 {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  line-height: 1.3;
  letter-spacing: var(--tracking-normal);
  color: var(--color-fg-1);
  text-wrap: pretty;
  margin: 0 0 var(--space-3);
}

h4, .h4 {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-fg-2);
  margin: 0 0 var(--space-3);
}

/* ---- Body & Prose ---- */
p {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
  color: var(--color-fg-1);
  margin: 0 0 var(--space-5);
  text-wrap: pretty;
}

.lead {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: var(--weight-regular);
  line-height: 1.5;
  color: var(--color-fg-1);
}

.caption, small {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-fg-2);
}

.label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-fg-3);
}

/* ---- Links ---- */
a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 150ms ease;
}
a:hover {
  color: var(--color-link-hover);
}
a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: var(--weight-medium);
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--color-fg-invert);
  background-color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease;
  white-space: nowrap;
}
.btn:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-fg-invert);
  text-decoration: none;
}
.btn:active {
  background-color: var(--color-accent-press);
  border-color: var(--color-accent-press);
}
.btn:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-accent);
  border-color: var(--color-border-strong);
}
.btn-ghost:hover {
  background-color: var(--color-bg-alt);
  color: var(--color-accent-hover);
  border-color: var(--color-border-strong);
}

/* ---- Form elements ---- */
.field-label {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-fg-1);
  margin-bottom: var(--space-2);
}

.field-input,
input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select {
  display: block;
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: var(--color-fg-1);
  background-color: var(--color-bg);
  border: var(--border-default);
  border-radius: var(--radius-sm);
  transition: border-color 150ms ease;
  line-height: 1.5;
  -webkit-appearance: none;
  appearance: none;
}
.field-input:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent-subtle);
}
.field-input::placeholder {
  color: var(--color-fg-3);
}

/* ---- Tables ---- */
table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: var(--text-base);
}
thead tr {
  border-bottom: 2px solid var(--color-fg-1);
}
th {
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-fg-2);
  text-align: left;
  padding: var(--space-3) var(--space-4) var(--space-3) 0;
}
td {
  padding: var(--space-3) var(--space-4) var(--space-3) 0;
  border-bottom: var(--border-default);
  color: var(--color-fg-1);
  vertical-align: top;
}
tbody tr:last-child td {
  border-bottom: none;
}

/* ---- Lists ---- */
ul, ol {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  padding-left: var(--space-5);
  margin: 0 0 var(--space-5);
}
li + li {
  margin-top: var(--space-2);
}

/* ---- Horizontal rule ---- */
hr {
  border: none;
  border-top: var(--border-default);
  margin: var(--space-7) 0;
}

/* ---- Section label / eyebrow ---- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--space-3);
}

/* ---- Pull quote ---- */
blockquote {
  border-left: 3px solid var(--color-accent);
  margin: var(--space-6) 0;
  padding: var(--space-3) 0 var(--space-3) var(--space-5);
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  line-height: 1.5;
  color: var(--color-fg-1);
}

/* ---- Code (planner tool) ---- */
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-bg-alt);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--color-fg-1);
}

/* ---- Callout / inset block ---- */
.callout {
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-border-strong);
  padding: var(--space-5) var(--space-6);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ============================================================
   TEXT EMPHASIS & SCANNABILITY UTILITIES
   ============================================================ */

/* ---- Inline emphasis ---- */
/* Use strong for key terms, numbers, named items the reader must catch */
strong, b {
  font-weight: var(--weight-semibold);
  color: var(--color-fg-1);
}

/* Use em for necessary italics: titles, introduced terms, deliberate stress */
em, i {
  font-style: italic;
  color: var(--color-fg-1);
}

/* Accent-colored inline text — for the single most critical term in a sentence */
.text-accent {
  color: var(--color-accent);
  font-weight: var(--weight-medium);
}

/* Muted inline text — for parenthetical or secondary detail */
.text-muted {
  color: var(--color-fg-2);
}

/* Subtle warm-tint highlight — use sparingly, one phrase per paragraph max */
mark, .mark {
  background: var(--color-accent-subtle);
  color: var(--color-fg-1);
  padding: 1px 5px;
  border-radius: 2px;
  font-style: normal;
}

/* ---- Scannable list (arrow-ruled) ---- */
/* Each item is a scannable row. Use for instruction sets, feature lists, "how it works" */
.list-scan {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
}
.list-scan li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 0 var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  line-height: var(--leading-relaxed);
  align-items: baseline;
}
.list-scan li:first-child {
  border-top: 1px solid var(--color-border);
}
.list-scan li::before {
  content: "→";
  color: var(--color-accent);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: var(--leading-relaxed);
}

/* ---- Numbered accent list ---- */
/* Prominent numbered items. Use for steps, ranked priorities, ordered takeaways. */
.list-numbered {
  list-style: none;
  counter-reset: accent-counter;
  padding: 0;
  margin: 0 0 var(--space-5);
}
.list-numbered li {
  counter-increment: accent-counter;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0 var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  align-items: baseline;
}
.list-numbered li:first-child {
  border-top: 1px solid var(--color-border);
}
.list-numbered li::before {
  content: counter(accent-counter, decimal-leading-zero);
  font-family: var(--font-serif);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: var(--color-accent);
  line-height: var(--leading-relaxed);
}

/* ---- Term list (label + detail) ---- */
/* Two-column definition-style list. Use for tool summaries, glossaries, FAQs. */
.list-terms {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
}
.list-terms li {
  display: grid;
  grid-template-columns: minmax(120px, 30%) 1fr;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  align-items: baseline;
}
.list-terms li:first-child {
  border-top: 1px solid var(--color-border);
}
.list-terms .term {
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  color: var(--color-fg-1);
}
.list-terms .detail {
  font-size: var(--text-base);
  color: var(--color-fg-2);
}

/* ---- Bold-lead prose ---- */
/* First sentence of a paragraph rendered heavier to anchor the paragraph */
.prose-lead-bold > p:first-of-type::first-line,
.bold-lead {
  font-weight: var(--weight-semibold);
}
/* Explicit version: wrap just the first sentence in .bold-lead */
.bold-lead {
  font-weight: var(--weight-semibold);
  color: var(--color-fg-1);
}

/* ---- Key point callout ---- */
/* A single bold sentence surfaced out of body copy */
.key-point {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-normal);
  color: var(--color-fg-1);
  border-left: 3px solid var(--color-accent);
  padding: var(--space-2) 0 var(--space-2) var(--space-5);
  margin: var(--space-5) 0;
}

/* ---- Airy prose — increased paragraph breathing room ---- */
/* Use when content needs to be absorbed one thought at a time.
   Single-sentence paragraphs land harder with this spacing. */
.prose-airy p,
p.prose-airy {
  margin-bottom: var(--space-6);  /* 32px vs default 24px */
}
.prose-airy p:last-child {
  margin-bottom: 0;
}

/* ---- Stat callout ---- */
/* A number + label pair used inline in body text or as a standalone metric */
.stat {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}
.stat-value {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: var(--weight-regular);
  line-height: 1;
  color: var(--color-fg-1);
}
.stat-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-fg-3);
}

/* ============================================================
   ACCESSIBILITY: FOCUS STATES
   ============================================================ */

/* Keyboard-visible focus ring on all interactive elements.
   Forest on light surfaces. Never bare outline:none without a replacement.
   Uses :focus-visible so mouse users don't see the ring on click. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-accent);   /* forest */
  outline-offset: 2px;
  border-radius: inherit;
}

/* On forest/dark surfaces — cream ring stays visible */
[data-surface="forest"] :focus-visible {
  outline-color: var(--color-bg);
}

/* Inputs/selects: also shift border and fill for a clear active state */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--color-accent);
  background-color: var(--color-accent-subtle);
}

/* ============================================================
   ACCESSIBILITY: TOUCH TARGETS
   ============================================================ */

/* Minimum 44px touch target for all interactive controls (WCAG 2.5.5). */
button, .btn, input, select, textarea, [role="button"] {
  min-height: 44px;
}

/* ============================================================
   ACCESSIBILITY: CONTRAST
   ============================================================ */

/* FG-3 (#9C9690) on cream (#F7F4EE) is ~2.5:1 — below the 4.5:1 AA floor.
   Rule: use FG-2 (#5C5750) for any essential small text on cream surfaces.
   Reserve FG-3 for large labels, non-essential metadata, and decorative tokens only.
   For smallest sand text on cream, use --color-sand-strong (#844E1F) over --color-sand. */

/* ---- Process step (horizontal) ---- */
.process-step {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.process-step-number {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: var(--weight-regular);
  color: var(--color-accent);
  line-height: 1;
}
.process-step-title {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-fg-1);
}
.process-step-body {
  font-size: var(--text-sm);
  color: var(--color-fg-2);
  line-height: var(--leading-relaxed);
}

/* ---- Layout utilities ---- */
.container {
  width: 100%;
  max-width: var(--max-width-layout);
  margin: 0 auto;
  padding: 0 var(--gutter-mobile);
}
@media (min-width: 768px) {
  .container {
    padding: 0 var(--gutter-desktop);
  }
}

.prose {
  max-width: var(--max-width-editorial);
}
