/* Semantic colours: all surfaces, text and state colours belong to the theme. */
:root {
  color-scheme: dark;
  --bg: #161c26;
  --panel: #1e2735;
  --panel-alt: #293545;
  --border: #3a4657;
  --text: #f4f7fa;
  --copy: #d7dfe8;
  --muted: #aab6c5;
  --accent: #ff9e92;
  --accent-soft: #382a2a;
  --field-border: #607084;
  --error: #ffb2ad;
  --error-bg: #342124;
  --success: #a5dda8;
  --success-bg: #1c2d21;
  --shadow: 0 12px 32px #00000026;
  --brand: #ff776b;
  --brand-hover: #ff9a90;
  --on-brand: #351512;
  --radius: 14px;
  --container: 1320px;
  --headline-soft: #e2bfba;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --panel-alt: #eaf0f4;
  --border: #d6dee6;
  --text: #16212e;
  --copy: #303e4f;
  --muted: #566476;
  --accent: #a6382d;
  --accent-soft: #fff0ed;
  --field-border: #7c8b9b;
  --error: #a92d2c;
  --error-bg: #fff0ef;
  --success: #28642e;
  --success-bg: #eef7ed;
  --shadow: 0 12px 32px #23384b0b;
  --headline-soft: #8f514b;
}
/* A readable, system-aware page also works with JavaScript disabled. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg: #f4f6f8;
    --panel: #ffffff;
    --panel-alt: #eaf0f4;
    --border: #d6dee6;
    --text: #16212e;
    --copy: #303e4f;
    --muted: #566476;
    --accent: #a6382d;
    --accent-soft: #fff0ed;
    --field-border: #7c8b9b;
    --error: #a92d2c;
    --error-bg: #fff0ef;
    --success: #28642e;
    --success-bg: #eef7ed;
    --shadow: 0 12px 32px #23384b0b;
    --headline-soft: #8f514b;
  }
}
