@font-face {
  font-family: "DM Serif Display";
  src: url("assets/dm-serif.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.ttf") format("truetype");
  font-weight: 400 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: #f4efe3;
  --paper-deep: #e8e0cd;
  --surface: #fbf7ec;
  --ink: #181510;
  --muted: #514b3f;
  --rule: #c5bba6;
  --pink: #ff4d94;
  --pink-soft: #ffc3da;
  --blue: #2036c7;
  --blue-soft: #cdd3f5;
  --display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --max: 1280px;
  --pad: 48px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

img,
svg {
  max-width: 100%;
}

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

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

a {
  color: inherit;
}

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

button {
  cursor: pointer;
}

.mono {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.5;
}

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  font-family: var(--mono);
  font-size: 13px;
  text-decoration: none;
  transition: top 180ms var(--ease);
}
.skip-link:focus {
  top: 16px;
}

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

.masthead {
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
}

.masthead-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--pad) 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 10px 32px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
  width: max-content;
  max-width: 100%;
}
.wordmark-name {
  font-family: var(--display);
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  line-height: 0.9;
  letter-spacing: -0.025em;
}
.wordmark-sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.masthead-date {
  justify-self: end;
  color: var(--muted);
  text-align: right;
  padding-bottom: 4px;
}
.masthead-edition {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 7px;
  border: 1px solid var(--rule);
  color: var(--ink);
}

.nav {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
  margin-top: 6px;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 120ms var(--ease), color 120ms var(--ease);
}
.nav-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 8px;
  padding: 0 4px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  line-height: 1;
}

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

.hero {
  position: relative;
  overflow: clip;
  border-bottom: 2px solid var(--ink);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40px -120px auto auto;
  width: 46vw;
  height: 560px;
  background-image: radial-gradient(var(--blue) 1.1px, transparent 1.4px);
  background-size: 13px 13px;
  opacity: 0.16;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at 65% 35%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at 65% 35%, #000 0%, transparent 72%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px var(--pad) 88px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.78fr);
  gap: 64px;
  align-items: center;
}

.hero-copy > * {
  animation: rise 300ms var(--ease) both;
}
.hero-copy > :nth-child(2) {
  animation-delay: 60ms;
}
.hero-copy > :nth-child(3) {
  animation-delay: 120ms;
}
.hero-copy > :nth-child(4) {
  animation-delay: 180ms;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.eyebrow-mark {
  color: var(--pink);
  font-size: 15px;
  line-height: 1;
}

h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.8rem, 10.2vw, 9.5rem);
  line-height: 0.86;
  letter-spacing: -0.035em;
  margin-left: -0.04em;
  isolation: isolate;
}
h1 .line {
  position: relative;
  display: block;
  width: max-content;
  max-width: 100%;
}
h1 .line::before,
h1 .line::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  mix-blend-mode: multiply;
  pointer-events: none;
}
h1 .line::before {
  color: var(--pink);
  transform: translate(6px, 4px);
  animation: misprint-pink 11s steps(1, end) infinite;
}
h1 .line::after {
  color: var(--blue);
  transform: translate(-5px, -3px);
  opacity: 0.72;
  animation: misprint-blue 11s steps(1, end) infinite;
}

.hero-sub {
  max-width: 54ch;
  margin-top: 28px;
  font-size: 18px;
  line-height: 1.62;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 34px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 24px;
  background: var(--pink);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 100ms steps(2, end), box-shadow 100ms steps(2, end), background-color 100ms steps(2, end);
}
.btn-primary:active {
  transform: translate(3px, 3px) scale(0.98);
  box-shadow: 1px 1px 0 var(--ink);
}

.link-text {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1.5px solid var(--ink);
  transition: background-color 120ms var(--ease), color 120ms var(--ease), border-color 120ms var(--ease);
}
.link-text:active {
  transform: scale(0.98);
}

/* Program-card artifact */

