@font-face {
  font-family: Altform;
  src: url("assets/altform-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Altform;
  src: url("assets/altform-variable.ttf") format("truetype");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #131313;
  --chalk: #f7f6f1;
  --accent: #ffa900;
  --subtle: #c3c0b9;
  --frame-padding: clamp(.85rem, 2vw, 3rem);
  --grid-gap: clamp(.85rem, 2vw, 1.8rem);
  --grid-columns: 6;
  --columns: repeat(var(--grid-columns), minmax(0, 1fr));
  --masthead-height: 7.25rem;
  --display-size: clamp(1.4rem, 8.95vw, 20rem);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --sans: Altform, "Avenir Next", Avenir, "Century Gothic", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--masthead-height); }
body {
  position: relative;
  isolation: isolate;
  margin: 0;
  background: var(--ink);
  color: var(--chalk);
  font: 400 1rem/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4, h5 { text-transform: uppercase; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .25em; }
a:hover { text-decoration-thickness: .14em; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.frame { padding-inline: var(--frame-padding); }
body::before {
  --grid-line: rgb(170 170 170 / .48);
  content: "";
  position: absolute;
  z-index: 8;
  inset-block: 0;
  inset-inline: var(--frame-padding);
  border-right: 1px solid var(--grid-line);
  pointer-events: none;
  mix-blend-mode: difference;
  background-image: linear-gradient(to right,
    var(--grid-line) 0 1px,
    transparent 1px calc(100% - var(--grid-gap) - 1px),
    var(--grid-line) calc(100% - var(--grid-gap) - 1px) calc(100% - var(--grid-gap)),
    transparent calc(100% - var(--grid-gap)));
  background-size: calc((100% + var(--grid-gap) + 1px) / var(--grid-columns)) 100%;
}
.skip { position: absolute; z-index: 10; left: 1rem; top: .7rem; background: var(--accent); color: var(--ink); padding: .5rem 1rem; transform: translateY(-180%); }
.skip:focus { transform: none; }

.masthead, .site-footer, .hero, .cover-gallery, .event-card {
  display: grid;
  grid-template-columns: var(--columns);
  column-gap: var(--grid-gap);
}
.masthead, .site-footer { align-items: center; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 9;
  pointer-events: none;
  mix-blend-mode: difference;
}
.masthead { min-height: var(--masthead-height); }
.brand-link { display: flex; align-items: center; min-height: 2.75rem; }
.brand-link img { display: block; width: 100%; height: auto; filter: brightness(0) invert(1); }
.site-header .brand-link { grid-column: span 2; pointer-events: auto; }
.site-header .brand-link:focus-visible { outline-color: var(--accent); }
.site-footer { min-height: 8rem; }
.site-footer .brand-link { grid-column: span 2; width: min(100%, 12rem); }
.back-to-top { grid-column: -3 / -1; justify-self: end; padding-block: .7rem; }

.hero {
  position: relative;
  isolation: isolate;
  align-items: center;
  min-block-size: max(36rem, calc(100svh - var(--masthead-height)));
  padding-block: clamp(1.2rem, 4vh, 3rem);
  overflow: clip;
}
.hero-copy {
  grid-area: 1 / 1 / 2 / -1;
  position: relative;
  min-width: 0;
  justify-self: stretch;
  text-align: left;
  pointer-events: none;
}
.eyebrow {
  display: inline-block;
  margin-bottom: clamp(1.05rem, 2.45vw, 2.2rem);
  color: var(--accent);
  font-size: .9rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.cover-title {
  mix-blend-mode: screen;
  text-transform: uppercase;
  font-size: var(--display-size);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.03;
}
.cover-title h1 { font: inherit; letter-spacing: inherit; }
.cover-title h1 > * { display: block; }
.cover-title em {
  margin-top: .06em;
  color: var(--accent);
  font-style: normal;
}
.main-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.85rem;
  margin-top: 1.4rem;
  padding: .5rem 1rem;
  background: var(--accent);
  color: var(--ink);
  text-decoration: none;
  pointer-events: auto;
}
.main-link:hover { background: var(--chalk); }
.main-link:focus-visible { outline-color: var(--accent); }

@property --toggle-progress {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
.itinerary-toggle, .calendar-download {
  --control-height: clamp(3.25rem, 16.4vw, 4rem);
  height: var(--control-height);
  max-width: 100%;
  border-radius: 99rem;
}
.calendar-download {
  display: grid;
  width: var(--plan-control-width, 359px);
  place-items: center;
  background: var(--accent);
  color: var(--ink);
  text-decoration: none;
  font-size: clamp(1.05rem, 3.8vw, 1.375rem);
  font-weight: 700;
}
.calendar-download:hover { background: var(--ink); color: var(--chalk); }
.calendar-download:focus-visible { outline-color: var(--ink); }
.itinerary-toggle {
  --thumb-width: var(--control-height);
  --travel: calc(100% - var(--thumb-width));
  --label-thumb-gap: calc(var(--thumb-width) * .354);
  --label-edge-gap: calc(var(--thumb-width) * .59375);
  --toggle-border: clamp(2px, .75vw, 2.91px);
  --toggle-progress: var(--drag-progress, 0);
  --fill-edge: calc(var(--toggle-progress) * var(--travel) + var(--thumb-width) / 2);
  display: inline-grid;
  width: max-content;
  position: relative;
  margin-top: clamp(1.15rem, 2.45vw, 2rem);
  padding: 0;
  border: 0;
  box-shadow: inset 0 0 0 var(--toggle-border) #fff;
  background: linear-gradient(90deg, var(--accent) var(--fill-edge), #121212 var(--fill-edge));
  color: var(--chalk);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  user-select: none;
  vertical-align: middle;
  transition: --toggle-progress .13s cubic-bezier(.15, .95, .25, 1);
}
.itinerary-toggle[aria-checked="true"] { --toggle-progress: var(--drag-progress, 1); }
.itinerary-toggle[data-sliding] { transition: none; }
.itinerary-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.itinerary-toggle[data-scroll-cue]::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 2px solid var(--accent);
  border-radius: inherit;
  pointer-events: none;
  animation: toggle-scroll-cue .55s ease-out 2;
}
.itinerary-toggle[data-scroll-cue] .toggle-mark { --halo: .42rem; }
@keyframes toggle-scroll-cue {
  0% { opacity: 0; transform: scale(1); }
  24% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.045, 1.24); }
}
.toggle-label,
.toggle-label-mask {
  pointer-events: none;
}
.toggle-label {
  display: flex;
  align-items: center;
  height: 100%;
  padding-inline: calc(var(--thumb-width) + var(--label-thumb-gap)) var(--label-edge-gap);
  font: 700 clamp(1rem, 5vw, 1.375rem)/1 var(--sans);
  white-space: nowrap;
  transform: translateX(calc((var(--label-edge-gap) - var(--thumb-width) - var(--label-thumb-gap)) * var(--toggle-progress)));
}
.toggle-label-mask {
  position: absolute;
  inset: 0;
  color: var(--ink);
  clip-path: inset(0 calc(100% - var(--fill-edge)) 0 0);
}
.toggle-mark {
  --halo: 0px;
  display: block;
  position: absolute;
  inset-block: 0;
  inset-inline-start: calc(var(--toggle-progress) * var(--travel));
  width: var(--thumb-width);
  border-radius: 50%;
  box-shadow: inset 0 0 0 var(--toggle-border) #fff, 0 0 0 var(--halo) rgb(255 169 0 / .46);
  background: #121212;
  cursor: grab;
  touch-action: none;
  transition: box-shadow .15s ease;
}
.toggle-mark svg { display: block; width: 100%; height: 100%; fill: var(--chalk); }
@media (hover: hover) {
  .toggle-mark:hover { --halo: .42rem; }
}
.itinerary-toggle[data-sliding] .toggle-mark { --halo: .7rem; cursor: grabbing; }
.cover-gallery {
  position: absolute;
  z-index: -1;
  inset: 0 var(--frame-padding);
  grid-template-rows: repeat(12, minmax(0, 1fr));
  pointer-events: none;
}
.cover-tile {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  align-self: center;
  pointer-events: auto;
}
.cover-tile img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--tile-ratio, 1.5);
  object-fit: cover;
}
.cover-tile span {
  position: absolute;
  inset: auto auto 0 0;
  padding: .3rem .5rem;
  background: var(--accent);
  color: var(--ink);
  font-size: .82rem;
  opacity: 0;
}
.cover-tile:is(:hover, :focus-visible) span { opacity: 1; }
.cover-tile:focus-visible { z-index: 2; outline-color: var(--accent); }
.cover-departure { grid-area: 1 / 1 / 5 / 3; width: 72%; --tile-ratio: 1.72; --entry-time: 1.2s; }
.cover-park { grid-area: 5 / 1 / 10 / 2; width: 86%; --tile-ratio: 1.12; --entry-time: .92s; --entry-delay: .18s; }
.cover-house { grid-area: 9 / 2 / 13 / 3; width: 92%; --entry-time: 1.4s; --entry-delay: .11s; }
.cover-workshop { grid-area: 1 / 5 / 5 / 7; justify-self: end; width: 71%; --tile-ratio: 1.75; --entry-time: 1.55s; --entry-delay: .08s; }
.cover-dinner { grid-area: 5 / 6 / 9 / 7; width: 88%; justify-self: end; --tile-ratio: 1.43; --entry-time: .86s; --entry-delay: .24s; }
.cover-ramen { grid-area: 9 / 5 / 13 / 6; width: 68%; justify-self: end; --tile-ratio: .95; --entry-time: 1.37s; --entry-delay: .21s; }
.cover-street { grid-area: 9 / 6 / 13 / 7; --tile-ratio: 1.4; --entry-time: 1.05s; --entry-delay: .31s; }

