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

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

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

:root {
  --paper: #f1efe5;
  --paper-light: #fbfaf4;
  --paper-deep: #e7e4d7;
  --ink: #161812;
  --ink-soft: #4f5349;
  --line: #c6c4b5;
  --line-dark: #9b9a8c;
  --blue: #1e33cf;
  --blue-deep: #11218e;
  --blue-tint: #e1e5fa;
  --lime: #d8f55e;
  --lime-deep: #b6d238;
  --red: #f04a26;
  --red-ink: #b23418;
  --paper-on-blue: #f3f1e7;
  --blue-on-blue: #c8d0fa;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --shell: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(22, 24, 18, 0.055) 0.55px, transparent 0.75px);
  background-size: 5px 5px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  caret-color: var(--blue);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#programme {
  scroll-margin-top: 92px;
}

body.dialog-open {
  overflow: hidden;
}

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

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 180ms var(--ease-out);
}

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

/* ---------- Masthead ---------- */

.masthead {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  color: var(--paper-on-blue);
}

.masthead::before {
  content: "";
  position: absolute;
  top: -210px;
  right: -140px;
  width: 720px;
  height: 720px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.24) 1px, transparent 1.2px);
  background-size: 9px 9px;
  -webkit-mask-image: radial-gradient(circle at center, #000 0%, transparent 68%);
  mask-image: radial-gradient(circle at center, #000 0%, transparent 68%);
  pointer-events: none;
}

.masthead::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7px;
  background: repeating-linear-gradient(90deg, var(--lime) 0 18px, transparent 18px 32px);
  opacity: 0.95;
}

.masthead-inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--shell));
  margin: 0 auto;
  padding: 20px var(--gutter) 0;
}

.masthead-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(243, 241, 231, 0.34);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-on-blue);
}

.meta-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--paper-on-blue);
}

.sun-mark {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--lime);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.masthead-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 352px;
  align-items: end;
  gap: clamp(30px, 5vw, 76px);
  padding: clamp(30px, 3.5vw, 40px) 0 clamp(30px, 3.2vw, 38px);
}

.brand-block {
  min-width: 0;
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(92px, 13.6vw, 222px);
  font-weight: 700;
  line-height: 0.76;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--paper-on-blue);
}

.brand-line {
  display: inline;
  margin-right: 0.09em;
}

.brand-kicker {
  max-width: 37ch;
  margin: 24px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--lime);
}

.brand-intro {
  max-width: 47ch;
  margin: 11px 0 0;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.5;
  color: var(--paper-on-blue);
}

/* Ticket */

.ticket-stage {
  position: relative;
  width: 100%;
  max-width: 352px;
  justify-self: end;
  padding: 8px 8px 16px 0;
  animation: ticket-in 680ms var(--ease-out) 80ms both;
}

.ticket {
  position: relative;
  min-height: 310px;
  padding: 19px 24px 17px;
  overflow: hidden;
  background: var(--lime);
  color: var(--ink);
  transform: rotate(2.6deg);
  box-shadow: 0 28px 60px rgba(4, 10, 58, 0.38);
  background-image: radial-gradient(rgba(22, 24, 18, 0.11) 0.5px, transparent 0.7px);
  background-size: 4px 4px;
}

.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  top: 61%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
}

.ticket::before {
  left: -12px;
}

.ticket::after {
  right: -12px;
}

.ticket-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid rgba(22, 24, 18, 0.68);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.ticket-days {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-top: 12px;
}

