@font-face {
  font-family: "Literata";
  src: url("assets/literata.ttf") format("truetype");
  font-weight: 200 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 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: "Oswald";
  src: url("assets/oswald.ttf") format("truetype");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f2ecdf;
  --paper-deep: #e9dfcd;
  --surface: #fbf6eb;
  --ink: #191914;
  --ink-soft: #4c473c;
  --muted: #675f51;
  --line: #cfc4b0;
  --line-strong: #191914;
  --accent: #b83c24;
  --accent-ink: #fff7ea;
  --accent-soft: #e8d5c1;
  --focus: #b83c24;

  --font-display: "Literata", Georgia, "Times New Roman", serif;
  --font-ui: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --font-numeral: "Oswald", "Arial Narrow", Arial, sans-serif;

  --max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 2px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

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

body.dialog-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

[hidden] {
  display: none !important;
}

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

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

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  display: inline-block;
  vertical-align: -0.08em;
}

.wrap {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.mono {
  font-family: var(--font-mono);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-200%);
  padding: 10px 16px;
  color: var(--accent-ink);
  background: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

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

/* ---------- Top bar ---------- */

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

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 62px;
  padding-block: 9px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--accent);
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.brand-mark .icon {
  width: 20px;
  height: 20px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-word {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.brand-tag {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topnav {
  display: flex;
  gap: 19px;
  margin-left: 12px;
}

.topnav a {
  position: relative;
  padding: 8px 0 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.topnav a span {
  color: var(--accent);
}

.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transition: right 180ms var(--ease);
}

.topnav a:hover::after,
.topnav a:focus-visible::after {
  right: 0;
}

.topbar-date {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.topbar-slash {
  margin-inline: 7px;
  color: var(--accent);
}

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

.masthead {
  padding-block: clamp(28px, 3.2vw, 42px) clamp(26px, 2.8vw, 34px);
}

.masthead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.72fr);
  gap: clamp(34px, 6vw, 92px);
  align-items: stretch;
}

.masthead-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.3;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.kicker-mark {
  width: 13px;
  height: 13px;
  color: var(--accent);
}

.kicker-slash {
  color: var(--accent);
}

.masthead h1 {
  max-width: none;
  margin: 15px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(56px, 6vw, 88px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.masthead h1 em {
  position: relative;
  color: var(--accent);
  font-style: normal;
}

.masthead h1 em::after {
  content: "";
  position: absolute;
  left: 0.02em;
  right: 0.03em;
  bottom: 0.045em;
  height: 0.055em;
  background: var(--accent);
  opacity: 0.38;
}

.dek {
  max-width: 55ch;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.62;
}

.hero-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 34px;
  margin-top: 22px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 4px 17px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease);
}

.hero-cta .icon {
  width: 15px;
  height: 15px;
  transition: transform 200ms var(--ease);
}

.hero-cta:hover {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.hero-cta:hover .icon {
  transform: translateY(3px);
}

.hero-cta:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 24px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.hero-facts li {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.hero-facts strong {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  line-height: 1;
}

.hero-facts span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.masthead-media {
  position: relative;
  min-height: 350px;
  margin: 0;
  border: 1px solid var(--ink);
  background: var(--paper-deep);
  overflow: hidden;
}

.masthead-media img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
  object-position: 52% 50%;
  filter: saturate(0.78) sepia(0.12) contrast(1.03);
}

.masthead-media figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  gap: 18px;
  padding: 7px 11px;
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  background: var(--paper);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-stamp {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.25;
  letter-spacing: 0.08em;
}

.hero-stamp .icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

/* ---------- Controls ---------- */

.controls-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-block: 13px 11px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 0 10px 24px rgba(25, 25, 20, 0.05);
}

.controls-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) minmax(168px, 0.55fr) auto auto;
  gap: 18px;
  align-items: end;
}

.control {
  min-width: 0;
}

.control label,
.control-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.2;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.search-shell {
  position: relative;
}

.search-shell > .icon {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 17px;
  height: 17px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-shell input {
  width: 100%;
  height: 46px;
  padding: 0 46px 0 41px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 14px;
  appearance: none;
}

.search-shell input::placeholder {
  color: #6f6758;
  opacity: 1;
}

.search-shell input:focus {
  outline: none;
}

.search-shell:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.search-shell input::-webkit-search-cancel-button {
  cursor: pointer;
}

.slash-hint {
  position: absolute;
  top: 50%;
  right: 11px;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  transform: translateY(-50%);
  pointer-events: none;
}

.select-shell {
  position: relative;
}

.select-shell select {
  width: 100%;
  height: 46px;
  padding: 0 38px 0 13px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 14px;
  appearance: none;
  cursor: pointer;
}

.select-shell > .icon {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  pointer-events: none;
}

.saved-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  font-family: var(--font-ui);
  font-size: 13px;
  cursor: pointer;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}

