/* Shared design tokens — inspired by Contra Labs' Creative Intelligence Report (warm paper, ink, sage/teal).
   Every agent/file uses these. Do not hardcode colors elsewhere. */
/* Self-hosted variable fonts (latin), preloaded from index.html. font-display: block prevents a flash of fallback type. */
@font-face{font-family:'Source Serif 4';font-style:normal;font-weight:200 900;font-stretch:normal;font-display:block;src:url('../assets/fonts/SourceSerif4.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;}
@font-face{font-family:'Source Serif 4';font-style:italic;font-weight:200 900;font-display:block;src:url('../assets/fonts/SourceSerif4-Italic.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;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 700;font-display:block;src:url('../assets/fonts/Inter.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;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 600;font-display:block;src:url('../assets/fonts/JetBrainsMono.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{
  --paper:#FBFAF6; --paper-2:#F4F1E8; --card:#FFFFFF;
  --ink:#2B2B29; --ink-2:#494444; --muted:#797574; --faint:#B5AFA6;
  --line:#E6E1D6; --line-2:#C8BCAE;
  --sage:#83A5A0; --sage-2:#A5BEBA; --mint:#C8E1DD; --mint-2:#E7F2F0;
  --teal:#387478; --teal-deep:#296A6C; --gold:#907A45; --lime:#B4FF6A;
  /* use-case categories */
  --cat-sermon:#296A6C; --cat-admin:#907A45; --cat-comms:#6397A9; --cat-strategy:#8A7FA8; --cat-care:#B0574A;
  --serif:'Source Serif 4', Georgia, serif;
  --sans:'Inter', system-ui, -apple-system, sans-serif;
  --mono:'JetBrains Mono', ui-monospace, monospace;
}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){
  --paper:#1C1C1A; --paper-2:#242422; --card:#262624; --ink:#F1EEE6; --ink-2:#D6D1C7; --muted:#A39E95; --faint:#6E6A63;
  --line:#34332F; --line-2:#4A4741; --mint:#2C4744; --mint-2:#233634;
  --cat-sermon:#5FA8A6; --cat-admin:#C7A866; --cat-comms:#7FB3C7; --cat-strategy:#ADA3CC; --cat-care:#D98473;
}}
:root[data-theme="dark"]{
  --paper:#1C1C1A; --paper-2:#242422; --card:#262624; --ink:#F1EEE6; --ink-2:#D6D1C7; --muted:#A39E95; --faint:#6E6A63;
  --line:#34332F; --line-2:#4A4741; --mint:#2C4744; --mint-2:#233634;
  --cat-sermon:#5FA8A6; --cat-admin:#C7A866; --cat-comms:#7FB3C7; --cat-strategy:#ADA3CC; --cat-care:#D98473;
}

/* ---- Appended by layout (index/styles/main). Additive only. ---- */
:root{
  --sage-panel:#9FB4A8;   /* full-bleed chapter divider, sage */
  --sky:#8AAEDB;          /* full-bleed chapter divider, sky */
  --sky-2:#C9D9EE;
  --tan:#E6E1D2;          /* visited chapter cell */
  --panel-ink:#22231F;    /* text on colored panels (>=7:1 on both) */
  --ease-out:cubic-bezier(.2,.7,.2,1);
  --ease-in:cubic-bezier(.5,0,.75,0);
  --t-state:150ms; --t-el:260ms; --t-overlay:420ms;
}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){
  --sage-panel:#3F534B; --sky:#3A5170; --sky-2:#2B3A4F; --tan:#3A3830; --panel-ink:#F1EEE6;
}}
:root[data-theme="dark"]{
  --sage-panel:#3F534B; --sky:#3A5170; --sky-2:#2B3A4F; --tan:#3A3830; --panel-ink:#F1EEE6;
}

/* ---- Placeholder copy marker: Claude-written text that must be replaced before publication ---- */
:root{ --ph:#1D5BD8; --ph-on-dark:#A9C6FF; }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){ --ph:#86AEFF; } }
:root[data-theme="dark"]{ --ph:#86AEFF; }

/* Soft tan band: a step lighter than --tan, used to set off quote sections */
:root{ --band-tan:#EFEBE0; }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){ --band-tan:#2A2925; } }
:root[data-theme="dark"]{ --band-tan:#2A2925; }
