/* Skins: alternative looks for the whole page. Loaded after app.css, so a skin only has to say what is different.

   How a skin works
   - The page sets data-skin="<id>" on <html>, next to data-theme. No data-skin (or "smith") is the default look in app.css.
   - A skin overrides the same tokens app.css uses: the color tokens per theme (light and dark), the shape scale (--r-*), the
     type scale (--fs-*) and the font (--sans). Anything it overrides beyond tokens is a short, commented rule at the end.
   - Colors that carry a fixed meaning (red danger and severe, amber caution, green done, blue information) are not redefined
     unless a skin has a reason; the default values keep their meaning in every skin.
   - A skin that owns its accent must say so in SKINS in app.js (orgAccent: false); otherwise the organization's accent color
     from its config replaces --brand.
   - tests/test_theme_contrast.py holds every skin, in both themes, to the same contrast and separation rules as the default. */

/* Self-hosted font, served from our own server (the content security policy allows nothing else). Inter, SIL Open Font
   License 1.1, see fonts/INTER-LICENSE.txt. It downloads only when a skin that names it is in use. */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/inter-latin-wght-normal.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;
}

/* ================================================================== Clean
   Calm and modern: cool neutral grounds, white cards with hairline outlines, almost no shadow, no texture, one deep teal
   accent, tighter corners, Inter, and labels in sentence case instead of small capitals. Light is the hero, dark is a
   proper sibling. The teal is its own accent, so the organization's accent color does not apply here. */

:root[data-skin="clean"] {
  --sans: "Inter Variable", "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-xs: 6px; --r-sm: 8px; --r-md: 10px; --r-lg: 12px; --r-xl: 14px;
  /* no glow, no dot grid: the page is a flat, quiet ground */
  --glow-1: transparent; --glow-2: transparent; --glow-3: transparent; --dot: transparent;
}

:root[data-skin="clean"][data-theme="light"] {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #edf0f4;
  --surface-card: #ffffff;
  --ink: #0f172a;
  --muted: #475467;
  --line: #e3e8ef;
  --edge: #bcc5d2;
  --edge-card: #bcc5d2;
  --brand: #0f766e;
  --brand-ink: #ffffff;
  --accent: #0b6b64;
  --accent-soft: #e6f2f1;
  --accent-line: #9fcfca;
  --notice-ink: #475467;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06);
  color-scheme: light;
}

:root[data-skin="clean"][data-theme="dark"] {
  --bg: #0b0f14;
  --surface: #131a22;
  --surface-2: #1b2430;
  --surface-card: #17202a;
  --ink: #e6edf5;
  --muted: #9aa8b8;
  --line: #212b38;
  --edge: #394758;
  --edge-card: #3d4c5e;
  --brand: #2dd4bf;
  --brand-ink: #04201d;
  --accent: #5eead4;
  --accent-soft: #173438;
  --accent-line: #1d6461;
  --notice-ink: #9aa8b8;
  --ok: #86d96a;                       /* a yellower green, so "done" is never mistaken for the teal accent */
  --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

/* A few things that tokens alone cannot change. */
:root[data-skin="clean"] body { font-optical-sizing: auto; }
:root[data-skin="clean"] .display { font-weight: 650; letter-spacing: -.035em; }
:root[data-skin="clean"] .preview h1, :root[data-skin="clean"] .question { font-weight: 650; }
/* Section labels read as ordinary sentence-case headings, with a quiet rule, rather than tracked capitals. */
:root[data-skin="clean"] .eyebrow { text-transform: none; letter-spacing: 0; font-size: var(--fs-md); font-weight: 650; color: var(--ink); }
:root[data-skin="clean"] .eyebrow::after { background: var(--line); }
:root[data-skin="clean"] .scope-label, :root[data-skin="clean"] .menu-label, :root[data-skin="clean"] .entry-label { text-transform: none; letter-spacing: 0; font-size: var(--fs-sm); }
/* The answer and the vote card carry a plain hairline instead of a colored top edge. */
:root[data-skin="clean"] .answer, :root[data-skin="clean"] .vote { border-top-width: 1px; border-top-color: var(--edge); }
/* Flat controls: no colored glow under the active segment, a rounded square Send button. */
:root[data-skin="clean"] .sub-seg .seg-btn[aria-pressed="true"] { box-shadow: none; }
:root[data-skin="clean"] .send { border-radius: var(--r-sm); }
:root[data-skin="clean"] .chip { box-shadow: none; }
