/*
 * Values come from the Offsite microsite design export (Main.dc.html). The
 * export put most of them in inline styles; they are classes here, but the
 * colours, sizes and spacing are the design's.
 */

@font-face {
  font-family: 'Proxima Nova';
  src: url('/fonts/ProximaNova-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Proxima Nova';
  src: url('/fonts/ProximaNova-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* The design asks for 800 in places; Bold is the heaviest face we have, so 700–900 all map to it. */
@font-face {
  font-family: 'Proxima Nova';
  src: url('/fonts/ProximaNova-Bold.woff2') format('woff2');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #a61930;
  --brand-dark: #8e0b20;
  --gold: #f2b632;
  --gold-light: #f7d27a;
  --ink: #1b1717;
  --muted: #5e5552;
  --line: #ede4e0;
  --line-strong: #d9c9c3;
  --paper: #fffcfa;
  --mist: #f5f5f5;
  --on-dark: #e9e1de;
  --font-sans: 'Proxima Nova', 'proxima-nova', 'Avenir Next', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
}

a {
  color: var(--ink);
}

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

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.stack {
  display: flex;
  flex-direction: column;
}

.star {
  fill: currentColor;
}

/* Read by screen readers, not shown. */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Header */

.site-header {
  background: var(--paper);
  border-bottom: 1.5px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.logo img {
  display: block;
  height: 24px;
  width: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}

.navlink {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  box-sizing: border-box;
}

.navlink:hover {
  color: var(--brand);
}

.navlink svg {
  width: 0;
  height: 12px;
  color: var(--gold);
  transition:
    width 0.25s ease,
    transform 0.4s ease;
}

.navlink:hover svg {
  width: 12px;
  transform: rotate(90deg);
}

/* Type */

.eyebrow {
  margin: 0;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow-red {
  color: var(--brand-dark);
}

.eyebrow-gold {
  color: var(--gold-light);
}

.h2 {
  font-weight: 800;
  font-size: clamp(44px, 12vw, 60px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

.h3 {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.15;
  margin: 0;
}

.lede {
  margin: 0;
  font-size: 20px;
  color: var(--on-dark);
}

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

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

.section-head {
  gap: 14px;
  max-width: 720px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  box-sizing: border-box;
}

.btn-sm {
  min-height: 48px;
  padding: 0 24px;
}

.btn-brand,
.btn-brand:hover {
  background: var(--brand);
  color: #fff;
}

.btn-outline,
.btn-outline:hover {
  border: 1.5px solid #fff;
  color: #fff;
}

.btn-dark,
.btn-dark:hover {
  background: var(--ink);
  color: #fff;
}

.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* Sparkles */

.tw {
  position: absolute;
  fill: currentColor;
  animation: twinkle 3.2s ease-in-out infinite;
}

@keyframes twinkle {
  0%,
  100% {
    transform: scale(0.35) rotate(0deg);
    opacity: 0.25;
  }
  50% {
    transform: scale(1) rotate(45deg);
    opacity: 1;
  }
}

.shimmer {
  /* Lets the clipped gradient reach past the edges of the letters, so they aren't cut off. */
  padding: 0.06em 0.12em 0.1em 0.06em;
  margin: -0.06em -0.12em -0.1em -0.06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background: linear-gradient(100deg, #fff 0%, #fff 38%, var(--gold-light) 46%, #fff 54%, #fff 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: 120% 0;
  }
  60%,
  100% {
    background-position: -20% 0;
  }
}

.dotstar {
  display: inline-block;
  width: 0.26em;
  height: 0.26em;
  margin-left: 0.06em;
  vertical-align: baseline;
  color: var(--brand);
  animation: dotspin 3.6s ease-in-out infinite;
}

@keyframes dotspin {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.25) rotate(90deg);
  }
}

/* The title's dot pops in as the "le" finishes writing. */
.hero h1 .dotstar {
  animation:
    dotin 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 2.5s both,
    dotspin 3.6s ease-in-out 3.1s infinite;
}

@keyframes dotin {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-120deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* The handwritten "le" in the title. */
.lescript {
  display: inline-block;
  width: 1.12em;
  height: 0.94em;
  margin: 0 -0.04em 0 -0.07em;
  vertical-align: -0.07em;
  overflow: visible;
}

.le-sparks,
.le-tip {
  pointer-events: none;
}

.le-tip {
  opacity: 0;
}

/* Unwritten until script.js draws it, so it doesn't flash in whole first. The
   gap is longer than the path and the dash starts past its end, so no sliver of
   dash (which its round cap would show as a dot) lands on it before then. */
@media (prefers-reduced-motion: no-preference) {
  .le-ink {
    stroke-dasharray: 1 2;
    stroke-dashoffset: 1.5;
  }
}

.burst {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
}

.burst i {
  position: absolute;
  display: block;
  opacity: 0;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: pop 0.9s ease-out forwards;
}

.burst i:nth-child(1) { --a: 12deg; --d: 30px; --g: 8px; width: 12px; height: 12px; left: -3px; top: -8px; background: #f2b632; animation-delay: 0s; }
.burst i:nth-child(2) { --a: 58deg; --d: 44px; --g: 14px; width: 7px; height: 7px; left: -5.5px; top: -2.5px; background: var(--brand); animation-delay: 0.06s; }
.burst i:nth-child(3) { --a: 101deg; --d: 22px; --g: 6px; width: 15px; height: 15px; left: -7.5px; top: -4.5px; background: #f7d27a; animation-delay: 0.02s; }
.burst i:nth-child(4) { --a: 152deg; --d: 38px; --g: 12px; width: 8px; height: 8px; left: 0; top: -4px; background: #e0a91b; animation-delay: 0.1s; }
.burst i:nth-child(5) { --a: 197deg; --d: 27px; --g: 10px; width: 11px; height: 11px; left: -8.5px; top: -8.5px; background: var(--brand); animation-delay: 0.04s; }
.burst i:nth-child(6) { --a: 236deg; --d: 48px; --g: 16px; width: 6px; height: 6px; left: -2px; top: -1px; background: #f2b632; animation-delay: 0.12s; }
.burst i:nth-child(7) { --a: 289deg; --d: 34px; --g: 9px; width: 13px; height: 13px; left: -10.5px; top: -5.5px; background: #f7d27a; animation-delay: 0s; }
.burst i:nth-child(8) { --a: 331deg; --d: 20px; --g: 11px; width: 7px; height: 7px; left: -1.5px; top: -4.5px; background: var(--brand); animation-delay: 0.08s; }

@keyframes pop {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(var(--a)) translateY(-6px) scale(0.2) rotate(0deg);
  }
  30% {
    opacity: 1;
    transform: translateY(calc(var(--g) * -0.2)) rotate(var(--a)) translateY(calc(var(--d) * -0.7)) scale(1)
      rotate(30deg);
  }
  100% {
    opacity: 0;
    transform: translateY(var(--g)) rotate(var(--a)) translateY(calc(var(--d) * -1)) scale(0.3) rotate(120deg);
  }
}

/* A burst only shows on the pressed control; un-hiding it replays the animation. */
[aria-pressed='false'] > .burst {
  display: none;
}

.trail {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.spk {
  position: absolute;
  display: block;
  opacity: 0;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  transform: translate(-50%, -50%);
}

/* Two identical animations under different names, so switching between them restarts it. */
.spk.a {
  animation: spkA 0.9s ease-out forwards;
}

.spk.b {
  animation: spkB 0.9s ease-out forwards;
}

@keyframes spkA {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.2) rotate(0deg); }
  30% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(30deg); }
  100% { opacity: 0; transform: translate(-50%, 0) scale(0.3) rotate(120deg); }
}

@keyframes spkB {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.2) rotate(0deg); }
  30% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(30deg); }
  100% { opacity: 0; transform: translate(-50%, 0) scale(0.3) rotate(120deg); }
}

/* Dark sections */

.party {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-color: #0b0809;
  background-image:
    radial-gradient(ellipse 75% 60% at 88% 105%, rgba(200, 16, 46, 0.55), transparent 62%),
    radial-gradient(ellipse 55% 45% at 6% 0%, rgba(142, 11, 32, 0.42), transparent 65%),
    linear-gradient(180deg, #0b0809 0%, #140a0d 100%);
}

.hero .wrap {
  position: relative;
  padding-top: 112px;
  padding-bottom: 112px;
  gap: 24px;
}

.hero h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(72px, 22vw, 176px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.hero .lede {
  max-width: 600px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* Cards */

.card {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-sizing: border-box;
}

.pcard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(11, 8, 9, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-color: rgba(247, 210, 122, 0.35);
  color: #fff;
}

.pcard p:not(.eyebrow) {
  margin: 0;
}

/* Schedule */

.schedule {
  padding: 104px 0;
  background: var(--mist);
}

.schedule > .wrap {
  gap: 40px;
}

.pill {
  position: relative;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.pill[aria-pressed='true'] {
  background: var(--ink);
  color: #fff;
}

.pill[aria-pressed='false']:hover {
  background: rgba(27, 23, 23, 0.1);
}

.pill[aria-pressed='true']:hover {
  filter: brightness(1.18);
}

.pill:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.daybar {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: -14px -24px;
  padding: 14px 24px;
  background: var(--mist);
}

.day {
  gap: 24px;
}

.day[hidden] {
  display: none;
}

.day-tight {
  gap: 20px;
}

.timeline {
  padding: 12px 32px;
}

.row {
  display: grid;
  grid-template-columns: minmax(110px, 170px) minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-top: 1.5px solid var(--line);
}

.row:first-child {
  border-top: 0;
}

.time {
  font-weight: 700;
  font-size: 18px;
  color: var(--brand);
}

.what {
  font-weight: 700;
  font-size: 21px;
  margin: 0 0 4px;
}

.where {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.dayintro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 22px 0 20px;
  border-bottom: 1.5px solid var(--line);
}

.dayintro + .row {
  border-top: 0;
}

.dayintro .tag {
  margin-left: 0;
}

.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #e9f4f6;
  color: #37737f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}

.raddr {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 12px;
  line-height: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.row .raddr {
  margin: 0 0 6px;
}

.raddr svg {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  margin-top: 2px;
  color: var(--brand);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  min-height: 44px;
  font-weight: 700;
  font-size: 16px;
  color: var(--brand);
  text-decoration: none;
}

.cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.cta:hover {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cta:hover svg {
  transform: translateY(3px);
}

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

.daycard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 28px;
}

.daycard .what {
  font-size: 22px;
  margin: 0;
}

.daycard .where {
  font-size: 17px;
  color: var(--ink);
}

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

.dinbox {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.dinbox .what {
  font-size: 16px;
  margin: 0;
}

.teamfind {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  font-size: 15px;
  color: var(--muted);
}

.teaminput {
  min-height: 36px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1.5px solid var(--line-strong);
  border-radius: 0;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  width: 180px;
  max-width: 100%;
}

.teaminput::placeholder {
  color: #8a7f7c;
}

.teaminput:focus,
.teaminput:focus-visible {
  outline: none;
  border-bottom-color: var(--ink);
}

.teamres {
  color: var(--ink);
}

.teamitem {
  white-space: nowrap;
}

.teamitem strong {
  font-weight: 700;
}

.teamsep {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin: 0 12px;
  background: var(--brand);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

/* Shown on a match; un-hiding it replays the pop and the burst. */
.teamspark {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 6px;
  vertical-align: -1px;
  color: var(--brand);
}

.teamspark[hidden] {
  display: none;
}

.teamspark svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
  animation: sparkpop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.teamspark .burst i {
  animation-delay: 0.12s;
}

@keyframes sparkpop {
  0% { transform: scale(0) rotate(-120deg); color: var(--gold-light); }
  45% { transform: scale(1.9) rotate(20deg); color: var(--gold); }
  70% { transform: scale(0.85) rotate(-6deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* Arrivals board */

.board {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 28px 32px;
  gap: 20px;
}

.board-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.board-title svg {
  width: 30px;
  height: 30px;
  color: var(--brand);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.board-title p {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 22px;
  letter-spacing: 0.14em;
}

.board-scroll {
  overflow-x: auto;
}

.board-table {
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.arow {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform-origin: top center;
  animation: flip 0.7s cubic-bezier(0.3, 1.3, 0.5, 1) both;
}

.arow.ahead {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 500;
  padding: 0 12px;
  animation: none;
}

.arow:nth-child(2) { animation-delay: 0s; }
.arow:nth-child(3) { animation-delay: 0.1s; }
.arow:nth-child(4) { animation-delay: 0.2s; }
.arow:nth-child(5) { animation-delay: 0.3s; }
.arow:nth-child(6) { animation-delay: 0.4s; }
.arow:nth-child(7) { animation-delay: 0.5s; }
.arow:nth-child(8) { animation-delay: 0.6s; }
.arow:nth-child(9) { animation-delay: 0.7s; }
.arow:nth-child(10) { animation-delay: 0.8s; }
.arow:nth-child(11) { animation-delay: 0.9s; }

@keyframes flip {
  0% {
    transform: rotateX(-90deg);
    opacity: 0;
  }
  100% {
    transform: rotateX(0);
    opacity: 1;
  }
}

.flap {
  position: relative;
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  background: linear-gradient(#fff 0 49%, #e6dad5 49% 51%, #f7f0ed 51% 100%);
  color: var(--brand);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(27, 23, 23, 0.06);
  white-space: nowrap;
}

.arow:not(.ahead) .flap {
  animation: flapflick 16s ease-in-out 4s infinite;
  transform-origin: center;
}

.arow:nth-child(3) .flap { animation-delay: 4.09s; }
.arow:nth-child(4) .flap { animation-delay: 4.18s; }
.arow:nth-child(5) .flap { animation-delay: 4.27s; }
.arow:nth-child(6) .flap { animation-delay: 4.36s; }
.arow:nth-child(7) .flap { animation-delay: 4.45s; }
.arow:nth-child(8) .flap { animation-delay: 4.54s; }
.arow:nth-child(9) .flap { animation-delay: 4.63s; }
.arow:nth-child(10) .flap { animation-delay: 4.72s; }
.arow:nth-child(11) .flap { animation-delay: 4.81s; }

@keyframes flapflick {
  0%,
  90%,
  100% {
    transform: rotateX(0deg);
    filter: none;
    opacity: 1;
  }
  91% {
    transform: rotateX(-80deg);
    filter: brightness(1.35);
    opacity: 0.6;
  }
  92% {
    transform: rotateX(0deg);
    opacity: 1;
  }
  92.6% {
    opacity: 0.55;
  }
  93.2% {
    opacity: 1;
    filter: brightness(1.2);
  }
  94% {
    transform: rotateX(-60deg);
    opacity: 0.75;
  }
  95% {
    transform: rotateX(0deg);
    filter: none;
  }
}

.habs {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  border: 1px dashed rgba(200, 16, 46, 0.35);
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 500;
}

/* Holiday party */

.party-section .wrap {
  position: relative;
  padding-top: 128px;
  padding-bottom: 128px;
  gap: 72px;
}

.party-head {
  gap: 22px;
  align-items: center;
  text-align: center;
}

.party-head h2 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(52px, 14.5vw, 140px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.party-head .lede {
  max-width: 908px;
  text-wrap: pretty;
}

.party-grid {
  display: grid;
  gap: 20px;
}

.party-grid-wide {
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
}

.party-grid-thirds {
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

.venue {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.venue-name {
  margin: 0;
  font-weight: 800;
  font-size: clamp(48px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.venue .muted {
  font-size: 18px;
}

.venue .btn {
  align-self: flex-start;
}

.dress-code {
  margin: 0;
  font-weight: 800;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.party-time {
  font-weight: 700;
  font-size: 28px;
  color: var(--gold-light);
}

.pcard .h3 {
  color: #fff;
}

.on-dark {
  color: var(--on-dark);
}

/* Out of town Habs */

.travel {
  padding: 104px 0;
}

.travel > .wrap {
  gap: 56px;
}

.travel .section-head .muted {
  font-size: 19px;
}

.bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 20px;
  align-items: stretch;
}

.packing {
  gap: 16px;
}

.packing > .muted {
  font-size: 15px;
}

.pack {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  cursor: pointer;
  font-size: 17px;
}

.pack input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.box {
  position: relative;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.box svg {
  width: 16px;
  height: 16px;
  fill: #fff;
  transform: scale(0) rotate(-120deg);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pack input:checked + .box {
  background: var(--brand);
  border-color: var(--brand);
}

.pack input:checked + .box svg {
  transform: scale(1) rotate(0deg);
}

.pack input:checked + .box + .txt {
  text-decoration: line-through;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  color: var(--muted);
}

.pack input:focus-visible + .box {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* An item the Hab added, with its remove button. */
.packrow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.packrow .pack {
  flex: 1 1 auto;
  min-width: 0;
}

.packdel {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.packdel svg {
  width: 16px;
  height: 16px;
}

.packdel:hover {
  background: #f5f0ee;
  color: var(--ink);
}

.packdel:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.packadd {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  margin: 0;
}

.packadd .box {
  border-style: dashed;
  border-color: #b8aba7;
}

.packinput {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 360px;
  min-height: 36px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1.5px solid var(--line-strong);
  border-radius: 0;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: transparent;
}

.packinput::placeholder {
  color: #8a7f7c;
}

.packinput:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

.packnote {
  margin: 0;
  color: #8a7f7c;
  font-size: 13px;
}

.protip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff6e3;
  border: 1px solid var(--gold-light);
  color: var(--ink);
  font-size: 16px;
}

.protip svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: #e0a91b;
}

.protip p {
  margin: 0;
}

.accs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* script.js sets its min-height from the packing card. */
  align-self: start;
}

.acc {
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  transition:
    border-color 0.25s ease,
    box-shadow 0.45s ease,
    flex-grow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.acc:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

.acc.open {
  flex-grow: 1;
  box-shadow: 0 14px 30px -22px rgba(27, 23, 23, 0.35);
}

.acc.open:hover {
  box-shadow:
    0 0 0 1px var(--gold),
    0 14px 30px -22px rgba(27, 23, 23, 0.35);
}

.accsum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 26px;
  min-height: 44px;
  cursor: pointer;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  border-radius: 18px;
}

.accsum > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.accsum:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.accstar {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  fill: var(--line-strong);
  transition:
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    fill 0.25s ease;
}

.accsum:hover .accstar {
  fill: var(--gold);
  transform: rotate(45deg) scale(1.1);
}

.acc.open .accstar {
  fill: var(--gold);
  transform: rotate(135deg) scale(1.15);
}

.acc.open .accsum:hover .accstar {
  transform: rotate(135deg) scale(1.25);
}

.accwrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.acc.open .accwrap {
  grid-template-rows: 1fr;
}

.accinner {
  overflow: hidden;
  min-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.acc.open .accinner {
  opacity: 1;
  transform: none;
  transition-delay: 0.08s;
}

/* Closed panels stay in the layout for the height animation, so keep them out of the tab order. */
.acc:not(.open) .accinner {
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0.5s;
}

.accbody {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 26px 24px;
}

/* Recommendations */

.recs {
  gap: 24px;
}

.recs-head {
  gap: 8px;
}

.recs-head .h3 {
  font-size: 32px;
}

.recs-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch;
}

.recs-map {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.mapwrap {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  /* A definite height, not just min-height, or `cqh` in .mapstage resolves to 0 once the map wraps under the list. */
  height: 380px;
  min-height: 380px;
  container-type: size;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  background: #f2f1ee;
}

.mapstage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100cqw, calc(100cqh * 2006 / 1190));
  aspect-ratio: 2006 / 1190;
  transform: translate(-50%, -50%);
}

.mapbase {
  display: block;
  width: 100%;
  height: 100%;
}

/* The live Google map, when script.js has an API key. */
.gmap {
  position: absolute;
  inset: 0;
}

.mapcredit {
  position: absolute;
  right: 8px;
  bottom: 6px;
  z-index: 4;
  font-size: 11px;
  color: #3d3533;
  background: rgba(255, 255, 255, 0.85);
  padding: 1px 6px;
  border-radius: 4px;
}

.pin {
  position: absolute;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-sans);
  cursor: pointer;
  transform: translate(-50%, -90%);
  z-index: 2;
}

.pin:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 50%;
}

.pdot {
  position: absolute;
  left: 5px;
  top: 2px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  border: 2px solid #fff;
  box-sizing: border-box;
  box-shadow: 0 6px 14px -6px rgba(27, 23, 23, 0.6);
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.2s ease,
    opacity 0.2s ease;
}

.pdot span {
  transform: rotate(45deg);
  font-weight: 800;
  font-size: 14px;
}

.pin:hover .pdot {
  transform: rotate(-45deg) scale(1.15);
}

.pin.on .pdot {
  background: var(--brand);
  color: #fff;
}

.pin.off .pdot {
  background: #fff;
  color: var(--muted);
  opacity: 0.7;
}

.pin.sel {
  z-index: 3;
}

.pin.sel .pdot {
  background: var(--ink);
  color: var(--gold-light);
  transform: rotate(-45deg) scale(1.2);
  box-shadow:
    0 0 0 4px rgba(242, 182, 50, 0.55),
    0 8px 18px -6px rgba(27, 23, 23, 0.6);
}

.hotel {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  z-index: 1;
}

.hdot {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 3px #fff,
    0 10px 20px -8px rgba(27, 23, 23, 0.7);
}

.hdot svg {
  width: 24px;
  height: 24px;
}

.hlabel {
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.station {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.sdot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--ink);
  box-sizing: border-box;
}

.slabel {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255, 252, 250, 0.9);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

/* On the live map the Granville Island stations are where they really are,
   and each station's dot, not the middle of its label, sits on the spot. */
.gmap .offmap {
  display: none;
}

.gmap .station {
  transform: translate(-7px, -50%);
}

.reccard {
  flex: 1 1 380px;
  height: 600px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.fseg {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  background: var(--mist);
  border-radius: 999px;
  width: 100%;
  box-sizing: border-box;
}

.fpill {
  min-height: 40px;
  padding: 6px 12px;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-color: transparent;
}

.fpill[aria-pressed='true'] {
  background: var(--brand);
  border-color: var(--brand);
}

.reclist {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 6px;
  margin-right: -6px;
  scrollbar-width: thin;
}

.reclist:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.rec {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.rec[hidden] {
  display: none;
}

.rec:hover {
  border-color: var(--line-strong);
}

.rec:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.rec.sel {
  border-color: var(--ink);
  background: var(--paper);
}

.rec > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.rec .what {
  font-size: 18px;
  margin: 0;
}

.rec-why {
  color: var(--muted);
  font-size: 15px;
}

.rec-by {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-dark);
  white-space: nowrap;
}

.rnum {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.rec.sel .rnum {
  background: var(--ink);
  color: var(--gold-light);
}

/* Footer */

.site-footer .wrap {
  position: relative;
  padding-top: 88px;
  padding-bottom: 88px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.site-footer .stack {
  gap: 12px;
}

.sign-off {
  margin: 0;
  font-weight: 800;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Responsive */

@media (max-width: 1100px) {
  .dingrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .daycards {
    grid-template-columns: minmax(0, 1fr);
  }

  .row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 18px 0;
  }

  .time {
    font-size: 16px;
  }

  .arow {
    align-items: stretch;
  }

  .arow .flap {
    display: flex;
    align-items: center;
  }
}

@media (max-width: 560px) {
  .dingrid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Not in the design, which only went down to tablet width. */
  .timeline {
    padding: 4px 20px;
  }

  .board {
    padding: 22px 20px;
  }

  .arow {
    grid-template-columns: 110px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .trail,
  .burst {
    display: none;
  }

  .acc,
  .accwrap,
  .accinner,
  .accstar {
    transition: none !important;
  }

  .arow .flap {
    animation: none !important;
  }

  .tw,
  .shimmer,
  .dotstar,
  .hero h1 .dotstar,
  .arow,
  .teamspark svg {
    animation: none;
  }

  .shimmer {
    color: #fff;
  }
}