.ticket-day {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ticket-day small {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ticket-day strong {
  font-family: var(--font-display);
  font-size: 92px;
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: -0.025em;
}

.ticket-sep {
  padding-bottom: 13px;
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
  color: var(--red-ink);
}

.ticket-month {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ticket-perf {
  height: 1.5px;
  margin: 23px -24px 12px;
  background: repeating-linear-gradient(90deg, rgba(22, 24, 18, 0.65) 0 7px, transparent 7px 14px);
}

.ticket-foot {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticket-foot strong {
  font-weight: 700;
}

.ticket-barcode {
  width: 148px;
  height: 26px;
  margin-top: 13px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 10px, var(--ink) 10px 14px, transparent 14px 17px);
}

.ticket-stamp {
  position: absolute;
  right: 18px;
  bottom: 2px;
  display: grid;
  place-content: center;
  width: 76px;
  height: 76px;
  border: 2.5px solid var(--red-ink);
  border-radius: 50%;
  color: var(--red-ink);
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 500;
  line-height: 0.72;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-11deg);
  opacity: 0.9;
}

.ticket-stamp small {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.ticket-stamp::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed currentColor;
  border-radius: 50%;
}

.ticket-tape {
  position: absolute;
  top: -1px;
  left: 36%;
  width: 88px;
  height: 22px;
  background: rgba(241, 239, 229, 0.65);
  transform: rotate(-4deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

@keyframes ticket-in {
  from {
    opacity: 0;
    transform: translateY(26px) rotate(-2deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

.masthead-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0 20px;
  border-top: 1px solid rgba(243, 241, 231, 0.34);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-on-blue);
}

.hero-facts strong {
  margin-right: 3px;
  color: var(--lime);
  font-weight: 400;
}

.browse-jump {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper-on-blue);
  border-bottom: 1px solid rgba(243, 241, 231, 0.55);
  padding-bottom: 3px;
  transition: color 160ms ease, border-color 160ms ease;
}

.browse-jump svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 220ms var(--ease-out);
}

.browse-jump:hover {
  color: var(--lime);
  border-color: var(--lime);
}

.browse-jump:hover svg {
  transform: translateY(3px);
}

/* ---------- Browse controls ---------- */

.browse-bar-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.browse-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 220px auto;
  align-items: end;
  gap: 16px;
  width: min(100%, var(--shell));
  margin: 0 auto;
  padding: 18px var(--gutter) 19px;
}

.field {
  min-width: 0;
}

.field label,
.field-label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.search-field,
.select-shell {
  position: relative;
}

.search-field input {
  width: 100%;
  height: 52px;
  padding: 0 48px 0 45px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: var(--paper-light);
  font-family: var(--font-body);
  font-size: 16px;
  transition: background 160ms ease, border-color 160ms ease;
}

.search-field input::placeholder {
  color: #64685c;
  opacity: 1;
}

.search-field input:hover {
  background: #ffffff;
}

.search-field input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

.search-field input:focus-visible,
.select-shell select:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.search-field input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  display: none;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 19px;
  height: 19px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  pointer-events: none;
}

.search-clear {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateY(-50%);
}

.search-clear svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.7;
  stroke-linecap: round;
}

.search-clear:hover {
  background: var(--paper-deep);
}

.select-shell select {
  width: 100%;
  height: 52px;
  padding: 0 42px 0 14px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: var(--paper-light);
  -webkit-appearance: none;
  appearance: none;
  font-family: var(--font-body);
  font-size: 15px;
  transition: background 160ms ease, border-color 160ms ease;
}

.select-shell select:hover {
  background: #ffffff;
}

.select-shell select:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

.select-chevron {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.saved-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 52px;
  padding: 0 15px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: var(--paper-light);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.saved-toggle:hover {
  background: var(--ink);
  color: var(--paper);
}

.bookmark-icon {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}

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

.saved-toggle[aria-pressed="true"] .bookmark-icon {
  fill: var(--lime);
  stroke: var(--lime);
}

.saved-badge {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  background: var(--lime);
  color: var(--ink);
  font-size: 10px;
  line-height: 1;
  border-radius: 999px;
}

.saved-toggle[aria-pressed="true"] .saved-badge {
  background: var(--lime);
}

/* ---------- Programme ---------- */

.programme-shell {
  width: min(100%, var(--shell));
  margin: 0 auto;
  padding: 0 var(--gutter) 84px;
}

.list-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 50px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.result-summary {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.clear-all {
  flex-shrink: 0;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.clear-all:hover {
  color: var(--red-ink);
}

.day-group {
  margin-top: clamp(40px, 5vw, 62px);
}

.day-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--ink);
}

.day-title {
  display: flex;
  align-items: baseline;
  gap: 18px;
  min-width: 0;
}

.day-title h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(42px, 5.1vw, 70px);
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.day-number {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.1vw, 70px);
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: -0.015em;
  color: var(--red-ink);
}

