/* All Day — design tokens. The only place a colour, a type size, a space or a
   radius is defined. app.css and every tab use these names and nothing else.

   Light is the base on :root. Dark is stated twice: once for phones set to
   dark (guarded so an explicit "light" choice still wins), once for the
   toggle. A colour never has its only definition inside a media query.

   Lifted from the design prototype (DESIGN.md section 5) as is. The shell
   added the groups marked "shell" below, so that nothing in app.css had to
   carry a literal: the media overlays, the source-mark hues and the extra
   type sizes the section heads, datelines and heroes already used. */

:root {
  color-scheme: light;

  /* Lake and Sunset: shared chrome; content keeps its existing layout. */
  --lake: #0E2A47;
  --lake-ink: #F7F4EE;
  --lake-muted: #B9CDE0;
  --lake-hover: #234563;
  --lake-line: rgba(247, 244, 238, .18);
  --lake-green: #3FAE7A;
  --lake-every: #F09B8A;
  --lake-every-ink: #2C120C;
  --lake-green-ink: #06251A;
  --sunset: #F5B04B;
  --sunset-ink: #2B1606;
  --ember: #B74117; /* darkened from #D9531E for 4.5:1 text on paper */
  /* the floating pills' glass (Stephen, 2026-10-19, after Instagram's bar:
     "the perfect amount of glass, and the shade is not overwhelming"):
     enough tint that white labels still read on the cream paper, the rest
     is blur and colour from what scrolls behind */
  --dock-glass: rgba(12, 16, 18, .64);
  --dock-filter: saturate(175%) blur(22px);
  --dock-solid: #101416;
  --dock-ink: #F7F8F9;
  --dock-selected: rgba(255, 255, 255, .16);
  --dock-hover: rgba(255, 255, 255, .10);
  --dock-sheen: rgba(255, 255, 255, .045);
  --dock-clear: rgba(247, 244, 238, 0);
  --dock-edge: rgba(255, 255, 255, .14);
  --dock-muted: #F7F8F9;
  --dock-shadow: 0 12px 32px rgba(0, 0, 0, .16), 0 2px 6px rgba(0, 0, 0, .08), inset 0 1px 0 rgba(255, 255, 255, .22);
  --dock-lift: 8px;
  --dock-inset: 6px;
  --r-dock: 999px;
  --dock-max: 520px;
  --dock-icon: 22px;
  --row-tint: rgba(14, 42, 71, .025);
  --lake-blue: #2F6FB2;
  --park: #26764E;
  --lake-soft: #E5ECF3;
  --park-soft: #E2EEE3;
  --sunset-soft: #F7E5C9;
  --tag-local-bg: #DDF0E5;
  --tag-local-ink: #0F5A3E;
  --tag-national-bg: #DCE7F5;
  --tag-national-ink: #15467F;
  --lead-muted: #50351F;
  --lead-accent: #66320F;
  --lead-soft: #F1CA8A;

  /* paper and ink */
  --paper: #F7F4EE;                 /* the page; feed cards sit directly on it */
  --paper-2: #EEE8DD;               /* sunk: date tiles, inputs, placeholders, sheet ground */
  --raised: #FFFFFF;                /* sheets, peek card, confirm box */
  --ink: #16191D;
  --ink-2: #4A5058;                 /* captions, card body text */
  --ink-3: #5F656D;                 /* timestamps, counts, idle icons, tab labels */
  --line: rgba(26, 22, 14, .13);    /* hairline between cards */
  --line-soft: rgba(26, 22, 14, .07);

  /* the two colours that carry meaning */
  --accent: #9A5B00;                /* selected: active tab, chosen segment, saved, voted */
  --accent-soft: rgba(200, 126, 18, .14);
  --local: #16704E;                 /* a Local item, and the Local water in the switch */
  --local-soft: rgba(22, 112, 78, .10);
  --local-ink: #FFFFFF;             /* text on the Local water */
  --every: #A63A2C;                 /* the Everything water in the switch; used nowhere else */
  --national: #2A5DA8;              /* the National water in the switch */
  --national-ink: #FFFFFF;
  /* the poured water of the main switches (2026-10-19), one colour per
     choice, the same in both themes so the words on them keep their ink:
     News amber, Photos coral, Square lake blue; On Air's TV amber,
     Podcasts violet, Playlists park green, Topics lake blue */
  --so-x: #14171A;
  --so-facebook: #1464D2;
  --so-instagram: #B5316F;
  --so-reddit: #C7400F;
  --so-ink: #FFFFFF;
  --feed-dogs: #D8893B;             /* a beagle's tan */
  --feed-dogs-ink: #2B1606;
  --feed-home: #B98A5A;             /* oak */
  --feed-home-ink: #2B1606;
  --feed-plants: #5DA142;           /* fern */
  --feed-plants-ink: #0E2410;
  --feed-good: #F0C23C;             /* sun */
  --feed-good-ink: #2B1606;
  --feed-nosy: #C8466E;             /* gossip rose */
  --feed-nosy-ink: #FFFFFF;
  --feed-laughs: #9B4F96;           /* plum */
  --feed-laughs-ink: #FFFFFF;
  --feed-sports: #3872C2;           /* court blue */
  --feed-sports-ink: #FFFFFF;
  --feed-wild: #1D7F8A;             /* lake teal */
  --feed-wild-ink: #FFFFFF;
  --feed-tech: #7E8AA0;             /* slate */
  --feed-tech-ink: #0E1420;
  /* the four palest as an outline on cream, 3:1 at least; dark mode outlines in the fill */
  --feed-good-line: #9C7A0E;
  --feed-dogs-line: #B5691F;
  --feed-home-line: #9A6F42;
  --feed-plants-line: #4A8A33;
  --liq-news: #F2A93B;
  --liq-news-ink: #2B1606;
  --liq-photos: #D9644F;
  --liq-photos-ink: #2B1606;
  --liq-square: #2F6FB2;
  --liq-square-ink: #FFFFFF;
  --liq-tv: #F2A93B;
  --liq-tv-ink: #2B1606;
  --liq-pods: #7A5BB0;
  --liq-pods-ink: #FFFFFF;
  --liq-lists: #26764E;
  --liq-lists-ink: #FFFFFF;
  --liq-topics: #2F6FB2;
  --liq-topics-ink: #FFFFFF;
  --liq-sports: #1F3F7A;            /* On Air's Sports: court navy; white reads 10:1 */
  --liq-sports-ink: #FFFFFF;
  /* each tab's section pill, one water per tab (2026-10-19), spread round
     the wheel between the Wire's and On Air's and the same in both themes;
     every ink reads at 4.5:1 or better on its water */
  --liq-watch: #C8466E;             /* cinema rose */
  --liq-watch-ink: #FFFFFF;
  --liq-food: #E46B32;              /* paprika */
  --liq-food-ink: #2B1606;
  --liq-people: #1D7F8A;            /* lake teal */
  --liq-people-ink: #FFFFFF;
  --liq-reddit: #C8421A;            /* Reddit's own orange-red, darkened so white reads 4.5:1 */
  --liq-reddit-ink: #FFFFFF;
  --rd-accent: #B23A12;             /* the Reddit tab's one accent on paper */
  --liq-whatnow: #F2A93B;           /* What Now's own amber, its disc in the tab bar */
  --liq-whatnow-ink: #2B1606;
  --liq-vintage: #9B4F96;           /* plum */
  --liq-vintage-ink: #FFFFFF;
  --liq-habits: #5DA142;            /* fern, for the forest */
  --liq-habits-ink: #0E2410;
  --liq-build: #C2502E;             /* brick, for The Build (Watershed's base); its ink reads 5:1 */
  --liq-build-ink: #FFFFFF;
  --build-soft: rgba(194, 80, 46, .10);   /* The Build's cards */
  --liq-games: #5560D6;             /* arcade indigo */
  --liq-games-ink: #FFFFFF;
  --liq-recaps: #7A5BB0;            /* Recaps, the Wire's fourth word */
  --liq-recaps-ink: #FFFFFF;
  /* Real life / Online (2026-10-29): sunset amber for going out, violet
     for reading and posting; the same in both themes, so the inks hold */
  --liq-irl: #F2A93B;
  --liq-irl-ink: #2B1606;
  --liq-online: #7A5BB0;
  --liq-online-ink: #FFFFFF;
  /* The apps. Each has a deep colour, its mast and its
     home-screen icon (cream reads 10:1 or better on every one), and a pop,
     its top tabs' water and the ring on its tile in the switcher. All Day's
     is the navy mast it has always had. */
  --app-all-day: #0E2A47;
  --app-all-day-pop: #F5B04B;
  --app-all-day-pop-ink: #2B1606;
  --app-body: #183D26;              /* forest */
  --app-body-pop: #5DA142;          /* Habits' fern */
  --app-body-pop-ink: #0E2410;
  --app-town: #2A3442;              /* slate, city hall */
  --app-town-pop: #2F6FB2;          /* lake blue */
  --app-town-pop-ink: #FFFFFF;
  /* each app's name in colour on any app's mast, for the name's roll (big
     type, 3:1 or better on every mast, both themes) */
  --app-all-day-lit: var(--app-all-day-pop);
  --app-body-lit: var(--app-body-pop);
  --app-town-lit: #83B5E9;
  --recap: #5B3F94;                 /* a recap's kind title */
  --recap-soft: #EEE8F6;            /* a recap's card */
  --recap-line: rgba(91, 63, 148, .18);
  --every-ink: #FFFFFF;
  --now: #9A5B00;                   /* What Now's disc in the tab bar: the accent, filled */
  --now-ink: #FFFFFF;               /* the icon on the disc */
  --now-soft: rgba(200, 126, 18, .14);
  --good: #16704E;
  --warn: #A33B2A;
  --warn-soft: rgba(163, 59, 42, .12);
  /* the Habits tab's one accent, a warm green, and nothing else uses it.
     Change these three to recolour the tab. */
  --habit: #4F7A28;
  --habit-soft: rgba(79, 122, 40, .14);
  --habit-ink: #FFFFFF;             /* the check on a done tap */

  --scrim: rgba(28, 24, 16, .44);
  --bar: rgba(251, 249, 245, .92);  /* mast and tab bar, blurred */
  --on-ink: #FBF9F5;                /* text on an ink-filled button */
  --toast-link: #F2B44F;            /* shell: Undo on the ink toast */
  --shadow-sheet: 0 -8px 30px rgba(20, 16, 8, .14);
  --shadow-float: 0 8px 30px rgba(20, 16, 8, .16), 0 1px 3px rgba(20, 16, 8, .08);
  --shadow-pill: 0 1px 3px rgba(0, 0, 0, .14);   /* shell: the chosen pill in a segment */

  /* shell: on top of a picture. The same in both themes, because the
     picture is what is underneath, not the paper. */
  --on-media: #FFFFFF;
  --on-media-dim: rgba(255, 255, 255, .4);
  --media-disc: rgba(0, 0, 0, .42);  /* the play disc */
  --media-chip: rgba(0, 0, 0, .6);   /* a duration or rating on a poster */
  --media-fade: rgba(0, 0, 0, .7);   /* the gradient under text on a picture */
  --media-line: rgba(0, 0, 0, .25);
  /* a Rotten Tomatoes score, on a picture or on the paper: the same in both themes */
  --tomato-fresh: #C22F1D;
  --tomato-rotten: #2F6B2A;
  --tomato-ink: #FFFFFF;
  --media-glow: rgba(255, 255, 255, .5);
  --media-sun: rgba(255, 238, 205, .95);
  --media-sheen: rgba(255, 255, 255, .18);
  --lightbox: #000000;
  --mask: #000000;                   /* alpha for a fade mask; never painted */

  /* What Now: the sky strip over the weather card. A picture, so the same in
     both themes; the colours are weather.html's scene (js/sun.js), top and
     bottom of the sky at each time of day. */
  --sky-night-a: #040A1C; --sky-night-b: #16294C;
  --sky-dawn-a: #2B3D68;  --sky-dawn-b: #F0B088;
  --sky-sunrise-a: #4A6EA8; --sky-sunrise-b: #FFC48A;
  --sky-day-a: #2F74C0;   --sky-day-b: #C6E2F2;
  --sky-golden-a: #3F74B4; --sky-golden-b: #FFCE93;
  --sky-sunset-a: #42477F; --sky-sunset-b: #FF9A5E;
  --sky-dusk-a: #161F48;  --sky-dusk-b: #C4707A;
  --sky-gloom: #8D9AA7;             /* an overcast sky laid over the colour */
  --sky-lake: rgba(5, 11, 23, .38);
  --sky-arc: rgba(255, 255, 255, .5);
  --sky-sun: #FFF6D8;
  --sky-sun-low: #FF8A45;           /* the sun near the horizon */
  --sky-moon: #E2ECFF;
  --sky-cloud: rgba(255, 255, 255, .88);
  --sky-rain: rgba(214, 230, 255, .9);
  --sky-snow: #FFFFFF;
  --sky-fog: rgba(236, 241, 245, .72);

  /* Talk: a card's ground and ink by its kind, and the six colours a group can
     take. Same six in light and dark: a group's dot keeps its colour. */
  --talk-ice: #CFE6F5; --talk-ice-ink: #0F2E42;
  --talk-deep: #2A2550; --talk-deep-ink: #F3EFFF;
  --talk-debate: #F7CDB8; --talk-debate-ink: #4A1A0A;
  --talk-head: #F3E7D3; --talk-head-ink: #2B2013;
  --talk-sports: #1E6B4F; --talk-sports-ink: #F0FAF5;
  --talk-local: #F2A93B; --talk-local-ink: #2B1606;
  --talk-g1: #E0533F; --talk-g2: #E8A33D; --talk-g3: #2F9E6E; --talk-g4: #2F7FD1; --talk-g5: #7A5BD6; --talk-g6: #D64F9A;
  --talk-yes: #2F9E6E; --talk-no: #E0533F;

  /* The Calendar: one colour per kind of event, its dots, tiles and month
     heat here and on events.html */
  --cat-music: #7B5EA7; --cat-comedy: #B26A00; --cat-theater: #C94F6D; --cat-art: #4263A8;
  --cat-film: #455A64; --cat-food-drink: #D97A3A; --cat-outdoors: #2E8A5F; --cat-sports: #00695C;
  --cat-family: #C9A227; --cat-market: #558B2F; --cat-community: #5C7A6A; --cat-learning: #3A7CA5;
  --cat-games: #8E6C3A; --cat-wellness: #4A9A8A; --cat-words: #7A5C99; --cat-other: #9AAABB;
  /* text on those tiles: white, except on the kinds too pale to carry it */
  --cat-pale-on: #16191D; --cat-film-on: var(--on-media);

  /* shell: source marks. A hash of the source name picks one of eight, so a
     source keeps its colour everywhere without anyone choosing it. */
  --mark-0: hsl(18 28% 42%);
  --mark-1: hsl(32 28% 42%);
  --mark-2: hsl(150 28% 42%);
  --mark-3: hsl(200 28% 42%);
  --mark-4: hsl(225 28% 42%);
  --mark-5: hsl(265 28% 42%);
  --mark-6: hsl(330 28% 42%);
  --mark-7: hsl(90 28% 42%);

  /* type. In rem, so a reader's own browser text size scales every word
     (16px = 1rem). The few px sizes are layout-bound: the tab bar's labels
     (nine must fit a 360px bar), the initials inside a fixed-size mark, an
     emoji drawn as a picture. */
  --serif: "Lora", Georgia, serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-wordmark: 1.5rem;     /* 24, Lora 500 */
  --fs-display: 1.375rem;    /* 22, Lora 500: pick titles, date numerals, ranked numerals */
  --fs-section: 1.25rem;     /* 20, Lora 500: sheet titles */
  --fs-title: 1.0625rem;     /* 17, Archivo 600: every card title */
  --fs-body: 0.9375rem;      /* 15, Archivo 400: captions, excerpts, the pick's reason */
  --fs-meta: 0.8125rem;      /* 13, Archivo 500/400: source, time, counts */
  --fs-label: 10px;          /* Archivo 500: the date tile weekday */
  /* Archivo 500: the phone bar's nine labels, as big as nine fit: 10px on a
     360px phone, about 10.8 at 390, 11.8 at 430 ("Vintage" is the widest) */
  --fs-nav: clamp(10px, calc(10px + (100vw - 360px) * .026), 12px);
  /* the bar's labels when an app has five to seven tabs, not nine */
  --fs-nav-few: clamp(11px, calc(11px + (100vw - 360px) * .03), 13px);
  --fs-button: 0.875rem;     /* 14, Archivo 600 */
  --fs-caps: 0.75rem;        /* 12, Archivo 700, the only uppercase: eyebrow, new-since line, "Coming in the rebuild" */
  --fs-tag: 0.6875rem;       /* 11, Archivo 600: Local, Btown Brief */
  /* shell: sizes the prototype's layouts use, named once */
  --fs-rd-title: 1.3125rem;  /* 21, Lora: a Reddit tile */
  --fs-rd-hot: 1.875rem;     /* 30, Lora: a hot Reddit tile */
  --fs-rd-meta: 0.875rem;    /* 14, Archivo: the tile's lines */
  --fs-hero: 1.5rem;         /* 24, Lora: a hero, a deal, a stat, the spin button */
  --fs-empty: 1.625rem;      /* 26, Lora: an empty-state tab name */
  --fs-count: 2.25rem;       /* 36, Lora: The Build's town counter */
  --fs-talk: 1.125rem;       /* 18, Lora: a Talk card */
  --fs-sec: 1.3125rem;       /* 21, Lora: a section head inside a tab */
  --fs-date: 1.125rem;       /* 18, Lora: the dateline's date, weather numerals, ranks */
  --fs-lead: 1rem;           /* 16, Archivo: a post with no title, a ranked title, the promise line */
  --fs-sub: 0.875rem;        /* 14, Archivo: titles under posters and shelf cards */
  --fs-small: 0.75rem;       /* 12, Archivo: lines under posters, fine print */
  --fs-mark-xs: 8px;         /* initials inside the 18px source mark (no longer on the Wire) */
  --fs-mark-xl: 17px;        /* initials inside the 48px avatar */
  --fs-emoji: 30px;          /* shell: an emoji standing in for a picture (a game in a 52px list thumb) */
  /* the Wire (2026-10-19, "hard to read if I have trouble seeing"): big
     headlines, a 16px floor for reading text, 14px for the meta line.
     The desktop sizes take over at 1024px and up (app.css). */
  --fs-w-head: 1.5rem;       /* 24, Lora: "Today's top stories", a day's head (28 until 2026-10-20) */
  --fs-w-lead: 1.3125rem;    /* 21, Lora: a top story's headline on a phone (24 until Stephen, 2026-10-20: "fit more in less space") */
  --fs-w-lead-xl: 1.75rem;   /* 28, Lora: the first top story on a wide screen */
  --fs-w-card: 1.1875rem;    /* 19, Lora: a top story in the wide screen's two-up grid */
  --fs-w-title: 1.0625rem;   /* 17, Archivo 600: a story row's headline */
  --fs-w-title-xl: 1.125rem; /* 18, the same on a wide screen */
  --fs-w-dek: 0.9375rem;     /* 15, a top story's one-line reason, a post's words */
  --fs-w-meta: 0.8125rem;    /* 13, Source · 3h */
  --fs-w-seg: 1rem;          /* 16, News · Recaps · Square · Photos */
  --lh-tight: 1.15;
  --lh-title: 1.3;
  --lh-body: 1.45;

  /* space: 4 8 12 16 20 24 32 */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px;
  --gutter: 16px;        /* side gutter on a phone, also the card's horizontal padding */
  --col: 640px;          /* a reading column inside a tab (Habits, the Square's compose) */
  /* wide screens (1024 and up): a centred grid, the nine tabs on the left,
     the tab in the middle, a context rail on the right at 1280 and up */
  --nav-w: 220px;
  --main-w: 720px;
  --aside-w: 300px;
  --grid-gap: 32px;
  --w-thumb: 92px;       /* a story row's picture on a phone */
  --w-thumb-xl: 120px;   /* and on a wide screen */

  /* radius */
  --r-media: 12px;       /* posters, image posts, pick art */
  --r-thumb: 10px;       /* the 72px headline thumbnail */
  --r-tile: 8px;         /* date tile */
  --r-sheet: 20px;
  --r-pill: 999px;
  --r-box: 14px;         /* shell: the mini player, archetype tiles */
  --r-sm: 6px;           /* shell: source mark, tags, counts on a picture */
  --r-xs: 4px;           /* shell: focus ring, bars */
  --r-hair: 2px;         /* shell: progress lines, the grabber */
  --r-round: 50%;        /* avatars, discs, dots */

  /* chrome */
  --mast-h: 52px;
  --brand-h: 36px;       /* the Btown Brief logo in the mast and the rail, as tall as the Saved pill */
  --subnav-h: 44px;
  --tab-h: 64px;
  --hit: 44px;           /* minimum tap target */
  --icon: 22px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --feed-good-line: var(--feed-good); --feed-dogs-line: var(--feed-dogs); --feed-home-line: var(--feed-home); --feed-plants-line: var(--feed-plants);
    --so-x: #3A4048;
    --cat-family: #E0B93F; --cat-film: #9BB0BC; --cat-film-on: var(--cat-pale-on);
    --talk-ice: #23495F; --talk-ice-ink: #E4F2FB;
    --talk-deep: #37306B; --talk-deep-ink: #F3EFFF;
    --talk-debate: #8A3D22; --talk-debate-ink: #FFE9DF;
    --talk-head: #3A3429; --talk-head-ink: #F5ECD9;
    --talk-sports: #1B5A43; --talk-sports-ink: #E6F7EF;
    --talk-local: #8F5710; --talk-local-ink: #FFF3E0;
    --rd-accent: #F08A63;
    color-scheme: dark;
    --lake: #16334F;
    --dock-glass: rgba(20, 26, 32, .5);
    --dock-sheen: rgba(255, 255, 255, .06);
    --dock-edge: rgba(255, 255, 255, .12);
    --dock-shadow: 0 12px 32px rgba(0, 0, 0, .36), 0 2px 6px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .16);
    --ember: #F39872;
    --row-tint: rgba(185, 205, 224, .035);
    --lake-blue: #83B5E9;
    --park: #77C99F;
    --lake-soft: #1A2B3A;
    --park-soft: #1B2D25;
    --sunset-soft: #30271A;
    --recap: #C9B5F0;
    --recap-soft: #1D1A33;
    --recap-line: rgba(201, 181, 240, .16);
    --tag-local-bg: #193F30;
    --tag-local-ink: #A4E4BD;
    --tag-national-bg: #1B3653;
    --tag-national-ink: #B8D6F8;
    --paper: #0C1520;
    --paper-2: #142230;
    --raised: #1B2A39;
    --ink: #F2F0EA;
    --ink-2: rgba(242, 240, 234, .74);
    --ink-3: #A2ADB8;
    --line: rgba(255, 255, 255, .13);
    --line-soft: rgba(255, 255, 255, .07);
    --accent: #E8A33D;
    --accent-soft: rgba(232, 163, 61, .18);
    --local: #6FD79E;
    --local-soft: rgba(111, 215, 158, .12);
    --local-ink: #06251A;
    --every: #F09B8A;
    --every-ink: #2C120C;
    --national: #8FB8F0;
    --national-ink: #0B1E38;
    --now: #E8A33D;
    --now-ink: #0D0E10;
    --now-soft: rgba(232, 163, 61, .18);
    --good: #6FD79E;
    --warn: #F08A72;
    --warn-soft: rgba(240, 138, 114, .16);
    --habit: #A3CF72;
    --habit-soft: rgba(163, 207, 114, .16);
    --habit-ink: #142006;
    --build-soft: rgba(240, 138, 104, .13);
    --scrim: rgba(0, 0, 0, .66);
    --bar: rgba(13, 14, 16, .9);
    --on-ink: #0D0E10;
    --toast-link: #9A5B00;
    --shadow-sheet: 0 -8px 30px rgba(0, 0, 0, .5);
    --shadow-float: 0 12px 40px rgba(0, 0, 0, .6), 0 2px 8px rgba(0, 0, 0, .4);
    --shadow-pill: 0 1px 3px rgba(0, 0, 0, .5);
  }
}