.cover-gallery.gallery-motion {
  display: block;
  isolation: isolate;
  inset-inline: 0;
  touch-action: none;
  pointer-events: auto;
  cursor: grab;
  user-select: none;
}
.cover-gallery.gallery-motion[data-itinerary-enabled="true"] { touch-action: pan-y; }
.cover-extra { display: none; }
.cover-gallery.gallery-motion[data-dragging] { cursor: grabbing; }
.gallery-motion .cover-tile {
  display: block;
  position: absolute;
  inset: 0 auto auto 0;
  width: var(--tile-width);
  cursor: inherit;
  touch-action: none;
  transform-origin: 0 0;
  transform: translate3d(var(--tile-x, 0px), var(--tile-y, 0px), 0) scale(var(--tile-scale, 1));
  opacity: var(--tile-opacity, 0);
}
.gallery-motion .cover-tile :is(img, video) {
  display: block;
  width: 100%;
  object-fit: cover;
  pointer-events: none;
  height: var(--tile-height);
  -webkit-user-drag: none;
  user-select: none;
}
.cover-gallery:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.gallery-playback {
  position: absolute;
  z-index: 3;
  right: var(--frame-padding);
  bottom: .7rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  cursor: pointer;
}
.gallery-playback:focus-visible { outline-color: var(--accent); }
.gallery-playback span { display: block; width: .65rem; height: .85rem; border-inline: .17rem solid; }
.gallery-playback[data-paused] span {
  width: 0;
  height: 0;
  transform: translateX(.08rem);
  border: .42rem solid transparent;
  border-inline-start: .65rem solid currentColor;
  border-inline-end: 0;
}

