@font-face {
  font-family: Manjari;
  src: url("/fonts/Manjari-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Manjari;
  src: url("/fonts/Manjari-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: Manjari, system-ui, sans-serif;
  color: #172a42;
  background: #e1ebf8;
  background-image: url("/snowflakes.svg"),
    radial-gradient(ellipse at top left, #c3d8ee, transparent 65%),
    linear-gradient(145deg, #e0e8f8, #eee7f5 65%, #d6e6f4);
  line-height: 1.6;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid #c53c58; outline-offset: 5px; }

.skip {
  position: absolute;
  left: 1rem;
  top: 1rem;
  transform: translateY(-200%);
  background: white;
  color: #172a42;
  padding: .5rem 1rem;
}
.skip:focus { transform: none; }

header { background: #12243e; color: #fff; }
.bar, main, footer { width: min(72rem, calc(100% - 2rem)); margin-inline: auto; }
.bar {
  min-height: 4.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .25rem 1rem;
  padding-block: .5rem;
}
.brand { font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.brand span { color: #d8edff; }
nav { display: flex; gap: .25rem; }
nav a { padding: .75rem .85rem .35rem; border-radius: .6rem; text-decoration: none; }
nav a:hover, nav a[aria-current] { background: #2e4769; }

.hero, .routes {
  margin-top: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.25rem, 6vw, 4.5rem);
  border-radius: 1.75rem;
}
.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 1.75rem;
  color: white;
  background: url("/hero-snowflakes.svg"), radial-gradient(ellipse at 85% 30%, #405e85, #12243e 72%);
}
.hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 25rem;
  object-fit: contain;
  background: url("/hero-snowflakes.svg") center / 78% auto no-repeat,
    url("/hero-snowflakes.svg") center / 100% auto no-repeat;
}
.eyebrow {
  font-size: .83rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 .7rem;
  color: #922743;
}
.hero .eyebrow { color: #ff899d; }
h1, h2 { line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.4rem, 6.3vw, 5rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
main p:not(.eyebrow) { font-size: 1.125rem; }

.intro { max-width: 37rem; }
.button {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.15rem .6rem;
  border-radius: .65rem;
  color: white;
  background: #aa2847;
  font-weight: 700;
  text-decoration: none;
}
.button:hover { background: #93223d; }

.video { padding: clamp(1.25rem, 5vw, 3rem) clamp(1.25rem, 5vw, 3rem) 0; }
.video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 1rem;
  border: 0;
  border-radius: 1rem;
  background: #12243e;
}

.announcement { padding: clamp(1.25rem, 5vw, 3rem); }
details {
  max-width: 44rem;
  margin-top: 2rem;
  border: 1px solid #d9d7e7;
  border-radius: 1rem;
}
summary {
  padding: 1.2rem 1rem .8rem;
  font-weight: 700;
  cursor: pointer;
}
summary:hover { background: #f1eff9; border-radius: 1rem; }
details p { margin: 0; padding: 0 1rem 1rem; }
.badge {
  display: inline-block;
  margin-left: .4rem;
  border-radius: 2rem;
  padding: .3rem .55rem 0;
  font-size: .8rem;
  background: #f8e1e8;
  color: #82213c;
}
footer { border-top: 1px solid #d9d7e7; padding-block: 1.25rem; color: #45566c; font-size: .9rem; }

@media (max-width: 43rem) {
  .hero { grid-template-columns: 1fr; }
  .hero img { max-height: 13rem; }
}


.history { margin-bottom: 2rem; }
.history h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.history h2 { margin-top: 2rem; }
.history-body > img {
  float: left;
  width: min(30%, 9rem);
  height: auto;
  margin: 0 1rem .5rem 0;
}
.history-photos, .history-sponsors {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .75rem;
}
.history-photos img {
  width: min(100%, 20rem);
  height: auto;
  border-radius: .65rem;
}
.history-sponsors img {
  width: min(38%, 8rem);
  height: auto;
}

@media (max-width: 24rem) {
  nav { flex-wrap: wrap; }
  nav a { padding-inline: .6rem; }
}

.sleigh-routes { padding-top: 0; }

.sleigh-illustration {
  display: block;
  width: min(100%, 26rem);
  height: auto;
  margin: 0 auto 1rem;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(15rem, 45%)), 1fr));
  align-items: start;
  gap: 2.5rem 1.25rem;
  margin-top: 2.75rem;
}
.gift-grid > p { grid-column: 1 / -1; }
.route-gift {
  --wrap: #ed2634;
  --shade: #b6192a;
  --light: #ff5260;
  --ribbon: #ffc526;
  --ink: #19283d;
  position: relative;
  margin: 0;
  border: 0;
  max-width: none;
}
.route-gift:nth-child(3n + 2) {
  --wrap: #20b933;
  --shade: #138725;
  --light: #52db49;
  --ribbon: #f52b38;
}
.route-gift:nth-child(3n) {
  --wrap: #268ae6;
  --shade: #1955ad;
  --light: #56b8ff;
  --ribbon: #ffc526;
}
.route-gift:nth-child(6n + 4) { --ribbon: #20b933; }
.route-gift:nth-child(6n + 5) { --ribbon: #ffc526; }
.route-gift:nth-child(6n + 6) { --ribbon: #f52b38; }
.route-gift summary,
.route-gift summary:hover {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1rem .25rem .5rem;
  list-style: none;
  background: transparent;
}
.route-gift summary::-webkit-details-marker { display: none; }
.gift-art {
  display: block;
  width: 14rem;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  overflow: visible;
}
.gift-face { fill: var(--wrap); }
.gift-side { fill: var(--shade); }
.gift-top { fill: var(--light); }
.gift-ribbon { fill: var(--ribbon); }
.gift-lid {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .4s ease;
}
.gift-tag {
  position: relative;
  display: grid;
  gap: .28rem;
  width: min(100%, 19rem);
  padding: .75rem .75rem .5rem 1.35rem;
  background: #fff8e8;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 1.35rem .4rem .4rem 1.35rem;
  box-shadow: .14rem .16rem #19283d50;
  transform: rotate(-2deg);
}
.gift-tag::before {
  content: "";
  position: absolute;
  top: 50%;
  left: .35rem;
  width: .44rem;
  height: .44rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--ribbon);
  transform: translateY(-50%);
}
.gift-tag time { font-size: .9rem; color: #71303e; }
.gift-tag strong { line-height: 1.3; }
.route-gift[open] .gift-lid { transform: translate(12%, -56%) rotate(15deg); }
.route-gift summary:hover .gift-tag { transform: rotate(0); }
.route-gift:not([open]) > .gift-contents { display: none; }
.gift-contents {
  position: absolute;
  z-index: 1;
  top: 4.6rem;
  left: 50%;
  width: min(90%, 13rem);
  padding: .55rem .65rem .4rem;
  border: 2px solid var(--ink);
  border-radius: .45rem;
  background: #fff8e8;
  color: var(--ink);
  text-align: center;
  pointer-events: none;
  transform: translateX(-50%) rotate(-3deg);
  transform-origin: bottom center;
  animation: unwrap .42s .12s both ease-out;
}
.gift-contents p { padding: 0; line-height: 1.2; }
@keyframes unwrap {
  from { opacity: 0; transform: translate(-50%, 2.25rem) scale(.25); }
}
@media (prefers-reduced-motion: reduce) {
  .gift-lid { transition: none; }
  .gift-contents { animation: none; }
}

.gallery-illustration {
  display: block;
  width: min(100%, 32rem);
  height: auto;
  margin: 1.5rem auto 0;
}

.spark-scroll {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-block: 2rem;
}
.spark-scroll img {
  width: min(9rem, 35%);
  height: auto;
}
.spark-message {
  flex: 1 1 20rem;
  padding: clamp(1rem, 3vw, 1.75rem);
  border: 2px solid #432b1d;
  border-block-width: .45rem;
  border-radius: 1rem .65rem;
  background: #fff0cc;
  box-shadow: 0 .25rem #432b1d25;
}
.spark-message h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.spark-message p { margin: .65rem 0 0; }
