/* ————————————————————————————————————————————————
   Forma — the workshop wall
   A deep-green pegboard studio wall; workshops hang on it as
   paper work-tickets. The shortlist is a wooden drying rail.
   ———————————————————————————————————————————————— */

:root {
  --wall: #2f4a3a;
  --wall-hi: #3a5a47;
  --wall-deep: #22382c;
  --paper: #f1e2c0;
  --paper-hi: #f8eecf;
  --paper-dim: #e6d5ae;
  --ink: #33251a;
  --ink-soft: #5d4a33;
  --muted: #8a7854;
  --stamp: #bf3b2b;
  --stamp-deep: #9c2c1e;
  --wire: #d9d2be;
  --wood: #7a4d28;
  --wood-hi: #9a6737;
  --wood-dark: #573615;
  --cat-ceramics: #a34f26;
  --cat-painting: #3b59ad;
  --cat-floristry: #a63e6c;
  --cat-baking: #7d5b10;
  --hand: "Shantell Sans", "Segoe Print", cursive;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scrollbar-gutter: stable; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  min-height: 100vh;
}

/* the pegboard wall: a fixed layer of holes over a green studio wall */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18px 18px,
      #21382b 0 2.4px,
      rgba(0, 0, 0, 0.32) 3px,
      rgba(255, 255, 255, 0.045) 3.6px,
      rgba(255, 255, 255, 0) 4.6px)
    0 0 / 36px 36px,
    radial-gradient(130% 70% at 28% -8%, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, var(--wall-hi), var(--wall) 42%, var(--wall-deep));
}

/* punctuation of the hand: everything in the studio voice */
.hand { font-family: var(--hand); }

:focus-visible {
  outline: 3px dashed #f6d998;
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 60;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--hand);
  padding: 10px 16px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip:focus { top: 14px; }

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

.masthead {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(28px, 4.5vw, 58px) 28px 6px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}
.masthead-copy { min-width: 0; }

.wordmark {
  font-family: var(--serif);
  font-weight: 900;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 85, "WONK" 1;
  font-size: clamp(3.6rem, 9vw, 7.4rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
  color: var(--paper);
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.28);
  margin: 0;
}

.tagline {
  font-family: var(--hand);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  line-height: 1.5;
  color: var(--paper);
  max-width: 34em;
  margin: 14px 2px 0;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

/* a little framed photo hanging beside the wordmark */
.polaroid {
  flex: none;
  width: 230px;
  margin: 14px 4px 0 0;
  background: #f8f3e6;
  border: 1px solid #d8c9a0;
  padding: 10px 10px 6px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  transform: rotate(2.6deg);
}
.polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.polaroid figcaption {
  font-family: var(--hand);
  font-size: 0.82rem;
  color: #5d4a33;
  text-align: center;
  margin: 6px 0 2px;
  line-height: 1.35;
}

/* ————— the drying rail (shortlist) ————— */

.railwrap { padding: clamp(20px, 3.4vw, 40px) 28px 8px; }

.rail {
  max-width: 1240px;
  margin: 0 auto;
  background:
    repeating-linear-gradient(93deg,
      rgba(0, 0, 0, 0.10) 0 2px,
      rgba(255, 255, 255, 0.05) 2px 5px,
      rgba(0, 0, 0, 0) 5px 17px),
    linear-gradient(180deg, var(--wood-hi), var(--wood));
  border: 2px solid #4a2e12;
  border-radius: 7px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 10px 24px rgba(0, 0, 0, 0.35);
  padding: 14px 22px 18px;
  position: relative;
}

/* screws at the rail ends */
.rail::before, .rail::after {
  content: "";
  position: absolute;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, transparent 44%, #2b1a0a 46% 54%, transparent 56%),
    radial-gradient(circle at 35% 30%, #d8b56d, #8a6a3a 75%);
}
.rail::before { left: 14px; }
.rail::after { right: 14px; }

.rail-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.pin-icon { width: 15px; align-self: center; flex: none; }

.rail-title {
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--paper);
  margin: 0;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
}

.rail-count {
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--paper);
  color: #4a2e12;
  border-radius: 999px;
  padding: 1px 11px;
  border: 2px solid #4a2e12;
}

.rail-note {
  font-family: var(--hand);
  color: #f2e2c2;
  opacity: 0.92;
  margin: 0;
  font-size: 1rem;
  min-width: 0;
}

.clips {
  list-style: none;
  margin: 8px 0 0;
  padding: 14px 2px 2px;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  min-height: 66px;
}
.clips:empty { display: none; }