.itinerary {
  position: relative;
  isolation: isolate;
  background: var(--chalk);
  color: var(--ink);
  padding-block: max(calc(var(--masthead-height) + 1.5rem), clamp(4rem, 10vw, 10rem)) clamp(3rem, 7vw, 7rem);
  scroll-margin-top: calc(-1 * var(--masthead-height));
  color-scheme: light;
}
.timeline-intro {
  max-inline-size: 19ch;
  margin-block-end: clamp(5rem, 11vw, 11rem);
  font-family: var(--sans);
  font-size: clamp(2.5rem, 8.5vw, 9rem);
  font-weight: 700;
  letter-spacing: normal;
  line-height: .98;
}
.timeline-intro-line { display: block; text-wrap: balance; }
.timeline-intro-line + .timeline-intro-line { margin-block-start: .5em; }
@media (prefers-reduced-motion: no-preference) {
  .timeline-intro-word {
    --word-ink: clamp(0%, calc((var(--intro-progress, 100) - var(--word-start, 0)) * 55%), 100%);
    --intro-highlight: color-mix(in srgb, var(--accent) 50%, transparent);
    color: color-mix(in srgb, var(--ink) var(--word-ink), var(--intro-highlight));
  }
}
.day {
  --day-title-size: var(--display-size);
  --day-bar-height: calc(var(--display-size) * 1.03 + .5rem);
  --day-number-width: calc(var(--day-title-size) * 1.32 + .38rem);
  --day-number-gap: clamp(.55rem, 2vw, 1.5rem);
  padding-bottom: clamp(4rem, 9vw, 8rem);
}
.day-head {
  min-height: var(--day-bar-height);
  margin-block-end: 3.5rem;
}
.day-head--numbered {
  margin-block-start: calc(-1 * var(--day-bar-height));
  padding-inline-start: calc(var(--day-number-width) + var(--day-number-gap));
}
.day-head h3 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .45rem;
}
.day-name,
.day-number span {
  font-size: var(--day-title-size);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.03;
}
.day-head time {
  align-self: center;
  font-size: clamp(.72rem, 2.8vw, .95rem);
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
}
.day-number {
  display: block;
  width: var(--day-number-width);
  height: var(--day-bar-height);
  position: relative;
  z-index: 5;
  pointer-events: none;
}
.day-number span {
  display: block;
  text-align: center;
  background: var(--accent);
  color: var(--ink);
  padding-block: .04em;
}
@media (prefers-reduced-motion: no-preference) and (min-height: 32rem) {
  .day {
    --day-title-size: calc(var(--display-size) * (1 - var(--day-shrink, 0)) +
      var(--day-compact-size, 2rem) * var(--day-shrink, 0));
    --day-bar-height: max(2.75rem, calc(var(--day-compact-size, 2rem) + .75rem));
  }
  .day-head, .day-number { position: sticky; top: var(--masthead-height); }
  .day-head {
    height: var(--day-bar-height);
    margin-block-end: calc(
      max(clamp(4rem, 13svh, 8rem), var(--display-size) - var(--day-bar-height) + 2rem) +
      clamp(1.5rem, 3vw, 2.5rem)
    );
    z-index: 4;
    color: #fff;
    mix-blend-mode: difference;
  }
  .day-head h3 { height: 100%; }
  .day-name, .day-number span {
    margin-block-start: .25rem;
    transform: translateY(var(--day-drift, 0px));
  }
  .day-number { display: flow-root; }
}

