/* Penny design tokens: Linen & Sage (locked palette, handoff §5).
   This is the ONLY file allowed to contain hex colors.
   D1 stores token names (e.g. people.color = 'person-mom'); CSS maps them here. */

:root {
  color-scheme: light dark;

  /* Light (day) */
  --surface: #F6F1EA;      /* linen background */
  --card: #FFFDF9;         /* cards, sheets */
  --line: #E8DFD3;         /* hairlines */
  --ink: #3A3631;          /* primary text */
  --ink-soft: #6E665D;     /* secondary text. Locked value #7A7268 is 4.2:1 on linen; nudged to 5.0:1 for AA (pending sign-off) */
  --accent: #7F9273;       /* sage: +, dots, done states */
  --accent-ink: #5F7154;   /* deeper sage for sage-colored text and labeled buttons (AA). Pending sign-off */
  --on-accent: #FFFDF9;    /* label on --accent-ink buttons */
  --nudge-bg: #F5E6CC;     /* soft amber */
  --nudge-ink: #7A5418;
  --shadow: 0 1px 2px rgb(58 54 49 / 0.06), 0 4px 16px rgb(58 54 49 / 0.06);

  --person-mom: #C9A3A0;     /* dusty rose */
  --person-dad: #8FA3B5;     /* slate blue */
  --person-toddler: #B9A6C9; /* lavender */
  --person-baby: #E3C77E;    /* butter */
  --person-otis: #D49A6A;    /* soft muted orange */
  --on-person: #3A3631;      /* initials on person dots */
}

/* Dark (evening): follows the iPhone's light/dark setting */
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #1E1B18;
    --card: #2A2622;
    --line: #3A342E;
    --ink: #EDE6DC;
    --ink-soft: #ADA397;
    --accent: #9BB08E;
    --accent-ink: #9BB08E;
    --on-accent: #1E1B18;
    --nudge-bg: #3B3023;
    --nudge-ink: #EBCB94;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.25), 0 4px 16px rgb(0 0 0 / 0.2);
    --on-person: #2A2622;
  }
}
