/* Design tokens shared by the web editor, the Django pages, and (copied) the extension popup.
   Brand palette: Cherry Blossom, Powder Petal, Dust Grey, Ash Grey, Iron Grey.

   Direction (unslop pass): quick, exact, a little warm. World: paper and a felt-tip highlighter.
   The chrome stays quiet. Cherry is the one accent (primary action, active tool, focus).
   Color lives in the moments: the user's screenshot and the marker stroke. */

:root {
  /* Brand palette */
  --c-cherry: #edafb8;
  --c-petal: #f7e1d7;
  --c-dust: #dedbd2;
  --c-ash: #b0c4b1;
  --c-iron: #4a5759;

  /* The signature: a marker stroke. Yellow is the tool's own default marker color. */
  --c-marker: #ffe066;
  --c-marker-band: var(--c-cherry); /* the headline stroke; muted in dark mode so light text stays readable */

  /* Roles */
  --c-accent: var(--c-cherry);
  --c-accent-strong: #e39aa5;
  --c-on-accent: #2f3839; /* white on #edafb8 fails contrast, so text on the accent is dark */
  --c-positive: #3f8a55;
  --c-negative: #c8453c;

  /* Neutral ramp, a little warm (paper). Three text roles. */
  --bg: #faf9f7;
  --panel: #ffffff;
  --raised: #f3f2ef; /* hover, active row, inputs */
  --stage: #eeeeec; /* nearly neutral, so screenshot colors look true */
  --text: #2f3839;
  --text-muted: #5f6a6c;
  --text-faint: #7d8789;
  --border: rgba(47, 56, 57, 0.1); /* hairline: primary text at 10% */
  --border-strong: rgba(47, 56, 57, 0.18);

  /* Neutral, soft, small shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.04), 0 16px 40px rgba(0, 0, 0, 0.1);

  /* Radius by size */
  --radius-xs: 6px; /* keycaps, tags */
  --radius-sm: 8px; /* rows, inputs, buttons */
  --radius: 12px; /* cards */
  --radius-lg: 16px; /* panels, windows */

  /* One easing curve, a few durations */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 150ms;
  --t-pop: 200ms;

  --font: "Inter Variable", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161819;
    --panel: #1c1f20;
    --raised: #25292a;
    --stage: #111314;
    --text: #ecebe7;
    --text-muted: #a8b0b0;
    --text-faint: #858e8f;
    --border: rgba(236, 235, 231, 0.09);
    --border-strong: rgba(236, 235, 231, 0.16);
    --c-on-accent: #263031;
    --c-marker-band: color-mix(in srgb, var(--c-cherry) 38%, transparent);
    --c-positive: #5fb57a;
    --c-negative: #e5675d;
    --shadow-sm: none;
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}