@media (min-width: 50rem) {
  .day-head h3 {
    flex-direction: row-reverse;
    justify-content: flex-start;
    gap: var(--day-number-gap);
  }
  .day-name { flex: 0 0 auto; }
  .day-head--numbered { padding-inline-start: 0; }
  .day-number {
    margin-inline-start: auto;
    margin-inline-end: calc(var(--day-name-width, 0px) + var(--day-number-gap));
  }
}
@media (min-width: 50rem) and (min-height: 32rem) and (prefers-reduced-motion: no-preference) {
  .day-head, .day-number {
    top: calc(var(--masthead-height) - (var(--masthead-height) + var(--day-bar-height)) / 2 * var(--day-shrink, 0));
  }
}

.events {
  display: grid;
  gap: clamp(3.8rem, 9vw, 8rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.event-card {
  align-items: center;
  scroll-margin-top: calc(var(--day-bar-height) + .75rem);
}
.event-photo {
  grid-column: 1 / 5;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.52;
  background: #e4e0d5;
}
.event-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-source { display: block; height: 100%; }
.photo-source:focus-visible { outline-offset: -4px; }
.event-copy { grid-column: 5 / -1; padding-block: .7rem; min-width: 0; }
.event-card:nth-child(even) .event-photo { grid-column: 3 / -1; }
.event-card:nth-child(even) .event-copy { grid-area: 1 / 1 / auto / 3; }
.event-time { display: inline-block; margin-bottom: .75rem; padding: .25rem .55rem; background: var(--accent); font-variant-numeric: tabular-nums; }
.event-weekday { margin-inline-end: .35em; font-weight: 700; }
.event-copy h4 { font-size: clamp(1.65rem, 3.35vw, 3.7rem); line-height: 1; font-weight: 700; letter-spacing: -.061em; overflow-wrap: anywhere; }
.event-copy p:not(.event-time) { color: #47473f; }
.card-location { margin: .95rem 0 0; overflow-wrap: anywhere; }
.event-copy .card-coordinates { margin: .45rem 0 0; font-variant-numeric: tabular-nums; }
.event-copy .card-note { margin-top: .75rem; }
.departure-car { margin-top: .85rem; }
.departure-car h5 { margin: 0; font-size: 1rem; }
.departure-car .card-location { margin-top: .25rem; }

@keyframes hero-heading {
  from { clip-path: inset(0 0 100%); transform: translateY(.23em); }
  to { clip-path: inset(-.16em -8% -.24em); transform: translateY(0); }
}
@keyframes hero-image {
  from { clip-path: inset(100% 0 0); transform: translateY(1.5rem); }
  to { clip-path: inset(0); transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .cover-title h1 > * { animation: hero-heading .85s var(--ease-out) both; }
  .cover-title em { animation-delay: .16s; }
  .cover-tile img { animation: hero-image var(--entry-time, 1s) var(--entry-delay, 0s) var(--ease-out) both; }
  .event-photo { clip-path: inset(0); transition: clip-path var(--photo-duration, .86s) var(--ease-out); }
  .event-card:nth-child(4n + 2) { --photo-duration: .64s; }
  .event-card:nth-child(4n + 3) { --photo-duration: 1.14s; }
  .event-card:nth-child(4n + 4) { --photo-duration: .76s; }
  .event-copy { transition: transform .75s var(--ease-out), opacity .55s ease; }
  .event-card:not(:focus-within) .event-photo.awaiting-photo-reveal { clip-path: inset(100% 0 0); }
  .event-card.awaiting-reveal:not(:focus-within) .event-copy { opacity: 0; transform: translateY(1.1rem); }
  .event-photo img { transform: translateY(var(--photo-shift, 0px)) scale(1.14); }
}

@media (max-width: 64rem) {
  .event-copy { padding-block: .3rem; }
}
@media (max-width: 50rem) {
  :root { --grid-columns: 4; --masthead-height: 5.5rem; }
  .cover-departure { grid-area: 1 / 1 / 5 / 3; width: 72%; align-self: start; }
  .cover-workshop { grid-area: 2 / 3 / 5 / 5; width: 73%; }
  .cover-park { grid-area: 10 / 1 / 13 / 3; width: 70%; }
  .cover-street { grid-area: 9 / 3 / 13 / 5; width: 70%; justify-self: end; }
  .cover-house, .cover-dinner, .cover-ramen { display: none; }
  .event-photo { grid-column: 1 / 3; }
  .event-copy { grid-column: 3 / -1; }
  .event-card:nth-child(even) .event-photo { grid-column: 3 / -1; }
}
@media (max-width: 38rem) {
  :root { --masthead-height: 4.75rem; }
  .masthead { padding-block: .75rem; }
  .site-header .brand-link { grid-column: 1 / span 3; }
  .site-header[data-over-plan] .brand-link img { max-inline-size: 53vw; }
  .cover-departure, .cover-workshop { width: 89%; }
  .cover-park, .cover-street { width: 83%; }
  .event-card { row-gap: .75rem; }
  .event-photo, .event-card:nth-child(even) .event-photo { grid-area: 1 / 1 / auto / -1; }
  .event-copy, .event-card:nth-child(even) .event-copy { grid-area: 2 / 1 / auto / -1; }
  .site-footer { padding-block: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .itinerary-toggle[data-scroll-cue]::after { animation: none; }
  .itinerary-toggle, .toggle-label, .toggle-mark { transition: none; }
}
