/* Kotona: theme
   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 */
  --bg: #FFFFFF;            /* white, the page itself */
  --surface: #FFFFFF;       /* panels that hold reading and data */
  --surface-2: #F0F1F3;     /* inset rows and fields, a cool gray */
  --ink: #14343C;           /* Kotona teal: 12.9:1 on white; the dark sections use it as their field */
  --ink-2: #454A55;         /* secondary text: 8.9:1 on white */
  --line: rgb(20 52 60 / 0.2);
  --accent: #14343C;        /* Kotona teal: the thing to press, the thing to answer */
  --accent-ink: #FFFFFF;    /* 12.9:1 on --accent */
  --accent-2: #D63A12;      /* vermilion, used in small amounts */
  --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 public pages and the logo use these.
     No house palette changes them. --navy keeps its old name so pages
     that use it keep working; since December 2026 it is the brand colour, Kotona teal.
     --yellow is Kotona gold, the dot in the logo: 6.9:1 on the teal. */
  --navy: #14343C;
  --yellow: #DABA72;
  --blue: #14343C;         /* kept for old rules; Kotona has no blue */
  --white: #FFFFFF;
  --on-navy-2: #A9BFC4;     /* secondary text on the teal, 7:1 */

  /* Roles. The version 1 app screens were built from these, and the site
     kit still reads some of them. Each house palette below overrides the
     contract colors above and these roles, and nothing else. */
  --accent-2-ink: #FFFFFF;  /* text on --accent-2 */
  --panel: #14343C;         /* the dark block: needs a decision, tonight's dinner */
  --panel-ink: #FFFFFF;
  --panel-ink-2: #A9BFC4;
  --panel-fig: #DABA72;     /* the big figure on a dark block */
  --panel-line: rgb(255 255 255 / 0.22);
  --rail: #14343C;          /* the sidebar */
  --rail-ink: #FFFFFF;
  --rail-ink-2: #A9BFC4;
  --rail-fig: #DABA72;      /* counts in the sidebar, and the plate of the logo */
  --rail-line: rgb(255 255 255 / 0.2);
  --hl: #DABA72;            /* the highlighted row: what is next, what to look over */
  --hl-ink: #14343C;
  --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);

  /* One color per person, used only for bullets and timetable bars.
     The letter (--p-ink) reaches 4.5:1 on every one, in every palette. */
  --p-ink: #FFFFFF;
  --p-dana: #C2187A;
  --p-marcus: #00804A;
  --p-theo: #D63A12;
  --p-imogen: #6A3FD0;
  --p-wren: #007C99;
  --p-biscuit: #5A6485;
}

/* House palettes from version 1 of the app. Yellow is the default and
   needs no attribute. Nothing in this folder sets data-palette any more:
   version 2 of the app has its own sixteen looks in app/theme.css,
   app/palettes.json and app/palette.js. These six are kept so the archived
   version 1 pages can still be read against them. */

/* Blue: cornflower field, navy ink and blocks, the brand blue for actions. */
:root[data-palette="blue"] {
  --bg: #6E9BFF;
  --surface-2: #EBF0FB;
  --ink: #0B1B4D;
  --ink-2: #27325F;
  --line: rgb(11 27 77 / 0.2);
  --panel: #0B1B4D;
  --panel-ink-2: #A9B4D6;
  --panel-fig: #6E9BFF;
  --rail: #0B1B4D;
  --rail-ink-2: #A9B4D6;
  --rail-fig: #6E9BFF;
  --hl: #6E9BFF;
  --hl-ink: #0B1B4D;
  --block-fig: #FFFFFF;
}