/* one clipped mini-ticket */
.clip {
  position: relative;
  flex: none;
  width: 178px;
  background: linear-gradient(180deg, var(--paper-hi), var(--paper));
  border: 1.5px solid #c9b488;
  border-radius: 3px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  transform-origin: top center;
  animation: clip-drop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) backwards;
}

.clip-open {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px 10px 8px;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  text-align: left;
  width: 100%;
}
.clip-open:hover .clip-name { text-decoration: underline; }

.clip img {
  width: 44px;
  height: 44px;
  border-radius: 2px;
  object-fit: cover;
  border: 1px solid #c9b488;
  flex: none;
}

.clip-name {
  font-family: var(--hand);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.25;
  display: block;
}
.clip-date {
  font-family: var(--hand);
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--ink-soft);
  display: block;
  margin-top: 2px;
}

/* the wooden clothespin holding each mini-ticket */
.clip::before {
  content: "";
  position: absolute;
  top: -21px;
  left: 50%;
  translate: -50% 0;
  width: 13px;
  height: 26px;
  border-radius: 4px;
  background:
    linear-gradient(90deg, transparent 42%, #4a2e12 44% 56%, transparent 58%),
    linear-gradient(90deg, #d9b473, #b98d4e 60%, #9a6f38);
  border: 1.5px solid #4a2e12;
  clip-path: polygon(0 0, 100% 0, 100% 68%, 52% 100%, 48% 100%, 0 68%);
}

.clip-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #4a2e12;
  background: var(--stamp);
  color: var(--paper);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 0;
}
.clip-remove:hover { background: var(--stamp-deep); }

/* ————— the tool shelf (search / filter) ————— */

.shelf {
  max-width: 1240px;
  margin: 18px auto 0;
  padding: 6px 28px 0;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.tool-label {
  display: block;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1rem;
  color: var(--paper);
  margin: 0 2px 6px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.tool input[type="search"],
.tool select {
  font-family: var(--hand);
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 3px;
  padding: 10px 14px;
  min-width: 0;
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.3);
}
.tool input[type="search"] { width: min(340px, 76vw); }
.tool select { cursor: pointer; appearance: auto; }
.tool input::placeholder { color: #7d6740; }

.tool-toggle button {
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--paper);
  background: transparent;
  border: 2px dashed rgba(241, 226, 192, 0.8);
  border-radius: 3px;
  padding: 9px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.3);
  background-color: rgba(0, 0, 0, 0.18);
}
.tool-toggle button svg { width: 18px; height: 18px; }
.tool-toggle button[aria-pressed="true"] {
  background-color: var(--stamp);
  border-style: solid;
  border-color: var(--stamp-deep);
}

.tally {
  font-family: var(--hand);
  color: rgba(241, 226, 192, 0.92);
  margin: 0 0 8px auto;
  font-size: 1rem;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

/* ————— the board of tickets ————— */

.board {
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px 28px 64px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 58px 38px;
  align-items: start;
}

.board:empty { padding-top: 0; }

.ticket {
  --tilt: 0deg;
  position: relative;
  margin-top: 34px;
  rotate: var(--tilt);
  transform-origin: 50% -20px;
  background:
    repeating-linear-gradient(0deg, rgba(122, 88, 44, 0.05) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, var(--paper-hi), var(--paper) 40%, var(--paper-dim));
  border: 1.5px solid #c9b488;
  border-radius: 3px;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.38);
  transition: translate 0.2s, box-shadow 0.2s;
  animation: hang-in 0.7s cubic-bezier(0.25, 1.2, 0.45, 1) backwards;
}
.ticket[data-i="0"] { --tilt: -1.7deg; animation-delay: 0.02s; }
.ticket[data-i="1"] { --tilt: 1.3deg; animation-delay: 0.09s; }
.ticket[data-i="2"] { --tilt: -0.7deg; animation-delay: 0.16s; }
.ticket[data-i="3"] { --tilt: 1.9deg; animation-delay: 0.23s; }
.ticket[data-i="4"] { --tilt: -1.2deg; animation-delay: 0.3s; }
.ticket[data-i="5"] { --tilt: 0.8deg; animation-delay: 0.37s; }
.board.settled .ticket { animation: none; }

/* punched hole the hook passes through */
.ticket::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  translate: -50% 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #4a6b52, var(--wall-deep) 72%);
  box-shadow: inset 0 1.5px 2px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.5);
  z-index: 1;
}

/* wire hook: from a peg in the wall, down through the hole */
.hook {
  position: absolute;
  bottom: calc(100% - 17px);
  left: 50%;
  translate: -50% 0;
  width: 46px;
  height: 48px;
  pointer-events: none;
}

.ticket:hover, .ticket:focus-within {
  translate: 0 -3px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
}
.ticket:hover { animation: swing 1.1s ease; }
.board.settled .ticket:hover { animation: swing 1.1s ease; }