.program-card {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: min(100%, 392px);
  background: var(--surface);
  border: 2px solid var(--ink);
  padding: 30px 28px 24px;
  transform: rotate(1.4deg);
  box-shadow: 9px 9px 0 var(--blue);
  animation: fade 380ms 140ms var(--ease) both;
}
.program-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--rule);
  pointer-events: none;
}

.tape {
  position: absolute;
  width: 86px;
  height: 25px;
  background: var(--pink-soft);
  border-left: 1px dashed rgba(24, 21, 16, 0.25);
  border-right: 1px dashed rgba(24, 21, 16, 0.25);
  opacity: 0.9;
  z-index: 2;
}
.tape-one {
  top: -14px;
  left: 26px;
  transform: rotate(-7deg);
}
.tape-two {
  right: 22px;
  bottom: -13px;
  transform: rotate(5deg);
  background: var(--blue-soft);
}

.card-kicker {
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.card-figure {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin: 8px 0 14px;
  position: relative;
  z-index: 1;
}
.card-number {
  font-family: var(--display);
  font-size: clamp(6rem, 7.6vw, 7.8rem);
  line-height: 0.72;
  letter-spacing: -0.05em;
  color: var(--pink);
  -webkit-text-stroke: 2px var(--ink);
}
.card-caption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.5;
  padding-bottom: 6px;
}

.card-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  position: relative;
  z-index: 1;
}
.card-dates dt {
  color: var(--blue);
  margin-bottom: 2px;
}
.card-dates dd {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.05;
}

.card-legend {
  display: grid;
  gap: 7px;
  padding: 14px 0;
  position: relative;
  z-index: 1;
}
.card-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
}
.ink-dot {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
}
.ink-dot-blue {
  background: var(--blue);
}
.ink-dot-pink {
  background: var(--pink);
}
.ink-dot-ink {
  background: var(--ink);
}

.card-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--rule);
  padding-top: 14px;
  position: relative;
  z-index: 1;
}
.barcode {
  flex: none;
  width: 96px;
  height: 26px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 2px,
    transparent 2px 4px,
    var(--ink) 4px 5px,
    transparent 5px 9px,
    var(--ink) 9px 12px,
    transparent 12px 14px
  );
}
.card-code {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.stamp {
  position: absolute;
  z-index: 3;
  right: -18px;
  top: -34px;
  display: inline-grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: var(--pink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.25;
  transform: rotate(12deg);
  transition: transform 180ms var(--ease);
}

/* Ticker */

.ticker {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--paper-deep);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 32s linear infinite;
}
.ticker-copy {
  display: inline-block;
  padding: 12px 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker-copy span {
  color: var(--pink);
  padding: 0 8px;
}

/* ---------- Controls band (inverted override) ---------- */

.controls-band {
  position: relative;
  background: var(--ink);
  color: var(--paper);
}
.controls-band::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 13px;
  background: var(--ink);
  clip-path: polygon(
    0 100%, 0 50%, 1.4% 8%, 3.1% 62%, 5% 22%, 7% 78%, 9% 14%, 11% 58%,
    13% 4%, 15% 72%, 17.5% 30%, 20% 86%, 22% 12%, 24.5% 66%, 27% 24%, 29% 80%,
    32% 8%, 34% 60%, 36.5% 18%, 39% 76%, 41% 28%, 43.5% 88%, 46% 16%, 48.5% 62%,
    51% 6%, 53.5% 74%, 56% 24%, 58.5% 84%, 61% 12%, 63.5% 64%, 66% 20%, 68.5% 78%,
    71% 8%, 73.5% 58%, 76% 26%, 78.5% 82%, 81% 14%, 83.5% 68%, 86% 22%, 88.5% 74%,
    91% 10%, 93.5% 60%, 96% 28%, 98% 80%, 100% 38%, 100% 100%
  );
}

.controls-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px var(--pad) 40px;
}

.controls-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 24px;
}
.controls-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.025em;
}
.controls-note {
  color: var(--pink-soft);
}

