@font-face {
  font-family: "Fraunces";
  src: url("assets/fraunces-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("assets/fraunces-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
}

@font-face {
  font-family: "DM Mono";
  src: url("assets/dm-mono-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "DM Mono";
  src: url("assets/dm-mono-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #f2e8d5;
  --paper-deep: #e6d8bd;
  --paper-light: #fbf6ea;
  --ink: #1d1a15;
  --ink-soft: #544b3c;
  --line: rgba(29, 26, 21, 0.34);
  --line-soft: rgba(29, 26, 21, 0.16);
  --red: #cc3f1d;
  --red-ink: #9e2f15;
  --blue: #2f5c70;
  --ochre: #dfa42a;
  --manila: #e8d09a;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --mono: "DM Mono", "Courier New", monospace;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E");
  --shadow: 5px 6px 0 rgba(29, 26, 21, 0.14);
  --shadow-lift: 9px 12px 0 rgba(29, 26, 21, 0.18);
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(circle at 18% 0%, #f9f1e0 0, transparent 42%),
    radial-gradient(circle at 88% 24%, #efe2ca 0, transparent 34%),
    var(--noise);
  background-blend-mode: normal, normal, multiply;
  font-family: var(--serif);
  font-variation-settings: "opsz" 18, "SOFT" 40, "WONK" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.dialog-open {
  overflow: hidden;
}

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

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

button {
  cursor: pointer;
}

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

::selection {
  background: var(--red);
  color: var(--paper-light);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper-light);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.skip-link:focus {
  top: 12px;
}

/* ---------------------------------------------------------------- masthead */

.site-header {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 22px clamp(18px, 4.2vw, 64px) 0;
}

.topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.topline span:last-child {
  text-align: right;
}

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.55fr);
  align-items: end;
  gap: clamp(22px, 4vw, 58px);
  padding: 20px 0 8px;
}

.wordmark {
  position: relative;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(88px, 13.5vw, 202px);
  font-weight: 900;
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
  display: inline-block;
  max-width: 100%;
  line-height: 0.72;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.wordmark-star {
  position: absolute;
  top: -0.02em;
  right: -0.16em;
  color: var(--red);
  font-size: 0.25em;
  line-height: 1;
  transform: rotate(12deg);
}

.kicker {
  max-width: 33ch;
  margin: 20px 0 0;
  font-size: clamp(18px, 1.65vw, 25px);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 36, "SOFT" 100, "WONK" 1;
  line-height: 1.16;
}

.masthead-photo {
  position: relative;
  margin: 0 0 16px;
  padding: 9px 9px 8px;
  background: var(--paper-light);
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow);
  transform: rotate(2.4deg);
}

.masthead-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.03);
}

.masthead-photo figcaption {
  padding-top: 7px;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.tape {
  position: absolute;
  z-index: 2;
  background: rgba(226, 208, 169, 0.82);
  border-left: 1px dashed rgba(29, 26, 21, 0.18);
  border-right: 1px dashed rgba(29, 26, 21, 0.18);
  box-shadow: 0 1px 1px rgba(29, 26, 21, 0.08);
}

.tape-top {
  top: -12px;
  left: 24%;
  width: 88px;
  height: 25px;
  transform: rotate(-4deg);
}

.tape-corner {
  right: -17px;
  bottom: 22%;
  width: 60px;
  height: 19px;
  transform: rotate(52deg);
}

.masthead-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 4px 0 22px;
}

.intro {
  max-width: 62ch;
  margin: 0;
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.45;
  color: var(--ink-soft);
}

.intro strong {
  color: var(--ink);
  font-weight: 600;
}

.rubber-stamp {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 118px;
  height: 118px;
  padding: 12px;
  border: 2px solid var(--red);
  border-radius: 50%;
  color: var(--red-ink);
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.45;
  letter-spacing: 0.11em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-9deg);
  opacity: 0.9;
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4.5px var(--red);
}

.rubber-stamp span:first-child {
  font-family: var(--serif);
  font-size: 25px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: none;
}

.tape-strip {
  overflow: hidden;
  margin: 0 calc(-1 * clamp(18px, 4.2vw, 64px));
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  background: var(--paper-deep);
}

.tape-strip-track {
  display: flex;
  width: max-content;
  animation: ticker 44s linear infinite;
}

.tape-strip-track span {
  padding: 9px 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tape-strip b {
  padding: 0 12px;
  color: var(--red);
  font-weight: 400;
}

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

/* --------------------------------------------------------------- controls */

main {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 0 clamp(18px, 4.2vw, 64px);
}

.control-deck {
  position: sticky;
  top: 10px;
  z-index: 30;
  margin-top: 24px;
  background: var(--paper-light);
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow);
}

.control-deck::before {
  content: "the drawer";
  position: absolute;
  top: -10px;
  left: 14px;
  padding: 2px 8px;
  background: var(--ink);
  color: var(--paper-light);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.control-deck-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(150px, 0.6fr) auto;
  align-items: end;
  gap: 16px;
  padding: 17px 16px 13px;
}

.field {
  min-width: 0;
}

.field label,
.field-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.input-wrap input,
.select-wrap select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: #f7efdf;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.01em;
}