.saved-toggle-track {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}

.saved-toggle-track .icon {
  width: 13px;
  height: 13px;
}

.saved-toggle-text {
  white-space: nowrap;
}

.saved-count {
  margin-left: auto;
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  text-align: center;
}

.saved-toggle:hover {
  border-color: var(--accent);
}

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

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

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

.results-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 5px;
  min-width: 100px;
  padding-bottom: 4px;
}

.result-line {
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.result-line span {
  color: var(--ink);
}

.reset-button {
  padding: 3px 0;
  border: 0;
  border-bottom: 1px solid var(--accent);
  background: none;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---------- Schedule ---------- */

.schedule {
  padding-bottom: 20px;
}

.schedule-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 24px 0 12px;
  border-bottom: 2px solid var(--ink);
}

.schedule-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(25px, 2.2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.schedule-intro p {
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.day {
  scroll-margin-top: 104px;
}

.loading {
  padding: 42px 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.day-head {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 20px 0 16px;
  border-bottom: 1px solid var(--ink);
}

.day-num {
  color: var(--ink);
  font-family: var(--font-numeral);
  font-size: 84px;
  font-weight: 600;
  line-height: 0.78;
  letter-spacing: -0.025em;
}

@supports (-webkit-text-stroke: 1px currentColor) {
  .day-num {
    color: transparent;
    -webkit-text-stroke: 1.4px var(--ink);
  }
}

.day-title p {
  margin-bottom: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.day-title h2 {
  font-family: var(--font-display);
  font-size: clamp(29px, 2.7vw, 36px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
}

.day-mini {
  margin-left: 9px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.08em;
  vertical-align: 0.35em;
}

.day-count {
  padding-bottom: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.day-count span {
  color: var(--accent);
}

.event-item {
  display: grid;
  grid-template-columns: 92px 128px minmax(0, 1fr) 150px;
  gap: 26px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

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

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

.event-time {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.event-time .time-end {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
}

.event-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  border: 1px solid rgba(25, 25, 20, 0.28);
  background: var(--paper-deep);
  overflow: hidden;
}

.event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.66) sepia(0.14) contrast(1.04) brightness(0.99);
  transition: filter 260ms var(--ease), transform 400ms var(--ease);
}

.event-item:hover .event-thumb img {
  filter: saturate(0.9) sepia(0.06) contrast(1.03);
  transform: scale(1.025);
}

.event-main {
  min-width: 0;
  padding-top: 1px;
}

.event-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cat-mark {
  width: 12px;
  height: 12px;
  color: var(--cat, var(--accent));
}

.event-kicker .sep {
  color: var(--line);
}

.event-title {
  max-width: 34ch;
  margin: 7px 0 7px;
  font-family: var(--font-display);
  font-size: clamp(23px, 2.05vw, 28px);
  font-weight: 500;
  line-height: 1.13;
  letter-spacing: -0.025em;
  transition: color 160ms var(--ease);
}

.event-item:hover .event-title {
  color: var(--accent);
}

.event-summary {
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.55;
}

.event-meta {
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  align-self: stretch;
  gap: 5px;
  text-align: right;
}

.price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.price.is-free {
  color: var(--accent);
}

.format {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.saved-flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.saved-flag .icon {
  width: 10px;
  height: 10px;
}

.open-item {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-height: 38px;
  margin-top: auto;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: none;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.open-item .icon {
  width: 14px;
  height: 14px;
  transition: transform 180ms var(--ease);
}

.open-item:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.open-item:hover .icon {
  transform: translateX(3px);
}

/* ---------- Empty state ---------- */

.empty-state {
  display: grid;
  justify-items: center;
  max-width: 590px;
  margin: 0 auto;
  padding: 66px 0 74px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.empty-mark {
  width: 42px;
  height: 42px;
  color: var(--accent);
}

.empty-kicker {
  margin-top: 16px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.empty-state h2 {
  margin: 9px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(32px, 3.2vw, 42px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.empty-text {
  max-width: 44ch;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.55;
}

.empty-action {
  min-height: 48px;
  margin-top: 24px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 160ms var(--ease), border-color 160ms var(--ease);
}

.empty-action:hover {
  background: var(--accent);
  border-color: var(--accent);
}

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

.site-footer {
  margin-top: 68px;
  padding: 62px 0 28px;
  background: var(--ink);
  color: var(--paper);
}

.footer-edition {
  color: rgba(242, 236, 223, 0.6);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-top h2 {
  max-width: 10ch;
  margin: 18px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.footer-dek {
  max-width: 48ch;
  color: rgba(242, 236, 223, 0.72);
  font-size: 16.5px;
  line-height: 1.6;
}

.footer-top {
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(242, 236, 223, 0.22);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px 40px;
  padding-top: 22px;
}

.footer-bottom p {
  max-width: 70ch;
  color: rgba(242, 236, 223, 0.56);
  font-size: 11.5px;
  line-height: 1.65;
}

.footer-top-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  border-bottom: 1px solid rgba(242, 236, 223, 0.5);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer-top-link:hover {
  color: #f0a58f;
}

.site-footer :focus-visible {
  outline-color: var(--paper);
}

.hero-cta:focus-visible,
.save-button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.empty-action:focus-visible,
.saved-toggle[aria-pressed="true"]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

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

.detail-dialog {
  width: min(1120px, calc(100vw - 48px));
  max-width: 1120px;
  max-height: min(92vh, 900px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}

.detail-dialog::backdrop {
  background: rgba(21, 21, 17, 0.66);
}

.detail-panel {
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.detail-bar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.detail-index {
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.detail-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 2px 4px 10px;
  border: 0;
  background: none;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.detail-close .icon {
  width: 20px;
  height: 20px;
  transition: transform 160ms var(--ease);
}

.detail-close:hover {
  color: var(--accent);
}

.detail-close:hover .icon {
  transform: rotate(90deg);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  border-bottom: 1px solid var(--line);
}

.detail-visual {
  position: relative;
  min-height: 490px;
  margin: 0;
  border-right: 1px solid var(--line);
  background: var(--paper-deep);
  overflow: hidden;
}

.detail-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) sepia(0.1) contrast(1.03);
}

.detail-visual figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 100%;
  padding: 7px 10px;
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  background: var(--paper);
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-stamp {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-stamp .icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.detail-content {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 42px);
}

.detail-kicker {
  font-size: 9.5px;
}

.detail-content h2 {
  max-width: 20ch;
  margin: 10px 0 17px;
  font-family: var(--font-display);
  font-size: clamp(32px, 3.3vw, 50px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.detail-body-text {
  max-width: 58ch;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.66;
  white-space: pre-line;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
  margin: 25px 0 26px;
  border-top: 1px solid var(--line);
}

.fact {
  padding: 9px 0 10px;
  border-bottom: 1px solid var(--line);
}

.fact dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.fact dd {
  font-size: 14px;
  line-height: 1.35;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: auto;
}

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

.save-button .save-icon {
  width: 16px;
  height: 16px;
}

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

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

.save-button[aria-pressed="true"] .save-icon {
  fill: currentColor;
  fill-opacity: 0.22;
}

.detail-back {
  min-height: 44px;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: none;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.detail-back:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.save-status {
  min-height: 15px;
  margin-top: 9px;
  color: var(--accent);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  padding: 11px 20px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

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

@media (max-width: 1080px) {
  .masthead-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.7fr);
    gap: 42px;
  }

  .controls-bar {
    grid-template-columns: minmax(230px, 1.4fr) minmax(160px, 0.6fr) auto;
  }

  .results-meta {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0;
  }

  .event-item {
    grid-template-columns: 82px 112px minmax(0, 1fr) 132px;
    gap: 20px;
  }

  .masthead h1 {
    font-size: clamp(54px, 6.4vw, 80px);
  }

  .day {
    scroll-margin-top: 140px;
  }
}

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

  .event-side {
    grid-column: 3;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 2px;
    text-align: left;
  }

  .open-item {
    margin-top: 0;
    margin-left: auto;
  }

  .saved-flag {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 20px;
  }

  .topbar-inner {
    min-height: 56px;
    gap: 12px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand-word {
    font-size: 12.5px;
  }

  .brand-tag,
  .topnav {
    display: none;
  }

  .topbar-date {
    font-size: 9px;
    letter-spacing: 0.06em;
  }

  .masthead {
    padding-block: 28px 28px;
  }

  .masthead-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .kicker {
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .masthead h1 {
    max-width: none;
    margin: 14px 0 16px;
    font-size: clamp(45px, 12.2vw, 63px);
    line-height: 0.97;
  }

  .masthead h1 br {
    display: none;
  }

  .dek {
    max-width: 46ch;
    font-size: 16px;
    line-height: 1.58;
  }

  .hero-bottom {
    gap: 18px;
    margin-top: 22px;
  }

  .hero-cta {
    min-height: 46px;
  }

  .hero-facts {
    width: 100%;
    gap: 8px 20px;
    padding-left: 0;
    border-left: 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }

  .hero-facts strong {
    font-size: 19px;
  }

  .masthead-media {
    min-height: 0;
    height: 200px;
  }

  .masthead-media img {
    min-height: 0;
    object-position: 50% 52%;
  }

  .hero-stamp {
    top: 10px;
    right: 10px;
    padding: 6px 7px;
    font-size: 7px;
  }

  .hero-stamp .icon {
    width: 18px;
    height: 18px;
  }

  .masthead-media figcaption {
    gap: 12px;
    font-size: 7px;
  }

  .controls-wrap {
    padding-block: 10px 9px;
  }

  .controls-bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px 12px;
  }

  .control-search {
    grid-column: 1 / -1;
  }

  .control label,
  .control-label {
    margin-bottom: 4px;
    font-size: 9px;
  }

  .search-shell input,
  .select-shell select {
    height: 44px;
    font-size: 16px;
  }

  .search-shell input {
    padding-right: 14px;
  }

  .slash-hint {
    display: none;
  }

  .saved-toggle {
    min-height: 44px;
    gap: 7px;
    padding: 0 9px;
    font-size: 12px;
  }

  .saved-toggle-track {
    width: 20px;
    height: 20px;
  }

  .saved-count {
    min-width: 20px;
    padding: 2px 5px;
    font-size: 9px;
  }

  .results-meta {
    grid-column: 1 / -1;
    min-height: 20px;
  }

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

  .reset-button {
    font-size: 9px;
  }

  .schedule-intro {
    align-items: flex-start;
    padding: 24px 0 12px;
  }

  .schedule-intro h2 {
    font-size: 27px;
  }

  .schedule-intro p {
    font-size: 9px;
    line-height: 1.5;
  }

  .day {
    scroll-margin-top: 190px;
  }

  .day-head {
    grid-template-columns: 62px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 16px 0 13px;
  }

  .day-num {
    font-size: 60px;
  }

  .day-title p {
    margin-bottom: 4px;
    font-size: 9px;
  }

  .day-title h2 {
    font-size: 27px;
  }

  .day-mini {
    display: none;
  }

  .day-count {
    padding-bottom: 2px;
    font-size: 9px;
  }

  .event-item {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 8px 14px;
    padding: 18px 0;
  }

  .event-time {
    padding-top: 1px;
    font-size: 12px;
  }

  .event-time .time-end {
    font-size: 10px;
  }

  .event-thumb {
    width: 66px;
    height: 66px;
    aspect-ratio: auto;
    margin-top: 2px;
  }

  .event-main,
  .event-side {
    grid-column: 2;
  }

  .event-title {
    max-width: none;
    margin: 6px 0 6px;
    font-size: 23px;
    line-height: 1.14;
  }

  .event-summary {
    font-size: 15px;
    line-height: 1.5;
  }

  .event-meta {
    margin-top: 8px;
    font-size: 9px;
    line-height: 1.5;
  }

  .event-kicker {
    font-size: 9px;
  }

  .event-side {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 7px 11px;
    margin-top: 4px;
  }

  .price {
    font-size: 19px;
  }

  .format {
    font-size: 9px;
  }

  .open-item {
    min-height: 44px;
    margin-left: auto;
    font-size: 9px;
  }

  .saved-flag {
    font-size: 9px;
  }

  .empty-state {
    padding: 50px 8px 58px;
  }

  .empty-state h2 {
    font-size: 32px;
  }

  .empty-text {
    font-size: 15px;
  }

  .site-footer {
    margin-top: 48px;
    padding-top: 46px;
  }

  .footer-top h2 {
    font-size: clamp(48px, 15vw, 66px);
  }

  .footer-dek {
    font-size: 15.5px;
  }

  .footer-top {
    padding-bottom: 34px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
  }

  .detail-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
  }

  .detail-panel {
    min-height: 100dvh;
    max-height: 100dvh;
    border: 0;
  }

  .detail-bar {
    padding: 10px 15px;
  }

  .detail-index {
    font-size: 9px;
  }

  .detail-close {
    min-height: 42px;
    padding-right: 0;
  }

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

  .detail-visual {
    min-height: 0;
    height: 218px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .detail-visual img {
    object-position: 50% 48%;
  }

  .detail-stamp {
    top: 10px;
    right: 10px;
  }

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

  .detail-content h2 {
    max-width: none;
    margin: 9px 0 15px;
    font-size: clamp(32px, 9.5vw, 40px);
  }

  .detail-body-text {
    font-size: 16.5px;
    line-height: 1.62;
  }

  .detail-facts {
    order: 6;
    gap: 0 16px;
    margin: 22px 0 0;
  }

  .detail-actions {
    order: 4;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 4px;
  }

  .save-status {
    order: 5;
  }

  .save-button {
    width: 100%;
    min-height: 52px;
  }

  .detail-back {
    width: 100%;
    text-align: center;
  }

  .detail-foot {
    padding: 10px 15px 16px;
    font-size: 7.5px;
    line-height: 1.5;
  }
}

@media (max-width: 380px) {
  .brand-text {
    display: none;
  }

  .saved-toggle-text {
    font-size: 11px;
  }

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

  .day-title h2 {
    font-size: 24px;
  }
}

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

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