/* Groundwork brand tokens, shared by the login page and the app.
   To recolour the product, change the two accent lines at the top of this file.
   (The product name and tagline live in src/worker.js, constant BRAND.) */
:root {
  --brand-accent-dark: #2DD4BF;   /* "signal" on the dark theme */
  --brand-accent-light: #0F766E;  /* "signal" on the light theme */

  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-12: 12px; --fs-13: 13px; --fs-15: 15px; --fs-18: 18px; --fs-24: 24px;
  --r-card: 6px; --r-btn: 4px;
}

/* Dark is the primary theme. */
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --accent: var(--brand-accent-dark); --on-accent: #0B0E13;
  --bg: #0B0E13; --surface: #12161E; --raised: #1A1F2A; --line: #262D3B; --line-strong: #3B4558;
  --text: #E7EBF2; --muted: #8B95A7; --idle: #6B7588; --field: #0B0E13; --field-line: #646E83;
  --attention: #F5B544; --danger: #F87171; --done: #C3CAD6;
  --accent-tint: rgba(45, 212, 191, .10); --new-tint: rgba(45, 212, 191, .07);
  --overlay-shadow: 0 0 0 1px var(--line), 0 8px 8px rgba(0, 0, 0, .35); --backdrop: rgba(4, 6, 9, .66);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --accent: var(--brand-accent-light); --on-accent: #FFFFFF;
    --bg: #EEF1F5; --surface: #FFFFFF; --raised: #F6F8FB; --line: #D6DCE5; --line-strong: #AEB8C6;
    --text: #0E1420; --muted: #566173; --idle: #7A8596; --field: #FFFFFF; --field-line: #7A8596;
    --attention: #9A4A08; --danger: #B91C1C; --done: #3E4757;
    --accent-tint: rgba(15, 118, 110, .09); --new-tint: rgba(15, 118, 110, .06);
    --overlay-shadow: 0 0 0 1px var(--line), 0 8px 8px rgba(14, 20, 32, .10); --backdrop: rgba(14, 20, 32, .38);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --accent: var(--brand-accent-light); --on-accent: #FFFFFF;
  --bg: #EEF1F5; --surface: #FFFFFF; --raised: #F6F8FB; --line: #D6DCE5; --line-strong: #AEB8C6;
  --text: #0E1420; --muted: #566173; --idle: #7A8596; --field: #FFFFFF; --field-line: #7A8596;
  --attention: #9A4A08; --danger: #B91C1C; --done: #3E4757;
  --accent-tint: rgba(15, 118, 110, .09); --new-tint: rgba(15, 118, 110, .06);
  --overlay-shadow: 0 0 0 1px var(--line), 0 8px 8px rgba(14, 20, 32, .10); --backdrop: rgba(14, 20, 32, .38);
}

/* The mark: three strata rising to the right. Colours follow the theme. */
.gw-mark .s1 { fill: var(--text); }
.gw-mark .s2 { fill: var(--muted); }
.gw-mark .s3 { fill: var(--accent); }