.controls {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(170px, 0.55fr) minmax(210px, auto);
  gap: 18px;
  align-items: end;
}
.control {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.control-label {
  color: var(--paper);
  opacity: 0.78;
}

#search,
#filter {
  width: 100%;
  height: 50px;
  min-height: 50px;
  padding: 0 14px;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--paper);
  border-radius: 0;
  font-family: var(--body);
  font-size: 16px;
  transition: border-color 120ms var(--ease), box-shadow 120ms var(--ease);
}
#search::placeholder {
  color: #6b6456;
  opacity: 1;
}
#search:focus,
#filter:focus {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(255, 77, 148, 0.28);
}
#filter {
  cursor: pointer;
}

.saved-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  background: transparent;
  color: var(--paper);
  border: 2px solid var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: background-color 110ms steps(2, end), color 110ms steps(2, end), transform 110ms steps(2, end);
}
.saved-filter-mark {
  color: var(--pink);
  font-size: 15px;
  line-height: 1;
  transition: color 110ms var(--ease);
}
.saved-filter-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
  line-height: 1;
}
.saved-filter[aria-pressed="true"] {
  background: var(--pink);
  color: var(--ink);
  border-color: var(--pink);
}
.saved-filter[aria-pressed="true"] .saved-filter-mark {
  color: var(--ink);
}
.saved-filter[aria-pressed="true"] .saved-filter-count {
  background: var(--ink);
  color: var(--paper);
}
.saved-filter:active {
  transform: scale(0.97);
}

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

.program-body {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px var(--pad) 104px;
}

.program-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 40px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--ink);
}
.program-dek {
  max-width: 58ch;
  font-size: 18px;
  color: var(--muted);
}
.program-mark {
  text-align: right;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.day-group {
  margin-top: 64px;
}
.day-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 20px;
  padding-top: 14px;
  border-top: 3px solid var(--ink);
  margin-bottom: 4px;
}
.day-big {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 4.1rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.day-month {
  color: var(--muted);
  padding-bottom: 4px;
}
.day-count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 4px;
}

.entries {
  border-top: 1px solid var(--rule);
}

.entry {
  position: relative;
  display: grid;
  grid-template-columns: 58px 104px minmax(0, 1fr) 176px;
  gap: 8px 24px;
  align-items: start;
  padding: 26px 8px 26px 0;
  border-bottom: 1px solid var(--rule);
  transition: background-color 110ms steps(2, end), transform 110ms steps(2, end);
}
.entry::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 18px;
  bottom: 18px;
  width: 4px;
  background: var(--pink);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 120ms steps(2, end);
}
.entry:focus-within {
  background: var(--paper-deep);
}
.entry:focus-within::before {
  transform: scaleY(1);
}

.entry-index {
  font-family: var(--display);
  font-size: 40px;
  line-height: 0.9;
  color: var(--muted);
  letter-spacing: -0.03em;
  padding-top: 2px;
  transition: color 120ms steps(2, end);
}
.entry-time {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  padding-top: 7px;
  color: var(--blue);
}
.entry-time .to {
  color: var(--muted);
}

.entry-body {
  min-width: 0;
}
.entry-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.cat-stamp {
  display: inline-block;
  padding: 3px 8px;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
}

.saved-flag {
  display: inline-block;
  padding: 3px 8px;
  background: var(--pink);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  transform: rotate(-1.5deg);
  animation: stamp-in 180ms steps(2, end) both;
}

.entry-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 2.5vw, 2.15rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 7px;
}
.entry-summary {
  max-width: 62ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 10px;
}
.entry-where {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.07em;
}
.entry-where span {
  white-space: nowrap;
}

