/*
 * The app's tokens for the web: the same palette, type and radii as
 * apps/mobile/src/ui/tokens.ts. Dark is the primary appearance; light follows the
 * visitor's setting. Fonts are served from this site, so no page calls a third party.
 */
@font-face { font-family: "Funnel Display"; src: url("fonts/FunnelDisplay_400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Funnel Display"; src: url("fonts/FunnelDisplay_700Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Funnel Sans"; src: url("fonts/FunnelSans_400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Funnel Sans"; src: url("fonts/FunnelSans_500Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Funnel Sans"; src: url("fonts/FunnelSans_600SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: dark light;
  --canvas: #0F0F0E;
  --surface: #1A1A18;
  --surface-raised: #222220;
  --well: #242422;
  --hairline: #2A2A27;
  --track: #2C2C29;
  --ink: #F4F1EA;
  --ink2: #BCB7AD;
  --ink3: #928D84;
  --accent: #B8E4A6;
  --on-accent: #12140F;
  --accent-wash: #1F2A1D;
  --attention: #FF9472;
  --protein: #AFC2F4;
  --carbs: #F1D27E;
  --fat: #E7B6DE;
  --slot: #4A4843;
  --card-edge: transparent;

  /* Shared by both themes. */
  --plate: #1A1A18;
  --plate-well: #0B0B0A;
  --on-plate: #F4F1EA;
  --on-plate2: #BCB7AD;
  --on-morning: #161512;
  --on-morning2: #48443C;
  --meal-breakfast: #F0D88A;
  --meal-lunch: #F5B59A;
  --meal-snack: #C6E5B3;
  --meal-dinner: #D3C6F0;
  --morning-base: #EDE6D8;
  --morning-papaya: #F5B59A;
  --morning-corn: #F0D88A;
  --morning-leaf: #C6E5B3;

  --r-xs: 8px;
  --r-sm: 14px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 32px;

  --display: "Funnel Display", ui-rounded, system-ui, sans-serif;
  --sans: "Funnel Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --canvas: #F3F0E9;
    --surface: #FFFFFF;
    --surface-raised: #FFFFFF;
    --well: #EEEAE2;
    --hairline: #E3DED3;
    --track: #E6E1D7;
    --ink: #181714;
    --ink2: #5B574F;
    --ink3: #68645B;
    --accent: #2D7838;
    --on-accent: #FFFFFF;
    --accent-wash: #E4F0DD;
    --attention: #B3431D;
    --protein: #5F7DD6;
    --carbs: #A8790E;
    --fat: #B25FA8;
    --slot: #BDB5A5;
    --card-edge: #E3DED3;
  }
}

* { box-sizing: border-box; }
html { background: var(--canvas); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.55; background: var(--canvas); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
