/* Kotona: theme, version 2
   Version 2 opens on a plain white field with black ink. Kotona teal holds the
   bar and the blocks, and gold is the signal for the one thing that is next
   or needs her.
   The house picks a color or a theme from the top bar (palette.js). Auto, the
   default, is Plain by day and Night when the device is dark. Colors come
   first below, then the eight themes.

   One type family, Mona Sans (SIL Open Font License 1.1), in three widths:
   wide for words that lead, normal for reading, narrow for figures.
   Figures that must line up in columns use Overpass Mono (SIL OFL 1.1).
   The same variable file is declared three times so each width has its own
   family name and pages never have to set font-stretch by hand. */

@font-face {
  font-family: "Mona Sans";
  src: url("fonts/mona-sans-latin-wdth-wght.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mona Sans Wide";
  src: url("fonts/mona-sans-latin-wdth-wght.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mona Sans Narrow";
  src: url("fonts/mona-sans-latin-wdth-wght.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Overpass Mono";
  src: url("fonts/overpass-mono-latin-wght.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Contract variables. The default is Plain: white field, black ink. */
  --bg: #FFFFFF;            /* the page: a true neutral white */
  --surface: #FFFFFF;       /* panels that hold reading and data */
  --surface-2: #F0F1F3;     /* inset rows and fields, a cool gray */
  --ink: #1D1D1F;           /* a cool black: 18.1:1 on white */
  --ink-2: #454A55;         /* secondary text: 8.9:1 on white, 6.4:1 on the yellow */
  --line: rgb(20 22 27 / 0.18);
  --accent: #14343C;        /* Kotona teal: links and the focus ring. */
  --accent-ink: #FFFFFF;
  --accent-2: #D63A12;      /* vermilion: deadlines */
  --good: #00804A;
  --warn: #B45309;
  --bad: #C2182B;
  --font-display: "Mona Sans Wide", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Overpass Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius-s: 2px;
  --radius-m: 4px;
  --radius-l: 6px;
  --display-weight: 900;
  --display-tracking: -0.025em;

  /* Kotona's own additions */
  --font-figures: "Mona Sans Narrow", "Arial Narrow", Arial, sans-serif;
  --rule: 3px;              /* the heavy rule that opens a block */

  /* Brand constants. The logo and the public pages use these. */
  --navy: #14343C;          /* Kotona teal. The old name stays so rules that use it keep working. */
  --yellow: #DABA72;        /* Kotona gold. The old name stays; it is the dot in the logo. */
  --blue: #14343C;          /* kept for old rules; Kotona has no blue */
  --white: #FFFFFF;
  --on-navy-2: #A9BFC4;

  /* Roles. Screens are built from these and never from the brand constants. */
  --accent-2-ink: #FFFFFF;

  /* The signal: the one thing that is next, and anything that needs her. */
  --sig: #DABA72;           /* plates and edges: the count, the day plate, the next row's edge */
  --sig-ink: #14343C;
  --next: #14343C;          /* the Next slab: teal, with the time in gold */
  --next-ink: #FFFFFF;
  --next-ink-2: #A9BFC4;    /* second line on the slab, 7:1 */
  --next-fig: #DABA72;      /* the hero time, 6.9:1 on the teal */
  --next-edge: #DABA72;     /* the slab's left edge */

  /* The bar: the header and the bottom bar on a phone, the sidebar from tablet up. */
  --rail: #14343C;
  --rail-ink: #FFFFFF;
  --rail-ink-2: #A9BFC4;
  --rail-fig: #DABA72;      /* the dot in the logo */
  --rail-line: rgb(255 255 255 / 0.2);
  --rail-field: #24474F;    /* the add field on the bar */
  --rail-on: #FFFFFF;       /* the tab you are on */
  --rail-on-ink: #14343C;

  /* Dark blocks, for the screens that want one (the kitchen screen, Money). */
  --panel: #14343C;
  --panel-ink: #FFFFFF;
  --panel-ink-2: #A9BFC4;
  --panel-fig: #DABA72;
  --panel-line: rgb(255 255 255 / 0.22);
  --block: #14343C;         /* the second block color: Kotona teal */
  --block-ink: #FFFFFF;
  --block-ink-2: #A9BFC4;
  --block-fig: #DABA72;
  --block-line: rgb(255 255 255 / 0.3);
  --hl: #DABA72;            /* version 1's highlighted row. Prefer --sig as an edge or a plate. */
  --hl-ink: #14343C;

  --flag: #14343C;          /* "not the usual": a teal sticker */
  --flag-ink: #FFFFFF;
  --mask: rgb(20 22 27 / 0.16);  /* the bar that covers a hidden total */

  /* One color per person, for the ring around a headshot and the lettered bullet.
     The letter (--p-ink) reaches 4.5:1 on every one. Helpers get ink, not a color. */
  --p-ink: #FFFFFF;
  --p-dana: #C2187A;
  --p-marcus: #00804A;
  --p-theo: #D63A12;
  --p-imogen: #6A3FD0;
  --p-wren: #007C99;
  --p-june: #1F5FBF;
  --p-biscuit: #5A6485;
}

/* House palettes. Plain is the default and needs no attribute.
   palette.js sets data-palette on <html>. The list is in palettes.json. */

/* Gray: Plain with a cool gray field behind white panels. Black ink, not navy. */
:root[data-palette="gray"] {
  --bg: #E4E7EC;
  --surface-2: #EEF0F3;
}

/* Yellow: school-bus yellow and black, the look from before Kotona. The field is the yellow, so the Next slab turns black. */
:root[data-palette="yellow"] {
  --bg: #FFD23F;
  --accent: #1D1D1F;
  --sig: #FFD23F;
  --sig-ink: #1D1D1F;
  --next: #1D1D1F;
  --next-ink: #FFFFFF;
  --next-ink-2: #B5B9C4;
  --next-fig: #FFD23F;
  --next-edge: #1D1D1F;
  --rail: #1D1D1F;
  --rail-ink-2: #B5B9C4;
  --rail-fig: #FFD23F;
  --rail-field: #2C2F38;
  --rail-on-ink: #1D1D1F;
  --panel: #1D1D1F;
  --panel-ink-2: #B5B9C4;
  --panel-fig: #FFD23F;
  --block: #1D1D1F;
  --block-ink-2: #B5B9C4;
  --block-fig: #FFD23F;
  --hl: #FFD23F;
  --hl-ink: #1D1D1F;
  --flag: #1D1D1F;
}

/* Blue: cornflower field, navy ink and blocks. */
:root[data-palette="blue"] {
  --accent: #1B3DF5;        /* the Blue look keeps the line blue for links */
  --bg: #6E9BFF;
  --surface-2: #EBF0FB;
  --ink: #0B1B4D;
  --ink-2: #27325F;
  --line: rgb(11 27 77 / 0.2);
  --sig: #6E9BFF;
  --sig-ink: #0B1B4D;
  --next: #0B1B4D;
  --next-ink: #FFFFFF;
  --next-ink-2: #A9B4D6;
  --next-fig: #6E9BFF;
  --next-edge: #0B1B4D;
  --rail: #0B1B4D;
  --rail-ink-2: #A9B4D6;
  --rail-fig: #6E9BFF;
  --rail-field: #1D2D63;
  --rail-on-ink: #0B1B4D;
  --panel: #0B1B4D;
  --panel-ink-2: #A9B4D6;
  --panel-fig: #6E9BFF;
  --hl: #6E9BFF;
  --hl-ink: #0B1B4D;
  --block-fig: #FFFFFF;
  --flag: #0B1B4D;
  --mask: rgb(11 27 77 / 0.16);
  --p-june: #7A5A00;
  --block: #1D1D1F;
  --block-ink-2: #B5B9C4;
}

/* Green: playing-field green and white. No gold in it. */
:root[data-palette="green"] {
  --bg: #21C16B;
  --surface-2: #E9F5EE;
  --ink: #062A1C;
  --ink-2: #1C4030;
  --line: rgb(6 42 28 / 0.2);
  --accent: #0B6B43;
  --sig: #21C16B;
  --sig-ink: #062A1C;
  --next: #073B28;
  --next-ink: #FFFFFF;
  --next-ink-2: #A9CDBB;
  --next-fig: #21C16B;
  --next-edge: #073B28;
  --rail: #073B28;
  --rail-ink-2: #A9CDBB;
  --rail-fig: #21C16B;
  --rail-field: #124D37;
  --rail-on-ink: #062A1C;
  --panel: #073B28;
  --panel-ink-2: #A9CDBB;
  --panel-fig: #21C16B;
  --hl: #21C16B;
  --hl-ink: #062A1C;
  --block: #0B6B43;
  --block-ink-2: #CFE9DC;
  --block-fig: #FFFFFF;
  --flag: #062A1C;
  --mask: rgb(6 42 28 / 0.16);
  --p-marcus: #1B3DF5;
  --p-imogen: #9B2FC9;
  --p-june: #7A5A00;
}

/* Pink: hot pink field, plum-black blocks. */
:root[data-palette="pink"] {
  --bg: #FF6FA3;
  --surface-2: #F1EFF6;
  --ink: #2A0A2B;
  --ink-2: #4A1F47;
  --line: rgb(42 10 43 / 0.2);
  --accent: #B0126A;
  --accent-2: #C4122F;
  --bad: #C4122F;
  --sig: #FF6FA3;
  --sig-ink: #2A0A2B;
  --next: #2A0A2B;
  --next-ink: #FFFFFF;
  --next-ink-2: #D9B8D2;
  --next-fig: #FF6FA3;
  --next-edge: #2A0A2B;
  --rail: #2A0A2B;
  --rail-ink-2: #D9B8D2;
  --rail-fig: #FF6FA3;
  --rail-field: #45204A;
  --rail-on-ink: #2A0A2B;
  --panel: #2A0A2B;
  --panel-ink-2: #D9B8D2;
  --panel-fig: #FF6FA3;
  --hl: #FF6FA3;
  --hl-ink: #2A0A2B;
  --block: #B0126A;
  --block-ink-2: #F9D3E6;
  --block-fig: #FFFFFF;
  --flag: #2A0A2B;
  --mask: rgb(42 10 43 / 0.16);
  --p-dana: #1B3DF5;
  --p-imogen: #8A2BD6;
  --p-june: #7A5A00;
}

/* Night: what a device in dark mode gets. Blue-black field. The yellow stays
   the signal but as a figure and an edge, never a lit slab in a dark room. */
:root[data-palette="night"] {
  color-scheme: dark;
  --bg: #070B1C;
  --surface: #10173A;
  --surface-2: #1C2652;
  --ink: #F2F4FB;
  --ink-2: #AEB8D9;
  --line: rgb(242 244 251 / 0.2);
  --accent: #9DB1FF;
  --accent-ink: #070B1C;
  --accent-2: #FF7A4D;
  --accent-2-ink: #070B1C;
  --good: #3DDC84;
  --warn: #FFB020;
  --bad: #FF6B6B;
  --sig: #FFD23F;
  --sig-ink: #070B1C;
  --next: #1C2652;
  --next-ink: #F2F4FB;
  --next-ink-2: #AEB8D9;
  --next-fig: #FFD23F;
  --next-edge: #FFD23F;
  --rail: #10173A;
  --rail-ink: #F2F4FB;
  --rail-ink-2: #AEB8D9;
  --rail-fig: #FFD23F;
  --rail-line: rgb(242 244 251 / 0.2);
  --rail-field: #1C2652;
  --rail-on: #F2F4FB;
  --rail-on-ink: #070B1C;
  --panel: #1B3DF5;
  --panel-ink-2: #D5DCFF;
  --panel-fig: #FFFFFF;
  --block: #9DB1FF;
  --block-ink: #070B1C;
  --block-ink-2: #1C2652;
  --block-fig: #070B1C;
  --block-line: rgb(7 11 28 / 0.3);
  --hl: #9DB1FF;
  --hl-ink: #070B1C;
  --flag: #F2F4FB;
  --flag-ink: #070B1C;
  --mask: rgb(242 244 251 / 0.22);
  --p-ink: #070B1C;
  --p-dana: #FF7AB8;
  --p-marcus: #3DDC84;
  --p-theo: #FF7A4D;
  --p-imogen: #A98BFF;
  --p-wren: #3CC8E6;
  --p-june: #7FA8FF;
  --p-biscuit: #B4BDD6;
}

/* ---------- Themes ----------
   A theme is a full set of the same roles a color has. It may also carry one flat
   motif: a drawn strip (--motif, an inline svg) on one edge of the Next slab and of
   the kitchen screen's Next block, and nowhere else. No theme has a cream, tan or
   paper field: fields are white, cool gray or dark. Where the signal is red or
   orange the deadline chip (--accent-2) turns yellow and Theo's ring turns amber,
   so neither hides in the signal. --next-key is the keyline around a person's
   marker on the slab. */

/* Coastal: deep navy, a strong sea blue for what is next, a waterline along the slab. */
:root[data-palette="coastal"] {
  --surface-2: #E9F0F5;
  --ink: #0B2239;
  --ink-2: #364B60;
  --line: rgb(11 34 57 / 0.18);
  --accent: #0A5CB8;
  --flag: #0B2239;
  --mask: rgb(11 34 57 / 0.16);
  --sig: #1CB5CB;
  --sig-ink: #0B2239;
  --next: #1CB5CB;
  --next-ink: #0B2239;
  --next-ink-2: #0C3148;
  --next-fig: #0B2239;
  --next-edge: #1CB5CB;
  --next-key: #FFFFFF;
  --panel: #1CB5CB;
  --panel-ink: #0B2239;
  --panel-ink-2: #0C3148;
  --panel-fig: #0B2239;
  --hl: #1CB5CB;
  --hl-ink: #0B2239;
  --rail: #0B2239;
  --rail-ink-2: #A9BCCB;
  --rail-fig: #1CB5CB;
  --rail-field: #1D3B57;
  --rail-on-ink: #0B2239;
  --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 24' width='48' height='24'%3E%3Cpath fill='%230B2239' d='M0 24V7Q12 23 24 7Q36 23 48 7V24Z'/%3E%3C/svg%3E");
  --motif-on: 1;
  --motif-at-t: 0;
  --motif-at-b: 1;
  --motif-h: 10px;
  --motif-size: auto 100%;
  --motif-rep: repeat-x;
  --motif-t: auto;
  --motif-b: 0;
  --motif-pad-t: 0px;
  --motif-pad-b: 4px;
  --block: #1D1D1F;
  --block-ink-2: #B5B9C4;
  --block-fig: #FFD23F;
}

/* Mountain: slate, pine and snow. A cool snow field, white panels, a ridgeline along the slab. */
:root[data-palette="mountain"] {
  --bg: #EDF1F5;
  --surface-2: #E8EDF2;
  --ink: #1A232B;
  --ink-2: #43505C;
  --line: rgb(26 35 43 / 0.18);
  --accent: #1F5E8C;
  --flag: #1A232B;
  --mask: rgb(26 35 43 / 0.16);
  --sig: #1B6B4C;
  --sig-ink: #FFFFFF;
  --next: #1B6B4C;
  --next-ink: #FFFFFF;
  --next-ink-2: #CFE6DB;
  --next-fig: #FFFFFF;
  --next-edge: #1B6B4C;
  --next-key: #FFFFFF;
  --panel: #1B6B4C;
  --panel-ink: #FFFFFF;
  --panel-ink-2: #CFE6DB;
  --panel-fig: #FFFFFF;
  --hl: #1B6B4C;
  --hl-ink: #FFFFFF;
  --rail: #2A3642;
  --rail-ink-2: #B6C2CD;
  --rail-fig: #FFFFFF;
  --rail-field: #3B4957;
  --rail-on-ink: #2A3642;
  --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 24' width='400' height='24' preserveAspectRatio='none'%3E%3Cpath fill='%23FFFFFF' d='M0 24L0 18L22 10L40 16L66 3L88 15L104 9L122 17L150 6L170 14L186 11L208 19L236 2L262 16L280 8L300 15L322 5L344 17L362 11L380 16L400 9V24Z'/%3E%3C/svg%3E");
  --motif-on: 1;
  --motif-at-t: 0;
  --motif-at-b: 1;
  --motif-h: 14px;
  --motif-size: 100% 100%;
  --motif-rep: no-repeat;
  --motif-t: auto;
  --motif-b: 0;
  --motif-pad-t: 0px;
  --motif-pad-b: 8px;
  --block: #1D1D1F;
  --block-ink-2: #B5B9C4;
  --block-fig: #FFD23F;
}

/* Urban: asphalt and concrete, with the line blue for what is next and a skyline along the slab. */
:root[data-palette="urban"] {
  --bg: #E2E4E8;
  --surface-2: #ECEEF1;
  --ink: #16181D;
  --ink-2: #454A55;
  --flag: #16181D;
  --sig: #1B3DF5;
  --sig-ink: #FFFFFF;
  --next: #1B3DF5;
  --next-ink: #FFFFFF;
  --next-ink-2: #D5DCFF;
  --next-fig: #FFFFFF;
  --next-edge: #1B3DF5;
  --next-key: #FFFFFF;
  --panel: #1B3DF5;
  --panel-ink: #FFFFFF;
  --panel-ink-2: #D5DCFF;
  --panel-fig: #FFFFFF;
  --hl: #1B3DF5;
  --hl-ink: #FFFFFF;
  --rail: #1D2026;
  --rail-ink-2: #B5B9C4;
  --rail-fig: #FFFFFF;
  --rail-field: #31353E;
  --rail-on-ink: #1D2026;
  --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 24' width='400' height='24' preserveAspectRatio='none'%3E%3Cpath fill='%2316181D' d='M0 24V14H18V8H34V16H52V4H64V12H84V18H100V9H118V13H136V2H148V10H170V17H190V7H206V14H226V11H246V19H262V5H278V12H300V16H318V8H336V3H350V13H372V18H388V10H400V24Z'/%3E%3C/svg%3E");
  --motif-on: 1;
  --motif-at-t: 0;
  --motif-at-b: 1;
  --motif-h: 14px;
  --motif-size: 100% 100%;
  --motif-rep: no-repeat;
  --motif-t: auto;
  --motif-b: 0;
  --motif-pad-t: 0px;
  --motif-pad-b: 8px;
  --accent: #1D1D1F;
  --block: #1D1D1F;
  --block-ink-2: #B5B9C4;
  --block-fig: #FFD23F;
}

/* Farm: barn red and field green over white, with plowed rows along the slab. */
:root[data-palette="farm"] {
  --accent: #2C6A10;
  --flag: #1D1D1F;
  --sig: #74B816;
  --sig-ink: #14200A;
  --next: #74B816;
  --next-ink: #14200A;
  --next-ink-2: #22380B;
  --next-fig: #14200A;
  --next-edge: #74B816;
  --next-key: #FFFFFF;
  --panel: #74B816;
  --panel-ink: #14200A;
  --panel-ink-2: #22380B;
  --panel-fig: #14200A;
  --hl: #74B816;
  --hl-ink: #14200A;
  --rail: #9C1A1D;
  --rail-ink-2: #F5CCC9;
  --rail-fig: #FFFFFF;
  --rail-field: #7C1215;
  --rail-on-ink: #7C1215;
  --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 24' width='400' height='24' preserveAspectRatio='none'%3E%3Cpath fill='%234F8A08' d='M70.0 0H80.0L-40 24H-60ZM90.0 0H100.0L0 24H-20ZM110.0 0H120.0L40 24H20ZM130.0 0H140.0L80 24H60ZM150.0 0H160.0L120 24H100ZM170.0 0H180.0L160 24H140ZM190.0 0H200.0L200 24H180ZM210.0 0H220.0L240 24H220ZM230.0 0H240.0L280 24H260ZM250.0 0H260.0L320 24H300ZM270.0 0H280.0L360 24H340ZM290.0 0H300.0L400 24H380ZM310.0 0H320.0L440 24H420Z'/%3E%3C/svg%3E");
  --motif-on: 1;
  --motif-at-t: 0;
  --motif-at-b: 1;
  --motif-h: 12px;
  --motif-size: 100% 100%;
  --motif-rep: no-repeat;
  --motif-t: auto;
  --motif-b: 0;
  --motif-pad-t: 0px;
  --motif-pad-b: 6px;
  --block: #1D1D1F;
  --block-ink-2: #B5B9C4;
  --block-fig: #FFD23F;
}

/* Christmas: pine and a clear red over white, a string of lights under the bar. Warnings turn yellow so they do not hide in the red. */
:root[data-palette="christmas"] {
  --accent: #0E5C3F;
  --accent-2: #FFD23F;
  --accent-2-ink: #1D1D1F;
  --sig: #C8102E;
  --sig-ink: #FFFFFF;
  --next: #C8102E;
  --next-ink: #FFFFFF;
  --next-ink-2: #FFDDE2;
  --next-fig: #FFFFFF;
  --next-edge: #C8102E;
  --next-key: #FFFFFF;
  --panel: #C8102E;
  --panel-ink: #FFFFFF;
  --panel-ink-2: #FFDDE2;
  --panel-fig: #FFFFFF;
  --hl: #C8102E;
  --hl-ink: #FFFFFF;
  --rail: #0E3B2C;
  --rail-ink-2: #A9CDBE;
  --rail-fig: #FFFFFF;
  --rail-field: #1B5240;
  --rail-on-ink: #0E3B2C;
  --p-theo: #8A5A00;
  --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 24' width='48' height='24'%3E%3Cpath fill='none' stroke='%230A2A1F' stroke-width='2' d='M0 3Q12 11 24 3Q36 11 48 3'/%3E%3Crect x='10' y='6' width='4' height='4' fill='%230A2A1F'/%3E%3Crect x='34' y='6' width='4' height='4' fill='%230A2A1F'/%3E%3Cellipse cx='12' cy='15' rx='4.5' ry='6.5' fill='%23FFD800'/%3E%3Cellipse cx='36' cy='15' rx='4.5' ry='6.5' fill='%23FFFFFF'/%3E%3C/svg%3E");
  --motif-on: 1;
  --motif-at-t: 1;
  --motif-at-b: 0;
  --motif-h: 14px;
  --motif-size: auto 100%;
  --motif-rep: repeat-x;
  --motif-t: 0;
  --motif-b: auto;
  --motif-pad-t: 10px;
  --motif-pad-b: 0px;
  --block: #1D1D1F;
  --block-ink-2: #B5B9C4;
  --block-fig: #FFD23F;
  --flag: #1D1D1F;
}

/* Thanksgiving: cranberry and pumpkin over white. No motif. Warnings turn yellow. */
:root[data-palette="thanksgiving"] {
  --accent: #9B1239;
  --accent-2: #FFD23F;
  --accent-2-ink: #1D1D1F;
  --p-theo: #8A5A00;
  --sig: #F26A1B;
  --sig-ink: #17100B;
  --next: #F26A1B;
  --next-ink: #17100B;
  --next-ink-2: #3A1806;
  --next-fig: #17100B;
  --next-edge: #F26A1B;
  --next-key: #FFFFFF;
  --panel: #F26A1B;
  --panel-ink: #17100B;
  --panel-ink-2: #3A1806;
  --panel-fig: #17100B;
  --hl: #F26A1B;
  --hl-ink: #17100B;
  --rail: #74102C;
  --rail-ink-2: #F0C6D0;
  --rail-fig: #F47B20;
  --rail-field: #5A0A20;
  --rail-on-ink: #5A0A20;
  --block: #1D1D1F;
  --block-ink-2: #B5B9C4;
  --block-fig: #FFD23F;
  --flag: #1D1D1F;
}

/* Halloween: a dark one. Black violet field, orange for what is next. No motif. */
:root[data-palette="halloween"] {
  color-scheme: dark;
  --bg: #0D0A12;
  --surface: #191320;
  --surface-2: #271D34;
  --ink: #F3EFF7;
  --ink-2: #BBB0CC;
  --line: rgb(243 239 247 / 0.2);
  --accent: #C3A6FF;
  --accent-ink: #0D0A12;
  --accent-2: #FFD23F;
  --accent-2-ink: #0D0A12;
  --good: #3DDC84;
  --warn: #FFB020;
  --bad: #FF6B6B;
  --sig: #FF7A1A;
  --sig-ink: #0D0A12;
  --next: #271D34;
  --next-ink: #F3EFF7;
  --next-ink-2: #BBB0CC;
  --next-fig: #FF7A1A;
  --next-edge: #FF7A1A;
  --next-key: #271D34;
  --panel: #271D34;
  --panel-ink: #F3EFF7;
  --panel-ink-2: #BBB0CC;
  --panel-fig: #FF7A1A;
  --panel-line: rgb(243 239 247 / 0.2);
  --rail: #191320;
  --rail-ink: #F3EFF7;
  --rail-ink-2: #BBB0CC;
  --rail-fig: #FF7A1A;
  --rail-line: rgb(243 239 247 / 0.2);
  --rail-field: #271D34;
  --rail-on: #F3EFF7;
  --rail-on-ink: #0D0A12;
  --hl: #FF7A1A;
  --hl-ink: #0D0A12;
  --flag: #F3EFF7;
  --flag-ink: #0D0A12;
  --mask: rgb(243 239 247 / 0.22);
  --p-ink: #0D0A12;
  --p-dana: #FF7AB8;
  --p-marcus: #3DDC84;
  --p-theo: #FF7A4D;
  --p-imogen: #A98BFF;
  --p-wren: #3CC8E6;
  --p-june: #7FA8FF;
  --p-biscuit: #B4BDD6;
  --block: #1D1D1F;
  --block-ink-2: #B5B9C4;
  --block-fig: #FFD23F;
}

/* Fourth of July: navy, red and white, a band of stars along the slab. Warnings turn yellow. */
:root[data-palette="july4"] {
  --surface-2: #ECEFF6;
  --ink: #0B1B3F;
  --ink-2: #38456B;
  --line: rgb(11 27 63 / 0.18);
  --accent: #0A3FB5;
  --flag: #0B1B3F;
  --mask: rgb(11 27 63 / 0.16);
  --accent-2: #FFD23F;
  --accent-2-ink: #1D1D1F;
  --p-theo: #8A5A00;
  --sig: #CF1F2E;
  --sig-ink: #FFFFFF;
  --next: #CF1F2E;
  --next-ink: #FFFFFF;
  --next-ink-2: #FFF0F1;
  --next-fig: #FFFFFF;
  --next-edge: #CF1F2E;
  --next-key: #FFFFFF;
  --panel: #CF1F2E;
  --panel-ink: #FFFFFF;
  --panel-ink-2: #FFF0F1;
  --panel-fig: #FFFFFF;
  --hl: #CF1F2E;
  --hl-ink: #FFFFFF;
  --rail: #0A2463;
  --rail-ink-2: #B4C0E0;
  --rail-fig: #FFFFFF;
  --rail-field: #1C3879;
  --rail-on-ink: #0A2463;
  --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 24' width='30' height='24'%3E%3Crect width='30' height='24' fill='%230A2463'/%3E%3Cpolygon fill='%23FFFFFF' points='15.0,4.6 16.9,9.9 22.6,10.1 18.1,13.6 19.7,19.1 15.0,15.9 10.3,19.1 11.9,13.6 7.4,10.1 13.1,9.9'/%3E%3C/svg%3E");
  --motif-on: 1;
  --motif-at-t: 0;
  --motif-at-b: 1;
  --motif-h: 12px;
  --motif-size: auto 100%;
  --motif-rep: repeat-x;
  --motif-t: auto;
  --motif-b: 0;
  --motif-pad-t: 0px;
  --motif-pad-b: 8px;
  --block: #1D1D1F;
  --block-ink-2: #B5B9C4;
  --block-fig: #FFD23F;
}

