/* ============================================================
   Think College Level — Colors & Type
   Foundational + semantic design tokens.
   Warm paper, near-black ink, ONE calm evergreen accent.
   Reading-first: ~64ch measure, line-height 1.65, serif body.
   ------------------------------------------------------------
   Fonts are loaded from Google Fonts in previews/HTML. For
   production, self-host the woff2 in /fonts (see README caveat).
     Headings/display : Newsreader  (editorial serif)
     Body / reading   : Source Serif 4
     UI / labels       : system-ui sans (fast, zero extra payload)
   ============================================================ */

/* vietnamese */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/newsreader-italic-500-cY9CfjOCX1hbuyalUrK439vCgYhCBJWxZCPp.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: 'Newsreader';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/newsreader-italic-500-cY9CfjOCX1hbuyalUrK439vCgIhCBJWxZCPp.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: 'Newsreader';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/newsreader-italic-500-cY9CfjOCX1hbuyalUrK439vCjohCBJWxZA.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;
}
/* vietnamese */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/newsreader-italic-600-cY9CfjOCX1hbuyalUrK439vCgYhCBJWxZCPp.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: 'Newsreader';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/newsreader-italic-600-cY9CfjOCX1hbuyalUrK439vCgIhCBJWxZCPp.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: 'Newsreader';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/newsreader-italic-600-cY9CfjOCX1hbuyalUrK439vCjohCBJWxZA.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;
}
/* vietnamese */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/newsreader-normal-500-cY9AfjOCX1hbuyalUrK439HyjIJFJpeBZQ.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: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/newsreader-normal-500-cY9AfjOCX1hbuyalUrK439DyjIJFJpeBZQ.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: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/newsreader-normal-500-cY9AfjOCX1hbuyalUrK4397yjIJFJpc.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;
}
/* vietnamese */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/newsreader-normal-600-cY9AfjOCX1hbuyalUrK439HyjIJFJpeBZQ.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: 'Newsreader';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/newsreader-normal-600-cY9AfjOCX1hbuyalUrK439DyjIJFJpeBZQ.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: 'Newsreader';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/newsreader-normal-600-cY9AfjOCX1hbuyalUrK4397yjIJFJpc.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/sourceserif4-italic-400-vEFH2_tTDB4M7-auWDN0ahZJW1ge6NmXq2ZbF8zBfb98SUr3aX2SzxEjst4.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/sourceserif4-italic-400-vEFH2_tTDB4M7-auWDN0ahZJW1ge6NmXq2ZbF8zBfb98SUr-aX2SzxEjst4.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/sourceserif4-italic-400-vEFH2_tTDB4M7-auWDN0ahZJW1ge6NmXq2ZbF8zBfb98SUr5aX2SzxEjst4.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/sourceserif4-italic-400-vEFH2_tTDB4M7-auWDN0ahZJW1ge6NmXq2ZbF8zBfb98SUr1aX2SzxEjst4.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/sourceserif4-italic-400-vEFH2_tTDB4M7-auWDN0ahZJW1ge6NmXq2ZbF8zBfb98SUr0aX2SzxEjst4.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/sourceserif4-italic-400-vEFH2_tTDB4M7-auWDN0ahZJW1ge6NmXq2ZbF8zBfb98SUr6aX2SzxEj.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/sourceserif4-normal-400-vEFI2_tTDB4M7-auWDN0ahZJW1gW8te1Xb7GlMo.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/sourceserif4-normal-400-vEFI2_tTDB4M7-auWDN0ahZJW1gf8te1Xb7GlMo.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/sourceserif4-normal-400-vEFI2_tTDB4M7-auWDN0ahZJW1gY8te1Xb7GlMo.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/sourceserif4-normal-400-vEFI2_tTDB4M7-auWDN0ahZJW1gU8te1Xb7GlMo.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/sourceserif4-normal-400-vEFI2_tTDB4M7-auWDN0ahZJW1gV8te1Xb7GlMo.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/sourceserif4-normal-400-vEFI2_tTDB4M7-auWDN0ahZJW1gb8te1Xb7G.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/sourceserif4-normal-600-vEFI2_tTDB4M7-auWDN0ahZJW1gW8te1Xb7GlMo.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/sourceserif4-normal-600-vEFI2_tTDB4M7-auWDN0ahZJW1gf8te1Xb7GlMo.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/sourceserif4-normal-600-vEFI2_tTDB4M7-auWDN0ahZJW1gY8te1Xb7GlMo.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/sourceserif4-normal-600-vEFI2_tTDB4M7-auWDN0ahZJW1gU8te1Xb7GlMo.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/sourceserif4-normal-600-vEFI2_tTDB4M7-auWDN0ahZJW1gV8te1Xb7GlMo.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/sourceserif4-normal-600-vEFI2_tTDB4M7-auWDN0ahZJW1gb8te1Xb7G.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;
}


