/* Kesl site colors (WD-363): a copy of kesl-logo brand/kit/tokens.css (the brand kit).
   Light by default; follows the device setting; the header switch overrides it (theme.js). */
:root {
  color-scheme: light;
  /* surfaces */
  --bg: #F7F5FA;            /* canvas: Frostgel off-white, also the triptych background */
  --surface: #FFFFFF;       /* cards, code boxes, inputs */
  --surface-0: rgba(255,255,255,0);
  --surface-2: #F3EFF7;     /* quiet fills: step numbers, selected tabs */
  --field: #FFFFFF;
  --border: #E4DCEC;
  --border-strong: #CDC8D3;
  /* text */
  --strong: #2B1D38;        /* headings: triptych title ink */
  --text: #3A2F45;          /* body */
  --text-2: #554A60;
  --muted: #76677F;         /* secondary: triptych subtitle */
  /* brand */
  --brand: #50315F;         /* logo and wordmark only */
  --accent: #5B36B8;        /* primary buttons, emphasis: triptych violet */
  --accent-hover: #4A2A9C;
  --on-accent: #FFFFFF;
  --primary: #2B1D38;       /* the one main button: ink, not violet (Brad, Nov 21: the violet button needed redesign) */
  --primary-hover: #3D2C4D;
  --on-primary: #FFFFFF;
  --outline: #A99CB5;       /* quieter button: outline pill stroke (Nov 21) */
  --link: #5B36B8;
  --tint-1: rgba(91,54,184,.05);
  --tint-2: rgba(91,54,184,.08);
  --tint-3: rgba(91,54,184,.12);
  --shadow: rgba(43,29,56,.12);
  --warn: #8A5A00;
  --error: #B42318;
  /* type */
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #15121A; --surface: #1F1B25; --surface-0: rgba(31,27,37,0); --surface-2: #2A2531; --field: #110F15;
    --border: #36303E; --border-strong: #4A4253;
    --strong: #F5F5F8; --text: #E6E1EB; --text-2: #C9C1D1; --muted: #A69CB0;
    --primary: #F5F5F8; --primary-hover: #FFFFFF; --on-primary: #15121A; --outline: #6E6379; --brand: #F5F5F8; --accent: #6E4BD0; --accent-hover: #7D5BE0; --on-accent: #FFFFFF; --link: #B6A0F0;
    --tint-1: rgba(182,160,240,.06); --tint-2: rgba(182,160,240,.09); --tint-3: rgba(182,160,240,.14);
    --shadow: rgba(0,0,0,.5); --warn: #FFCF6B; --error: #FF8A8A;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #15121A; --surface: #1F1B25; --surface-0: rgba(31,27,37,0); --surface-2: #2A2531; --field: #110F15;
  --border: #36303E; --border-strong: #4A4253;
  --strong: #F5F5F8; --text: #E6E1EB; --text-2: #C9C1D1; --muted: #A69CB0;
  --primary: #F5F5F8; --primary-hover: #FFFFFF; --on-primary: #15121A; --outline: #6E6379; --brand: #F5F5F8; --accent: #6E4BD0; --accent-hover: #7D5BE0; --on-accent: #FFFFFF; --link: #B6A0F0;
  --tint-1: rgba(182,160,240,.06); --tint-2: rgba(182,160,240,.09); --tint-3: rgba(182,160,240,.14);
  --shadow: rgba(0,0,0,.5); --warn: #FFCF6B; --error: #FF8A8A;
}
html, body { background: var(--bg); }

/* Logo: one mark per theme */
.brand img { width: auto !important; height: 28px !important; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: inline; }
}
.brand { color: var(--brand) !important; }

/* Light/dark switch in the header */
.theme-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; margin: 0 4px 0 0; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; order: -1; } /* no outline, left of the nav links (Brad, Nov 21) */
.theme-btn:hover { color: var(--strong); }
.theme-btn svg { width: 16px; height: 16px; }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
header .right { display: flex; align-items: center; }

/* Type from the brand kit: Manrope headlines at 700 */
h1 { font-weight: 700 !important; letter-spacing: -0.045em !important; }

/* Wordmark: the logo's outlined lettering, not a typed font */
.brand, .lockup { gap: 10px !important; }
.brand img.wordmark { height: 22px !important; width: auto !important; }
.lockup img { width: auto !important; height: 24px !important; }
.lockup img.wordmark { height: 17px !important; }

/* Menu button: a drawn icon, so it lines up with the switch (the ☰ character sat off-center) */
.menu-btn { line-height: 0 !important; padding: 7px !important; color: var(--strong); }
.menu-btn svg { display: block; }

/* Body text in the device's own UI font (SF Pro on Apple devices), which is built for reading
   at text sizes; Manrope stays on headings, the header and buttons (Brad, Nov 21: "the body text
   font should be more readable"). */
:root { --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { font-family: var(--font-body) !important; }
h1, h2, h3, h4, header, nav, button, .lede, .instr, .lockup, a.primary, .get, .btn, .btn-2, .snav-title, .snav-bar, .snav { font-family: var(--font); }
