/*
  Earn the Right Coaching theme tokens (ETR Brand Source of Truth v1.0). Change these, not component rules.
  Colours: Chalk paper for documents, Mineral Blue Grey fields, Near Black ink, Dark Charcoal for
  interactive elements, and Burnt Clay as the single accent (about 5-10% of a page). Clay text uses a
  deeper shade so it meets WCAG AA contrast. Status is never colour-only.
  Type: EB Garamond for the idea (body, headings), Poppins for the information (labels, buttons).
  Fonts are self-hosted from fonts/ (SIL OFL), so no page makes a third-party request.
*/
@font-face { font-family: "EB Garamond"; src: url("../fonts/EBGaramond-var.ttf") format("truetype"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/EBGaramond-Italic-var.ttf") format("truetype"); font-weight: 400 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-SemiBold.ttf") format("truetype"); font-weight: 600 700; font-style: normal; font-display: swap; }

:root {
  --paper: #f1f1ed;          /* Chalk */
  --paper-raised: #fafaf7;
  --paper-sunk: #dde4e5;     /* Mineral Blue Grey */
  --field: #dde4e5;          /* Mineral Blue Grey: branded bands such as the page header */
  --ink: #191919;            /* Near Black */
  --ink-muted: #4f565a;
  --rule: #c9d1d3;
  --accent: #23272b;         /* Dark Charcoal: buttons, links, evidence markers */
  --accent-ink: #ffffff;
  --accent-soft: #dde4e5;
  --clay: #c45c3c;           /* Burnt Clay: marks, rules and underlines only */
  --clay-text: #a8472a;      /* deeper clay for text and focus (AA on Chalk) */
  --tension: #a8472a;
  --tension-soft: #f3e2da;
  --support: #3f5a5f;
  --support-soft: #dde4e5;
  --focus: #a8472a;
  --chart-grid: #d3dadc;
  --chart-quad: #e6ebec;
  --chart-quad-2: #ecefee;
  --watermark: rgba(25, 25, 25, 0.05);

  --font-display: "EB Garamond", Garamond, "Iowan Old Style", Georgia, serif;
  --font-body: "EB Garamond", Garamond, "Iowan Old Style", Georgia, serif;
  --font-ui: "Poppins", "Helvetica Neue", Arial, system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.15rem;
  --step-1: 1.3rem;
  --step-2: 1.6rem;
  --step-3: 2.05rem;
  --step-4: clamp(2.5rem, 5vw, 3.8rem);
  --measure: 38rem;
  --radius: 4px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --field: #1b1e21;
    --paper: #23272b; --paper-raised: #2b3035; --paper-sunk: #1b1e21;
    --ink: #f1f1ed; --ink-muted: #b6bec1; --rule: #3c4349;
    --accent: #dde4e5; --accent-ink: #191919; --accent-soft: #343c42;
    --clay: #d9775a; --clay-text: #e8957b;
    --tension: #e8957b; --tension-soft: #3e2c25; --support: #b9cbce; --support-soft: #2e373b;
    --focus: #e8957b; --chart-grid: #363d42; --chart-quad: #2a3034; --chart-quad-2: #2f3539;
    --watermark: rgba(241, 241, 237, 0.04);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --field: #1b1e21;
  --paper: #23272b; --paper-raised: #2b3035; --paper-sunk: #1b1e21;
  --ink: #f1f1ed; --ink-muted: #b6bec1; --rule: #3c4349;
  --accent: #dde4e5; --accent-ink: #191919; --accent-soft: #343c42;
  --clay: #d9775a; --clay-text: #e8957b;
  --tension: #e8957b; --tension-soft: #3e2c25; --support: #b9cbce; --support-soft: #2e373b;
  --focus: #e8957b; --chart-grid: #363d42; --chart-quad: #2a3034; --chart-quad-2: #2f3539;
  --watermark: rgba(241, 241, 237, 0.04);
  color-scheme: dark;
}