.ticket-photo-wrap {
  position: relative;
  margin: 0;
  padding: 26px 14px 0;
}
.ticket-photo-wrap img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 3.4;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid #c9b488;
  background: var(--paper-dim);
}

/* category tape over the photo */
.tape {
  position: absolute;
  top: 34px;
  left: 4px;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--paper-hi);
  padding: 3px 14px 4px;
  border-radius: 2px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  transform: rotate(-3deg);
  transform-origin: left center;
}
.cat-ceramics .tape { background: var(--cat-ceramics); }
.cat-painting .tape { background: var(--cat-painting); }
.cat-floristry .tape { background: var(--cat-floristry); }
.cat-baking .tape { background: var(--cat-baking); }

.ticket-body { padding: 12px 20px 20px; }

.ticket-title {
  font-family: var(--serif);
  font-weight: 640;
  font-optical-sizing: auto;
  font-size: 1.55rem;
  line-height: 1.15;
  margin: 4px 0 2px;
  color: var(--ink);
}

.ticket-meta {
  font-family: var(--hand);
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

.ticket-blurb {
  margin: 0 0 16px;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #4c3c28;
}

.ticket-foot {
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-top: 2px dotted #bfa878;
  padding-top: 10px;
}

.ticket-price {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  margin: 0;
}
.ticket-price span {
  font-family: var(--hand);
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--muted);
}

.ticket-seats {
  font-family: var(--hand);
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0 0 0 auto;
}

.ticket-open {
  display: block;
  width: 100%;
  margin-top: 14px;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--paper);
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 3px;
  padding: 10px 16px;
  cursor: pointer;
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.22);
}
.ticket-open:hover { background: #4a382a; }
.ticket-open:active { translate: 1px 2px; box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.22); }

/* clipped mark on the ticket itself */
.ministamp {
  position: absolute;
  top: 40px;
  right: 10px;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--stamp);
  border: 2.5px solid var(--stamp);
  border-radius: 3px;
  padding: 1px 9px 2px;
  transform: rotate(11deg);
  background: rgba(248, 238, 207, 0.75);
}

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

.emptynote {
  max-width: 1240px;
  margin: 0 auto 70px;
  padding: 0 28px;
  display: flex;
  justify-content: center;
}

.emptynote-card {
  position: relative;
  background: var(--paper);
  border: 1.5px solid #c9b488;
  border-radius: 3px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  padding: 30px 34px 26px;
  max-width: 480px;
  text-align: center;
  transform: rotate(-1.2deg);
}
.emptynote-card::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  translate: -50% 0;
  width: 92px;
  height: 26px;
  background: rgba(233, 214, 165, 0.5);
  border-left: 2px dashed rgba(122, 88, 44, 0.35);
  border-right: 2px dashed rgba(122, 88, 44, 0.35);
  transform: rotate(-2deg);
}

.emptynote-text {
  font-family: var(--hand);
  font-weight: 500;
  font-size: 1.2rem;
  margin: 0 0 16px;
  color: var(--ink);
}

.emptynote-clear {
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1rem;
  color: var(--paper);
  background: var(--stamp);
  border: 2px solid var(--stamp-deep);
  border-radius: 3px;
  padding: 10px 18px;
  cursor: pointer;
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.2);
}
.emptynote-clear:hover { background: var(--stamp-deep); }

/* ————— the workshop sheet (detail dialog) ————— */

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(16, 27, 21, 0.66);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: clamp(10px, 4vh, 48px) clamp(10px, 3vw, 40px);
  animation: fade-in 0.18s ease backwards;
}

.sheet {
  width: min(920px, 100%);
  background: linear-gradient(180deg, var(--paper-hi), var(--paper) 45%, var(--paper-dim));
  border: 1.5px solid #c9b488;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transform: rotate(-0.5deg);
  animation: sheet-in 0.35s cubic-bezier(0.2, 1.2, 0.4, 1) backwards;
  position: relative;
  margin: auto 0;
}

.sheet-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.2);
}
.sheet-close svg { width: 18px; height: 18px; }
.sheet-close:hover { background: var(--stamp); border-color: var(--stamp-deep); color: var(--paper); }

.sheet-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 0.95rem;
  color: #6d5a3f;
  border-bottom: 2px dashed #c9b488;
  padding: 14px 20px 10px;
}
.sheet-strip span:last-child { font-weight: 500; }

.sheet-body {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 26px;
  padding: 20px 24px 28px;
}

.sheet-photo-wrap {
  position: relative;
  align-self: start;
  margin-top: 8px;
}
.sheet-photo {
  width: 100%;
  aspect-ratio: 5 / 4.1;
  object-fit: cover;
  border: 1px solid #c9b488;
  border-radius: 2px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  transform: rotate(1.1deg);
  background: var(--paper-dim);
}