:root {
  color-scheme: light;

  /* ---- Neutrals — warm paper & ink ---- */
  --paper:        #FAF6EF;  /* page background — warm off-white */
  --paper-sunk:   #F2ECE0;  /* recessed / alt band / inline tints */
  --surface:      #FFFDFA;  /* cards, raised surfaces */
  --surface-2:    #F6F1E8;  /* nested surface, code, chips */

  --ink:          #211E1A;  /* primary text — warm near-black */
  --ink-2:        #57514A;  /* secondary text, meta */
  --ink-3:        #877F73;  /* faint text, captions, placeholders */

  --rule:         rgba(33, 30, 26, 0.12);  /* hairline dividers */
  --rule-2:       rgba(33, 30, 26, 0.22);  /* stronger dividers */
  --rule-3:       rgba(33, 30, 26, 0.38);  /* input borders, focus rest */

  /* ---- Accent — calm evergreen (links, TOC active, callouts) ---- */
  --accent:       #1F5A4C;  /* links, active states */
  --accent-ink:   #15463A;  /* hover / pressed / strong */
  --accent-soft:  #E7EFEB;  /* callout & active-TOC background wash */
  --accent-soft-2:#D7E5DF;  /* stronger wash, chip fill */
  --accent-line:  #Bcd2c9;  /* tinted hairline on green surfaces */

  /* ---- Signal — clay, for caution callouts ONLY (not a brand color) ---- */
  --clay:         #A6502E;
  --clay-soft:    #F6E9E1;
  --clay-line:    #E4C7B6;

  /* ---- Focus ---- */
  --focus:        #1F5A4C;
  --focus-ring:   0 0 0 3px rgba(31, 90, 76, 0.32);

  /* ---- Font families ---- */
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-serif:   'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans:    system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;

  /* ---- Type scale (fluid where it helps reading) ---- */
  --t-eyebrow:    0.75rem;   /* uppercase tracked labels */
  --t-meta:       0.875rem;  /* meta, captions, nav */
  --t-small:      0.9375rem; /* secondary body */
  --t-body:       1.125rem;  /* base reading size (18px) */
  --t-lead:       1.3125rem; /* lead / standfirst */
  --t-h3:         1.375rem;
  --t-h2:         1.75rem;
  --t-h1:         clamp(2.25rem, 1.6rem + 3.2vw, 3.25rem);
  --t-display:    clamp(2.75rem, 1.8rem + 4.6vw, 4.25rem);

  --lh-tight:     1.12;
  --lh-snug:      1.3;
  --lh-body:      1.65;   /* long-read comfort */

  --measure:      64ch;   /* optimal reading column */
  --measure-wide: 72ch;

  /* ---- Spacing (4px base) ---- */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px;

  /* ---- Radii (restrained, paper-like) ---- */
  --r-xs: 3px; --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-pill: 999px;

  /* ---- Elevation — near-zero, mostly hairlines ---- */
  --shadow-xs: 0 1px 0 rgba(33,30,26,0.04);
  --shadow-sm: 0 1px 2px rgba(33,30,26,0.06), 0 2px 8px rgba(33,30,26,0.05);
  --shadow-md: 0 4px 14px rgba(33,30,26,0.08), 0 1px 3px rgba(33,30,26,0.06);

  /* ---- Motion — calm, near-zero ---- */
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --dur:  0.18s;
}

