/* Witte Kerst-o-meter: the JustBee look (paper, ink, yellow; Fredoka and Nunito Sans, as on
   justbee.nl) with a pine-green Christmas card header and falling snow. */
:root {
  --paper: #faf7ee;
  --panel: #fffdf6;
  --ink: #1f1f1f;
  --muted: #6a665d;
  --line: #e8dfc9;
  --yellow: #ffc629;
  --yellow-soft: #fff0b7;
  --gold: #b38b10;
  --pine: #173f35;
  --pine-2: #1f5a45;
  --red: #c8323c;
  --red-soft: #fbe3e2;
  --snow: #f4f7fb;
  --ice: #9fc3e6;
  --ice-dark: #3d6c9e;
  --green-grass: #b9c9a3;
  --on-pine: #f6f1e2;
  --on-pine-muted: #bcd2c5;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.08;
  margin: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-decoration-color: #d5a400;
  text-underline-offset: 4px;
}

button,
select,
input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: .17em;
  font-weight: 800;
  text-transform: uppercase;
  color: #73654c;
}

/* ---------- JustBee return bar (as on the other subdomains) */

.justbee-return {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 8px max(24px, calc((100vw - 1180px) / 2));
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font: 800 14px 'Nunito Sans', sans-serif;
}

.justbee-return a {
  color: var(--ink);
  text-decoration: none;
}

.justbee-return .brand {
  display: block;
  width: 156px;
  line-height: 0;
}

.justbee-return .brand img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- hero */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 198, 41, .14), transparent 40%),
    linear-gradient(165deg, var(--pine) 0%, #10302a 100%);
  color: var(--on-pine);
}

/* Three layers of snow dots that drift down; still for people who prefer less motion. */
.snowfall,
.snowfall::before,
.snowfall::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-repeat: repeat;
}

.snowfall {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .85) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, .7) 0 1.5px, transparent 2.5px);
  background-size: 180px 180px;
  animation: snow-a 14s linear infinite;
}

.snowfall::before {
  content: '';
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .55) 0 1px, transparent 2px),
    radial-gradient(circle at 10% 85%, rgba(255, 255, 255, .5) 0 1.2px, transparent 2px);
  background-size: 110px 110px;
  animation: snow-b 20s linear infinite;
}

.snowfall::after {
  content: '';
  background-image: radial-gradient(circle at 40% 60%, rgba(255, 255, 255, .9) 0 3px, transparent 4px);
  background-size: 260px 260px;
  animation: snow-c 10s linear infinite;
}

@keyframes snow-a {
  from { background-position: 0 0, 0 0; }
  to { background-position: 60px 180px, 40px 180px; }
}

@keyframes snow-b {
  from { background-position: 0 0, 0 0; }
  to { background-position: -30px 110px, 20px 110px; }
}

@keyframes snow-c {
  from { background-position: 0 0; }
  to { background-position: 40px 260px; }
}

@media (prefers-reduced-motion: reduce) {
  .snowfall,
  .snowfall::before,
  .snowfall::after {
    animation: none;
  }
}

.hero-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.hero .eyebrow {
  color: var(--yellow);
}

.hero h1 {
  font-size: clamp(38px, 5.6vw, 70px);
  color: #fff;
  max-width: 13ch;
}

.subline {
  margin: 16px 0 0;
  font-size: 20px;
  color: var(--on-pine);
  max-width: 38ch;
}

.countdown {
  margin-top: 26px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  max-width: 480px;
}

.countdown-label {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 13px;
  color: var(--on-pine-muted);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.countdown-grid div {
  text-align: center;
  padding: 8px 4px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .18);
}

.countdown-grid dd {
  margin: 0;
  font: 600 clamp(26px, 4vw, 38px) 'Fredoka', sans-serif;
  color: #fff;
  font-variant-numeric: tabular-nums;
  order: -1;
}

.countdown-grid div {
  display: flex;
  flex-direction: column;
}

.countdown-grid dt {
  font-size: 12px;
  font-weight: 700;
  color: var(--on-pine-muted);
}

.countdown-merry {
  margin: 0;
  font: 600 30px 'Fredoka', sans-serif;
  color: var(--yellow);
}

.countdown-sleeps {
  margin: 10px 0 0;
  font-weight: 700;
  color: var(--yellow);
}

.countdown-sleeps:empty {
  display: none;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-top: 22px;
}

.control {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--on-pine-muted);
}

.control select {
  min-height: 44px;
  min-width: 220px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-weight: 700;
  color-scheme: dark;
}

.control select option {
  color: var(--ink);
  background: #fff;
}

