@font-face {
  font-family: "Oswald";
  src: url("assets/oswald.ttf") format("truetype");
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("assets/space-grotesk.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/ibm-plex-mono.ttf") format("truetype");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("assets/literata.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f2e9da;
  --paper-2: #fcf7ed;
  --paper-3: #eadfcc;
  --ink: #17130f;
  --ink-soft: #51483b;
  --orange: #f05a28;
  --orange-deep: #b93a12;
  --acid: #e4ff57;
  --blue: #2440f0;
  --blue-deep: #172b9c;
  --line: rgba(23, 19, 15, 0.38);
  --focus: #2440f0;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --sans: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
  --serif: "Literata", Georgia, serif;
  --shadow: 5px 5px 0 var(--ink);
  --wrap: min(1320px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(23, 19, 15, 0.055) 0.7px, transparent 0.8px);
  background-size: 5px 5px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.detail-open {
  overflow: hidden;
}

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

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

button,
select {
  cursor: pointer;
  touch-action: manipulation;
}

button {
  transition:
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

a {
  color: inherit;
}

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

.sr-only {
  position: absolute !important;
  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;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: var(--paper-2);
  background: var(--ink);
  border: 2px solid var(--acid);
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  transform: translateY(-160%);
}

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

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

/* ————— ticker ————— */

.ticker {
  overflow: hidden;
  color: var(--paper-2);
  background: var(--ink);
  border-bottom: 2px solid var(--ink);
}

.ticker__track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  min-width: 100%;
  padding: 8px 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker__dot {
  display: block;
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
}

/* ————— masthead ————— */

.days[hidden] {
  display: none;
}

.days:focus {
  outline: 3px solid var(--focus);
  outline-offset: 8px;
}

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

.masthead::after {
  content: "03—04";
  position: absolute;
  z-index: 0;
  right: -0.04em;
  bottom: -0.23em;
  color: transparent;
  font-family: var(--display);
  font-size: clamp(150px, 24vw, 360px);
  font-weight: 700;
  line-height: 1;
  -webkit-text-stroke: 1.5px rgba(23, 19, 15, 0.12);
  pointer-events: none;
}

.masthead__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 410px);
  gap: 40px;
  align-items: end;
  padding-block: 22px 18px;
}

.brand {
  min-width: 0;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.35;
  text-transform: uppercase;
}

.kicker__rule {
  display: inline-block;
  width: 34px;
  height: 2px;
  background: var(--orange);
}

.logo {
  display: flex;
  align-items: flex-start;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(112px, 14.2vw, 200px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.72;
  text-transform: uppercase;
}

.logo__dot {
  color: var(--orange);
  font-size: 0.42em;
  line-height: 1;
  margin-left: 0.015em;
  transform: translateY(0.03em);
}

.tagline {
  margin: 18px 0 0;
  font-family: var(--display);
  font-size: clamp(16px, 1.7vw, 24px);
  font-weight: 500;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.issue {
  position: relative;
  padding: 20px 22px 20px;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  box-shadow: 7px 7px 0 var(--orange);
}

.issue__stamp {
  position: absolute;
  top: -22px;
  right: -20px;
  display: flex;
  width: 110px;
  height: 110px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--ink);
  background: var(--acid);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-11deg);
  box-shadow: 2px 2px 0 var(--ink);
}

.issue__stamp::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed var(--ink);
  border-radius: 50%;
}