/* ============================================================
   Semantic element defaults — opt in by adding `tcl-prose`
   to a container, or use these as a reference for components.
   ============================================================ */

.tcl-prose {
  font-family: var(--font-serif);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  color: var(--ink);
  max-width: var(--measure);
  font-variant-numeric: oldstyle-nums proportional-nums;
}

.tcl-prose > * + * { margin-top: 1.05em; }

/* Display / headings */
h1, .tcl-h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-h1);
  line-height: var(--lh-tight);
  letter-spacing: -0.018em;
  color: var(--ink);
  text-wrap: balance;
}

h2, .tcl-h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-h2);
  line-height: var(--lh-snug);
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
}

h3, .tcl-h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-h3);
  line-height: var(--lh-snug);
  letter-spacing: -0.008em;
  color: var(--ink);
  text-wrap: pretty;
}

.tcl-display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-display);
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--ink);
  text-wrap: balance;
}

/* Eyebrow / section label — sans, uppercase, tracked */
.tcl-eyebrow {
  font-family: var(--font-sans);
  font-size: var(--t-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Lead / standfirst */
.tcl-lead {
  font-family: var(--font-serif);
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--ink-2);
  font-weight: 400;
}

/* Meta / captions — sans */
.tcl-meta {
  font-family: var(--font-sans);
  font-size: var(--t-meta);
  line-height: 1.45;
  color: var(--ink-2);
}

/* Links inside reading content */
.tcl-prose a,
.tcl-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  text-decoration-color: var(--accent-line);
  transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}
.tcl-prose a:hover,
.tcl-link:hover {
  color: var(--accent-ink);
  text-decoration-color: var(--accent);
}

/* Pull quote */
.tcl-pullquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* Inline code */
.tcl-code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-xs);
  padding: 0.08em 0.36em;
  color: var(--ink);
}

/* Focus-visible — consistent everywhere */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
/* Think College Level — UI kit styles.
   Builds on the design tokens in colors_and_type.css. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

.tcl-app { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(250,246,239,0.88); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--rule); }
.header-inner { max-width: 1120px; margin: 0 auto; padding: 12px clamp(16px, 3vw, 28px); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 11px; cursor: pointer; background: none; border: 0; padding: 0; text-align: left; }
.brand img { width: 34px; height: auto; }
.brand .wm strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: -.01em; line-height: 1.05; }
.brand .wm small { display: block; font-size: 11px; color: var(--ink-2); margin-top: 2px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { font-size: 14.5px; color: var(--ink-2); text-decoration: none; padding: 7px 11px; border-radius: var(--r-sm); transition: color var(--dur), background var(--dur); }
.site-nav a:hover { color: var(--ink); background: var(--paper-sunk); }
.site-nav a.active { color: var(--accent-ink); font-weight: 600; }
.nav-search { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: var(--r-sm); color: var(--ink-2); background: none; border: 1px solid var(--rule-2); cursor: pointer; }
.nav-search:hover { color: var(--ink); background: var(--paper-sunk); }
.nav-search svg { width: 16px; height: 16px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: auto; border-top: 1px solid var(--rule); background: var(--paper-sunk); }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 28px clamp(16px,3vw,28px); display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: flex-start; justify-content: space-between; }
.footer-brand { display: grid; gap: 6px; max-width: 32ch; }
.footer-brand strong { font-family: var(--font-display); font-size: 16px; }
.footer-brand p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.footer-cols { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h4 { margin: 0 0 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.footer-col a { display: block; font-size: 13.5px; color: var(--ink-2); text-decoration: none; padding: 3px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-legal { width: 100%; border-top: 1px solid var(--rule); margin-top: 8px; padding-top: 14px; font-size: 12.5px; color: var(--ink-3); }

/* ---------- Page width ---------- */
.page { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px,3vw,28px); width: 100%; }