button.ghost {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid var(--red);
  background: transparent;
  color: var(--red);
  font-weight: 800;
  cursor: pointer;
}

button.ghost:hover,
button.ghost:focus-visible {
  background: var(--red);
  color: #fff;
}

/* ---------- the Christmas card */

.postcard-wrap {
  margin: 0;
  text-align: center;
}

.postcard {
  position: relative;
  display: inline-block;
  width: min(100%, 470px);
  padding: 12px 12px 14px;
  background: #fffdf6;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  transform: rotate(-2deg);
}

.postcard-art {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.postcard-text {
  font: 600 17px 'Fredoka', sans-serif;
  fill: var(--red);
}

.card-snow circle {
  animation: card-flake 7s linear infinite;
}

.card-snow circle:nth-child(3n) {
  animation-duration: 9s;
  animation-delay: -3s;
}

.card-snow circle:nth-child(3n + 1) {
  animation-duration: 11s;
  animation-delay: -6s;
}

@keyframes card-flake {
  from { transform: translateY(-20px); }
  to { transform: translateY(240px); }
}

@media (prefers-reduced-motion: reduce) {
  .card-snow circle {
    animation: none;
  }
}

.stamp {
  position: absolute;
  top: -14px;
  right: -12px;
  width: 84px;
  height: 92px;
  display: grid;
  place-content: center;
  gap: 0;
  background: var(--red);
  color: #fff;
  border: 4px dotted #fffdf6;
  border-radius: 6px;
  transform: rotate(6deg);
  font: 700 22px 'Fredoka', sans-serif;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}

.stamp small {
  font: 800 10px 'Nunito Sans', sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-top: 4px;
}

.postcard-wrap figcaption {
  margin: 18px auto 0;
  font-size: 14px;
  color: var(--on-pine-muted);
  max-width: 36ch;
}

/* ---------- page */

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  display: grid;
  gap: 24px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px;
  min-width: 0;
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2,
.small-print h2 {
  font-size: clamp(26px, 3vw, 34px);
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 70ch;
}

.source {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.legend {
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 14px;
  color: var(--muted);
}

.key {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, .12);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  margin-right: 10px;
}

.key-wit { background: #fff; border-color: var(--ice-dark); box-shadow: inset 0 0 0 3px var(--ice); }
.key-half { background: var(--ice); }
.key-vlok { background: #dde6ee; }
.key-groen { background: var(--green-grass); }
.key-bar-white { background: var(--ice-dark); }
.key-bar-any { background: var(--ice); }

/* ---------- forecast */

.forecast {
  border-color: #f0c9c6;
  background: linear-gradient(180deg, #fffaf6 0%, var(--panel) 100%);
}

.forecast-wait {
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--red-soft);
}

.forecast-wait p {
  margin: 0;
  max-width: 64ch;
}

.forecast-wait-big {
  font: 600 clamp(22px, 3vw, 30px) 'Fredoka', sans-serif;
  color: var(--red);
  margin-bottom: 8px !important;
}

.forecast-loading {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.forecast-error {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--red-soft);
}

.forecast-error p {
  margin: 0;
  font-weight: 700;
}

.verdict {
  padding: 18px 22px;
  border-radius: 18px;
  border-left: 8px solid var(--muted);
  background: #f3efe4;
  margin-bottom: 18px;
}

.verdict-title {
  margin: 0;
  font: 600 clamp(26px, 3.4vw, 36px) 'Fredoka', sans-serif;
}

.verdict-text {
  margin: 6px 0 0;
  max-width: 64ch;
}

.verdict--kansloos { border-color: #8a8577; }
.verdict--koud { border-color: var(--ice-dark); background: #eaf1f8; }
.verdict--sprankje { border-color: var(--yellow); background: var(--yellow-soft); }
.verdict--echt { border-color: var(--red); background: var(--red-soft); }
.verdict--zicht { border-color: var(--red); background: #fff; box-shadow: 0 0 0 3px var(--red-soft); }

.days {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.day {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
}

.day h3 {
  font-size: 22px;
}

.day-date {
  margin: 2px 0 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.day.is-white {
  border-color: var(--ice-dark);
  box-shadow: inset 0 -6px 0 var(--ice);
}

.day.is-empty {
  background: transparent;
  border-style: dashed;
}

.day-wait {
  margin: 0;
  color: var(--muted);
}

.day-grid {
  margin: 0;
  display: grid;
  gap: 6px;
}

.day-grid div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 4px;
}

.day-grid dt {
  color: var(--muted);
}

.day-grid dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

/* ---------- history of one place */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stat {
  padding: 16px 18px;
  border-radius: 18px;
  background: #f1f5f9;
  border: 1px solid #dfe7ef;
}

.stat-big {
  margin: 0;
  font: 600 clamp(28px, 3.4vw, 40px) 'Fredoka', sans-serif;
  color: var(--ice-dark);
}

.stat-label {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.years {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
  gap: 5px;
}

.year {
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #4d5a3e;
  cursor: default;
}

.year--groen { background: var(--green-grass); }
.year--vlok { background: #dde6ee; color: #4a5a6b; }
.year--half { background: var(--ice); color: #17365a; }
.year--wit { background: #fff; color: var(--ice-dark); box-shadow: inset 0 0 0 2px var(--ice-dark); }
.year--mist { background: transparent; border: 1px dashed var(--line); color: #b5ad98; }

/* ---------- all places */

.compare {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.compare-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 52px 76px;
  gap: 12px;
  align-items: center;
  font-size: 15px;
  padding: 2px 8px;
  border-radius: 10px;
}

.compare-row.is-current {
  background: var(--yellow-soft);
}

.compare-name {
  border: 0;
  background: none;
  padding: 6px 0;
  text-align: left;
  font-weight: 800;
  cursor: pointer;
  color: var(--ink);
}

.compare-name:hover,
.compare-name:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 4px;
}

.compare-bar {
  position: relative;
  height: 16px;
  border-radius: 999px;
  background: #eef1ea;
  overflow: hidden;
}

.compare-bar span {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 999px;
}

.bar-any { background: var(--ice); }
.bar-white { background: var(--ice-dark); }

.compare-value {
  font: 600 18px 'Fredoka', sans-serif;
  text-align: right;
}

.compare-count {
  font-size: 13px;
  color: var(--muted);
  text-align: right;
}

/* ---------- timeline since 1901 */

.chart-wrap {
  overflow: hidden;
}

.timeline {
  display: block;
  width: 100%;
  max-width: 860px;
  height: auto;
}

.tl-axis { stroke: var(--muted); stroke-width: 2; }
.tl-tick { stroke: var(--green-grass); stroke-width: 2.5; }
.tl-stem { stroke: var(--ice-dark); stroke-width: 2; }
.tl-flake line { stroke: var(--ice-dark); stroke-width: 3; stroke-linecap: round; }
.tl-label { fill: var(--muted); font: 700 14px 'Nunito Sans', sans-serif; }

.white-years {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.white-year {
  display: grid;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid #dfe7ef;
  background: #f6f9fc;
  font-size: 14px;
  color: var(--muted);
}

.white-year strong {
  font: 600 22px 'Fredoka', sans-serif;
  color: var(--ice-dark);
}

.note {
  margin: 16px 0 0;
  max-width: 70ch;
  font-weight: 700;
}

/* ---------- elsewhere */

.europe-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.europe-grid article {
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--yellow-soft);
  border: 1px solid #f2d77c;
}

.europe-grid h3 {
  font-size: 22px;
}

.europe-grid p {
  margin: 8px 0 0;
}

.europe-grid .source {
  margin-top: 10px;
}

/* ---------- small print */

.small-print {
  font-size: 15px;
  color: var(--muted);
}

.small-print h2 {
  color: var(--ink);
  margin-bottom: 8px;
}

.small-print p {
  max-width: 80ch;
}

.small-print strong {
  color: var(--ink);
}

/* ---------- smaller screens */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding: 36px 16px 44px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .justbee-return {
    padding: 8px 16px;
  }

  .justbee-return .brand {
    width: 120px;
  }

  .page {
    padding: 20px 16px 48px;
    gap: 16px;
  }

  .card {
    padding: 20px 18px;
    border-radius: 20px;
  }

  .subline {
    font-size: 18px;
  }

  .countdown {
    padding: 14px;
  }

  .countdown-grid {
    gap: 6px;
  }

  .control,
  .control select {
    width: 100%;
    min-width: 0;
  }

  .controls {
    display: grid;
  }

  .postcard {
    width: calc(100% - 20px);
  }

  .stamp {
    width: 70px;
    height: 78px;
    font-size: 19px;
    right: -8px;
  }

  .days,
  .europe-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats {
    gap: 10px;
  }

  .stat {
    padding: 12px 14px;
  }

  .compare-row {
    grid-template-columns: 92px minmax(0, 1fr) 42px;
    gap: 8px;
    padding: 2px 4px;
  }

  .compare-count {
    display: none;
  }

  .tl-label {
    font-size: 20px;
  }
}