.input-wrap input {
  padding-left: 36px;
}

.input-wrap input::placeholder {
  color: #8d806b;
  opacity: 1;
}

.input-mark {
  position: absolute;
  top: 50%;
  left: 12px;
  z-index: 1;
  font-family: var(--mono);
  font-size: 22px;
  line-height: 1;
  transform: translateY(-56%) rotate(-15deg);
  pointer-events: none;
}

.select-wrap::after {
  content: "▾";
  position: absolute;
  top: 50%;
  right: 13px;
  font-size: 13px;
  transform: translateY(-55%);
  pointer-events: none;
}

.select-wrap select {
  appearance: none;
  padding-right: 34px;
  cursor: pointer;
}

.field-envelope {
  display: flex;
  flex-direction: column;
}

.envelope-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px 0 18px;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: var(--manila);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.envelope-toggle:hover {
  transform: translateY(-1px);
}

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

.envelope-toggle[aria-pressed="true"]:focus-visible {
  outline-color: var(--red);
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom right,
    transparent calc(50% - 0.7px),
    rgba(29, 26, 21, 0.42) calc(50% - 0.7px),
    rgba(29, 26, 21, 0.42) calc(50% + 0.7px),
    transparent calc(50% + 0.7px)
  );
  opacity: 0.5;
  pointer-events: none;
}

.envelope-text {
  position: relative;
  z-index: 1;
}

.saved-count {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  margin-left: auto;
  padding: 0 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: var(--paper-light);
  color: var(--ink);
  font-size: 10px;
  line-height: 1;
}

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

.deck-note {
  margin: 0;
  padding: 0 16px 11px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

/* --------------------------------------------------------------- calendar */

.worktable {
  padding-top: 34px;
  scroll-margin-top: 150px;
}

.calendar-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}

.calendar-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(46px, 6vw, 82px);
  font-weight: 800;
  font-variation-settings: "opsz" 100, "SOFT" 50, "WONK" 1;
  line-height: 0.85;
  letter-spacing: -0.045em;
}

.calendar-head h2 em {
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.06em;
}

.calendar-sub {
  margin: 0;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-align: right;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.table-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  min-height: 38px;
  padding: 9px 2px;
}

.table-meta p {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.text-button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: var(--red-ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.text-button:hover {
  color: var(--ink);
}

.weekend {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 42px);
  padding: 28px 0 32px;
  border-top: 1px dashed var(--line);
}

.weekend-stamp {
  align-self: start;
  padding-top: 4px;
}

.weekend-kicker {
  margin: 0 0 2px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--red-ink);
}

.weekend-range {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: var(--serif);
  line-height: 0.85;
}

