/* Julefrokost – julerød with gold and gran-green, a red-and-white gingham tablecloth, slow snow; Fraunces for the big
   lines. See nytaar.css. Dark: a clear, warm red page with gold for what you press – a red accent on a red page
   disappears, so gold carries the buttons and the countdown. Light: cream with julerød. */

[data-type="julefrokost"], body[data-fest-type="julefrokost"] { --fest-accent: #e63946; --fest-accent-2: #2f9e5b; --fest-art: url("/assets/img/fest/types/julefrokost.svg"); }
/* Inside the party the dark page is itself red, so the type's red turns gold there (and its green lighter). */
body[data-fest-type="julefrokost"], body[data-fest-type="julefrokost"] [data-type="julefrokost"] { --fest-accent: #ffd166; --fest-accent-2: #6fdc94; }
:root[data-theme="light"] [data-type="julefrokost"], :root[data-theme="light"] body[data-fest-type="julefrokost"],
:root[data-theme="light"] body[data-fest-type="julefrokost"] [data-type="julefrokost"] { --fest-accent: #b3122a; --fest-accent-2: #1f6b3a; }

body[data-fest-type="julefrokost"] {
  --fest-font: "Fraunces", Georgia, serif;
  --bg: #5c0f1b; --bg-glow: #a3172b; --surface: #721424; --surface-2: #85192c; --surface-3: #962035;
  --border: rgba(255, 228, 214, 0.2); --text: #fff8f0; --muted: #fbd9cf; --faint: #e9b3a7;
  --accent: #ffd166; --accent-ink: #4a0d16;
  --glow-a: rgba(255, 209, 102, 0.16); --glow-b: rgba(47, 158, 91, 0.2);
  --jule-check: rgba(255, 255, 255, 0.09);
}
:root[data-theme="light"] body[data-fest-type="julefrokost"] {
  --bg: #fbf4ea; --bg-glow: #f3dccd; --surface: #ffffff; --surface-2: #f6e9de; --surface-3: #efdccd;
  --border: rgba(58, 13, 18, 0.14); --text: #3a0d12; --muted: #6e4a44; --faint: #8a6760;
  --accent: #b3122a; --accent-ink: #ffffff;
  --glow-a: rgba(179, 18, 42, 0.1); --glow-b: rgba(31, 107, 58, 0.08);
  --jule-check: rgba(179, 18, 42, 0.16);
}
/* The tablecloth: red-and-white gingham under the hero – white checks on the red page, red checks on the cream one. */
body[data-fest-type="julefrokost"] .fest-hero {
  background:
    repeating-linear-gradient(0deg, var(--jule-check) 0 14px, transparent 14px 28px),
    repeating-linear-gradient(90deg, var(--jule-check) 0 14px, transparent 14px 28px),
    var(--surface);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
body[data-fest-type="julefrokost"] .fest-cd-unit b { color: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  body[data-fest-type="julefrokost"]::after {
    content: ""; position: fixed; inset: -20px 0 0; z-index: -1; pointer-events: none; opacity: 0.5;
    background-image:
      radial-gradient(circle at 20% 10%, #fff 0 2px, transparent 2.5px),
      radial-gradient(circle at 60% 30%, #fff 0 1.5px, transparent 2px),
      radial-gradient(circle at 85% 60%, #fff 0 2px, transparent 2.5px),
      radial-gradient(circle at 40% 80%, #fff 0 1.5px, transparent 2px);
    background-size: 340px 300px;
    animation: jule-snow 22s linear infinite;
  }
  :root[data-theme="light"] body[data-fest-type="julefrokost"]::after { opacity: 0; }
}
@keyframes jule-snow { to { background-position: 40px 300px; } }
