/* Palette: night blue, cream, beer gold, nisse-hat red */
:root {
  --navy: #0E1F4D;
  --ink: #13173A;
  --cream: #FFF6E5;
  --gold: #F4B53F;
  --red: #C8351F;
  --red-dark: #8F2213;
  --stamp: #FF6B4F;
  --mist: #DCE3F7;
  --muted: #B8C3E6;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --hand: 'Caveat', cursive;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[hidden] {
  display: none !important;
}

body {
  background: var(--navy);
  font-family: var(--display);
  color: var(--ink);
}

a { color: var(--red); }
a:hover { color: var(--red-dark); }

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.page {
  background: var(--cream);
  min-width: 0;
  overflow-x: clip;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.hand { font-family: var(--hand); }
.nowrap { white-space: nowrap; }

/* Snow */
.snow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 50;
}

.flake {
  position: absolute;
  top: -50px;
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 1.5px rgba(14, 31, 77, 0.45));
  animation: fall-a linear infinite backwards;
}
.flake.b { animation-name: fall-b; }
.flake.c { animation-name: fall-c; }
.flake.d { animation-name: fall-d; }
.flake.soft { filter: blur(1.2px) drop-shadow(0 0 1.5px rgba(14, 31, 77, 0.35)); }

@keyframes fall-a {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(5vw, calc(100vh + 100px)) rotate(240deg); }
}
@keyframes fall-b {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-5vw, calc(100vh + 100px)) rotate(-200deg); }
}
@keyframes fall-c {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(3vw, 50vh) rotate(150deg); }
  100% { transform: translate(-2vw, calc(100vh + 100px)) rotate(300deg); }
}
@keyframes fall-d {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-3vw, 50vh) rotate(-120deg); }
  100% { transform: translate(2vw, calc(100vh + 100px)) rotate(-260deg); }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--cream);
  padding: 0 24px 72px;
}

.topbar {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.navlink {
  color: var(--cream);
  text-decoration: none;
}
.navlink:hover { color: var(--gold); }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.mainnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 17px;
  font-weight: 600;
}
.mainnav .navlink {
  display: inline-block;
  padding: 12px 0;
}
/* Menu and language switch sit together on the right; on phones the menu drops to its own row */
.mainnav { margin-left: auto; }
.lang-switch {
  min-width: 44px;
  min-height: 44px;
  padding: 10px 12px;
  border: 2px solid var(--cream);
  border-radius: 999px;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.lang-switch:hover { border-color: var(--gold); }

@media (max-width: 640px) {
  .mainnav {
    order: 3;
    flex-basis: 100%;
    margin-left: 0;
  }
  .lang-switch { margin-left: auto; }
}

.hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}

.hero-main {
  flex: 999 1 560px;
  min-width: 0;
}

.hero-kicker {
  margin: 0 0 4px;
  font-size: 30px;
  color: var(--gold);
  transform: rotate(-2deg);
  transform-origin: left;
}

.hero-title {
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.stamp {
  display: inline-block;
  font-weight: 800;
}
.stamp-no {
  margin-top: 24px;
  padding: 6px 18px;
  border: 4px solid var(--stamp);
  border-radius: 10px;
  color: var(--stamp);
  font-size: clamp(22px, 7vw, 30px);
  letter-spacing: 0.04em;
  transform: rotate(-5deg);
}
.stamp-yes {
  margin-top: 28px;
  padding: 10px 22px;
  border: 4px solid var(--gold);
  border-radius: 12px;
  color: var(--gold);
  font-size: clamp(32px, 5vw, 56px);
  transform: rotate(-4deg);
}

.hero-lede {
  margin-top: 24px;
  font-size: 22px;
  line-height: 1.5;
  max-width: 34ch;
  color: var(--mist);
}

.countdown-intro {
  margin: 32px 0 14px;
  font-size: 19px;
  color: var(--mist);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 2.5vw, 14px);
  max-width: 520px;
}

.tile {
  background: var(--cream);
  color: var(--navy);
  border-radius: 18px;
  padding: 14px 4px 10px;
  min-width: 0;
  text-align: center;
  box-shadow: 0 6px 0 var(--gold);
}
.tile-1 { transform: rotate(-2deg); }
.tile-2 { transform: rotate(1.5deg); }
.tile-3 { transform: rotate(-1deg); }
.tile-4 {
  transform: rotate(2.5deg);
  background: var(--red);
  color: var(--cream);
}