:root[data-theme="dark"] {
  --feed-good-line: var(--feed-good); --feed-dogs-line: var(--feed-dogs); --feed-home-line: var(--feed-home); --feed-plants-line: var(--feed-plants);
  --so-x: #3A4048;
  --cat-family: #E0B93F; --cat-film: #9BB0BC; --cat-film-on: var(--cat-pale-on);
  --talk-ice: #23495F; --talk-ice-ink: #E4F2FB;
  --talk-deep: #37306B; --talk-deep-ink: #F3EFFF;
  --talk-debate: #8A3D22; --talk-debate-ink: #FFE9DF;
  --talk-head: #3A3429; --talk-head-ink: #F5ECD9;
  --talk-sports: #1B5A43; --talk-sports-ink: #E6F7EF;
  --talk-local: #8F5710; --talk-local-ink: #FFF3E0;
  --rd-accent: #F08A63;
  color-scheme: dark;
  --lake: #16334F;
  --dock-glass: rgba(20, 26, 32, .5);
  --dock-sheen: rgba(255, 255, 255, .06);
  --dock-edge: rgba(255, 255, 255, .12);
  --dock-shadow: 0 12px 32px rgba(0, 0, 0, .36), 0 2px 6px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .16);
  --ember: #F39872;
  --row-tint: rgba(185, 205, 224, .035);
  --lake-blue: #83B5E9;
  --park: #77C99F;
  --lake-soft: #1A2B3A;
  --park-soft: #1B2D25;
  --sunset-soft: #30271A;
  --recap: #C9B5F0;
  --recap-soft: #1D1A33;
  --recap-line: rgba(201, 181, 240, .16);
  --tag-local-bg: #193F30;
  --tag-local-ink: #A4E4BD;
  --tag-national-bg: #1B3653;
  --tag-national-ink: #B8D6F8;
  --paper: #0C1520;
  --paper-2: #142230;
  --raised: #1B2A39;
  --ink: #F2F0EA;
  --ink-2: rgba(242, 240, 234, .74);
  --ink-3: #A2ADB8;
  --line: rgba(255, 255, 255, .13);
  --line-soft: rgba(255, 255, 255, .07);
  --accent: #E8A33D;
  --accent-soft: rgba(232, 163, 61, .18);
  --local: #6FD79E;
  --local-soft: rgba(111, 215, 158, .12);
  --local-ink: #06251A;
  --every: #F09B8A;
  --every-ink: #2C120C;
  --national: #8FB8F0;
  --national-ink: #0B1E38;
  --now: #E8A33D;
  --now-ink: #0D0E10;
  --now-soft: rgba(232, 163, 61, .18);
  --good: #6FD79E;
  --warn: #F08A72;
  --warn-soft: rgba(240, 138, 114, .16);
  --habit: #A3CF72;
  --habit-soft: rgba(163, 207, 114, .16);
  --habit-ink: #142006;
  --build-soft: rgba(240, 138, 104, .13);
  --scrim: rgba(0, 0, 0, .66);
  --bar: rgba(13, 14, 16, .9);
  --on-ink: #0D0E10;
  --toast-link: #9A5B00;
  --shadow-sheet: 0 -8px 30px rgba(0, 0, 0, .5);
  --shadow-float: 0 12px 40px rgba(0, 0, 0, .6), 0 2px 8px rgba(0, 0, 0, .4);
  --shadow-pill: 0 1px 3px rgba(0, 0, 0, .5);
}