.entry-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  padding-top: 2px;
}
.entry-price {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.open-item {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
  width: 100%;
  max-width: 176px;
  padding: 10px 14px;
  background: transparent;
  border: 1.5px solid var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-align: left;
  transition: background-color 100ms steps(2, end), transform 100ms steps(2, end), box-shadow 100ms steps(2, end);
}
.open-item span[aria-hidden] {
  font-size: 15px;
  line-height: 1;
}
.open-item:active {
  transform: scale(0.97);
}

/* Context-specific focus rings */

.nav a:focus-visible,
.wordmark:focus-visible,
.link-text:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}
.wordmark:focus-visible .wordmark-name {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.btn-primary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  box-shadow: 5px 5px 0 var(--ink);
}
.saved-filter:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}
.open-item:focus-visible,
.stub-open:focus-visible,
.close-detail:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.save-item:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 4px 4px 0 var(--blue);
}
.footer-top:focus-visible {
  outline-color: var(--pink-soft);
}
.entry:focus-within .entry-title {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

.empty-state {
  margin-top: 56px;
  padding: 48px;
  border: 2px dashed var(--ink);
  background: var(--paper-deep);
}
.empty-kicker {
  color: var(--blue);
  margin-bottom: 10px;
}
.empty-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.empty-copy {
  max-width: 50ch;
  color: var(--muted);
  margin-bottom: 24px;
}

/* ---------- How to read ---------- */

.howto {
  background: var(--paper-deep);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 104px 0;
}
.howto-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 72px;
  align-items: start;
}

.pull-quote {
  position: relative;
}
.pull-quote p {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5.2vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 20ch;
}
.quote-mark {
  color: var(--pink);
  -webkit-text-stroke: 1.5px var(--ink);
  margin-right: 0.04em;
}
.pull-quote cite {
  display: block;
  margin-top: 28px;
  color: var(--muted);
  font-style: normal;
}

.legend h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.025em;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
}
.legend-list {
  margin-top: 4px;
}
.legend-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
}
.legend-row dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.legend-row dd {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}
.legend-swatch {
  width: 13px;
  height: 13px;
  flex: none;
  border: 1px solid var(--ink);
}
.swatch-pink {
  background: var(--pink);
}
.swatch-blue {
  background: var(--blue);
}
.swatch-ink {
  background: var(--ink);
}
.swatch-rule {
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px);
}
.legend-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
  max-width: 48ch;
}

/* ---------- Shortlist stub ---------- */

.stub-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px var(--pad) 120px;
}
.stub {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: 9px 9px 0 var(--pink);
  padding: 32px;
}
.stub-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  padding-bottom: 20px;
  border-bottom: 2px dashed var(--ink);
}
.stub-kicker {
  color: var(--blue);
  margin-bottom: 4px;
}
.stub-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  line-height: 1;
  letter-spacing: -0.025em;
}
.stub-count {
  color: var(--muted);
  padding-bottom: 5px;
}
.stub-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding-top: 20px;
}
.stub-list {
  display: grid;
  gap: 2px;
}
.stub-empty {
  max-width: 58ch;
  color: var(--muted);
  font-size: 16px;
  padding-block: 6px;
}
.stub-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
}
.stub-item-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--blue);
  flex: none;
}
.stub-item-title {
  flex: 1;
  min-width: 0;
  font-family: var(--display);
  font-size: 21px;
  line-height: 1.15;
}
.stub-open {
  flex: none;
  min-height: 44px;
  padding: 8px 12px;
  border: 1.5px solid var(--ink);
  background: transparent;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: background-color 100ms steps(2, end), color 100ms steps(2, end), transform 100ms steps(2, end);
}
.stub-open:active {
  transform: scale(0.97);
}
.stub-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
}
.stub-back {
  white-space: nowrap;
}
.stamp-small {
  position: static;
  width: 70px;
  height: 70px;
  font-size: 10.5px;
  border-color: var(--ink);
  color: var(--ink);
  background: var(--blue-soft);
  transform: rotate(-8deg);
}

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