.issue__stamp-mid {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.issue__copy {
  padding-right: 66px;
}

.issue__label {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.issue__note {
  margin: 0;
  max-width: 42ch;
  font-family: var(--serif);
  font-size: 12.5px;
  line-height: 1.55;
}

.fact-strip {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 26px;
  align-items: center;
  padding-block: 10px 12px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.fact-strip span {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.fact-strip strong {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0;
}

.fact-strip__last {
  margin-left: auto;
  color: var(--orange-deep);
}

/* ————— intro ————— */

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.8fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
  padding-block: clamp(34px, 4vw, 44px) clamp(24px, 2.5vw, 30px);
}

.intro__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(40px, 4.5vw, 62px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 0.98;
  text-transform: uppercase;
}

.intro__mark {
  display: inline;
  background: linear-gradient(transparent 55%, var(--acid) 55%, var(--acid) 93%, transparent 93%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.intro__side {
  padding-top: 6px;
}

.intro__lede {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.6;
}

.howto {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px dashed var(--line);
}

.howto li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  padding-top: 6px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 6px;
  font-size: 12.5px;
  line-height: 1.4;
}

.howto span {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--orange-deep);
}

/* ————— counter ————— */

.counter {
  position: relative;
  z-index: 2;
  padding: 16px 22px 0;
  color: var(--paper-2);
  background: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--orange);
}

.counter__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.counter__title {
  margin: 0;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.counter__sub {
  margin: 0;
  color: #cfc5b3;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(160px, 0.8fr) minmax(175px, 0.9fr) minmax(300px, 1.3fr);
  gap: 16px;
  align-items: end;
}

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

.control-label {
  color: #d5cbbb;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.3;
  text-transform: uppercase;
}

.input-shell {
  position: relative;
  display: flex;
  align-items: center;
}

.input-shell__icon {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}

.input-shell input {
  width: 100%;
  height: 48px;
  padding: 0 42px 0 40px;
  color: var(--ink);
  background: var(--paper-2);
  border: 2px solid var(--paper-2);
  border-radius: 0;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
}

.input-shell input::placeholder {
  color: #766d5e;
  opacity: 1;
}

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

.keyhint {
  position: absolute;
  right: 11px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--ink-soft);
  background: var(--paper-3);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  pointer-events: none;
}

.input-shell:focus-within .keyhint,
.input-shell:has(input:not(:placeholder-shown)) .keyhint {
  display: none;
}

.select-shell {
  position: relative;
}

.select-shell select {
  width: 100%;
  height: 48px;
  padding: 0 36px 0 13px;
  color: var(--ink);
  background: var(--paper-2);
  border: 2px solid var(--paper-2);
  border-radius: 0;
  appearance: none;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
}

.select-shell__arrow {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  pointer-events: none;
  transform: translateY(-50%);
}

.dayfilter {
  display: flex;
  gap: 0;
  height: 48px;
}

.chip {
  flex: 1;
  min-width: 0;
  padding: 0 7px;
  color: var(--paper-2);
  background: transparent;
  border: 1.5px solid #786e5f;
  border-right-width: 0;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.chip:first-child {
  border-left-width: 1.5px;
}

.chip:last-child {
  border-right-width: 1.5px;
}

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

.chip:hover {
  color: var(--ink);
  background: var(--paper-3);
  border-color: var(--paper-3);
}

.chip[aria-pressed="true"]:hover {
  background: var(--acid);
  border-color: var(--acid);
}

.action-row {
  display: grid;
  grid-template-columns: minmax(118px, 0.8fr) minmax(160px, 1.2fr);
  gap: 8px;
}

.pocket-toggle,
.draw {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border: 1.5px solid var(--paper-2);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.pocket-toggle {
  color: var(--paper-2);
  background: transparent;
}

.pocket-toggle svg,
.draw svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pocket-toggle:hover {
  background: #302a22;
}

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

.pocket-toggle__count {
  padding: 2px 4px;
  color: var(--ink);
  background: var(--orange);
  font-size: 8.5px;
  letter-spacing: 0;
}

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

.draw {
  color: var(--ink);
  background: var(--orange);
  border-color: var(--orange);
}

.draw:hover {
  background: #ff7645;
}

.draw:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.counter :focus-visible {
  outline-color: var(--acid);
}

.counter__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 15px;
  padding-block: 9px;
  border-top: 1px dashed #62594c;
}

.status {
  margin: 0;
  color: #d8cebc;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reset {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 3px 0;
  color: var(--acid);
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reset:hover {
  color: var(--paper-2);
}

.chip:active,
.pocket-toggle:active,
.draw:active,
.reset:active,
.empty__reset:active,
.detail__close:active,
.save-item:active {
  transform: translateY(1px);
}

/* ————— days & tickets ————— */

.days {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 58px);
  align-items: start;
  padding-top: clamp(32px, 3.4vw, 44px);
  padding-bottom: clamp(48px, 6vw, 84px);
}

.day {
  min-width: 0;
}

.day:nth-child(2) {
  margin-top: 74px;
}

.day__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 16px;
  align-items: end;
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 3px solid var(--ink);
}

.day__tag {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.day__tag::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--orange);
  border-radius: 50%;
}

.day__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(38px, 4.2vw, 58px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 0.9;
  text-transform: uppercase;
}

.day__meta {
  margin: 0 0 3px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-align: right;
  text-transform: uppercase;
}

.day__list {
  display: grid;
  gap: 17px;
}

.ticket {
  --cat: var(--orange);
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 56px;
  min-width: 0;
  background-color: var(--paper-2);
  background-image:
    radial-gradient(circle at 72px -7px, var(--paper) 7px, transparent 7.4px),
    radial-gradient(circle at 72px calc(100% + 7px), var(--paper) 7px, transparent 7.4px);
  border: 1.5px solid var(--ink);
  border-top: 5px solid var(--cat);
  box-shadow: var(--shadow);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.ticket:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.ticket:focus-within {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.ticket:has(.ticket__open:active) {
  transform: translate(1px, 1px);
  box-shadow: 3px 3px 0 var(--ink);
}

.ticket__open {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

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

.ticket__stub {
  display: flex;
  min-height: 172px;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 12px 6px;
  border-right: 1.5px dashed var(--line);
  text-align: center;
}

.ticket__day {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ticket__date {
  font-family: var(--display);
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.78;
}

.ticket__month {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.ticket__price {
  margin-top: 3px;
  padding: 3px 5px;
  color: var(--paper-2);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ticket__price--free {
  color: var(--ink);
  background: var(--acid);
  border: 1px solid var(--ink);
  transform: rotate(-4deg);
}

.ticket__punched {
  display: block;
  color: var(--orange-deep);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  transform: rotate(-5deg);
}

.ticket__main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 13px 15px 14px;
}

.ticket__topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.ticket__cat {
  display: inline-block;
  padding: 3px 6px;
  color: #fffdf7;
  background: var(--cat);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.ticket__format {
  padding: 2px 5px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.3;
  text-transform: uppercase;
}

.ticket__time {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.ticket__title {
  margin: 8px 0 6px;
  font-family: var(--display);
  font-size: clamp(23px, 2.1vw, 31px);
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1.02;
  overflow-wrap: break-word;
}

.ticket__summary {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 12.5px;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ticket__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.045em;
  line-height: 1.5;
  text-transform: uppercase;
}

.ticket__meta span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.ticket__meta b {
  color: var(--orange-deep);
  font-weight: 600;
}

.ticket__meta::after {
  content: "Open →";
  margin-left: auto;
  color: var(--orange-deep);
  font-weight: 600;
  white-space: nowrap;
}

.ticket__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px;
  border-left: 1.5px dashed var(--line);
}

.ticket__admit {
  display: block;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transform: rotate(90deg);
  white-space: nowrap;
}

.ticket__barcode {
  width: 30px;
  height: 46px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 2px,
    transparent 2px 4px,
    var(--ink) 4px 5px,
    transparent 5px 8px
  );
}

.ticket.is-saved {
  background-color: #fffaf0;
}

/* ————— empty state ————— */

.empty {
  position: relative;
  margin: 32px auto clamp(56px, 7vw, 90px);
  padding: clamp(30px, 6vw, 64px);
  background: var(--paper-2);
  border: 2px dashed var(--ink);
  box-shadow: 8px 8px 0 var(--paper-3);
  text-align: center;
}

.empty[hidden] {
  display: none;
}

.empty__kicker {
  margin: 0 0 12px;
  color: var(--orange-deep);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.empty__title {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 74px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 0.95;
  text-transform: uppercase;
}

.empty__copy {
  max-width: 48ch;
  margin: 0 auto 22px;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.6;
}

.empty__reset {
  min-height: 48px;
  padding: 0 22px;
  color: var(--paper-2);
  background: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--orange);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.empty__reset:hover {
  color: var(--ink);
  background: var(--acid);
  box-shadow: 4px 4px 0 var(--ink);
}

.empty__tear {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
}

.empty__tear span {
  flex: 1;
  border-top: 1px dashed var(--line);
}

/* ————— footer ————— */

.footer {
  border-top: 2px solid var(--ink);
  background: var(--paper-3);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 70px);
  padding-block: 32px 40px;
}

.footer__logo {
  margin: 0;
  font-family: var(--display);
  font-size: 58px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.72;
}

.footer__tag {
  margin: 13px 0 0;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer__col p {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 11.5px;
  line-height: 1.55;
}

.footer__col strong {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* ————— detail dialog ————— */

.detail {
  width: min(980px, calc(100vw - 36px));
  max-width: none;
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  overflow: visible;
}

.detail::backdrop {
  background: rgba(23, 19, 15, 0.8);
  backdrop-filter: blur(2px);
}

.detail__paper {
  display: flex;
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  flex-direction: column;
  overflow: hidden;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  box-shadow: 11px 11px 0 var(--orange);
  animation: ticket-print 280ms cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

@keyframes ticket-print {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.detail__bar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 12px 9px 16px;
  color: var(--paper-2);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail__bar-label {
  display: flex;
  align-items: center;
  gap: 9px;
}

.detail__bar-label::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--acid);
  border-radius: 50%;
}

.detail__close {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  color: var(--ink);
  background: var(--acid);
  border: 1.5px solid var(--acid);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail__close:hover {
  color: var(--paper-2);
  background: var(--orange);
  border-color: var(--orange);
}

.detail__close svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.detail__scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

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

.detail__grid {
  --cat: var(--orange);
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
}

.detail__stub {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 20px;
  color: #fffdf7;
  background: var(--cat);
}

.detail__stub-day {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.detail__stub-date {
  margin: 5px 0 0;
  font-family: var(--display);
  font-size: 104px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.75;
}

.detail__stub-month {
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.detail__stub-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding-top: 18px;
  border-top: 1px dashed rgba(255, 253, 247, 0.6);
}

.detail__stub-list dt {
  margin: 0 0 2px;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

.detail__stub-list dd {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.detail__stub-price {
  display: inline-block;
  padding: 4px 7px;
  color: var(--ink);
  background: var(--acid);
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}

.detail__body {
  padding: clamp(24px, 4vw, 44px);
}

.detail__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.detail__cat {
  padding: 4px 8px;
  color: #fffdf7;
  background: var(--cat);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail__format {
  padding: 3px 7px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail__no {
  margin-left: auto;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.detail__title {
  max-width: 16ch;
  margin: 15px 0 12px;
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 0.96;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.detail__text {
  margin: 0 0 26px;
  max-width: 60ch;
  white-space: pre-line;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.7;
}

.detail__text::first-letter {
  float: left;
  margin: 0.02em 0.1em 0 0;
  color: var(--orange-deep);
  font-family: var(--display);
  font-size: 3.05em;
  font-weight: 600;
  line-height: 0.78;
}

.detail__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 18px;
  margin: 0 0 24px;
  padding: 18px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}

.detail__facts dt {
  margin: 0 0 3px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.detail__facts dd {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.detail__access {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 15px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.detail__access svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--orange-deep);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.detail__access h3 {
  margin: 0 0 3px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.detail__access p {
  margin: 0;
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.5;
}

.detail__foot {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  background: var(--paper);
  border-top: 2px solid var(--ink);
}

.detail__barcode {
  min-width: 0;
}

.detail__barcode-bars {
  width: 190px;
  max-width: 100%;
  height: 24px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 2px,
    transparent 2px 5px,
    var(--ink) 5px 6px,
    transparent 6px 9px,
    var(--ink) 9px 12px,
    transparent 12px 15px
  );
}

.detail__serial {
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.detail__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.detail__save-note {
  max-width: 18ch;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.save-item {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  color: var(--ink);
  background: var(--orange);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.save-item:hover {
  background: #ff7442;
}

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

.save-item svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.detail__bar :focus-visible {
  outline-color: var(--acid);
}

/* ————— responsive ————— */

@media (max-width: 1120px) {
  .masthead__grid {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 360px);
    gap: 30px;
  }

  .controls {
    grid-template-columns: minmax(200px, 1.2fr) minmax(150px, 0.8fr) minmax(160px, 0.8fr);
  }

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

  .action-row {
    grid-template-columns: minmax(150px, 0.7fr) minmax(220px, 1.3fr);
    max-width: 540px;
  }
}

@media (max-width: 900px) {
  :root {
    --wrap: calc(100% - 36px);
  }

  .masthead__grid {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-block: 22px;
  }

  .issue {
    max-width: 560px;
  }

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

  .intro__side {
    max-width: 620px;
  }

  .days {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .day:nth-child(2) {
    margin-top: 0;
  }

  .ticket__summary {
    -webkit-line-clamp: 3;
  }

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

  .footer__grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  :root {
    --wrap: calc(100% - 28px);
    --shadow: 4px 4px 0 var(--ink);
  }

  .ticker__track {
    gap: 14px;
    padding-inline: 14px;
    font-size: 9px;
  }

  .masthead::after {
    font-size: 180px;
    opacity: 0.8;
  }

  .logo {
    font-size: clamp(104px, 29vw, 160px);
  }

  .tagline {
    margin-top: 14px;
    font-size: 15px;
    letter-spacing: 0.08em;
  }

  .issue {
    padding: 16px 16px 16px;
    box-shadow: 5px 5px 0 var(--orange);
  }

  .issue__stamp {
    top: -12px;
    right: -6px;
    width: 72px;
    height: 72px;
    font-size: 6.5px;
  }

  .issue__stamp-mid {
    font-size: 12px;
  }

  .issue__copy {
    padding-right: 64px;
  }

  .issue__line {
    font-size: 21px;
  }

  .issue__note {
    display: none;
  }

  .fact-strip {
    display: none;
  }

  main {
    display: flex;
    flex-direction: column;
  }

  main > .counter {
    order: 1;
  }

  main > .wrap:not(.counter):not(.intro) {
    order: 2;
  }

  main > .intro {
    order: 3;
    padding-block: 36px 30px;
    border-top: 1px dashed var(--line);
  }

  main > .intro::before {
    content: "About this issue";
    display: block;
    margin-bottom: 10px;
    color: var(--orange-deep);
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }

  .intro__title {
    font-size: clamp(38px, 10.5vw, 54px);
  }

  .counter {
    padding: 15px 14px 0;
    box-shadow: 5px 5px 0 var(--orange);
  }

  .counter__head {
    display: block;
    margin-bottom: 13px;
  }

  .counter__sub {
    display: none;
  }

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

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

  .chip {
    padding-inline: 3px;
    font-size: 8px;
  }

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

  .action-row {
    grid-template-columns: minmax(108px, 0.75fr) minmax(0, 1.25fr);
    max-width: none;
  }

  .pocket-toggle,
  .draw {
    min-height: 50px;
    font-size: 10px;
  }

  .pocket-toggle__count {
    display: none;
  }

  .counter__foot {
    align-items: center;
    flex-direction: row;
    gap: 10px;
  }

  .status {
    flex: 1;
    line-height: 1.45;
  }

  .reset {
    min-height: 44px;
    flex: 0 0 auto;
  }

  .days {
    padding-top: 30px;
    padding-bottom: 46px;
  }

  .day__title {
    font-size: 46px;
  }

  .day__head {
    gap: 6px 10px;
    padding-bottom: 10px;
    margin-bottom: 14px;
  }

  .day__title {
    font-size: 42px;
  }

  .day__meta {
    font-size: 8px;
  }

  .ticket {
    grid-template-columns: 60px minmax(0, 1fr);
    background-image:
      radial-gradient(circle at 60px -7px, var(--paper) 7px, transparent 7.4px),
      radial-gradient(circle at 60px calc(100% + 7px), var(--paper) 7px, transparent 7.4px);
  }

  .ticket__side {
    display: none;
  }

  .ticket__stub {
    min-height: 160px;
    padding: 11px 4px;
  }

  .ticket__date {
    font-size: 42px;
  }

  .ticket__main {
    padding: 12px 13px 13px;
  }

  .ticket__title {
    font-size: clamp(24px, 7.2vw, 30px);
  }

  .ticket__summary {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer__grid > div:first-child {
    grid-column: auto;
  }

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

  .detail__paper {
    max-height: calc(100vh - 14px);
    max-height: calc(100dvh - 14px);
    box-shadow: 4px 4px 0 var(--orange);
  }

  .detail__bar {
    padding: 7px 8px 7px 11px;
    font-size: 8px;
  }

  .detail__bar-label {
    gap: 6px;
  }

  .detail__close {
    min-height: 44px;
    padding: 0 10px;
    font-size: 9px;
  }

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

  .detail__stub {
    min-height: 0;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 20px;
    padding: 14px 18px;
  }

  .detail__stub-date {
    margin: 0;
    font-size: 58px;
    line-height: 0.72;
  }

  .detail__stub-day {
    align-self: flex-end;
    padding-bottom: 4px;
  }

  .detail__stub-month {
    align-self: flex-end;
    margin: 0 0 4px;
  }

  .detail__stub-list {
    display: none;
  }

  .detail__stub > div:last-child {
    margin-left: auto;
  }

  .detail__body {
    padding: 20px 18px 24px;
  }

  .detail__no {
    font-size: 8px;
  }

  .detail__title {
    max-width: none;
    font-size: clamp(34px, 10vw, 46px);
  }

  .detail__facts {
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
  }

  .detail__foot {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 12px;
  }

  .detail__barcode {
    display: none;
  }

  .detail__actions {
    width: 100%;
    gap: 10px;
  }

  .detail__save-note {
    flex: 0 0 auto;
    max-width: 12ch;
    font-size: 7.5px;
  }

  .save-item {
    flex: 1;
    justify-content: center;
    padding-inline: 10px;
    font-size: 9px;
  }
}

@media (max-width: 380px) {
  .ticket {
    grid-template-columns: 54px minmax(0, 1fr);
    background-image:
      radial-gradient(circle at 54px -7px, var(--paper) 7px, transparent 7.4px),
      radial-gradient(circle at 54px calc(100% + 7px), var(--paper) 7px, transparent 7.4px);
  }

  .ticket__title {
    font-size: 23px;
  }

  .ticket__summary {
    display: none;
  }

  .detail__save-note {
    display: none;
  }
}

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

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

  .ticket:hover,
  .ticket:focus-within,
  .ticket:has(.ticket__open:active) {
    transform: none;
  }

  .chip:active,
  .pocket-toggle:active,
  .draw:active,
  .reset:active,
  .empty__reset:active,
  .detail__close:active,
  .save-item:active {
    transform: none;
  }
}