/* Each app's mast is its own deep colour (2026-10-29), so they read as
   separate apps side by side on a home screen and in the switcher; the iPhone
   status bar follows it (store.js paintStatusBar reads --lake). All Day has
   no block here: its mast is the navy above. Dark mode lifts each a step,
   as the navy is lifted. These come last so they win over the dark blocks. */
:root[data-app="body"] { --lake: var(--app-body); --lake-hover: #245134; }
:root[data-app="town"] { --lake: var(--app-town); --lake-hover: #3A4657; }
@media (prefers-color-scheme: dark) {
  :root[data-app="body"]:not([data-theme="light"]) { --lake: #214A30; }
  :root[data-app="town"]:not([data-theme="light"]) { --lake: #343F4E; }
}
:root[data-app="body"][data-theme="dark"] { --lake: #214A30; }
:root[data-app="town"][data-theme="dark"] { --lake: #343F4E; }

/* Town · Now: one colour per kind of tile. Each tile is its own surface, so
   the same values read in light and dark. School-bus yellow for signups,
   safety amber for road work, the brick of the old mills for permits. */
:root {
  --tf-sold: #14507F;
  --tf-going: #8E3A1F;
  --tf-week: #8E3A1F;
  --tf-city: #125039;
  --tf-road: #F2B21B;
  --tf-road-ink: #241703;
  --tf-food: #C43D27;
  --tf-jobs: #4B2A86;
  --tf-signup: #F6C915;
  --tf-signup-ink: #241C02;
  --tf-weather: #37566F;
  --tf-reddit: #B8400F;
  --tf-sold-ink: #fff;
  --tf-food-ink: #fff;
  --tf-city-ink: #fff;
  --tf-going-ink: #fff;
  --tf-jobs-ink: #fff;
  --mi-sky: #12324A;                /* Mind: the night stage, under the veil; both themes */
  --mi-sky-low: #0B1A2E;
  --mi-star: rgba(255, 255, 255, .7);
  --mi-petal: rgba(255, 255, 255, .2);
  --mi-edge: rgba(255, 255, 255, .28);
  --mi-veil-1: rgba(6, 22, 40, .26);
  --mi-veil-2: rgba(6, 22, 40, .06);
  --mi-veil-3: rgba(6, 22, 40, .46);
  --mi-word-shade: rgba(6, 22, 40, .62);   /* behind In and Out, on the pale circle */
  --mi-tile: #1B4965;               /* the feed's two tiles, the lake and the far shore */
  --mi-tile-2: #2F4B4A;
  --tf-glass: rgba(255, 255, 255, .15);
  --tf-glass-2: rgba(255, 255, 255, .24);
  --tf-white: #fff;
  --tf-black: #111;
  --tf-ok: #5BE3A0;
  --tf-hit: #7CF0B4;
  --tf-miss: #FFC4B8;
  --tf-veil-1: rgba(6, 22, 40, .08);
  --tf-veil-2: rgba(6, 22, 40, .42);
  --tf-veil-3: rgba(6, 22, 40, .88);
  --tf-shade-1: rgba(0, 0, 0, .34);
  --tf-shade-2: rgba(0, 0, 0, 0);
  --tf-shade-3: rgba(0, 0, 0, .06);
  --tf-shade-4: rgba(0, 0, 0, .78);
  --tf-text-shade: rgba(0, 0, 0, .5);
  --fs-tf-huge: 3.75rem;
  --fs-tf-day: 2.625rem;
  --fs-tf-price: 1.75rem;
  --fs-tf-big: 1.6875rem;
  --fs-tf-title: 1.5625rem;
  --fs-tf-city: 1.4375rem;
  --r-tf: 22px;
  --r-mi: 28px;
  --fs-mi-name: 1.75rem;     /* 28, Lora: Lake Breath on the stage */
  --fs-mi-word: 2.5rem;      /* 40, Lora: In, Out, the day's phrase */
  --fs-mi-start: 1.125rem;   /* 18, Archivo 600: Start */
}
