/* Mam-IA design tokens: shared by the app, the landing page and the account pages.
   Theme: data-theme="light" | "dark" on <html> (none = follow the device). Accent: data-accent="rosa" (default) |
   "lavanda" | "menta" | "coral". Member colours: --c1 … --c8 (each person of the family has one). */
@import url("/static/common/fonts/fonts.css");

:root {
  --paper: #F6F3F6;
  --surface: #FFFFFF;
  --sunk: #EEE8F0;
  --ink: #231B29;
  --ink2: #5F5568;
  --line: #E3DCE6;
  --accent: #C93E66;
  --accent-ink: #FFFFFF;
  --accent-soft: #FBE4EB;
  --ok: #16806F;
  --ok-soft: #DDF3EE;
  --warn: #8F5400;
  --warn-soft: #FFF0D4;
  --bad: #B4302F;
  --bad-soft: #FCE3E1;
  --c1: #C93E66; --c2: #3366C9; --c3: #A35F00; --c4: #2B8558;
  --c5: #7A4FC4; --c6: #0F7F8C; --c7: #B9531C; --c8: #5E6470;
  --frame: #1D1722;
  --scrim: rgba(35, 27, 41, 0.45);
  --shadow: 0 18px 40px -18px rgba(30, 20, 40, 0.35);
  --f-display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  color-scheme: light;
}
:root[data-accent="lavanda"] { --accent: #6B4FC0; --accent-soft: #ECE6FB; }
:root[data-accent="menta"] { --accent: #0E7C6B; --accent-soft: #DAF1EC; }
:root[data-accent="coral"] { --accent: #B9481F; --accent-soft: #FCE7DD; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141016; --surface: #1F1923; --sunk: #2A2230; --ink: #F3EEF5; --ink2: #B5AABD; --line: #382F3F;
    --accent: #F07A9C; --accent-ink: #2A0E18; --accent-soft: #3D1E2A;
    --ok: #52C7B4; --ok-soft: #173530; --warn: #F0B254; --warn-soft: #3A2B12; --bad: #F28B85; --bad-soft: #3E1E1E;
    --c1: #F07A9C; --c2: #86A8F2; --c3: #E9B048; --c4: #63C892; --c5: #B59AF0; --c6: #5BC7D2; --c7: #F0946A; --c8: #AEB4BF;
    --frame: #000000; --scrim: rgba(0, 0, 0, 0.55); --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
  :root[data-accent="lavanda"]:not([data-theme="light"]) { --accent: #B39CF5; --accent-ink: #1C1035; --accent-soft: #2D2445; }
  :root[data-accent="menta"]:not([data-theme="light"]) { --accent: #55CDB8; --accent-ink: #062A24; --accent-soft: #163A34; }
  :root[data-accent="coral"]:not([data-theme="light"]) { --accent: #F49A72; --accent-ink: #34150A; --accent-soft: #42261C; }
}
:root[data-theme="dark"] {
  --paper: #141016; --surface: #1F1923; --sunk: #2A2230; --ink: #F3EEF5; --ink2: #B5AABD; --line: #382F3F;
  --accent: #F07A9C; --accent-ink: #2A0E18; --accent-soft: #3D1E2A;
  --ok: #52C7B4; --ok-soft: #173530; --warn: #F0B254; --warn-soft: #3A2B12; --bad: #F28B85; --bad-soft: #3E1E1E;
  --c1: #F07A9C; --c2: #86A8F2; --c3: #E9B048; --c4: #63C892; --c5: #B59AF0; --c6: #5BC7D2; --c7: #F0946A; --c8: #AEB4BF;
  --frame: #000000; --scrim: rgba(0, 0, 0, 0.55); --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}
:root[data-theme="dark"][data-accent="lavanda"] { --accent: #B39CF5; --accent-ink: #1C1035; --accent-soft: #2D2445; }
:root[data-theme="dark"][data-accent="menta"] { --accent: #55CDB8; --accent-ink: #062A24; --accent-soft: #163A34; }
:root[data-theme="dark"][data-accent="coral"] { --accent: #F49A72; --accent-ink: #34150A; --accent-soft: #42261C; }

/* icons from /static/common/icons.svg: <svg class="ic"><use href="/static/common/icons.svg#i-house"/></svg> */
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* on the phone, pages that never move beyond their edges: no rubber band past the top or the bottom, no sideways
   scroll (the viewport also has maximum-scale=1, so iOS does not zoom in when a field is touched) */
html, body { overscroll-behavior: none; }
body { overflow-x: clip; }