.weekend-range .range-days {
  font-size: 39px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.weekend-range .range-month {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.22em;
}

.weekend-range .range-year {
  margin-top: 9px;
  font-family: var(--mono);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.weekend-days {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 36px);
}

.day {
  min-width: 0;
}

.day-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.day-head .weekday {
  font-weight: 500;
}

.day-head .day-number {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 1;
}

.day-head .day-month {
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 8px;
}

.empty-peg {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 116px;
  margin: 0;
  padding: 16px;
  border: 1px dashed var(--line);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.empty-peg .peg-star {
  color: var(--red);
  font-size: 19px;
  line-height: 1;
}

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

.workshop {
  position: relative;
  border: 1.5px solid var(--ink);
  background: var(--paper-light);
  box-shadow: 3px 4px 0 rgba(29, 26, 21, 0.14);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.workshop:hover,
.workshop:focus-within {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.workshop-inner {
  display: grid;
  grid-template-columns: 37% minmax(0, 1fr);
  min-height: 174px;
}

.workshop-photo {
  position: relative;
  overflow: hidden;
  border-right: 1.5px solid var(--ink);
  background: var(--paper-deep);
}

.workshop-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.04);
  transition: transform 320ms ease;
}

.workshop:hover .workshop-photo img,
.workshop:focus-within .workshop-photo img {
  transform: scale(1.035);
}

.photo-date {
  position: absolute;
  bottom: 7px;
  left: 7px;
  padding: 3px 6px;
  background: var(--paper-light);
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.workshop-body {
  display: flex;
  flex-direction: column;
  padding: 11px 12px 10px;
  min-width: 0;
}

.workshop-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cat-stamp {
  display: inline-block;
  padding: 3px 6px;
  border: 1px solid currentColor;
  background: var(--cat-bg, var(--paper-deep));
  color: var(--cat-ink, var(--ink));
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transform: rotate(-1.4deg);
}

.cat-Baking {
  --cat-bg: #f0ddb6;
  --cat-ink: #6a3a10;
}

.cat-Ceramics {
  --cat-bg: #dce8ec;
  --cat-ink: #265366;
}

.cat-Floristry {
  --cat-bg: #f6e5b2;
  --cat-ink: #7a5600;
}

.cat-Painting {
  --cat-bg: #f4dcd2;
  --cat-ink: #9e2f15;
}

.workshop-time {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.workshop-title {
  margin: 10px 0 9px;
  font-family: var(--serif);
  font-size: clamp(23px, 2.1vw, 31px);
  font-weight: 800;
  font-variation-settings: "opsz" 72, "SOFT" 40, "WONK" 1;
  line-height: 0.93;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.workshop-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 7px;
  margin: auto 0 0;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.45;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.workshop-meta span + span::before {
  content: "·";
  margin-right: 7px;
  color: var(--ink);
}

.open-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-ink);
}

.open-hint .arrow {
  font-size: 15px;
  line-height: 1;
  transition: transform 160ms ease;
}

.workshop:hover .open-hint .arrow,
.workshop:focus-within .open-hint .arrow {
  transform: translate(2px, -2px);
}

.saved-pin {
  position: absolute;
  top: -10px;
  right: 10px;
  z-index: 2;
  padding: 4px 8px;
  background: var(--red);
  color: var(--paper-light);
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transform: rotate(3deg);
  box-shadow: 1px 2px 0 rgba(29, 26, 21, 0.22);
}

.workshop.is-saved {
  box-shadow: 3px 4px 0 rgba(204, 63, 29, 0.24);
}

.workshop.is-saved .workshop-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  mix-blend-mode: soft-light;
  opacity: 0.28;
  pointer-events: none;
}

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

.card-open:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: -5px;
}

.card-open:hover {
  cursor: pointer;
}

/* -------------------------------------------------------------- empty */

.empty-state {
  display: flex;
  align-items: center;
  gap: clamp(22px, 4vw, 48px);
  margin: 22px 0 8px;
  padding: clamp(24px, 4vw, 46px);
  border: 1.5px solid var(--ink);
  background: var(--paper-light);
  box-shadow: var(--shadow);
  transform: rotate(-0.4deg);
}

.empty-stamp {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: clamp(84px, 10vw, 124px);
  height: clamp(84px, 10vw, 124px);
  border: 2px solid var(--red);
  border-radius: 50%;
  color: var(--red-ink);
  font-family: var(--serif);
  font-size: clamp(50px, 6vw, 78px);
  font-style: italic;
  line-height: 1;
  transform: rotate(-8deg);
  box-shadow: inset 0 0 0 4px var(--paper-light), inset 0 0 0 6px var(--red);
}

.empty-copy h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.empty-copy p {
  max-width: 50ch;
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.paper-button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1.5px solid var(--ink);
  background: var(--manila);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.paper-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.season-end {
  max-width: 56ch;
  margin: 10px 0 0 auto;
  padding: 26px 0 42px;
  border-top: 1px solid var(--line-soft);
  font-size: 17px;
  font-style: italic;
  line-height: 1.5;
  text-align: right;
  color: var(--ink-soft);
}

.season-end span {
  color: var(--red);
  font-style: normal;
}

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

dialog {
  width: min(1040px, calc(100vw - 32px));
  max-width: none;
  max-height: min(90vh, 900px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(22, 18, 13, 0.62);
  backdrop-filter: blur(2px) saturate(0.75);
}

.ticket {
  position: relative;
  max-height: min(90vh, 900px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 2px solid var(--ink);
  background: var(--paper-light);
  box-shadow: 15px 18px 0 rgba(0, 0, 0, 0.26);
}

.ticket-bar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 12px 9px 16px;
  border-bottom: 1.5px solid var(--ink);
  background: var(--paper-light);
}

.ticket-bar-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.detail-close {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 7px 11px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 140ms ease, color 140ms ease;
}

.detail-close:hover {
  background: var(--ink);
  color: var(--paper-light);
}

.detail-close .close-x {
  font-size: 15px;
  line-height: 1;
}

.ticket-main {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.ticket-photo {
  position: relative;
  min-height: 100%;
  border-right: 1.5px solid var(--ink);
  background: var(--paper-deep);
}

.ticket-photo img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.03);
}

.ticket-photo .tape-open {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 96px;
  height: 27px;
  background: rgba(232, 208, 154, 0.86);
  border-left: 1px dashed rgba(29, 26, 21, 0.2);
  border-right: 1px dashed rgba(29, 26, 21, 0.2);
  transform: translateX(-50%) rotate(-2deg);
}

.ticket-photo figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  padding: 5px 8px;
  background: rgba(251, 246, 234, 0.92);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
}

.ticket-body {
  padding: clamp(22px, 3.4vw, 42px);
}

.ticket-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}