.tile-num {
  font-size: clamp(34px, 10vw, 64px);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.tile-label {
  font-size: clamp(11px, 3.2vw, 15px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

.hero-date {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 600;
}

.hero-ctas {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 17px;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.pill:hover { transform: translateY(-2px) rotate(-2deg); }
.pill-gold {
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
}
.pill-gold:hover { color: var(--navy); }
.pill-ghost {
  border: 2px solid var(--cream);
  color: var(--cream);
  font-weight: 600;
}
.pill-ghost:hover { color: var(--cream); }

/* Beer mug */
.hero-side {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.mug {
  position: relative;
  width: 250px;
  height: 320px;
  animation: bob 4s ease-in-out infinite;
  transform-origin: 50% 100%;
}

@keyframes bob {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(3deg); }
}

.mug-handle {
  position: absolute;
  right: 0;
  top: 70px;
  width: 70px;
  height: 150px;
  border: 14px solid var(--cream);
  border-left: none;
  border-radius: 0 50px 50px 0;
}

.mug-glass {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 196px;
  height: 300px;
  border: 8px solid var(--cream);
  border-top: none;
  border-radius: 0 0 30px 30px;
  overflow: hidden;
  background: rgba(255, 246, 229, 0.08);
}

.mug-beer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0%;
  background: var(--gold);
  transition: height 1s ease;
}

.mug-foam {
  position: absolute;
  left: -8px;
  right: -8px;
  top: -22px;
  height: 40px;
  display: flex;
  justify-content: space-between;
}
.mug-foam span {
  border-radius: 50%;
  background: var(--cream);
}
.mug-foam span:nth-child(1) { width: 50px; height: 44px; }
.mug-foam span:nth-child(2) { width: 60px; height: 50px; margin-top: -6px; }
.mug-foam span:nth-child(3) { width: 46px; height: 42px; }
.mug-foam span:nth-child(4) { width: 40px; height: 38px; margin-top: 4px; }

.bubble {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--cream);
  opacity: 0.6;
}
.bubble.b1 { left: 40px; bottom: 30px; width: 10px; height: 10px; }
.bubble.b2 { left: 110px; bottom: 80px; width: 8px; height: 8px; }
.bubble.b3 { left: 70px; bottom: 140px; width: 12px; height: 12px; }

.mug-shine {
  position: absolute;
  left: 30px;
  top: 30px;
  bottom: 30px;
  width: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.25);
}

.mug-caption {
  font-size: 28px;
  color: var(--gold);
  text-align: center;
  transform: rotate(2deg);
}

.wave {
  display: block;
  width: 100%;
  height: 48px;
  background: var(--cream);
}

/* Shared section bits */
.section { padding: 96px 24px; }

.kicker { font-size: 28px; }
.kicker-red { color: var(--red); }
.kicker-gold { color: var(--gold); }

.section-title {
  margin-bottom: 40px;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Pubs */
.section-pubs { padding: 72px 24px 48px; }

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 24px;
}

.event {
  border: 3px solid var(--ink);
  border-radius: 24px;
  padding: 28px;
  background: #FFFFFF;
  box-shadow: 6px 6px 0 var(--ink);
}
.event-when {
  font-size: 15px;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.event h3 {
  margin: 8px 0;
  font-size: 26px;
  font-weight: 800;
}
.event p {
  margin-bottom: 6px;
  font-size: 18px;
  line-height: 1.5;
}
.event {
  display: flex;
  flex-direction: column;
}
.event .event-links { margin-top: auto; }
.event a {
  display: inline-block;
  padding: 12px 0;
  font-weight: 700;
  font-size: 17px;
}

.event-venue {
  font-weight: 700;
  font-size: 18px;
}
.event .event-address {
  margin-bottom: 12px;
  font-size: 16px;
  color: #4A4F6E;
}
.event-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}

.events-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 40px;
}
.events-head .section-title { margin-bottom: 0; }

.view-toggle {
  display: inline-flex;
  padding: 4px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #FFFFFF;
}
.view-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}
.view-toggle button[aria-pressed="true"] {
  background: var(--navy);
  color: var(--cream);
}

.event-map {
  height: clamp(360px, 60vh, 560px);
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: 6px 6px 0 var(--ink);
  overflow: hidden;
  /* Keep Leaflet's panes under the falling snow */
  position: relative;
  z-index: 0;
}

.map-pin {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  border: 4px dashed var(--gold);
  color: var(--cream);
  font: 800 16px/28px var(--display);
  text-align: center;
  box-shadow: 0 3px 8px rgba(14, 31, 77, 0.35);
}

.leaflet-popup-content {
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.4;
}
.leaflet-popup-content strong {
  display: block;
  font-size: 17px;
  margin-bottom: 2px;
}

.events-empty {
  font-size: 18px;
}

