@font-face {
  font-family: "Space Grotesk";
  src: url("assets/space-grotesk.ttf") format("truetype");
  font-weight: 300 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 {
  color-scheme: light dark;
  --paper: #f2f2ed;
  --paper-deep: #e9e9e2;
  --wash: #e7e7df;
  --ink: #161715;
  --muted: #5c5d57;
  --line: #d3d3c9;
  --line-strong: #b9bab0;
  --accent: #b53c1d;
  --accent-strong: #983016;
  --accent-soft: #ead2c8;
  --on-accent: #fff8f4;
  --thumb: #ddddD4;
  --shadow: rgba(22, 23, 21, 0.18);
  --display: "Space Grotesk", "Avenir Next", "Helvetica Neue", sans-serif;
  --body: "Work Sans", "Avenir Next", "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151614;
    --paper-deep: #1d1f1b;
    --wash: #242620;
    --ink: #f0efe8;
    --muted: #a5a79e;
    --line: #34362f;
    --line-strong: #4b4e45;
    --accent: #f1663f;
    --accent-strong: #ff815f;
    --accent-soft: #3b2119;
    --on-accent: #1a120e;
    --thumb: #292b25;
    --shadow: rgba(0, 0, 0, 0.42);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

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

body.dialog-open,
html.dialog-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

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

button {
  cursor: pointer;
}

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

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

[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: 12px 16px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

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

.wrap {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: 48px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  text-decoration: none;
}

.brand-mark {
  width: 13px;
  height: 13px;
  background: var(--accent);
  flex: none;
}

.brand-word {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.header-date {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.header-date strong {
  font-weight: 400;
  color: var(--ink);
}

.header-count {
  margin: 0;
  justify-self: end;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
  align-items: center;
  gap: 72px;
  padding-top: 56px;
  padding-bottom: 64px;
}

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

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow-rule {
  display: block;
  width: 30px;
  height: 1px;
  background: var(--accent);
  flex: none;
}

.hero h1 {
  max-width: 700px;
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-sub {
  max-width: 46ch;
  margin: 0 0 30px;
  font-size: 18px;
  line-height: 1.62;
  color: var(--muted);
  text-wrap: pretty;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid var(--accent);
  border-radius: 0;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-primary span {
  transition: transform 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.btn-primary:hover span {
  transform: translateX(3px);
}

.btn-primary:active {
  transform: translateY(1px);
}

.hero-visual {
  display: grid;
  grid-template-columns: 1.22fr 0.95fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: 392px;
  min-width: 0;
}

.hero-photo {
  margin: 0;
  overflow: hidden;
  background: var(--thumb);
}

.hero-photo:first-child {
  grid-row: span 2;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-photo:hover img {
  transform: scale(1.035);
}

/* Agenda */

.agenda {
  padding-bottom: 96px;
}

.agenda-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}

.agenda h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
}

.agenda-tools {
  display: flex;
  align-items: center;
  gap: 20px;
}

.results-count {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.reset-filters {
  min-height: 40px;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.reset-filters:hover {
  color: var(--accent-strong);
}

/* Filter controls */

.controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 236px 208px;
  align-items: end;
  gap: 18px;
  padding: 26px 0 24px;
  border-bottom: 1px solid var(--line);
}

.field {
  min-width: 0;
}

.field label,
.field-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.controls input,
.controls select {
  width: 100%;
  height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
}

.controls input {
  padding: 0 46px 0 15px;
}

.controls input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.controls input:focus-visible,
.controls select:focus-visible {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.controls select {
  appearance: none;
  -webkit-appearance: none;
  padding: 0 42px 0 15px;
  cursor: pointer;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 17px;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: -2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--ink);
  pointer-events: none;
}

.key-hint {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 26px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  pointer-events: none;
}

.saved-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-align: left;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.saved-filter:hover {
  background: var(--wash);
}

.saved-filter .saved-count {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  border: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
}

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

.saved-filter[aria-pressed="true"]:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

/* Results */

.results {
  min-height: 1px;
}

.results-loading {
  margin: 0;
  padding: 36px 0 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.day-group {
  margin-top: 30px;
}

.day-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 0 0 12px;
}

.day-head h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.day-date {
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.day-count {
  margin: 0 0 0 auto;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.item {
  position: relative;
  display: grid;
  grid-template-columns: 68px 104px minmax(0, 1fr) 104px 22px;
  align-items: center;
  gap: 20px;
  padding: 16px 14px;
  margin-inline: -14px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.18s ease;
}

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

.item.is-saved {
  box-shadow: inset 3px 0 0 var(--accent);
}

.item-time {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

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

.item-thumb {
  width: 104px;
  height: 78px;
  overflow: hidden;
  background: var(--thumb);
}

.item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.item:hover .item-thumb img {
  transform: scale(1.05);
}

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

.item-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.saved-tag {
  padding: 1px 5px;
  border: 1px solid currentColor;
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.item-title {
  margin: 5px 0 4px;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.item-open {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-decoration: none;
}

.item-open::after {
  content: "";
  position: absolute;
  inset: 0;
}

.item:hover .item-open {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

.item-meta {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--muted);
}

.item-facts {
  text-align: right;
}

.item-price {
  margin: 0;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

.item-arrow {
  justify-self: end;
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.18s ease, color 0.18s ease;
}

.item:hover .item-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* Empty state */

.empty-state {
  display: grid;
  justify-items: start;
  max-width: 580px;
  padding: 58px 0 30px;
}

.empty-mark {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 72px;
  font-weight: 300;
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: var(--accent);
}

.empty-title {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.empty-copy {
  max-width: 44ch;
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line-strong);
  padding: 40px 0 52px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}

.footer-brand {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.footer-note {
  max-width: 52ch;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.footer-meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.9;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.footer-meta span {
  display: inline-block;
  max-width: 38ch;
  white-space: normal;
  line-height: 1.6;
  text-transform: none;
  letter-spacing: 0.02em;
}

/* Detail drawer */

#detail {
  width: min(560px, 100vw);
  max-width: 560px;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  box-shadow: -24px 0 70px var(--shadow);
}

#detail::backdrop {
  background: rgba(18, 19, 17, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

#detail:not([open]) {
  display: none;
}

.detail-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

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

.detail-bar-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.close-detail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.close-detail span {
  font-size: 16px;
  line-height: 1;
}

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

.detail-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.detail-hero {
  background: var(--thumb);
}

.detail-hero img {
  width: 100%;
  height: 238px;
  object-fit: cover;
}

.photo-note {
  margin: 8px 20px 0;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.detail-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.detail-kicker span:nth-child(2) {
  color: var(--line-strong);
}

.detail-content h2 {
  margin: 13px 0 20px;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.detail-body {
  white-space: pre-line;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--muted);
  text-wrap: pretty;
}

.detail-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.fact {
  min-width: 0;
}

.fact-wide {
  grid-column: 1 / -1;
}

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

.fact dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
}

.detail-footer {
  flex: none;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.save-item {
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid var(--accent);
  border-radius: 0;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.005em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

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

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

.save-item:active {
  transform: translateY(1px);
}

/* Motion */

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise-in 0.72s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .hero-copy > *:nth-child(2) {
    animation-delay: 0.06s;
  }

  .hero-copy > *:nth-child(3) {
    animation-delay: 0.12s;
  }

  .hero-copy > *:nth-child(4) {
    animation-delay: 0.18s;
  }

  .hero-photo {
    animation: photo-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.1s;
  }

  .hero-photo:nth-child(2) {
    animation-delay: 0.18s;
  }

  .hero-photo:nth-child(3) {
    animation-delay: 0.26s;
  }

  #detail[open] {
    animation: drawer-in 0.34s cubic-bezier(0.16, 1, 0.3, 1);
  }

  #detail[open]::backdrop {
    animation: backdrop-in 0.28s ease;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes photo-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes drawer-in {
  from {
    opacity: 0.4;
    transform: translateX(38px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

/* Tablet */

@media (max-width: 1080px) {
  .wrap {
    padding-inline: 32px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
    gap: 44px;
    padding-top: 44px;
    padding-bottom: 52px;
  }

  .hero-visual {
    height: 350px;
  }

  .controls {
    grid-template-columns: minmax(0, 1fr) 210px 190px;
    gap: 14px;
  }
}

/* Mobile */

@media (max-width: 860px) {
  .wrap {
    padding-inline: 20px;
  }

  .header-inner {
    min-height: 64px;
    grid-template-columns: 1fr auto;
    gap: 16px;
  }

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

  .header-date {
    font-size: 9.5px;
    letter-spacing: 0.06em;
  }

  .header-date strong {
    display: block;
    margin-top: 2px;
  }

  .header-count {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 34px;
    padding-bottom: 40px;
  }

  .hero h1 {
    max-width: 12ch;
    font-size: clamp(2.6rem, 11vw, 3.7rem);
    margin-bottom: 20px;
  }

  .hero-sub {
    max-width: 52ch;
    margin-bottom: 24px;
    font-size: 16.5px;
    line-height: 1.55;
  }

  .hero-visual {
    grid-template-columns: 1.15fr 0.95fr 0.95fr;
    grid-template-rows: 152px;
    gap: 8px;
    height: auto;
  }

  .hero-photo:first-child {
    grid-row: auto;
  }

  .agenda {
    padding-bottom: 64px;
  }

  .agenda-head {
    padding-top: 22px;
  }

  .agenda h2 {
    font-size: 27px;
  }

  .agenda-tools {
    gap: 14px;
  }

  .reset-filters {
    font-size: 9.5px;
  }

  .controls {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 20px 0 22px;
  }

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

  .key-hint {
    display: none;
  }

  .controls input,
  .controls select,
  .saved-filter {
    height: 48px;
  }

  .saved-filter {
    width: 100%;
    padding: 0 12px;
    font-size: 13.5px;
  }

  .saved-filter .saved-count {
    min-width: 22px;
    height: 22px;
  }

  .field-saved .field-label {
    margin-bottom: 8px;
  }

  .day-head {
    gap: 10px;
  }

  .day-head h3 {
    font-size: 24px;
  }

  .day-count {
    font-size: 9.5px;
  }

  .item {
    grid-template-columns: minmax(0, 1fr) 88px;
    grid-template-rows: auto auto auto;
    gap: 8px 14px;
    padding: 16px 0;
    margin-inline: 0;
  }

  .item-time {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 11.5px;
  }

  .item-time-end {
    display: inline;
    margin-top: 0;
    font-size: 10px;
  }

  .item-time-end::before {
    content: "-";
    margin-right: 6px;
  }

  .item-thumb {
    grid-column: 2;
    grid-row: 1 / span 3;
    width: 88px;
    height: 98px;
    align-self: start;
  }

  .item-body {
    grid-column: 1;
    grid-row: 2;
    padding-right: 4px;
  }

  .item-title {
    margin-top: 4px;
    font-size: 19px;
    line-height: 1.2;
  }

  .item-facts {
    grid-column: 1;
    grid-row: 3;
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-top: 2px;
    text-align: left;
  }

  .item-format {
    margin: 0;
  }

  .item-arrow {
    display: none;
  }

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

  .item-meta {
    font-size: 12.5px;
  }

  .day-group {
    margin-top: 24px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }

  .footer-meta {
    text-align: left;
    white-space: normal;
  }

  .footer-meta span {
    max-width: none;
  }

  #detail {
    width: 100%;
    max-width: none;
    height: 100dvh;
    margin: 0;
    border-left: 0;
    box-shadow: none;
  }

  .detail-content {
    padding: 18px 20px 28px;
  }

  .detail-hero img {
    height: 208px;
  }

  .detail-content h2 {
    font-size: clamp(1.9rem, 8.5vw, 2.4rem);
  }

  .detail-facts {
    gap: 16px 18px;
  }

  .detail-footer {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }

  @media (prefers-reduced-motion: no-preference) {
    #detail[open] {
      animation-name: sheet-in;
    }
  }

  @keyframes sheet-in {
    from {
      opacity: 0.5;
      transform: translateY(26px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 380px) {
  .controls {
    grid-template-columns: 1fr;
  }

  .field-search {
    grid-column: auto;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: 2.55rem;
    letter-spacing: -0.04em;
  }

  .agenda-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .agenda-tools {
    width: 100%;
    justify-content: space-between;
  }

  .hero-visual {
    grid-template-rows: 132px;
  }

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

  .item-thumb {
    width: 82px;
    height: 92px;
  }

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

  .empty-title {
    font-size: 28px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  #detail::backdrop {
    background: rgba(18, 19, 17, 0.78);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
