/* Saint Nicholas (5-6 Dec, big in Alsace): red and gold, a bishop's mitre, mannele (brioche men) for a ruler. */
:root[data-theme="s-stnicolas"] {
  --bg: #fbf3ea; --surface: #fffaf3; --text: #3a1a12; --muted: #83594a; --line: #ecd4c2;
  --accent: #a4161a; --accent-text: #ffffff; --link: #8c1215; --ruler: #c98a3c;
  --logo-bg: #a4161a; --logo-fg: #f5d27a; --logo-rect: transparent; --logo-shape-display: block;
  --logo-shape: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path d='M5 31V13C5 7 10 3 13 1l3 5 3-5c3 2 8 6 8 12v18z'/></svg>");
}
:root[data-theme="s-stnicolas"][data-scheme="dark"] {
  --bg: #1c0f0c; --surface: #281512; --text: #f7e8d8; --muted: #c9a28f; --line: #45261f;
  --accent: #e0484c; --accent-text: #ffffff; --link: #f5d27a;
}
:root[data-theme="s-stnicolas"] .logo svg { transform: translateY(12%) scale(.78); }
:root[data-theme="s-stnicolas"] .topbar::after {
  height: 14px; background: var(--ruler);
  -webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='14'><circle cx='14' cy='3' r='2.6'/><path d='M10 6h8l3 3-2 1-2-1v5h-2l-1-3-1 3h-2V9l-2 1-2-1z'/></svg>") left bottom / 28px 14px repeat-x;
  mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='14'><circle cx='14' cy='3' r='2.6'/><path d='M10 6h8l3 3-2 1-2-1v5h-2l-1-3-1 3h-2V9l-2 1-2-1z'/></svg>") left bottom / 28px 14px repeat-x;
}
/* Effects: light snow */
:root[data-theme="s-stnicolas"] {
  --fx1-display: block; --fx1-kind: bb-fall; --fx1-tile: 600px; --fx1-speed: 44s; --fx1-o: .55; --fx1-drift: 60px;
  --fx1-img: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600'><defs><g id='fx1'><g fill='%23ffffff' stroke='%237fa3c4' stroke-width='.9'><circle cx='30' cy='60' r='2.5'/><circle cx='140' cy='20' r='1.8'/><circle cx='250' cy='110' r='3'/><circle cx='90' cy='190' r='2'/><circle cx='200' cy='250' r='2.6'/><circle cx='280' cy='280' r='1.6'/></g></g></defs><use href='%23fx1' x='0' y='0'/><use href='%23fx1' x='0' y='-600'/><use href='%23fx1' x='-600' y='0'/><use href='%23fx1' x='-600' y='-600'/><use href='%23fx1' x='186' y='384'/><use href='%23fx1' x='186' y='-216'/><use href='%23fx1' x='-414' y='384'/><use href='%23fx1' x='-414' y='-216'/><use href='%23fx1' x='393' y='141'/><use href='%23fx1' x='393' y='-459'/><use href='%23fx1' x='-207' y='141'/><use href='%23fx1' x='-207' y='-459'/><use href='%23fx1' x='522' y='489'/><use href='%23fx1' x='522' y='-111'/><use href='%23fx1' x='-78' y='489'/><use href='%23fx1' x='-78' y='-111'/></svg>");
}
/* Series colours: people and sources in the calendar, graphs */
:root[data-theme="s-stnicolas"] { --c1: #a5272a; --c2: #27a543; --c3: #6227a5; --c4: #a58227; --c5: #27a5a2; --c6: #a52789; --c7: #6aa527; --c8: #274aa5; }
:root[data-theme="s-stnicolas"][data-scheme="dark"] { --c1: #e07b7d; --c2: #7be091; --c3: #ab7be0; --c4: #e0c47b; --c5: #7be0dd; --c6: #e07bc9; --c7: #b0e07b; --c8: #7b97e0; }

/* Home tiles: this season's band on top, its emblem in the corner */
:root[data-theme="s-stnicolas"] {
  --tile-bg: repeating-linear-gradient(135deg, #c8102e 0 8px, #fff 8px 16px) top / 100% 5px no-repeat,
    linear-gradient(170deg, color-mix(in srgb, var(--accent) 9%, var(--card-bg, var(--surface))), var(--card-bg, var(--surface)) 60%);
  --tile-deco: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 100 100%27><text x=%2750%27 y=%2754%27 font-size=%2778%27 text-anchor=%27middle%27 dominant-baseline=%27middle%27>%F0%9F%8E%85</text></svg>"); --tile-deco-display: block; --tile-deco-size: 4.2rem; --tile-deco-o: .32;
  --tile-deco-inset: auto -.4rem -.5rem auto; --tile-deco-hover: rotate(-12deg) scale(1.2);
}
/* Success (ok, done, up, free): fir green (02/11, he asked: each theme's own colour, not always green / blue) */
:root[data-theme="s-stnicolas"][data-scheme="light"] { --success: #09a25b; --success-text: #1c0f0c; }
:root[data-theme="s-stnicolas"][data-scheme="dark"] { --success: #7fcf9a; --success-text: #1c0f0c; }

/* Read easily (05/11, WCAG AA 4.5:1 for text, tools/qa/contrast_tokens.py): the same colours, nudged just enough */
:root[data-theme="s-stnicolas"][data-scheme="dark"] { --accent: #cf4346; }

/* (26/11, his "gauges' gradient sad: two very distinctive colours") the gauges' second colour, the theme's own: far
   from --success (--g-ok2: the ok gauges, the partly-up hours' stripes) and from the gauge colour (--g-plain2) */
:root[data-theme="s-stnicolas"][data-scheme="light"] { --g-ok2: var(--c6); --g-plain2: var(--c5); }
:root[data-theme="s-stnicolas"][data-scheme="dark"] { --g-ok2: var(--c6); --g-plain2: var(--c8); }