.sheet-photo-wrap .tape {
  top: -10px;
  left: 26px;
  font-size: 1rem;
  padding: 4px 18px 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

.stamp {
  position: absolute;
  right: 6px;
  bottom: 14px;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--stamp);
  border: 4px solid var(--stamp);
  outline: 1.5px solid var(--stamp);
  outline-offset: 3px;
  border-radius: 4px;
  padding: 2px 16px 5px;
  transform: rotate(-13deg);
  background: rgba(248, 238, 207, 0.82);
  animation: stamp-in 0.4s cubic-bezier(0.2, 1.6, 0.4, 1) backwards;
}

.sheet-title {
  font-family: var(--serif);
  font-weight: 680;
  font-optical-sizing: auto;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  line-height: 1.08;
  margin: 6px 0 4px;
}

.sheet-teacher {
  font-family: var(--hand);
  font-weight: 500;
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.sheet-text {
  margin: 0 0 20px;
  font-size: 1.06rem;
  line-height: 1.6;
  color: #43341f;
}

.sheet-facts {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.fact {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
}
.fact + .fact { border-top: 1px solid rgba(201, 180, 136, 0.4); }

.fact-k {
  font-family: var(--hand);
  font-weight: 700;
  color: var(--ink-soft);
  flex: none;
  width: 4.6em;
}
.fact-lead {
  flex: 1 1 auto;
  border-bottom: 2px dotted #bfa878;
  transform: translateY(-4px);
  min-width: 14px;
}
.fact-v {
  font-family: var(--serif);
  font-weight: 640;
  font-size: 1.05rem;
  flex: none;
}

.sheet-save {
  width: 100%;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--paper);
  background: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 4px;
  padding: 13px 18px;
  cursor: pointer;
  box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.18);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.sheet-save:hover { background: #4a382a; }
.sheet-save[aria-pressed="true"] { background: var(--stamp); border-color: var(--stamp-deep); }
.sheet-save[aria-pressed="true"]:hover { background: var(--stamp-deep); }
.sheet-save:active { translate: 1px 2px; box-shadow: 1px 2px 0 rgba(0, 0, 0, 0.18); }
.sheet-save svg { width: 20px; height: 20px; flex: none; }

/* ————— colophon ————— */

.colophon {
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 28px 56px;
}
.colophon p {
  font-family: var(--hand);
  font-size: 0.92rem;
  color: rgba(241, 226, 192, 0.85);
  max-width: 60em;
  margin: 0;
}
.colophon a { color: var(--paper); }

/* ————— motion ————— */

@keyframes hang-in {
  from { translate: 0 -30px; opacity: 0; rotate: calc(var(--tilt) + 5deg); }
  to { translate: 0 0; opacity: 1; rotate: var(--tilt); }
}

@keyframes swing {
  0% { rotate: var(--tilt); }
  28% { rotate: calc(var(--tilt) + 2.4deg); }
  58% { rotate: calc(var(--tilt) - 1.7deg); }
  82% { rotate: calc(var(--tilt) + 0.9deg); }
  100% { rotate: var(--tilt); }
}

@keyframes clip-drop {
  from { transform: translateY(-26px) rotate(-4deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@keyframes fade-in {
  from { opacity: 0; }
}

@keyframes sheet-in {
  from { translate: 0 34px; opacity: 0; }
}

@keyframes stamp-in {
  from { scale: 2.4; opacity: 0; }
  60% { scale: 0.92; opacity: 1; }
  to { scale: 1; }
}

/* ————— small screens ————— */

@media (max-width: 760px) {
  .shelf { gap: 14px 18px; }
  .tally { order: 9; width: 100%; margin: 2px 0 8px; }
  .sheet-body { grid-template-columns: 1fr; padding: 16px 18px 24px; gap: 8px; }
  .sheet { transform: rotate(0deg); }
  .board { grid-template-columns: 1fr; gap: 48px; }
  .ticket[data-i="1"], .ticket[data-i="3"], .ticket[data-i="5"] { --tilt: 0.8deg; }
  .rail { padding: 12px 14px 14px; }
  .rail-note { font-size: 0.92rem; }
  .polaroid { display: none; }
  .colophon p { font-size: 0.85rem; }
}

/* ————— reduced motion ————— */

@media (prefers-reduced-motion: reduce) {
  .ticket, .ticket:hover, .clip, .sheet-backdrop, .sheet, .stamp {
    animation: none;
  }
  .ticket:hover, .ticket:focus-within { translate: none; }
  .sheet-backdrop, .sheet { opacity: 1; translate: none; }
}
