@font-face { font-family: "Bricolage Grotesque"; font-weight: 400 800; font-style: normal; font-display: swap; src: url(/fonts/bricolage-latin.woff2) format("woff2"); }

/* Theme: data-mode is always "light" or "dark" (JS resolves Auto); data-palette picks the colours. */
:root {
  --bg: #eef7f5; --card: #ffffff; --ink: #0e2b2a; --mute: #48635f; --line: #cfe5e1;
  --brand: #0f766e; --brand-ink: #ffffff; --hero: #0f766e; --hero-ink: #ffffff;
  --accent: #c2410c; --accent-ink: #ffffff;
  --t-chore: #1d4ed8; --t-job: #be185d; --t-project: #7e22ce; --t-reminder: #c2410c; --t-food: #15803d; --t-event: #0f766e; --on-tc: #ffffff;
  --p1: #b91c1c; --p2: #b45309; --p3: #15803d; --ok: #15803d;
  --r: 20px; --dock: 68px;
  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
[data-mode=dark] {
  --bg: #06191a; --card: #0d2829; --ink: #e6f7f4; --mute: #8db5b0; --line: #1b4244;
  --brand: #2dd4bf; --brand-ink: #042f2e; --hero: #0b4f4a; --hero-ink: #e6f7f4;
  --accent: #fb923c; --accent-ink: #2a1203;
  --t-chore: #60a5fa; --t-job: #f472b6; --t-project: #c084fc; --t-reminder: #fb923c; --t-food: #4ade80; --t-event: #2dd4bf; --on-tc: #06191a;
  --p1: #f87171; --p2: #fbbf24; --p3: #4ade80; --ok: #4ade80;
  color-scheme: dark;
}
[data-palette=ocean][data-mode=light] {
  --bg: #eef3fb; --ink: #0f1f3d; --mute: #4a5b78; --line: #d3dff2;
  --brand: #1d4ed8; --hero: #1d4ed8; --accent: #c2410c;
}
[data-palette=ocean][data-mode=dark] {
  --bg: #091426; --card: #11213f; --ink: #e8f0ff; --mute: #93a9cf; --line: #1f3a66;
  --brand: #60a5fa; --brand-ink: #0b1b3a; --hero: #1e3a8a; --hero-ink: #e8f0ff; --accent: #fb923c;
  --on-tc: #08142a;
}
[data-palette=sunset][data-mode=light] {
  --bg: #fcf2f2; --ink: #3a1017; --mute: #6b4a4f; --line: #f0d6d8;
  --brand: #be123c; --hero: #be123c; --accent: #b45309;
}
[data-palette=sunset][data-mode=dark] {
  --bg: #1c0a10; --card: #2b1219; --ink: #ffeef0; --mute: #d0a3aa; --line: #4a2430;
  --brand: #fb7185; --brand-ink: #3b0a17; --hero: #7f1d3a; --hero-ink: #ffeef0; --accent: #fbbf24; --accent-ink: #2a1d03;
  --on-tc: #20080e;
}
[data-palette=grape][data-mode=light] {
  --bg: #f5f1fc; --ink: #1e1038; --mute: #5a4a7a; --line: #dcd2f2;
  --brand: #6d28d9; --hero: #6d28d9; --accent: #c2410c;
}
[data-palette=grape][data-mode=dark] {
  --bg: #130a26; --card: #1f1240; --ink: #f1ebff; --mute: #b3a3d9; --line: #35235f;
  --brand: #a78bfa; --brand-ink: #1e0b45; --hero: #4c1d95; --hero-ink: #f1ebff; --accent: #fb923c;
  --on-tc: #130a26;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body { margin: 0; font: 16px/1.45 var(--font); color: var(--ink); background: var(--bg); }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico.sm { width: 14px; height: 14px; stroke-width: 2.4; }
.ico.lg { width: 30px; height: 30px; }

.app { max-width: 1100px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 12px) 16px calc(var(--dock) + 150px); }

/* header: today's date, three buttons */