.footer {
  overflow: clip;
}
.footer-band {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: 84px 0 40px;
}
.footer-band::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 13px;
  background: var(--ink);
  clip-path: polygon(
    0 100%, 0 38%, 2% 84%, 4.5% 20%, 7% 70%, 9.5% 6%, 12% 76%, 15% 30%, 17.5% 88%,
    20% 16%, 23% 66%, 25.5% 10%, 28% 80%, 31% 24%, 34% 74%, 36.5% 14%, 39% 84%,
    42% 28%, 45% 78%, 47.5% 8%, 50% 70%, 53% 20%, 55.5% 86%, 58% 12%, 61% 72%,
    63.5% 26%, 66% 82%, 69% 6%, 71.5% 68%, 74% 22%, 76.5% 88%, 79% 14%, 82% 74%,
    84.5% 30%, 87% 80%, 89.5% 10%, 92% 66%, 94.5% 26%, 97% 82%, 99% 18%, 100% 60%,
    100% 100%
  );
}
.footer-inner,
.footer-band > * {
  max-width: var(--max);
  margin-inline: auto;
}
.footer-kicker {
  padding: 0 var(--pad);
  color: var(--pink-soft);
  margin-bottom: 14px;
}
.footer-statement {
  padding: 0 var(--pad);
  font-family: var(--display);
  font-size: clamp(4rem, 11vw, 10rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: var(--paper);
}
.footer-foot {
  max-width: var(--max);
  margin: 56px auto 0;
  padding: 20px var(--pad) 0;
  border-top: 1px solid rgba(244, 239, 227, 0.35);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  color: var(--paper);
}
.footer-foot p {
  font-size: 11px;
  opacity: 0.8;
}
.footer-top {
  border-bottom-color: var(--paper);
}

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

.detail-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(760px, calc(100vw - 40px));
  max-width: 760px;
  max-height: calc(100dvh - 40px);
  overflow: auto;
  color: var(--ink);
}
.detail-dialog::backdrop {
  background: rgba(24, 21, 16, 0.76);
  backdrop-filter: blur(2px);
}
.detail-card {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: 12px 12px 0 var(--pink);
  padding: 32px 36px 36px;
  background-image: radial-gradient(rgba(32, 54, 199, 0.1) 1px, transparent 1.2px);
  background-size: 11px 11px;
}
.detail-card::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid var(--rule);
  pointer-events: none;
}
.detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  z-index: 1;
}
.detail-kicker {
  color: var(--blue);
}
.close-detail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: background-color 100ms steps(2, end), transform 100ms steps(2, end);
}
.close-detail span {
  font-size: 17px;
  line-height: 1;
}
.close-detail:active {
  transform: scale(0.97);
}

.detail-heading {
  position: relative;
  z-index: 1;
  padding: 22px 0 18px;
}
.detail-heading h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.3rem, 5.4vw, 3.7rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-top: 10px;
  max-width: 20ch;
}

.detail-meta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 20px;
  padding: 6px 0 16px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}
.detail-meta > div {
  padding-top: 12px;
  min-width: 0;
}
.detail-meta dt {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 2px;
}
.detail-meta dd {
  font-size: 15px;
  line-height: 1.35;
}

.detail-body {
  position: relative;
  z-index: 1;
  padding: 20px 0 4px;
  max-width: 66ch;
}
.detail-body p {
  font-size: 17px;
  line-height: 1.62;
  margin-bottom: 14px;
}
.detail-body p.detail-lead {
  font-size: 19px;
  line-height: 1.55;
}
.detail-body p.detail-practical {
  margin-left: 16px;
  padding-left: 16px;
  border-left: 3px solid var(--pink);
  color: var(--muted);
  font-size: 16px;
}

.detail-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  margin-top: 8px;
}
.save-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 20px;
  background: var(--pink);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: background-color 110ms steps(2, end), color 110ms steps(2, end), box-shadow 110ms steps(2, end), transform 110ms steps(2, end);
}
.save-mark {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid currentColor;
  font-size: 15px;
  line-height: 1;
}
.save-item[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 4px 4px 0 var(--pink);
}
.save-item:active {
  transform: translate(2px, 2px) scale(0.98);
  box-shadow: 1px 1px 0 var(--ink);
}
.detail-footnote {
  color: var(--muted);
  max-width: 30ch;
  font-size: 11px;
  line-height: 1.6;
}

body.has-dialog {
  overflow: hidden;
}

.noscript-note {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--pad);
  border-top: 2px solid var(--ink);
  font-size: 15px;
}

/* ---------- Hover states (pointer only) ---------- */