/* ---------- Guides index ---------- */
.index-hero { padding: clamp(36px,6vw,64px) 0 28px; border-bottom: 1px solid var(--rule); }
.index-hero .eyebrow { color: var(--accent); }
.index-hero h1 { margin: 12px 0 0; font-family: var(--font-display); font-weight: 600; font-size: var(--t-h1); letter-spacing: -.02em; line-height: 1.05; }
.index-hero .lead { margin: 14px 0 0; max-width: 60ch; font-family: var(--font-serif); font-size: var(--t-lead); line-height: 1.5; color: var(--ink-2); }

.filter-bar { position: sticky; top: 61px; z-index: 30; background: rgba(250,246,239,0.9); backdrop-filter: blur(8px); padding: 14px 0; display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--rule); }
.chip { font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--rule-2); border-radius: var(--r-pill); padding: 6px 14px; cursor: pointer; transition: all var(--dur) var(--ease); }
.chip:hover { border-color: var(--rule-3); color: var(--ink); }
.chip.on { color: var(--accent-ink); background: var(--accent-soft); border-color: var(--accent-line); }

.theme-block { padding: 30px 0 6px; }
.theme-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.theme-head h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.theme-head .count { font-size: 12px; color: var(--ink-3); }
.theme-rule { flex: 1; height: 1px; background: var(--rule); }

.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.guide-card { background: var(--surface); border: 1px solid var(--rule-2); border-radius: var(--r-md); padding: 18px 18px 16px; display: grid; gap: 8px; cursor: pointer; text-align: left; transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.guide-card:hover { box-shadow: var(--shadow-sm); border-color: var(--rule-3); }
.guide-card .gc-theme { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.guide-card h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 18.5px; line-height: 1.2; letter-spacing: -.01em; }
.guide-card p { margin: 0; font-family: var(--font-serif); font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.guide-card .gc-more { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent); margin-top: 2px; }
.guide-card .gc-more svg { width: 14px; height: 14px; transition: transform var(--dur) var(--ease); }
.guide-card:hover .gc-more svg { transform: translateX(3px); }

/* ---------- Article ---------- */
.article-wrap { display: grid; grid-template-columns: 1fr; gap: 0; padding-bottom: 56px; }
.breadcrumbs { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); padding: 18px 0 0; }
.breadcrumbs button { background: none; border: 0; color: var(--ink-2); cursor: pointer; padding: 0; }
.breadcrumbs button:hover { color: var(--accent); }
.breadcrumbs svg { width: 14px; height: 14px; color: var(--ink-3); }
.breadcrumbs .here { color: var(--ink); font-weight: 600; }

.article-head { padding: 16px 0 22px; border-bottom: 1px solid var(--rule); max-width: var(--measure-wide); }
.article-head .eyebrow { color: var(--accent); }
.article-head h1 { margin: 12px 0 0; font-family: var(--font-display); font-weight: 600; font-size: var(--t-h1); line-height: 1.06; letter-spacing: -.02em; text-wrap: balance; }
.article-head .lead { margin: 16px 0 0; font-family: var(--font-serif); font-size: var(--t-lead); line-height: 1.5; color: var(--ink-2); }
.article-meta { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 13.5px; color: var(--ink-2); }
.article-meta svg { width: 15px; height: 15px; color: var(--ink-3); }
.article-meta .dot { color: var(--rule-3); }

/* layout: content + sticky toc */
.article-body { display: grid; grid-template-columns: minmax(0,1fr); gap: 36px; padding-top: 26px; align-items: start; }
@media (min-width: 940px) {
  .article-body { grid-template-columns: 220px minmax(0,1fr); }
}

