/* ============================================================
   Sideways — a weekend field guide
   ============================================================ */

@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: "Space Grotesk";
  src: url("assets/space-grotesk.ttf") format("truetype");
  font-weight: 300 700;
  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: #f4efe6;
  --paper-deep: #ebe3d5;
  --card: #faf6ee;
  --ink: #1c211d;
  --ink-soft: #343a34;
  --muted: #68675d;
  --line: rgba(28, 33, 29, 0.16);
  --line-strong: rgba(28, 33, 29, 0.4);
  --accent: #e3532e;
  --accent-deep: #b53c1d;
  --accent-soft: #f7d8cb;
  --moss: #3d5a40;
  --focus: #1d50c9;
  --font-display: "Literata", Georgia, "Times New Roman", serif;
  --font-ui: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --shadow-soft: 0 18px 46px rgba(35, 31, 24, 0.09);
  --max-width: 1360px;
  --gutter: 40px;
}

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

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

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.dialog-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

img,
svg {
  display: block;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

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

ul {
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--accent-deep);
  color: #fff8f1;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 14px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 239, 230, 0.93);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  max-width: var(--max-width);
  min-height: 74px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.brand-dot {
  color: var(--accent);
}

.brand-sub {
  justify-self: start;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.header-edition {
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.header-date {
  color: var(--ink-soft);
}

.header-shortlist {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-deep);
  white-space: nowrap;
}

/* ---------- Reusable bits ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow-rule {
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 21px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

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

.button-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fff8f1;
  transform: translateY(-1px);
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 4px 2px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: none;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.text-button:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.text-button-count {
  display: inline-grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.88fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px var(--gutter) 66px;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 820px;
  margin: 22px 0 24px;
  font-family: var(--font-display);
  font-size: clamp(58px, 7.3vw, 106px);
  font-weight: 380;
  letter-spacing: -0.055em;
  line-height: 0.91;
  text-wrap: balance;
}

.hero h1 em {
  color: var(--accent);
  font-weight: 380;
}

.hero-dek {
  max-width: 540px;
  color: var(--ink-soft);
  font-size: 17.5px;
  line-height: 1.58;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 600px;
  margin-top: 46px;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}

.hero-facts dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero-facts dd {
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-visual {
  position: relative;
  min-height: 548px;
  isolation: isolate;
}

.hero-photo {
  position: absolute;
  right: 0;
  top: 4px;
  width: 78%;
  height: 510px;
  margin: 0;
  overflow: hidden;
  border-radius: 240px 240px 10px 10px;
  background: var(--paper-deep);
  box-shadow: var(--shadow-soft);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(20, 19, 15, 0.62), transparent 38%);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.02);
}

.hero-photo figcaption {
  position: absolute;
  right: 22px;
  bottom: 19px;
  left: 22px;
  z-index: 1;
  color: rgba(255, 250, 242, 0.84);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.07em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero-photo figcaption span {
  display: block;
  color: #fffaf2;
  font-weight: 400;
}

.hero-badge {
  position: absolute;
  left: 0;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 206px;
  height: 206px;
  padding: 22px;
  border-radius: 50%;
  background: #c0411e;
  color: #fff8f1;
  box-shadow: 0 16px 34px rgba(163, 56, 29, 0.22);
  transform: rotate(-5deg);
}

.hero-badge-number {
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 350;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.hero-badge-label {
  align-self: flex-end;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-align: right;
  text-transform: uppercase;
}

.hero-stamp {
  position: absolute;
  top: 74px;
  left: 10px;
  z-index: 2;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  line-height: 1.7;
  text-align: center;
  transform: rotate(-90deg);
  transform-origin: left top;
}

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

.programme {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter) 100px;
}

.programme-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.6fr);
  align-items: end;
  gap: 56px;
  padding: 64px 0 44px;
  border-top: 1px solid var(--line-strong);
}

.programme-head h2 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 380;
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.programme-intro {
  max-width: 380px;
  padding-bottom: 5px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  text-wrap: pretty;
}

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

.controls {
  position: sticky;
  top: 88px;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 216px auto auto;
  align-items: end;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--ink);
  border-radius: 18px;
  background: rgba(250, 246, 238, 0.95);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  box-shadow: 0 12px 30px rgba(35, 31, 24, 0.06);
}

.control {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.control label,
.control-label {
  padding-left: 2px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  line-height: 1;
  text-transform: uppercase;
}

.input-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-50%);
}

input[type="search"],
select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-size: 14.5px;
  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}

input[type="search"] {
  padding: 0 16px 0 42px;
  appearance: none;
}

input[type="search"]::-webkit-search-cancel-button {
  cursor: pointer;
}

input[type="search"]::placeholder {
  color: #8c8a7f;
}

input[type="search"]:hover,
select:hover {
  border-color: var(--line-strong);
}

input[type="search"]:focus,
select:focus {
  border-color: var(--ink);
  background: #fffaf2;
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.select-wrap {
  position: relative;
}

select {
  padding: 0 40px 0 14px;
  appearance: none;
  cursor: pointer;
}

.select-chevron {
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--ink);
  pointer-events: none;
  transform: translateY(-50%);
}

.saved-control {
  min-width: 154px;
}

.saved-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}

.saved-toggle:hover {
  border-color: var(--line-strong);
  background: #fffaf2;
}

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

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

.saved-count {
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1;
}

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

.reset-button {
  height: 48px;
  padding: 0 8px;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-transform: uppercase;
}

.reset-button:hover {
  color: var(--accent-deep);
}

.result-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 18px 2px 28px;
}

.result-count,
.shortlist-note {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  line-height: 1.5;
  text-transform: uppercase;
}

.shortlist-note {
  color: var(--accent-deep);
}

/* ---------- Day columns ---------- */

.day-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px;
}

.day-section {
  min-width: 0;
}

.day-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding-top: 13px;
  border-top: 2px solid var(--ink);
}