@media (hover: hover) and (pointer: fine) {
  .nav a:hover {
    border-bottom-color: var(--pink);
  }
  .wordmark:hover .wordmark-name {
    color: var(--blue);
  }
  .btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 var(--ink);
    background: var(--pink-soft);
  }
  .link-text:hover {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
  }
  .program-card:hover .stamp {
    transform: rotate(-6deg);
  }
  .saved-filter:hover {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--paper);
  }
  .saved-filter:hover .saved-filter-mark {
    color: var(--pink);
  }
  .saved-filter[aria-pressed="true"]:hover {
    background: var(--pink-soft);
    color: var(--ink);
    border-color: var(--pink-soft);
  }
  .entry:hover {
    background: var(--paper-deep);
    transform: translateX(6px);
  }
  .entry:hover::before {
    transform: scaleY(1);
  }
  .entry:hover .entry-index {
    color: var(--blue);
  }
  .open-item:hover {
    background: var(--pink);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--ink);
  }
  .stub-open:hover {
    background: var(--pink);
    color: var(--ink);
    transform: translate(-1px, -1px);
  }
  .close-detail:hover {
    background: var(--pink);
  }
  .save-item:hover {
    background: var(--pink-soft);
  }
  .save-item[aria-pressed="true"]:hover {
    background: var(--blue);
    color: var(--paper);
    box-shadow: 4px 4px 0 var(--pink);
  }
  .footer-top:hover {
    background: var(--paper);
    color: var(--ink);
  }
}

.nav a:active,
.wordmark:active {
  color: var(--blue);
}

