/* PinkBrown · Airy design tokens
   Neutral stone palette, pink and brown only for the logo and the wordmark.
   Light values on :root. Dark follows the OS setting, and data-theme="light"|"dark" on <html> forces either.
   Every text colour reads at least 4.5:1 on the surfaces it is used on, in both themes (checked 13 Nov 2026).
   Fonts: Bricolage Grotesque (headings), DM Sans (text), Geist Mono (codes), from Google Fonts:
   https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=DM+Sans:opsz,wght@9..40,400..700&family=Geist+Mono:wght@400..600&display=swap
*/
:root{
  /* Colour, light */
  --bg:#F5F5F2;--surface:#FFFFFF;--surface-2:#EFEFEB;--line:#E6E5E0;--text:#1C1C1A;--text-2:#5F5E57;--text-3:#6D6C66;
  --primary:#1C1C1A;--on-primary:#FFFFFF;--accent:#1C1C1A;--accent-soft:#ECEBE6;--focus:#4A6A8F;
  --ok:#2F7A4A;--ok-soft:#E6F1E9;--warn:#8A560F;--warn-soft:#F7EEDD;--bad:#B0372A;--bad-soft:#F8E6E2;--info:#3D6394;--info-soft:#E6EDF5;--mute-soft:#EDECE8;
  --casa:#3F6A4C;--casa-soft:#E4EEE6;--toddler:#8F5A12;--toddler-soft:#F5EBDA;--nursery:#4A6A8F;--nursery-soft:#E4EBF3;--on-class:#FFFFFF;
  --appbar-bg:#F5F5F2;--appbar-fg:#1C1C1A;--appbar-fg-2:#5F5E57;--appbar-chip:#FFFFFF;--appbar-line:transparent;--mark-bg:#1C1C1A;--mark-fg:#FFFFFF;--head-btn-bg:#1C1C1A;--head-btn-fg:#FFFFFF;
  --tab-bg:#FFFFFF;--tab-fg:#6D6C66;--tab-active-bg:#ECEBE6;--tab-active-fg:#1C1C1A;--tab-line:transparent;
  --btn2-bg:#ECEBE6;--btn2-fg:#1C1C1A;--btn2-line:transparent;
  --input-bg:#FFFFFF;--input-line:#E2E1DB;--chip-on-bg:#1C1C1A;--chip-on-fg:#FFFFFF;--seg-on-bg:#FFFFFF;--seg-on-fg:#1C1C1A;--switch-off:#DDDCD6;--knob-off:#FFFFFF;
  --logo:#EF78A3;--logo-brown:#4E3119;--overlay:rgba(28,28,26,.36);--header-glass:rgba(245,245,242,.86);
  --shadow-card:0 1px 2px rgba(28,28,26,.04),0 6px 18px rgba(28,28,26,.06);
  --shadow-pop:0 12px 32px rgba(28,28,26,.14),0 2px 6px rgba(28,28,26,.06);
  /* Fixed colours: logo cubes, photo stand-ins, QR, printed card */
  --frame:#1C1C1A;
  --night:#121211;
  
  --cap-bg:rgba(20,14,18,.55);--cap-fg:#FFFFFF;--qr-bg:#FFFFFF;--qr-fg:#141014;--paper:#FFFFFF;--ink:#1D171C;--ink-2:#6A5F66;
  /* Type and shape */
  --font-display:"Bricolage Grotesque","DM Sans",system-ui,sans-serif;--font-body:"DM Sans",system-ui,-apple-system,"Segoe UI",sans-serif;--font-mono:"Geist Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --fw-display:700;--fw-heading:650;--fw-title:600;--btn-weight:600;--track-display:-0.03em;--track-heading:-0.015em;
  --fs-display:2.25rem;--fs-h1:1.625rem;--fs-h2:1.25rem;--fs-title:1.0625rem;--fs-body:0.9375rem;--fs-small:0.8125rem;--fs-caption:0.75rem;--lh-body:1.55;
  --caption-font:var(--font-body);--caption-track:0.08em;--caption-weight:600;
  --r-chip:999px;--r-input:14px;--r-tile:14px;--r-card:20px;--r-sheet:28px;--r-btn:999px;--r-seg:999px;--avatar-r:999px;
  --h-btn:46px;--h-btn-sm:34px;--h-input:48px;--row-min:60px;--card-pad:16px;--card-bw:1px;
  --tab-radius:999px;--tab-inset:12px;--tab-h:62px;
  /* Layout (phone values; the size steps at the end of this file widen them) */
  --page-x:16px;--section-gap:16px;--content-max:1040px;--side-w:248px;
  --avatar:38px;--avatar-xl:60px;--qr:76px;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#121211;--surface:#1B1B19;--surface-2:#161614;--line:#2A2A27;--text:#F2F2EE;--text-2:#A8A79F;--text-3:#8A8982;
    --primary:#F2F2EE;--on-primary:#121211;--accent:#F2F2EE;--accent-soft:#262623;--focus:#8FAED3;
    --ok:#5BC98A;--ok-soft:#13261A;--warn:#E3A548;--warn-soft:#2A2010;--bad:#F07B6A;--bad-soft:#2E1714;--info:#8FAED3;--info-soft:#17202C;--mute-soft:#232320;
    --casa:#8DBB98;--casa-soft:#1A2A1E;--toddler:#D9A35A;--toddler-soft:#2A2112;--nursery:#8FAED3;--nursery-soft:#17202C;--on-class:#121211;
    --appbar-bg:#121211;--appbar-fg:#F2F2EE;--appbar-fg-2:#A8A79F;--appbar-chip:#1B1B19;--appbar-line:transparent;--mark-bg:#F2F2EE;--mark-fg:#121211;--head-btn-bg:#F2F2EE;--head-btn-fg:#121211;
    --tab-bg:#21211E;--tab-fg:#8A8982;--tab-active-bg:#33332F;--tab-active-fg:#F2F2EE;--tab-line:transparent;
    --btn2-bg:#262623;--btn2-fg:#F2F2EE;--btn2-line:transparent;
    --input-bg:#161614;--input-line:#302F2C;--chip-on-bg:#F2F2EE;--chip-on-fg:#121211;--seg-on-bg:#2C2C29;--seg-on-fg:#F2F2EE;--switch-off:#3A3A36;--knob-off:#A8A79F;
    --logo:#EF78A3;--logo-brown:#4E3119;--overlay:rgba(0,0,0,.55);--header-glass:rgba(18,18,17,.86);
    --shadow-card:0 1px 2px rgba(0,0,0,.35);--shadow-pop:0 14px 34px rgba(0,0,0,.55),0 2px 6px rgba(0,0,0,.35);
    --frame:#2B2B28;
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --bg:#121211;--surface:#1B1B19;--surface-2:#161614;--line:#2A2A27;--text:#F2F2EE;--text-2:#A8A79F;--text-3:#8A8982;
  --primary:#F2F2EE;--on-primary:#121211;--accent:#F2F2EE;--accent-soft:#262623;--focus:#8FAED3;
  --ok:#5BC98A;--ok-soft:#13261A;--warn:#E3A548;--warn-soft:#2A2010;--bad:#F07B6A;--bad-soft:#2E1714;--info:#8FAED3;--info-soft:#17202C;--mute-soft:#232320;
  --casa:#8DBB98;--casa-soft:#1A2A1E;--toddler:#D9A35A;--toddler-soft:#2A2112;--nursery:#8FAED3;--nursery-soft:#17202C;--on-class:#121211;
  --appbar-bg:#121211;--appbar-fg:#F2F2EE;--appbar-fg-2:#A8A79F;--appbar-chip:#1B1B19;--appbar-line:transparent;--mark-bg:#F2F2EE;--mark-fg:#121211;--head-btn-bg:#F2F2EE;--head-btn-fg:#121211;
  --tab-bg:#21211E;--tab-fg:#8A8982;--tab-active-bg:#33332F;--tab-active-fg:#F2F2EE;--tab-line:transparent;
  --btn2-bg:#262623;--btn2-fg:#F2F2EE;--btn2-line:transparent;
  --input-bg:#161614;--input-line:#302F2C;--chip-on-bg:#F2F2EE;--chip-on-fg:#121211;--seg-on-bg:#2C2C29;--seg-on-fg:#F2F2EE;--switch-off:#3A3A36;--knob-off:#A8A79F;
  --logo:#EF78A3;--logo-brown:#4E3119;--overlay:rgba(0,0,0,.55);--header-glass:rgba(18,18,17,.86);
  --shadow-card:0 1px 2px rgba(0,0,0,.35);--shadow-pop:0 14px 34px rgba(0,0,0,.55),0 2px 6px rgba(0,0,0,.35);
  --frame:#2B2B28;
  color-scheme:dark;
}

/* Size steps. One set of components at every size: the phone values above are the default,
   and tablet (760px and up) and desktop (1100px and up) only make the same components roomier.
   Colours never change with size. Button, field and tap heights stay the same everywhere (44px minimum). */
@media (min-width:760px){
  :root{
    --page-x:24px;--section-gap:20px;--card-pad:20px;
    --fs-display:2.5rem;--fs-h1:1.75rem;--fs-h2:1.3125rem;
    --avatar:40px;--avatar-xl:68px;--qr:88px;
  }
}
@media (min-width:1100px){
  :root{
    --page-x:40px;--section-gap:24px;--card-pad:24px;
    --fs-display:3rem;--fs-h1:2rem;--fs-h2:1.375rem;--fs-title:1.125rem;--fs-body:1rem;--fs-small:0.875rem;
    --row-min:64px;--avatar:42px;--avatar-xl:76px;--qr:104px;
  }
}
