:root {
  color-scheme: dark;
  --ink: #0b1f1c;
  --surface: #102b26;
  --surface-2: #173a33;
  --line: rgba(255, 255, 255, 0.12);
  --green: #42ce7c;
  --orange: #ff874b;
  --paper: #fffdf5;
  --yes: #5fca86;
  --maybe: #f2bf4c;
  --no: #ef6862;
  --time-width: 3.75rem;
  --stage-width: 11.75rem;
  --hour-height: 8rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--surface);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 20rem;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 88% 3%, rgba(66, 206, 124, 0.18), transparent 27rem),
    var(--surface);
  font-family: "Arial Narrow", "Roboto Condensed", Impact, system-ui, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

.masthead {
  position: relative;
  z-index: 20;
  padding: max(1rem, env(safe-area-inset-top)) 1rem 1rem;
  color: var(--ink);
  background: var(--green);
  border-bottom: 0.35rem solid var(--orange);
}

.brand {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  max-width: 100rem;
  margin-inline: auto;
}

.brand-mark {
  color: var(--orange);
  font-size: clamp(1.65rem, 8vw, 4.6rem);
  font-weight: 1000;
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.brand-mark span {
  display: inline-block;
  transform: scaleX(0.8);
}

.brand-subtitle {
  font-family: system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

.intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  max-width: 100rem;
  margin: 1.25rem auto 0;
}

.eyebrow {
  margin: 0 0 0.1rem;
  font-family: system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(2.35rem, 10vw, 6.5rem);
  font-weight: 1000;
  line-height: 0.8;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  text-shadow: 0.08em 0.08em 0 rgba(11, 31, 28, 0.12);
}

.hint {
  margin: 0;
  font-family: system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 650;
  text-align: right;
}

.hint span {
  display: block;
  margin-top: 0.2rem;
  font-weight: 850;
}

.legend {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  max-width: 100rem;
  margin: 0.85rem auto 0;
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 750;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.legend i {
  width: 0.8rem;
  height: 0.8rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.legend .yes { background: var(--yes); }
.legend .maybe { background: var(--maybe); }
.legend .no { background: var(--no); }

main {
  position: relative;
}

.schedule-scroller {
  width: 100%;
  overflow: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--orange) var(--ink);
  scrollbar-width: thin;
}

.schedule-scroller:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: -3px;
}

.schedule {
  position: relative;
  display: grid;
  grid-template-columns: var(--time-width) repeat(7, var(--stage-width));
  grid-template-rows: 4.5rem calc(12 * var(--hour-height));
  width: max-content;
  min-width: 100%;
  background-color: var(--surface);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(var(--hour-height) / 2 - 1px),
    rgba(255, 255, 255, 0.055) calc(var(--hour-height) / 2 - 1px),
    rgba(255, 255, 255, 0.055) calc(var(--hour-height) / 2),
    transparent calc(var(--hour-height) / 2),
    transparent calc(var(--hour-height) - 1px),
    var(--line) calc(var(--hour-height) - 1px),
    var(--line) var(--hour-height)
  );
  background-position-y: 4.5rem;
}

.corner,
.stage-heading {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0.65rem;
  color: var(--paper);
  background: rgba(11, 31, 28, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.corner {
  left: 0;
  z-index: 15;
  grid-column: 1;
  grid-row: 1;
  color: var(--orange);
  font-family: system-ui, sans-serif;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.stage-heading {
  grid-row: 1;
  border-left: 1px solid var(--line);
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}

.stage-heading small {
  display: block;
  margin-top: 0.2rem;
  color: var(--green);
  font-family: system-ui, sans-serif;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.time-rail {
  position: sticky;
  left: 0;
  z-index: 10;
  grid-column: 1;
  grid-row: 2;
  background: rgba(11, 31, 28, 0.97);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.time-label {
  position: absolute;
  right: 0.6rem;
  transform: translateY(-0.58em);
  color: rgba(255, 253, 245, 0.82);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.stage-lane {
  position: relative;
  grid-row: 2;
  border-left: 1px solid var(--line);
}

.act {
  --state-colour: var(--paper);
  position: absolute;
  left: 0.4rem;
  right: 0.4rem;
  top: calc(var(--start) * var(--hour-height));
  height: max(calc(var(--duration) * var(--hour-height)), 3.35rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.14rem;
  overflow: hidden;
  padding: 0.55rem 0.65rem;
  color: var(--ink);
  background: var(--state-colour);
  border: 2px solid var(--ink);
  border-radius: 0.55rem;
  box-shadow: 0 0.25rem 0 rgba(0, 0, 0, 0.24);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 120ms ease, background-color 150ms ease, box-shadow 120ms ease;
  -webkit-tap-highlight-color: transparent;
}

.act:hover {
  transform: translateY(-1px);
  box-shadow: 0 0.35rem 0 rgba(0, 0, 0, 0.28);
}

.act:active {
  transform: translateY(2px);
  box-shadow: 0 0.08rem 0 rgba(0, 0, 0, 0.3);
}

.act:focus-visible {
  z-index: 2;
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.act[data-choice="yes"] { --state-colour: var(--yes); }
.act[data-choice="maybe"] { --state-colour: var(--maybe); }
.act[data-choice="no"] { --state-colour: var(--no); }

.act-name {
  display: -webkit-box;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
  text-align: left;
  text-transform: uppercase;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.act-time {
  font-family: system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.015em;
}

.act-lineup {
  max-width: 100%;
  font-family: system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.35;
}

.act-choice {
  position: absolute;
  top: 0.35rem;
  right: 0.42rem;
  display: none;
  font-family: system-ui, sans-serif;
  font-size: 0.56rem;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.act[data-choice] .act-choice {
  display: block;
}

.food-hub {
  --state-colour: var(--orange);
}

.mobile-cue {
  display: none;
  margin: 0;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  color: var(--ink);
  background: var(--orange);
  font-family: system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 850;
  text-align: center;
}

.mobile-cue span {
  display: inline-block;
  margin-left: 0.3rem;
  font-size: 1rem;
  animation: nudge 1.5s ease-in-out infinite;
}

noscript {
  display: block;
  padding: 1rem;
  color: var(--ink);
  background: var(--no);
  font-family: system-ui, sans-serif;
  text-align: center;
}

@keyframes nudge {
  50% { transform: translateX(0.35rem); }
}

@media (max-width: 43.75rem) {
  :root {
    --stage-width: 10.5rem;
    --hour-height: 7.5rem;
  }

  .masthead {
    padding-inline: 0.85rem;
  }

  .brand {
    align-items: flex-end;
  }

  .brand-subtitle {
    max-width: 8rem;
    font-size: 0.6rem;
  }

  .intro {
    margin-top: 1rem;
  }

  .hint {
    max-width: 8rem;
    font-size: 0.75rem;
  }

  .legend {
    justify-content: flex-start;
    margin-top: 0.8rem;
  }

  .schedule-scroller {
    max-height: calc(100vh - 13rem);
  }

  .mobile-cue {
    position: sticky;
    bottom: 0;
    z-index: 30;
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