.toc { display: none; }
@media (min-width: 940px) {
  .toc { display: block; position: sticky; top: 84px; align-self: start; }
}
.toc .toc-label { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.toc nav { display: grid; gap: 1px; }
.toc a { display: block; font-size: 13.5px; line-height: 1.35; padding: 7px 12px; border-left: 2px solid var(--rule); color: var(--ink-2); text-decoration: none; transition: color var(--dur), border-color var(--dur), background var(--dur); }
.toc a:hover { color: var(--ink); border-left-color: var(--rule-3); }
.toc a.active { color: var(--accent-ink); border-left-color: var(--accent); background: var(--accent-soft); font-weight: 600; }

/* author block */
.author-block { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--rule-2); border-radius: var(--r-md); padding: 16px; margin-top: 22px; }
.author-block .avatar { flex: 0 0 auto; width: 54px; height: 54px; border-radius: var(--r-pill); object-fit: cover; border: 1px solid var(--rule); }
.author-block strong { font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.author-block .role { font-size: 13px; color: var(--ink-2); margin-top: 1px; }
.creds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.cred { font-size: 12px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--r-pill); padding: 3px 10px; display: inline-flex; align-items: center; gap: 5px; }
.cred svg { width: 12px; height: 12px; }

/* prose */
.prose { font-family: var(--font-serif); font-size: var(--t-body); line-height: var(--lh-body); color: var(--ink); max-width: var(--measure); font-variant-numeric: oldstyle-nums; }
.prose p { margin: 0 0 1.05em; }
.prose section { scroll-margin-top: 84px; }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--t-h2); line-height: 1.2; letter-spacing: -.012em; margin: 2em 0 .6em; text-wrap: balance; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; text-decoration-color: var(--accent-line); }
.prose a:hover { color: var(--accent-ink); text-decoration-color: var(--accent); }

/* callout */
.callout { border-radius: var(--r-md); padding: 14px 16px; display: grid; gap: 5px; margin: 1.4em 0; max-width: var(--measure); }
.callout .hd { display: flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.callout .hd svg { width: 14px; height: 14px; }
.callout p { margin: 0; font-size: 15.5px; line-height: 1.5; }
.callout.note { background: var(--surface); border: 1px solid var(--rule-2); }
.callout.note .hd { color: var(--ink-2); }
.callout.key { background: var(--accent-soft); border: 1px solid var(--accent-line); }
.callout.key .hd { color: var(--accent-ink); }
.callout.caution { background: var(--clay-soft); border: 1px solid var(--clay-line); }
.callout.caution .hd { color: var(--clay); }

/* pull quote */
.pullquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.4rem; line-height: 1.4; color: var(--ink); max-width: var(--measure); letter-spacing: -.01em; }

/* ad slot */
.ad-slot { height: 96px; border: 1px dashed var(--rule-2); border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; color: var(--ink-3); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; margin: 1.8em 0; max-width: var(--measure); background: repeating-linear-gradient(45deg, transparent, transparent 9px, rgba(33,30,26,0.016) 9px, rgba(33,30,26,0.016) 18px); }

/* faq */
.faq-section { margin-top: 2.4em; max-width: var(--measure); }
.faq-section > h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--t-h2); letter-spacing: -.012em; margin: 0 0 8px; }
.faq-item { border-top: 1px solid var(--rule); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 2px; cursor: pointer; background: none; border: 0; text-align: left; }
.faq-q h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 17.5px; color: var(--ink); }
.faq-q svg { width: 18px; height: 18px; color: var(--ink-3); flex: 0 0 auto; transition: transform var(--dur) var(--ease), color var(--dur); }
.faq-item.open .faq-q svg { transform: rotate(180deg); color: var(--accent); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height 0.24s var(--ease); }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a-inner { font-family: var(--font-serif); font-size: 16px; line-height: 1.55; color: var(--ink-2); padding: 0 2px 16px; }

/* takeaway */
.takeaway { margin-top: 2.4em; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--r-lg); padding: 20px 22px; max-width: var(--measure); }
.takeaway .hd { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 8px; }
.takeaway .hd svg { width: 14px; height: 14px; }
.takeaway p { margin: 0; font-family: var(--font-serif); font-size: 16.5px; line-height: 1.55; color: var(--ink); }