.ticket-kicker .tag-number {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  color: var(--ink-soft);
}

.ticket-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 5.2vw, 72px);
  font-weight: 900;
  font-variation-settings: "opsz" 120, "SOFT" 55, "WONK" 1;
  line-height: 0.88;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.ticket-title:focus {
  outline: none;
}

.ticket-rule {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 18px 0 16px;
  color: var(--red);
  font-size: 16px;
}

.ticket-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.ticket-desc {
  margin: 0;
  font-size: clamp(18px, 1.7vw, 22px);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 36, "SOFT" 100, "WONK" 1;
  line-height: 1.38;
}

.ticket-with {
  margin: 12px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.ticket-with strong {
  color: var(--ink);
  font-weight: 500;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 22px 0 24px;
  border-top: 1.5px solid var(--ink);
  border-left: 1px solid var(--line);
}

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

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

.fact dt {
  margin-bottom: 3px;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.fact dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
}

.fact dd.price-figure {
  font-family: var(--serif);
  font-size: 27px;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.save-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 58px;
  padding: 12px 16px;
  border: 1.5px solid var(--ink);
  background: var(--manila);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease,
    color 150ms ease;
}

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

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

.save-toggle .pin-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
}

.save-toggle[aria-pressed="true"] .pin-mark {
  background: var(--red);
  border-color: var(--red);
}

.save-note {
  margin: 12px 0 0;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(24px, 4vw, 64px);
  width: min(100%, 1480px);
  margin: 22px auto 0;
  padding: 32px clamp(18px, 4.2vw, 64px) 36px;
  border-top: 1.5px solid var(--ink);
}