/* ---------- Motion ---------- */

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

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes stamp-in {
  from {
    opacity: 0;
    transform: rotate(-6deg) scale(1.12);
  }
  to {
    opacity: 1;
    transform: rotate(-1.5deg) scale(1);
  }
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes misprint-pink {
  0%,
  12%,
  100% {
    transform: translate(6px, 4px);
  }
  13%,
  30% {
    transform: translate(10px, 1px);
  }
  31%,
  55% {
    transform: translate(4px, 6px);
  }
  56%,
  82% {
    transform: translate(8px, 3px);
  }
  83%,
  99% {
    transform: translate(5px, 2px);
  }
}

@keyframes misprint-blue {
  0%,
  18%,
  100% {
    transform: translate(-5px, -3px);
  }
  19%,
  44% {
    transform: translate(-9px, -5px);
  }
  45%,
  70% {
    transform: translate(-3px, -1px);
  }
  71%,
  92% {
    transform: translate(-7px, -4px);
  }
  93%,
  99% {
    transform: translate(-4px, -2px);
  }
}

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

@media (max-width: 1020px) {
  .hero-grid {
    gap: 44px;
    padding-top: 56px;
    padding-bottom: 72px;
  }
  .entry {
    grid-template-columns: 50px 92px minmax(0, 1fr) 158px;
    gap: 8px 18px;
  }
  .howto-grid {
    gap: 48px;
  }
  .detail-card {
    padding: 28px;
  }
}

@media (max-width: 860px) {
  :root {
    --pad: 32px;
  }
  .hero::before {
    display: none;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .program-card {
    justify-self: start;
    width: min(100%, 420px);
  }
  .controls {
    grid-template-columns: minmax(0, 1fr) minmax(160px, 0.5fr);
  }
  .control-saved {
    grid-column: 1 / -1;
  }
  .entry {
    grid-template-columns: 44px 88px minmax(0, 1fr);
  }
  .entry-action {
    grid-column: 2 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 4px;
  }
  .open-item {
    max-width: 220px;
  }
  .howto-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }
  .stub-body {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .stub-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 620px) {
  :root {
    --pad: 20px;
  }
  body {
    font-size: 16px;
  }
  .masthead-inner {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-top: 14px;
  }
  .wordmark {
    gap: 10px;
  }
  .wordmark-sub {
    font-size: 11px;
  }
  .masthead-date {
    justify-self: start;
    text-align: left;
    padding-bottom: 0;
  }
  .nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 24px;
    scrollbar-width: thin;
    margin-inline: calc(var(--pad) * -1);
    padding-inline: var(--pad);
    padding-inline-end: 24px;
    scroll-padding-inline-end: 24px;
  }
  .nav a {
    flex: none;
  }
  .hero-grid {
    padding-top: 44px;
    padding-bottom: 56px;
    gap: 40px;
  }
  h1 {
    font-size: clamp(3.3rem, 15.5vw, 5.6rem);
    line-height: 0.88;
  }
  .hero-sub {
    font-size: 16.5px;
    margin-top: 22px;
  }
  .hero-actions {
    gap: 12px 20px;
    margin-top: 26px;
  }
  .btn-primary {
    min-height: 50px;
    padding: 12px 18px;
    font-size: 11px;
  }
  .program-card {
    padding: 24px 20px 20px;
    transform: rotate(0.8deg);
    box-shadow: 6px 6px 0 var(--blue);
  }
  .card-number {
    font-size: 6.8rem;
  }
  .stamp {
    right: -6px;
    top: -30px;
    width: 70px;
    height: 70px;
    font-size: 10.5px;
  }
  .tape-one {
    left: 16px;
  }
  .tape-two {
    right: 14px;
  }
  .controls-inner {
    padding-top: 36px;
    padding-bottom: 32px;
  }
  .controls-head {
    margin-bottom: 20px;
  }
  .controls {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .control-saved {
    grid-column: auto;
  }
  .program-body {
    padding-top: 44px;
    padding-bottom: 72px;
  }
  .program-intro {
    gap: 14px;
  }
  .program-dek {
    font-size: 16.5px;
  }
  .program-mark {
    text-align: left;
  }
  .day-group {
    margin-top: 48px;
  }
  .day-head {
    gap: 4px 14px;
  }
  .day-count {
    width: 100%;
    margin-left: 0;
  }
  .entry {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 6px 14px;
    padding: 22px 2px 22px 0;
  }
  .entry::before {
    left: -4px;
  }
  .entry-index {
    grid-row: 1 / 3;
    font-size: 30px;
  }
  .entry-time {
    grid-column: 2;
    padding-top: 0;
    font-size: 12px;
  }
  .entry-body {
    grid-column: 2;
  }
  .entry-action {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
  }
  .entry-title {
    font-size: 1.65rem;
  }
  .entry-summary {
    font-size: 16px;
  }
  .entry-where {
    gap: 2px 6px;
  }
  .open-item {
    width: auto;
    max-width: none;
    flex: 1;
  }
  .empty-state {
    padding: 32px 22px;
  }
  .howto {
    padding: 72px 0;
  }
  .howto-grid {
    gap: 44px;
  }
  .pull-quote p {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }
  .legend-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .stub-section {
    padding: 72px var(--pad) 88px;
  }
  .stub {
    padding: 22px 18px;
    box-shadow: 6px 6px 0 var(--pink);
  }
  .stub-head {
    align-items: flex-start;
  }
  .stub-item {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .stub-item-title {
    flex-basis: calc(100% - 34px);
    font-size: 19px;
  }
  .stub-open {
    margin-left: 26px;
  }
  .stub-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-band {
    padding-top: 64px;
  }
  .footer-statement {
    font-size: clamp(3.4rem, 16vw, 5.4rem);
  }
  .footer-foot {
    margin-top: 40px;
  }
  .detail-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }
  .detail-card {
    padding: 20px 18px 26px;
    box-shadow: 7px 7px 0 var(--pink);
  }
  .detail-card::before {
    inset: 6px;
  }
  .detail-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-body p.detail-lead {
    font-size: 17.5px;
  }
  .detail-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .save-item {
    width: 100%;
    justify-content: flex-start;
  }
}

@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;
  }
  .ticker {
    overflow-x: auto;
  }
  .ticker-track {
    animation: none;
  }
  .hero-copy > *,
  .program-card {
    opacity: 1;
    transform: none;
  }
  .program-card {
    transform: rotate(1.4deg);
  }
  .entry:hover,
  .hero-copy > * {
    transform: none;
  }
}