.event-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-bottom: 28px;
}
.search-label {
  flex-basis: 100%;
  font-weight: 700;
  font-size: 17px;
}
.search-box {
  flex: 0 1 420px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 16px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #FFFFFF;
}
.search-box:focus-within {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.search-box input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font: 600 18px var(--display);
  color: var(--ink);
}
.search-box input::placeholder { color: #6B7091; }
.event-count {
  font-size: 16px;
  color: #4A4F6E;
}
.events-lang-note {
  margin: -12px 0 24px;
  font-size: 16px;
  color: #4A4F6E;
}

.event-more-wrap {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}
.pill-outline {
  border: 3px solid var(--ink);
  background: #FFFFFF;
  color: var(--ink);
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
}

.popup-note {
  font-style: italic;
  color: #4A4F6E;
}

.pubs-note {
  margin-top: 32px;
  font-size: 18px;
}

/* Story */
.section-story { padding: 72px 24px 96px; }

.story {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
}

.story-text {
  flex: 999 1 520px;
  min-width: 0;
  font-size: 20px;
  line-height: 1.6;
}
.story-text p { margin-bottom: 18px; }
.story-text .protip {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.3;
  color: var(--red);
  transform: rotate(-1deg);
}

.calendar-card {
  flex: 1 1 300px;
  background: var(--navy);
  color: var(--cream);
  border-radius: 24px;
  padding: 28px;
  transform: rotate(1.5deg);
  box-shadow: 8px 8px 0 var(--gold);
}
.calendar-card h3 {
  margin-bottom: 18px;
  font-size: 22px;
  font-weight: 800;
}

.upcoming {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.upcoming li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(255, 246, 229, 0.35);
  font-size: 18px;
}
.upcoming .year {
  font-weight: 800;
  color: var(--gold);
  font-size: 22px;
}

.calendar-note {
  margin-top: 16px;
  font-size: 15px;
  color: var(--muted);
}

.facts {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 24px;
}
.fact {
  border-radius: 24px;
  padding: 28px;
}
.fact p {
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.5;
}
.fact-big {
  font-size: clamp(40px, 11vw, 52px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.fact-gold { background: var(--gold); transform: rotate(-1.5deg); }
.fact-red { background: var(--red); color: var(--cream); transform: rotate(1deg); }
.fact-navy { background: var(--navy); color: var(--cream); transform: rotate(-0.5deg); }

/* Activities */
.section-activities {
  background: var(--navy);
  color: var(--cream);
  padding: clamp(64px, 10vw, 96px) 24px;
}

.pubs12 {
  background: var(--cream);
  color: var(--ink);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}
.pubs12-intro {
  flex: 1 1 320px;
  min-width: 0;
}
.pubs12-intro h3 {
  margin-bottom: 12px;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.pubs12-intro p {
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 1.6;
}

.pubgrid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  max-width: 420px;
}
.pubgrid button {
  min-height: 48px;
  border-radius: 14px;
  border: 2px solid var(--navy);
  background: var(--cream);
  color: var(--navy);
  font-family: inherit;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.pubgrid button:hover { transform: translateY(-2px) rotate(-2deg); }
.pubgrid button[aria-pressed="true"] {
  background: var(--red);
  color: var(--cream);
}

.pubs12-rule-wrap {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  align-items: center;
}
.pubs12-rule {
  width: 100%;
  background: var(--navy);
  color: var(--cream);
  border-radius: 22px;
  padding: clamp(22px, 6vw, 32px);
  transform: rotate(-1.5deg);
  box-shadow: 8px 8px 0 var(--red);
}
.pubs12-label {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
}
.pubs12-rule p {
  margin-top: 10px;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.activity-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 28px;
}
.activity {
  color: var(--ink);
  border-radius: 28px;
  padding: clamp(24px, 6vw, 36px);
}
.activity-gold { background: var(--gold); transform: rotate(-1deg); }
.activity-cream { background: var(--cream); transform: rotate(1deg); }
.activity h3 {
  margin: 12px 0 8px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.activity p {
  margin-bottom: 16px;
  font-size: 18px;
  line-height: 1.6;
}
.activity ol {
  padding-left: 24px;
  font-size: 18px;
  line-height: 1.7;
}

.activity ol li + li { margin-top: 6px; }

/* Drinking games */
.games {
  margin-top: 28px;
  background: var(--cream);
  color: var(--ink);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 48px);
}
.games-head h3 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.games-head p {
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.6;
}

.games-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 28px;
}

.game-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.game-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
}

.game {
  flex: 1;
  border: 3px solid var(--ink);
  border-radius: 20px;
  padding: 22px;
  background: #FFFFFF;
  box-shadow: 5px 5px 0 var(--ink);
}
.game:nth-child(odd) { transform: rotate(-0.6deg); }
.game:nth-child(even) { transform: rotate(0.6deg); }
.game h5 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.game h5 span {
  font-size: 17px;
  font-weight: 600;
  color: #4A4F6E;
}
.game .game-needs {
  margin: 4px 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--red);
}
.game p {
  font-size: 17px;
  line-height: 1.55;
}

/* Footer */
.footer {
  background: var(--navy);
  color: var(--cream);
  padding: 72px 24px 48px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}
.footer-cheers {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  color: var(--gold);
  transform: rotate(-2deg);
  transform-origin: left;
}
.footer-sign {
  margin-top: 8px;
  font-size: 28px;
}
.footer-small {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  text-align: right;
}

/* Phones */
@media (max-width: 480px) {
  .pubgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mug { zoom: 0.62; }
  .flake:nth-child(2n) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flake, .mug { animation: none; }
  .flake { display: none; }
}
