@font-face {
  font-family: "Oswald Local";
  src: url("assets/oswald.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
}

@font-face {
  font-family: "Work Sans Local";
  src: url("assets/work-sans.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono Local";
  src: url("assets/ibm-plex-mono.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --blue: #2147ff;
  --blue-dark: #1532bd;
  --citron: #e6ff38;
  --chalk: #f4f2fa;
  --white: #fff;
  --ink: #10110f;
  --muted: #5c5b66;
  --line: #b8b5c6;
  --focus: #ff5d35;
  --display: "Oswald Local", "Arial Narrow", sans-serif;
  --body: "Work Sans Local", Arial, sans-serif;
  --mono: "IBM Plex Mono Local", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body:has(dialog[open]) {
  overflow: hidden;
}

::selection {
  background: var(--citron);
  color: var(--ink);
}

* {
  scrollbar-color: var(--ink) var(--chalk);
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: var(--chalk);
}

*::-webkit-scrollbar-thumb {
  background: var(--ink);
  border: 2px solid var(--chalk);
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

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

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--citron);
  color: var(--ink);
  font-weight: 750;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.weekend-board {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(390px, 31.5vw) minmax(0, 1fr);
}

.date-rail {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 30px clamp(28px, 3vw, 52px) 28px;
  background: var(--blue);
  color: var(--white);
  border-right: 1px solid rgba(16, 17, 15, 0.9);
}

.brand-lockup {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.wordmark {
  display: inline-flex;
  gap: 0.12em;
  color: var(--citron);
  font-family: var(--display);
  font-size: 27px;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.wordmark span:last-child {
  color: var(--white);
}

.edition {
  margin: 1px 0 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.weekend-intro {
  padding-top: clamp(28px, 4vh, 46px);
}

.weekend-intro h1 {
  max-width: 8ch;
  margin: 0;
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(48px, 4.5vw, 70px);
  font-weight: 650;
  line-height: 0.94;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.weekend-intro p {
  max-width: 39ch;
  margin: 19px 0 0;
  color: #eef0ff;
  font-size: 14px;
  line-height: 1.5;
}

.date-stamp {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 0 13px;
  margin-top: clamp(21px, 3.4vh, 38px);
  color: var(--citron);
  font-family: var(--display);
  text-transform: uppercase;
}

.month {
  align-self: start;
  padding-top: 15px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.date-range {
  font-size: clamp(76px, 8vw, 120px);
  font-weight: 650;
  line-height: 0.8;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

.date-range span {
  display: inline-block;
  margin: 0 0.01em;
  font-weight: 300;
}

.days {
  grid-column: 2;
  margin-top: 8px;
  color: var(--white);
  font-family: var(--body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(118px, 0.58fr);
  gap: 7px 10px;
  margin-top: clamp(26px, 4vh, 46px);
}

.field-label {
  color: #eef0ff;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-wrap,
.select-wrap {
  position: relative;
}

.search-wrap svg,
.select-wrap svg {
  position: absolute;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 1.8;
  pointer-events: none;
}

.search-wrap svg {
  left: 13px;
}

.select-wrap svg {
  right: 12px;
}

.search-wrap input,
.select-wrap select {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.search-wrap input {
  padding: 0 12px 0 42px;
  caret-color: var(--blue);
}

.search-wrap input::placeholder {
  color: #5c5b66;
  opacity: 1;
}

.select-wrap select {
  appearance: none;
  padding: 0 38px 0 13px;
}

.search-wrap:focus-within input,
.select-wrap:focus-within select {
  box-shadow: 0 0 0 3px var(--citron);
}

.saved-toggle {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin-top: 5px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.saved-toggle svg,
.save-item svg {
  fill: transparent;
  stroke: currentColor;
  stroke-linejoin: miter;
  stroke-width: 1.7;
}

.saved-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.saved-toggle[aria-pressed="true"] {
  border-color: var(--citron);
  background: var(--citron);
  color: var(--ink);
}

.saved-toggle[aria-pressed="true"] svg,
.save-item[aria-pressed="true"] svg,
.is-saved .row-bookmark svg {
  fill: currentColor;
}

.saved-count {
  display: grid;
  min-width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.rail-note {
  margin: auto 0 0;
  padding-top: 24px;
  color: #eef0ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.program {
  min-width: 0;
  padding: 44px clamp(28px, 4.5vw, 72px) 30px;
  background: var(--chalk);
}

.program-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 22px;
  border-bottom: 4px solid var(--ink);
}

.program-header h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(38px, 3.6vw, 56px);
  font-weight: 620;
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.program-header p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 570;
}

.legend {
  display: flex;
  gap: 16px;
  padding-bottom: 2px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border: 1px solid var(--ink);
  background: transparent;
}

.legend-dot.paid {
  background: var(--ink);
}

.event-list {
  min-height: 420px;
}

.day-group {
  border-bottom: 4px solid var(--ink);
}

.day-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding: 21px 0 10px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--display);
  font-size: 24px;
  font-weight: 620;
  line-height: 1;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.day-heading span {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.event-item {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.event-item:last-child {
  border-bottom: 0;
}

.open-item {
  width: 100%;
  min-height: 158px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(126px, 0.37fr) 26px;
  gap: clamp(18px, 2.3vw, 34px);
  align-items: start;
  padding: 22px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.open-item::before {
  content: "";
  position: absolute;
  inset: 0 calc(clamp(28px, 4.5vw, 72px) * -1);
  z-index: 0;
  background: var(--row-color, var(--citron));
  opacity: 0;
  transition: opacity 180ms ease-out;
}

.open-item > * {
  position: relative;
  z-index: 1;
}

.open-item:hover::before,
.open-item:focus-visible::before {
  opacity: 0.22;
}

.open-item:active::before {
  opacity: 0.38;
}

.open-item:focus-visible {
  outline-offset: -3px;
}

.event-time {
  font-family: var(--mono);
  font-size: 20px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.event-time small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-family: var(--body);
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-copy {
  min-width: 0;
}

.event-category,
.detail-category {
  display: inline-block;
  padding: 3px 7px;
  background: var(--row-color, var(--citron));
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.event-copy h4 {
  max-width: 24ch;
  margin: 9px 0 0;
  font-size: clamp(19px, 1.55vw, 24px);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.event-copy p {
  max-width: 62ch;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.event-meta {
  display: grid;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
}

.event-meta div {
  display: grid;
  gap: 1px;
}

.event-meta dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.event-meta dd {
  margin: 0;
  font-weight: 630;
}

.row-action {
  align-self: center;
  display: grid;
  justify-items: center;
  gap: 21px;
}

.row-arrow {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  transition: transform 180ms ease-out;
}

.open-item:hover .row-arrow {
  transform: translateX(4px);
}

.row-bookmark {
  width: 18px;
  height: 18px;
  color: var(--blue);
}

.row-bookmark svg {
  width: 100%;
  height: 100%;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.8;
}

.loading-row {
  height: 158px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(
    100deg,
    transparent 20%,
    rgba(33, 71, 255, 0.08) 40%,
    transparent 60%
  );
  background-size: 240% 100%;
  animation: loading-sweep 1.3s ease-in-out infinite;
}

@keyframes loading-sweep {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

.empty-state {
  min-height: 450px;
  display: grid;
  grid-template-columns: 130px minmax(0, 390px);
  align-content: center;
  gap: 30px;
  border-bottom: 4px solid var(--ink);
}

.empty-state[hidden] {
  display: none;
}

.empty-mark {
  color: var(--blue);
  font-family: var(--display);
  font-size: 150px;
  font-weight: 650;
  line-height: 0.75;
}

.empty-state h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 36px;
  font-weight: 620;
  line-height: 1;
  text-transform: uppercase;
}

.empty-state p {
  margin: 13px 0 22px;
  color: var(--muted);
}

.reset-button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--white);
  font-weight: 720;
}

.reset-button:hover {
  background: var(--blue);
}

.program-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.program-footer p {
  margin: 0;
}

.program-footer a {
  font-weight: 750;
}

.detail-sheet {
  width: min(570px, 100vw);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: var(--chalk);
  color: var(--ink);
  box-shadow: -18px 0 42px rgba(10, 12, 24, 0.2);
  overflow-y: auto;
}

.detail-sheet[open] {
  animation: sheet-in 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-sheet::backdrop {
  background: rgba(10, 14, 34, 0.63);
  animation: backdrop-in 180ms ease-out;
}

@keyframes sheet-in {
  from {
    transform: translateX(45px);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.detail-sheet article {
  min-height: 100%;
}

.detail-topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 28px;
  background: var(--citron);
  border-bottom: 1px solid var(--ink);
}

.detail-topbar p {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.close-detail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 7px 0 7px 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.close-detail svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.detail-content {
  padding: clamp(38px, 6vw, 68px) clamp(28px, 5vw, 62px) 52px;
}

.detail-content h2 {
  max-width: 12ch;
  margin: 18px 0 0;
  font-family: var(--display);
  font-size: clamp(48px, 5vw, 66px);
  font-weight: 620;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.detail-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 42px 0 0;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.detail-facts div {
  min-height: 96px;
  padding: 16px 14px 16px 0;
  border-bottom: 1px solid var(--line);
}

.detail-facts div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.detail-facts div:nth-child(even) {
  padding-left: 18px;
}

.detail-facts div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.detail-facts dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-facts dd {
  margin: 7px 0 0;
  font-size: 15px;
  font-weight: 680;
  line-height: 1.35;
}

.detail-body {
  max-width: 66ch;
  margin-top: 34px;
  font-size: 17px;
  line-height: 1.62;
}

.detail-body p {
  margin: 0;
}

.detail-body p + p {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-weight: 630;
}

.save-item {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-top: 38px;
  padding: 13px 18px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--white);
  font-weight: 760;
}

.save-item:hover {
  background: var(--blue);
}

.save-item[aria-pressed="true"] {
  background: var(--citron);
  color: var(--ink);
}

.toast {
  position: fixed;
  z-index: 110;
  right: 22px;
  bottom: 22px;
  max-width: min(330px, calc(100vw - 36px));
  padding: 12px 16px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 680;
  box-shadow: 8px 10px 28px rgba(16, 17, 15, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease-out, transform 160ms ease-out;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .weekend-board {
    grid-template-columns: minmax(340px, 36vw) minmax(0, 1fr);
  }

  .open-item {
    grid-template-columns: 76px minmax(0, 1fr) 24px;
  }

  .event-meta {
    display: none;
  }
}

@media (max-width: 760px) {
  html {
    scroll-behavior: auto;
  }

  .weekend-board {
    display: block;
  }

  .date-rail {
    position: relative;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 18px 18px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .brand-lockup {
    padding-bottom: 11px;
  }

  .wordmark {
    font-size: 23px;
  }

  .weekend-intro {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: end;
    gap: 15px;
    padding-top: 18px;
  }

  .weekend-intro h1 {
    max-width: 9ch;
    font-size: 41px;
    line-height: 0.95;
  }

  .weekend-intro p {
    margin: 0 0 1px;
    font-size: 12px;
    line-height: 1.4;
  }

  .date-stamp {
    grid-template-columns: auto 1fr auto;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
  }

  .month {
    padding-top: 4px;
  }

  .date-range {
    font-size: 68px;
  }

  .days {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    max-width: 80px;
    margin: 0;
    line-height: 1.45;
  }

  .filter-panel {
    margin-top: 20px;
  }

  .rail-note {
    display: none;
  }

  .program {
    padding: 27px 18px 20px;
  }

  .program-header {
    align-items: flex-start;
    padding-bottom: 17px;
    border-bottom-width: 3px;
  }

  .program-header h2 {
    font-size: 36px;
  }

  .program-header p {
    margin-top: 7px;
    font-size: 12px;
  }

  .legend {
    display: none;
  }

  .day-heading {
    padding-top: 18px;
    font-size: 21px;
  }

  .open-item {
    min-height: 0;
    grid-template-columns: 62px minmax(0, 1fr) 18px;
    gap: 12px;
    padding: 18px 0;
  }

  .open-item::before {
    inset: 0 -18px;
  }

  .event-time {
    font-size: 15px;
  }

  .event-copy h4 {
    margin-top: 7px;
    font-size: 18px;
    line-height: 1.12;
  }

  .event-copy p {
    display: -webkit-box;
    margin-top: 7px;
    overflow: hidden;
    font-size: 12px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .row-action {
    gap: 18px;
  }

  .row-bookmark {
    width: 15px;
    height: 15px;
  }

  .empty-state {
    min-height: 360px;
    grid-template-columns: 70px 1fr;
    gap: 18px;
  }

  .empty-mark {
    font-size: 95px;
  }

  .empty-state h3 {
    font-size: 28px;
  }

  .program-footer {
    display: block;
  }

  .program-footer a {
    display: inline-block;
    margin-top: 8px;
  }

  .detail-sheet {
    width: 100vw;
  }

  .detail-topbar {
    min-height: 59px;
    padding: 0 18px;
  }

  .detail-content {
    padding: 32px 20px 38px;
  }

  .detail-content h2 {
    font-size: 47px;
  }

  .detail-facts {
    margin-top: 31px;
  }

  .detail-facts div {
    min-height: 88px;
    padding-top: 13px;
  }

  .detail-body {
    font-size: 16px;
  }

  .toast {
    right: 18px;
    bottom: 18px;
  }
}

@media (max-width: 390px) {
  .weekend-intro h1 {
    font-size: 38px;
  }

  .weekend-intro p {
    font-size: 11px;
  }

  .date-range {
    font-size: 62px;
  }

  .filter-panel {
    grid-template-columns: minmax(0, 1fr) 122px;
  }

  .search-wrap input,
  .select-wrap select,
  .saved-toggle {
    font-size: 13px;
  }
}

@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;
  }
}