.day-kicker {
  margin-bottom: 4px;
  color: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.day-head h3 {
  display: flex;
  align-items: baseline;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 420;
  letter-spacing: -0.04em;
  line-height: 1;
}

.day-name {
  font-size: clamp(28px, 2.7vw, 38px);
}

.day-date {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.09em;
}

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

.item-list {
  display: grid;
  gap: 12px;
}

/* ---------- Event cards ---------- */

.item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    background-color 180ms ease;
}

.item::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--cat-fg, var(--accent));
  opacity: 0;
  transition: opacity 180ms ease;
}

.item:hover {
  border-color: var(--line-strong);
  background: #fffaf2;
  box-shadow: 0 12px 26px rgba(35, 31, 24, 0.08);
  transform: translateY(-2px);
}

.item:hover::before,
.item:has(.item-open:focus-visible)::before {
  opacity: 1;
}

.item.is-saved {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
}

.item-open {
  display: grid;
  grid-template-columns: 73px minmax(0, 1fr) 34px;
  gap: 17px;
  align-items: start;
  width: 100%;
  padding: 21px 18px 21px 19px;
  border: 0;
  border-radius: 14px;
  background: none;
  color: inherit;
  text-align: left;
}

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

.item-time {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
}

.item-time-end {
  color: var(--muted);
  font-size: 10px;
}

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

.item-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 3px;
  border-radius: 999px;
  background: var(--cat-bg, var(--paper-deep));
  color: var(--cat-fg, var(--ink));
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.item-tag::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.item-title {
  display: block;
  margin: 9px 0 7px;
  font-family: var(--font-display);
  font-size: clamp(21px, 1.9vw, 26px);
  font-weight: 470;
  letter-spacing: -0.028em;
  line-height: 1.13;
  text-wrap: balance;
}

.item-title mark {
  padding: 0 1px;
  border-radius: 2px;
  background: var(--accent-soft);
  color: inherit;
}

.item-summary {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.item-meta .meta-dot {
  color: var(--line-strong);
}

.item-meta .meta-price {
  color: var(--accent-deep);
  font-weight: 400;
}

.item-saved-mark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-deep);
}