.day-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: right;
}

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

.item-row {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 218px 46px;
  gap: 26px;
  align-items: center;
  min-height: 166px;
  padding: 18px 2px 18px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 108px;
  transition: background-color 180ms ease;
}

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

.item-row:hover,
.item-row:has(.item-open:focus-visible) {
  background: rgba(30, 51, 207, 0.045);
}

.item-time {
  display: flex;
  flex-direction: column;
  align-self: start;
  padding-top: 8px;
  font-variant-numeric: tabular-nums;
}

.item-start {
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
}

.item-end {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

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

.item-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 5px;
}

.item-category {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--blue);
}

.item-format {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.3;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.item-format::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-dark);
}

.item-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(21px, 2.05vw, 28px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.item-summary {
  display: -webkit-box;
  max-width: 66ch;
  margin: 6px 0 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.item-venue {
  color: var(--ink);
}

.item-price {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--line-dark);
  font-size: 9.5px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.item-price.is-free {
  background: var(--lime);
  border-color: var(--ink);
}

.item-saved-flag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  background: var(--lime);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.item-saved-flag svg {
  width: 10px;
  height: 10px;
  fill: var(--ink);
  stroke: var(--ink);
  stroke-width: 1;
}

.item-media {
  position: relative;
  width: 100%;
  height: 130px;
  overflow: hidden;
  background: var(--paper-deep);
}

.item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transform: scale(1.005);
  transition: filter 340ms ease, transform 480ms var(--ease-out);
}

.item-row:hover .item-media img {
  filter: grayscale(0.15) contrast(1);
  transform: scale(1.045);
}

.item-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--blue);
  mix-blend-mode: multiply;
  opacity: 0.14;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.item-row:hover .item-media::after {
  opacity: 0;
}

.item-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  transition: background-color 180ms ease, color 180ms ease, transform 260ms var(--ease-out);
}

.item-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.item-row:hover .item-arrow {
  background: var(--ink);
  color: var(--paper);
  transform: translateX(3px);
}

/* One overlay control keeps the whole row clickable without nested buttons. */

.item-open {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.item-open:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: -4px;
}

.item-row:has(.item-open:focus-visible) .item-arrow {
  background: var(--ink);
  color: var(--paper);
}

/* Empty state */

.empty-state {
  padding: clamp(54px, 8vw, 96px) 0 36px;
  border-bottom: 1px solid var(--line);
}

.empty-mark {
  display: block;
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
  color: var(--blue);
}

.empty-mark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
}

.empty-mark path {
  stroke: var(--red-ink);
}

.empty-state h2 {
  max-width: 18ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.empty-copy {
  max-width: 47ch;
  margin: 16px 0 26px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease;
}

.button-primary:hover {
  background: var(--lime);
  color: var(--ink);
}

.programme-end {
  margin: 34px 0 0;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.programme-end span {
  color: var(--ink);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 7px solid var(--blue);
  background: var(--ink);
  color: var(--paper);
}

.footer-inner {
  width: min(100%, var(--shell));
  margin: 0 auto;
  padding: 48px var(--gutter) 30px;
}

.footer-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(241, 239, 229, 0.25);
}

.footer-kicker {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
}

.footer-big {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(46px, 7vw, 92px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.footer-shortlist {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 18px;
  border: 1.5px solid rgba(241, 239, 229, 0.6);
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.footer-shortlist:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.footer-shortlist-count {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  background: var(--lime);
  color: var(--ink);
  font-size: 10px;
  border-radius: 999px;
}

.footer-shortlist:hover .footer-shortlist-count {
  background: var(--ink);
  color: var(--lime);
}

.footer-shortlist svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-meta {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  padding-top: 24px;
}

.footer-meta p {
  max-width: 62ch;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: rgba(241, 239, 229, 0.65);
}

/* ---------- Detail ---------- */

.detail-dialog {
  width: min(1100px, calc(100vw - 56px));
  max-width: none;
  max-height: calc(100vh - 56px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(4, 10, 48, 0.45);
}

.detail-dialog[open] {
  animation: sheet-in 240ms var(--ease-out) both;
}

.detail-dialog::backdrop {
  background: rgba(7, 13, 50, 0.68);
  animation: backdrop-in 190ms ease-out both;
}

.detail-scroll {
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--ink) var(--paper-deep);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  min-height: 650px;
}

.detail-figure {
  position: relative;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--blue-deep);
}

.detail-figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
}

.detail-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 13, 50, 0.02) 55%, rgba(7, 13, 50, 0.62) 100%);
  pointer-events: none;
}

