/* Winter wonderland: icy blues and frost in light mode, a deep snowy night in dark mode.
   Turned on by season.js with <html data-season="winter">. Only colour tokens and a few
   decorations change, so every page keeps its layout. */
html[data-season="winter"] {
  --bg: #eaf2fa; --surface: #ffffff; --sunk: #dde8f3; --fg: #12233a; --muted: #4f6379; --line: #c9d8e8;
  --accent: #1d68b0; --accent-fg: #ffffff; --accent-soft: #d9e9f8;
  --frost: #d3e5f7; --ice: #cfe2f5; --ice-edge: #b4cfe9; --flake: #4d8fd0; --snow: rgba(96, 146, 201, .45);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { html[data-season="winter"]:not([data-theme="light"]) {
  --bg: #0a1322; --surface: #111d31; --sunk: #182740; --fg: #e4edf8; --muted: #98abc3; --line: #233552;
  --accent: #8cc6ff; --accent-fg: #0a1830; --accent-soft: #15304f;
  --frost: #15294a; --ice: #2a4669; --ice-edge: #3b5d85; --flake: #b9dcff; --snow: rgba(235, 244, 255, .8);
  color-scheme: dark } }
html[data-season="winter"][data-theme="dark"] {
  --bg: #0a1322; --surface: #111d31; --sunk: #182740; --fg: #e4edf8; --muted: #98abc3; --line: #233552;
  --accent: #8cc6ff; --accent-fg: #0a1830; --accent-soft: #15304f;
  --frost: #15294a; --ice: #2a4669; --ice-edge: #3b5d85; --flake: #b9dcff; --snow: rgba(235, 244, 255, .8);
  color-scheme: dark }

/* A frosty glow at the top of the page. The body background fills the viewport, so the snow
   canvas (z-index -1) falls in front of it and behind everything else. */
html[data-season="winter"] body {
  background: radial-gradient(1100px 420px at 50% -140px, var(--frost), transparent 72%) fixed, var(--bg);
}
.season-snow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* Icicles hanging under the POS top bar. */
html[data-season="winter"] .topbar::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 11px; pointer-events: none;
  background: linear-gradient(var(--ice), var(--ice-edge));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='11' viewBox='0 0 64 11'%3E%3Cpath d='M0 0h64v1.5l-3 3-2.5-3-2 7-2.5-7-4 4-3-4-1.5 5.5-2-5.5-3.5 2.5-2.5-2.5-2 9.5-2.5-9.5-3 3.5-3-3.5-1.5 4-2-4-3.5 6-2.5-6-3 2.5L0 1.5z'/%3E%3C/svg%3E") 0 0 / 64px 11px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='11' viewBox='0 0 64 11'%3E%3Cpath d='M0 0h64v1.5l-3 3-2.5-3-2 7-2.5-7-4 4-3-4-1.5 5.5-2-5.5-3.5 2.5-2.5-2.5-2 9.5-2.5-9.5-3 3.5-3-3.5-1.5 4-2-4-3.5 6-2.5-6-3 2.5L0 1.5z'/%3E%3C/svg%3E") 0 0 / 64px 11px repeat-x;
}

/* A snowflake before the salon's name. */
html[data-season="winter"] .brand h1::before,
html[data-season="winter"] #salonName::before,
html[data-season="winter"] .hero h1::before,
html[data-season="winter"] #title::before {
  content: ""; display: inline-block; width: .82em; height: .82em; margin-right: .32em; vertical-align: -.06em;
  background: var(--flake, currentColor);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17L20.7 7M12 2l-2.2 2.2M12 2l2.2 2.2M12 22l-2.2-2.2M12 22l2.2-2.2M3.3 7l.8 3M3.3 7l3-.8M20.7 17l-.8-3M20.7 17l-3 .8M3.3 17l3 .8M3.3 17l.8-3M20.7 7l-3-.8M20.7 7l-.8 3'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17L20.7 7M12 2l-2.2 2.2M12 2l2.2 2.2M12 22l-2.2-2.2M12 22l2.2-2.2M3.3 7l.8 3M3.3 7l3-.8M20.7 17l-.8-3M20.7 17l-3 .8M3.3 17l3 .8M3.3 17l.8-3M20.7 7l-3-.8M20.7 7l-.8 3'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* On a website cover photo the name is light text; keep the flake the same colour as the text. */
html[data-season="winter"] .hero:not(.plain) h1::before { background: currentColor; }

/* Frosted panels: a soft icy edge on cards. */
html[data-season="winter"] .panel, html[data-season="winter"] .card {
  box-shadow: 0 1px 0 var(--surface) inset, 0 6px 18px -12px var(--ice-edge);
}