.footer-mark {
  font-family: var(--serif);
  font-size: clamp(54px, 7vw, 92px);
  font-weight: 900;
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
  line-height: 0.75;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.footer-notes {
  display: grid;
  gap: 9px;
  max-width: 66ch;
}

.footer-notes p {
  margin: 0;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 0.015em;
  color: var(--ink-soft);
}

.footer-notes code {
  font-family: var(--mono);
  font-size: 9px;
}

.back-to-top {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1120px) {
  .masthead {
    grid-template-columns: minmax(0, 1.3fr) minmax(210px, 0.7fr);
  }

  .control-deck-inner {
    grid-template-columns: minmax(0, 1fr) 190px;
  }

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

  .envelope-toggle {
    width: 100%;
  }

  .weekend {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 22px;
  }

  .weekend-range .range-days {
    font-size: 32px;
  }

  .workshop-inner {
    grid-template-columns: 34% minmax(0, 1fr);
    min-height: 158px;
  }

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

@media (max-width: 820px) {
  .masthead {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .wordmark {
    font-size: clamp(82px, 22vw, 150px);
  }

  .masthead-photo {
    width: min(100%, 420px);
    margin: 4px 0 0;
    transform: rotate(1.5deg);
  }

  .masthead-photo img {
    aspect-ratio: 16 / 7;
  }

  .masthead-foot {
    align-items: flex-start;
    padding-top: 14px;
  }

  .rubber-stamp {
    display: none;
  }

  .weekend {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 22px 0 28px;
  }

  .weekend-stamp {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 0;
  }

  .weekend-kicker {
    margin: 0;
  }

  .weekend-range {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }

  .weekend-range .range-days {
    font-size: 27px;
  }

  .weekend-range .range-month,
  .weekend-range .range-year {
    margin: 0;
  }

  .weekend-range .range-year {
    display: none;
  }

  .weekend-days {
    gap: 16px;
  }

  .workshop-inner {
    grid-template-columns: 30% minmax(0, 1fr);
    min-height: 154px;
  }

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

  .site-footer {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 20px;
  }

  .back-to-top {
    justify-self: start;
  }

  .ticket-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .ticket-photo {
    border-right: 0;
    border-bottom: 1.5px solid var(--ink);
  }

  .ticket-photo img {
    height: 270px;
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding-top: 14px;
  }

  .topline {
    font-size: 8.5px;
  }

  .topline span:last-child {
    display: none;
  }

  .masthead {
    gap: 0;
    padding-top: 16px;
  }

  .wordmark {
    font-size: clamp(72px, 23vw, 120px);
  }

  .wordmark-star {
    top: 0.05em;
  }

  .masthead-photo {
    display: none;
  }

  .kicker {
    margin-top: 14px;
    font-size: 17px;
  }

  .intro {
    font-size: 16px;
    line-height: 1.42;
  }

  .masthead-foot {
    padding-bottom: 16px;
  }

  .tape-strip-track span {
    font-size: 8px;
    letter-spacing: 0.12em;
  }

  main {
    padding: 0 14px;
  }

  .control-deck {
    top: 6px;
    margin-top: 16px;
  }

  .control-deck-inner {
    grid-template-columns: minmax(0, 1fr) 116px;
    gap: 9px 10px;
    padding: 14px 12px 11px;
  }

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

  .field-filter {
    grid-column: 2;
  }

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

  .field label,
  .field-label {
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .input-wrap input,
  .select-wrap select,
  .envelope-toggle {
    height: 42px;
    font-size: 12px;
  }

  .deck-note {
    display: none;
  }

  .worktable {
    padding-top: 26px;
  }

  .calendar-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .calendar-sub {
    display: none;
  }

  .weekend-days {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .day-head {
    margin-bottom: 8px;
  }

  .empty-peg {
    min-height: 64px;
  }

  .workshop-inner {
    grid-template-columns: 32% minmax(0, 1fr);
    min-height: 146px;
  }

  .workshop-body {
    padding: 9px 10px 9px;
  }

  .workshop-title {
    margin: 8px 0 7px;
    font-size: 21px;
  }

  .workshop-meta {
    font-size: 8px;
    gap: 3px 6px;
  }

  .workshop-meta span + span::before {
    margin-right: 6px;
  }

  .open-hint {
    font-size: 7px;
  }

  .saved-pin {
    top: -9px;
    right: 6px;
    font-size: 7px;
  }

  .season-end {
    padding-bottom: 30px;
    font-size: 15px;
    text-align: left;
  }

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

  .empty-stamp {
    width: 76px;
    height: 76px;
    font-size: 46px;
  }

  .empty-copy h3 {
    font-size: 34px;
  }

  dialog {
    width: calc(100vw - 18px);
    max-height: 92vh;
  }

  .ticket {
    max-height: 92vh;
  }

  .ticket-bar {
    padding: 7px 8px 7px 12px;
  }

  .ticket-bar-label {
    font-size: 8px;
  }

  .detail-close {
    padding: 6px 9px;
    font-size: 9px;
  }

  .ticket-photo img {
    height: 205px;
  }

  .ticket-body {
    padding: 20px 16px 24px;
  }

  .ticket-title {
    font-size: clamp(38px, 12vw, 52px);
  }

  .ticket-desc {
    font-size: 17px;
  }

  .facts {
    margin: 18px 0 20px;
  }

  .fact {
    padding: 8px 9px;
  }

  .fact dd {
    font-size: 11px;
  }

  .site-footer {
    margin-top: 10px;
    padding-bottom: 28px;
  }
}

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

  .tape-strip-track {
    animation: none;
  }
}