.detail-figure figcaption {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.detail-date-stamp {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  padding: 7px 10px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-2deg);
  box-shadow: 0 8px 24px rgba(4, 10, 48, 0.24);
}

.detail-content {
  padding: clamp(28px, 4vw, 54px);
}

.detail-topline {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 18px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.detail-category {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-close {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease;
}

.detail-close:hover {
  background: var(--ink);
  color: var(--paper);
}

.detail-close svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.detail-title {
  margin: 26px 0 0;
  font-family: var(--font-display);
  font-size: clamp(42px, 4.7vw, 66px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

.detail-summary {
  max-width: 52ch;
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-soft);
}

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

.detail-facts div {
  padding: 14px 14px 14px 0;
}

.detail-facts div:nth-child(even) {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.detail-facts div:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}

.detail-facts dt {
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.detail-facts dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}

.detail-body-wrap {
  padding: 28px 0 0;
}

.detail-body-wrap h3 {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.detail-body {
  max-width: 62ch;
  margin: 0;
  white-space: pre-line;
  font-size: 16px;
  line-height: 1.68;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.save-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 20px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.save-button:hover {
  background: var(--blue);
  border-color: var(--blue);
}

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

.save-button[aria-pressed="true"] .bookmark-icon {
  fill: var(--ink);
}

.save-hint {
  max-width: 34ch;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

/* ---------- Responsive ---------- */

@media (max-width: 1120px) {
  .masthead-main {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 34px;
  }

  .ticket {
    min-height: 296px;
    padding: 18px 20px 16px;
  }

  .ticket-day strong {
    font-size: 82px;
  }

  .ticket-perf {
    margin-left: -20px;
    margin-right: -20px;
  }

  .item-row {
    grid-template-columns: 82px minmax(0, 1fr) 190px 42px;
    gap: 20px;
  }

  .item-media {
    height: 120px;
  }
}

@media (max-width: 930px) {
  .masthead-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding-bottom: 38px;
  }

  .ticket-stage {
    display: none;
  }

  .brand {
    font-size: clamp(86px, 18.2vw, 172px);
  }

  .brand-intro {
    max-width: 56ch;
    margin-top: 22px;
  }

  .browse-bar {
    grid-template-columns: minmax(0, 1fr) 200px auto;
  }

  .item-row {
    grid-template-columns: 76px minmax(0, 1fr) 160px 40px;
    gap: 18px;
  }

  .item-media {
    height: 108px;
  }

  .detail-grid {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  }

  .detail-figure figcaption {
    right: 14px;
    bottom: 12px;
    left: 14px;
  }
}

@media (max-width: 790px) {
  .masthead-inner {
    padding-top: 18px;
  }

  .masthead-meta {
    gap: 16px;
    font-size: 9.5px;
  }

  .masthead-main {
    padding-top: 34px;
    padding-bottom: 30px;
  }

  .brand {
    font-size: clamp(82px, 21.5vw, 156px);
    line-height: 0.8;
  }

  .brand-line {
    display: block;
    margin-right: 0;
  }

  .brand-kicker {
    margin: 18px 0 0;
    font-size: 11px;
  }

  .brand-intro {
    font-size: 15.5px;
    line-height: 1.5;
  }

  .masthead-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 26px;
  }

  .hero-facts {
    gap: 6px 18px;
    font-size: 9.5px;
  }

  .browse-bar-wrap {
    position: static;
  }

  .browse-bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .search-field-wrap {
    grid-column: 1 / -1;
  }

  .field label,
  .field-label {
    margin-bottom: 6px;
  }

  .search-field input,
  .select-shell select,
  .saved-toggle {
    height: 48px;
  }

  .saved-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0 12px;
    font-size: 9.5px;
  }

  .saved-badge {
    min-width: 20px;
    height: 20px;
  }

  .programme-shell {
    padding-bottom: 62px;
  }

  .day-title {
    gap: 12px;
  }

  .day-meta {
    font-size: 9px;
  }

  .item-row {
    grid-template-columns: 66px minmax(0, 1fr) 36px;
    grid-template-areas:
      "time copy arrow"
      "media media media";
    gap: 12px 14px;
    align-items: start;
    min-height: 0;
    padding: 18px 0 20px;
  }

  .item-time {
    grid-area: time;
  }

  .item-copy {
    grid-area: copy;
  }

  .item-media {
    grid-area: media;
    height: 154px;
    margin-top: 4px;
  }

  .item-arrow {
    grid-area: arrow;
    width: 34px;
    height: 34px;
    margin-top: 2px;
  }

  .item-arrow svg {
    width: 15px;
    height: 15px;
  }

  .item-start {
    font-size: 26px;
  }

  .item-end {
    font-size: 9.5px;
  }

  .item-title {
    font-size: 21px;
  }

  .item-summary {
    -webkit-line-clamp: 2;
    font-size: 13.5px;
  }

  .item-meta {
    margin-top: 8px;
  }

  .footer-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 26px;
  }

  .footer-shortlist {
    width: 100%;
    justify-content: space-between;
  }

  .footer-meta {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .detail-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .detail-scroll {
    max-height: calc(100vh - 24px);
  }

  .detail-grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .detail-figure {
    min-height: 0;
    height: 230px;
  }

  .detail-figure img {
    position: absolute;
    inset: 0;
    height: 100%;
    min-height: 0;
  }

  .detail-content {
    padding: 24px 22px 30px;
  }

  .detail-title {
    margin-top: 20px;
    font-size: clamp(38px, 10.5vw, 54px);
  }

  .detail-summary {
    margin-top: 14px;
    font-size: 16px;
  }
}

@media (max-width: 470px) {
  .masthead-meta {
    gap: 12px;
    padding-bottom: 12px;
    font-size: 9px;
  }

  .masthead-main {
    padding-top: 28px;
    padding-bottom: 26px;
  }

  .brand {
    font-size: clamp(78px, 22vw, 104px);
  }

  .brand-intro {
    font-size: 15px;
  }

  .day-header {
    align-items: flex-end;
    gap: 12px;
  }

  .day-title h2,
  .day-number {
    font-size: clamp(36px, 11vw, 46px);
  }

  .day-meta span:first-child {
    display: none;
  }

  .day-meta {
    padding-bottom: 3px;
  }

  .result-summary {
    font-size: 9px;
  }

  .clear-all {
    font-size: 9px;
  }

  .item-row {
    grid-template-columns: 60px minmax(0, 1fr) 32px;
    gap: 10px 12px;
  }

  .item-media {
    height: 141px;
  }

  .item-title {
    font-size: 19.5px;
  }

  .item-summary {
    font-size: 13px;
  }

  .item-meta {
    gap: 5px 10px;
    font-size: 9.5px;
  }

  .item-format {
    font-size: 9px;
  }

  .item-category {
    font-size: 9.5px;
  }

  .detail-facts {
    grid-template-columns: 1fr;
  }

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

  .detail-facts div:nth-child(n + 2) {
    border-top: 1px solid var(--line);
  }

  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .save-button {
    width: 100%;
  }

  .save-hint {
    max-width: none;
  }

  .footer-big {
    font-size: clamp(42px, 13vw, 62px);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Firefox scrollbar */
html {
  scrollbar-color: var(--ink) var(--paper-deep);
}

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-track {
  background: var(--paper-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--ink);
  border: 3px solid var(--paper-deep);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--blue);
}