/* 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;
  --panel: #073B28;
  --panel-ink-2: #A9CDBB;
  --panel-fig: #21C16B;
  --rail: #073B28;
  --rail-ink-2: #A9CDBB;
  --rail-fig: #21C16B;
  --hl: #21C16B;
  --hl-ink: #062A1C;
  --block: #0B6B43;
  --block-ink-2: #CFE9DC;
  --block-fig: #FFFFFF;
  --p-marcus: #1B3DF5;
  --p-imogen: #9B2FC9;
}

/* Pink: hot pink field, plum-black blocks, deep magenta for actions. */
: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;
  --panel: #2A0A2B;
  --panel-ink-2: #D9B8D2;
  --panel-fig: #FF6FA3;
  --rail: #2A0A2B;
  --rail-ink-2: #D9B8D2;
  --rail-fig: #FF6FA3;
  --hl: #FF6FA3;
  --hl-ink: #2A0A2B;
  --block: #B0126A;
  --block-ink-2: #F9D3E6;
  --block-fig: #FFFFFF;
  --p-dana: #1B3DF5;
  --p-imogen: #8A2BD6;
}

/* Gray: the calm one. Cool gray field, white panels, navy blocks. */
:root[data-palette="gray"] {
  --bg: #E3E7EE;
  --surface-2: #EEF1F6;
  --ink: #0B1B4D;
  --ink-2: #3D4870;
  --line: rgb(11 27 77 / 0.2);
  --panel: #0B1B4D;
  --panel-ink-2: #A9B4D6;
  --panel-fig: #FFFFFF;
  --rail: #0B1B4D;
  --rail-ink-2: #A9B4D6;
  --rail-fig: #9DB1FF;
  --hl: #CFD9FF;
  --hl-ink: #0B1B4D;
  --block-fig: #FFFFFF;
}

/* Night: the dark one. Blue-black field, royal blue blocks, light blue for actions. */
:root[data-palette="night"] {
  color-scheme: dark;
  --bg: #070B1C;
  --surface: #121A3A;
  --surface-2: #1C2652;
  --ink: #F2F4FB;
  --ink-2: #AEB8D9;
  --line: rgb(242 244 251 / 0.22);
  --accent: #9DB1FF;
  --accent-ink: #070B1C;
  --accent-2: #FF7A4D;
  --accent-2-ink: #070B1C;
  --good: #3DDC84;
  --warn: #FFB020;
  --bad: #FF6B6B;
  --panel: #1B3DF5;
  --panel-ink-2: #D5DCFF;
  --panel-fig: #FFFFFF;
  --rail: #121A3A;
  --rail-ink: #F2F4FB;
  --rail-ink-2: #AEB8D9;
  --rail-fig: #9DB1FF;
  --rail-line: rgb(242 244 251 / 0.2);
  --hl: #9DB1FF;
  --hl-ink: #070B1C;
  --block: #9DB1FF;
  --block-ink: #070B1C;
  --block-ink-2: #1C2652;
  --block-fig: #070B1C;
  --block-line: rgb(7 11 28 / 0.3);
  --p-ink: #070B1C;
  --p-dana: #FF7AB8;
  --p-marcus: #3DDC84;
  --p-theo: #FF7A4D;
  --p-imogen: #A98BFF;
  --p-wren: #3CC8E6;
  --p-biscuit: #B4BDD6;
}

/* For comparison only: the default as it was before December 2026, maize #FFCB05 with navy #0B1B4D. It was shown on the version 1 palette page, now in saas/archive/site-v1/. Not offered to families. */
:root[data-palette="yellow-navy"] {
  --bg: #FFCB05;
  --surface-2: #EEF1F8;
  --ink: #0B1B4D;
  --ink-2: #3D4870;
  --line: rgb(11 27 77 / 0.2);
  --panel: #0B1B4D;
  --panel-ink-2: #A9B4D6;
  --panel-fig: #FFCB05;
  --rail: #0B1B4D;
  --rail-ink-2: #A9B4D6;
  --rail-fig: #FFCB05;
  --hl: #FFCB05;
  --hl-ink: #0B1B4D;
  --block-fig: #FFCB05;
}