/* elevate cta */
.elevate-cta { margin-top: 2em; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--rule-2); border-radius: var(--r-md); padding: 16px 18px; max-width: var(--measure); }
.elevate-cta p { margin: 0; font-family: var(--font-serif); font-size: 15px; line-height: 1.5; max-width: 44ch; }
.elevate-cta .ctx { display: block; font-family: var(--font-sans); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.elevate-cta a { flex: 0 0 auto; font-size: 14px; font-weight: 600; color: #fff; background: var(--accent); border-radius: var(--r-sm); padding: 10px 16px; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; transition: background var(--dur); }
.elevate-cta a:hover { background: var(--accent-ink); }
.elevate-cta a svg { width: 15px; height: 15px; }

/* related */
.related { margin-top: 2.6em; padding-top: 22px; border-top: 1px solid var(--rule); max-width: var(--measure-wide); }
.related > .eyebrow { color: var(--ink-3); }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
@media (max-width: 620px) { .related-grid { grid-template-columns: 1fr; } }

/* buttons */
.btn { font-family: var(--font-sans); font-size: 14.5px; font-weight: 600; border-radius: var(--r-sm); padding: 9px 16px; cursor: pointer; border: 1px solid transparent; display: inline-flex; align-items: center; gap: 7px; text-decoration: none; transition: background var(--dur), color var(--dur), border-color var(--dur); }
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--rule-2); }
.btn-ghost:hover { background: var(--paper-sunk); border-color: var(--rule-3); }

/* search overlay */
.search-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(33,30,26,0.32); backdrop-filter: blur(2px); display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; }
.search-panel { width: min(560px, 92vw); background: var(--surface); border: 1px solid var(--rule-2); border-radius: var(--r-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.search-input-row { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
.search-input-row svg { width: 18px; height: 18px; color: var(--ink-3); }
.search-input-row input { flex: 1; border: 0; outline: none; background: none; font-size: 16px; color: var(--ink); font-family: var(--font-serif); }
.search-results { max-height: 50vh; overflow-y: auto; }
.search-result { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--rule); padding: 12px 16px; cursor: pointer; display: grid; gap: 3px; }
.search-result:hover { background: var(--accent-soft); }
.search-result strong { font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.search-result span { font-size: 12.5px; color: var(--ink-2); }
.search-empty { padding: 22px 16px; color: var(--ink-3); font-size: 14px; text-align: center; }

@media (max-width: 720px) {
  .site-nav a:not(.active) { display: none; }
  .brand .wm small { display: none; }
}

/* skip-link + inline icon base (static port) */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 0 0 var(--r-sm) 0; }
.skip-link:focus { left: 0; }
.ic { display: inline-flex; align-items: center; vertical-align: -0.135em; }
.article-meta .ic, .breadcrumbs .ic { vertical-align: -0.18em; }

/* ---------- Home landing ---------- */
.home-hero { padding: clamp(44px,7vw,84px) 0 22px; }
.home-hero .eyebrow { color: var(--accent); }
.home-hero h1 { margin: 14px 0 0; }
.home-hero .lead { margin: 16px 0 0; max-width: 62ch; font-family: var(--font-serif); font-size: var(--t-lead); line-height: 1.5; color: var(--ink-2); }
.hero-actions { margin-top: 24px; }
.featured { padding: 14px 0 10px; }
.featured-card { display: block; background: var(--surface); border: 1px solid var(--accent-line); border-left: 4px solid var(--accent); border-radius: var(--r-lg); padding: clamp(22px,3vw,34px); text-decoration: none; transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.featured-card:hover { box-shadow: var(--shadow-md); }
.featured-card .eyebrow { color: var(--accent); }
.featured-card h2 { margin: 12px 0 0; font-family: var(--font-display); font-weight: 600; font-size: var(--t-h1); line-height: 1.08; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.featured-card p { margin: 12px 0 0; font-family: var(--font-serif); font-size: var(--t-lead); line-height: 1.5; color: var(--ink-2); max-width: 64ch; }
.featured-card .gc-more { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent); }
.featured-card .gc-more svg { transition: transform var(--dur) var(--ease); }
.featured-card:hover .gc-more svg { transform: translateX(3px); }
.theme-head .theme-all { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