.item-arrow {
  display: grid;
  place-items: center;
  align-self: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.item:hover .item-arrow {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  transform: rotate(-45deg);
}

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

.empty-state {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-top: 8px;
  padding: clamp(32px, 5vw, 66px);
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  background: rgba(250, 246, 238, 0.5);
}

.empty-number {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 112px;
  height: 112px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 350;
  letter-spacing: -0.06em;
}

.empty-copy {
  max-width: 540px;
}

.empty-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.empty-copy p {
  margin: 10px 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

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

.detail {
  width: min(1040px, calc(100vw - 48px));
  max-width: none;
  max-height: min(90dvh, 920px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}

.detail::backdrop {
  background: rgba(23, 25, 21, 0.65);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.detail-shell {
  max-height: min(90dvh, 920px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 32px 90px rgba(12, 13, 10, 0.32);
  animation: detail-in 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.detail-top {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px 14px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 239, 230, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.detail-kicker {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.detail-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 12.5px;
  font-weight: 500;
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.84fr) minmax(0, 1.16fr);
}

.detail-identity {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 630px;
  overflow: hidden;
  padding: 38px 36px 34px;
  border-right: 1px solid var(--line);
  background: var(--detail-bg, var(--paper-deep));
}

.detail-cat {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px 5px;
  border: 1px solid color-mix(in srgb, var(--detail-fg) 35%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--detail-bg) 55%, #fff);
  color: var(--detail-fg);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.detail-cat::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.detail-title {
  position: relative;
  z-index: 1;
  margin: 20px 0 24px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}

.detail-when {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: auto;
  padding-top: 30px;
}

.detail-when-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.detail-when-block span {
  color: var(--detail-fg);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.09em;
  opacity: 0.86;
  text-transform: uppercase;
}

.detail-when-block strong {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.detail-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, var(--detail-fg) 24%, transparent);
}

.detail-price-label {
  color: var(--detail-fg);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-price {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 450;
  letter-spacing: -0.04em;
  line-height: 1;
}

.save-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 50px;
  margin-top: 20px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff8f1;
  font-size: 13.5px;
  font-weight: 600;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.save-button:hover {
  background: #000;
}

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

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

.detail-glyph {
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 230px;
  height: 230px;
  color: var(--detail-fg);
  opacity: 0.13;
  pointer-events: none;
  transform: rotate(-8deg);
}

.detail-body {
  min-width: 0;
  padding: 40px 42px 42px;
}

.detail-section-label {
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-body-text {
  color: var(--ink-soft);
}

.detail-body-text p {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  text-wrap: pretty;
}

.detail-body-text p + p {
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 14.5px;
  line-height: 1.65;
}

.detail-divider {
  height: 1px;
  margin: 30px 0;
  background: var(--line);
}

.detail-practical h3 {
  margin-bottom: 17px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 450;
  letter-spacing: -0.03em;
}

.practical-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.practical-list > div {
  padding: 13px 12px 13px 0;
  border-bottom: 1px solid var(--line);
}

.practical-list > div:nth-child(even) {
  padding-left: 17px;
  border-left: 1px solid var(--line);
}

.practical-list dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.09em;
  line-height: 1.5;
  text-transform: uppercase;
}

.practical-list dd {
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.45;
}

.access-note {
  margin-top: 24px;
  padding: 18px 18px 17px;
  border-left: 3px solid var(--accent);
  background: rgba(227, 83, 46, 0.07);
}

.access-note p:last-child {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.6;
}

.content-note {
  margin-top: 26px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.03em;
  line-height: 1.6;
}

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

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 46px var(--gutter) 38px;
  border-top: 1px solid var(--line-strong);
}

.footer-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.footer-mark {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.footer-mark span {
  color: var(--accent);
}

.footer-line {
  max-width: 270px;
  padding-bottom: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  text-align: right;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 40px;
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.035em;
  line-height: 1.6;
}

.footer-bottom p {
  max-width: 600px;
}

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

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    gap: 36px;
  }

  .hero-visual {
    min-height: 470px;
  }

  .hero-photo {
    height: 434px;
  }

  .hero-badge {
    width: 172px;
    height: 172px;
    padding: 18px;
  }

  .hero-badge-number {
    font-size: 48px;
  }

  .controls {
    grid-template-columns: minmax(180px, 1fr) 180px auto auto;
  }

  .item-open {
    grid-template-columns: 64px minmax(0, 1fr) 32px;
    gap: 13px;
  }
}

@media (max-width: 980px) {
  :root {
    --gutter: 28px;
  }

  .brand-sub {
    display: none;
  }

  .header-inner {
    grid-template-columns: auto 1fr;
  }

  .header-meta {
    justify-self: end;
  }

  .header-edition {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 54px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    min-height: 420px;
    max-width: 650px;
    margin-left: auto;
    width: 100%;
  }

  .hero-photo {
    height: 394px;
    width: 70%;
  }

  .hero-badge {
    left: 2%;
    bottom: 12px;
  }

  .hero-stamp {
    left: 36%;
    top: 60px;
  }

  .programme-head {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }

  .programme-intro {
    max-width: 540px;
  }

  .controls {
    position: static;
  }

  .day-grid {
    gap: 28px;
  }

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

  .detail-identity {
    min-height: 0;
    padding: 30px 30px 28px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .detail-when {
    margin-top: 18px;
    padding-top: 0;
  }

  .detail-body {
    padding: 30px;
  }

  .detail-glyph {
    width: 190px;
    height: 190px;
    opacity: 0.1;
  }
}

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

  html {
    scroll-padding-top: 90px;
  }

  .header-inner {
    min-height: 62px;
    gap: 12px;
  }

  .brand {
    font-size: 26px;
  }

  .header-date {
    display: none;
  }

  .header-meta {
    gap: 12px;
    font-size: 9.5px;
  }

  .hero {
    gap: 38px;
    padding: 44px var(--gutter) 52px;
  }

  .hero h1 {
    font-size: clamp(49px, 13.6vw, 76px);
    margin-top: 17px;
  }

  .hero-dek {
    font-size: 16px;
  }

  .hero-actions {
    gap: 14px 20px;
    margin-top: 25px;
  }

  .hero-facts {
    margin-top: 34px;
    gap: 10px;
  }

  .hero-facts dd {
    font-size: 20px;
  }

  .hero-visual {
    min-height: 350px;
  }

  .hero-photo {
    width: 78%;
    height: 326px;
    border-radius: 170px 170px 8px 8px;
  }

  .hero-badge {
    width: 142px;
    height: 142px;
    padding: 15px;
  }

  .hero-badge-number {
    font-size: 40px;
  }

  .hero-badge-label {
    font-size: 9px;
  }

  .hero-stamp {
    display: none;
  }

  .programme {
    padding-bottom: 68px;
  }

  .programme-head {
    padding: 48px 0 32px;
  }

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

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

  .saved-control {
    min-width: 0;
  }

  .saved-toggle {
    width: 100%;
    padding: 0 9px;
    font-size: 12.5px;
  }

  .reset-button {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-self: start;
    align-self: auto;
    height: 26px;
    margin: 0;
    padding-left: 2px;
  }

  .result-line {
    padding: 16px 2px 24px;
  }

  .shortlist-note {
    display: none;
  }

  .day-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .item-open {
    grid-template-columns: 62px minmax(0, 1fr) 30px;
    padding: 19px 15px 19px 16px;
  }

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

  .empty-state {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .empty-number {
    width: 82px;
    height: 82px;
    font-size: 44px;
  }

  .detail {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

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

  .detail-top {
    padding: 11px 13px 11px 18px;
  }

  .detail-identity {
    padding: 26px 20px 24px;
  }

  .detail-title {
    font-size: clamp(34px, 9.5vw, 46px);
  }

  .detail-when {
    gap: 16px;
  }

  .detail-body {
    padding: 26px 20px 34px;
  }

  .detail-body-text p {
    font-size: 16.5px;
  }

  .practical-list {
    grid-template-columns: 1fr;
  }

  .practical-list > div:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .footer-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .footer-line {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: 50px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-actions .text-button {
    margin-left: 2px;
  }

  .hero-visual {
    min-height: 316px;
  }

  .hero-photo {
    width: 84%;
    height: 292px;
  }

  .hero-badge {
    width: 124px;
    height: 124px;
    padding: 13px;
  }

  .hero-badge-number {
    font-size: 34px;
  }

  .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 14px;
  }

  .item-open {
    grid-template-columns: 1fr 30px;
    gap: 10px 12px;
  }

  .item-time {
    grid-column: 1;
    flex-direction: row;
    align-items: baseline;
    gap: 5px;
    padding-top: 0;
    font-size: 11px;
  }

  .item-content {
    grid-column: 1 / -1;
  }

  .item-arrow {
    grid-column: 2;
    grid-row: 1;
  }

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

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