/* Shop page · ticket + gilt frame direction (2026-11-09).
   Loaded after css/site.css on shop.html only.
   Photos sit in antique gilt frames (oval / rect / arch); name and price sit on a small
   show-ticket stub below; filters are ticket stubs, the chosen one gets punched.
   No illustration on the page (v6, 2026-11-09: the cherub lives only in the cursor). Cream page, thin gold.
   Filter / caption comparison styles (?tabs=, ?caption=) live in css/shop-options.css. */

.sh { background: var(--paper); overflow-x: clip; }
.sh .is-hidden { display: none !important; }

/* ---------- head ---------- */
.sh-head { text-align: center; padding: 52px 0 0; }
.sh-head .eyebrow { margin-bottom: 12px; }
.sh-head h1 { font-size: clamp(40px, 5vw, 62px); margin: 0 0 14px; }
.sh-head h1 em { display: block; font-size: .6em; color: var(--ink-soft); margin-top: 6px; }
.sh-head .lede { font-size: 20px; max-width: 560px; margin: 0 auto 30px; }

/* ---------- ticket filters ---------- */
.sh-tickets { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 4px 0 6px; }
.tk {
  --notch: radial-gradient(circle 8px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat,
           radial-gradient(circle 8px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
  position: relative; flex: 0 0 auto; display: grid; grid-template-columns: auto auto; align-items: stretch;
  min-height: 50px; padding: 0; border: 0; border-radius: 7px; cursor: pointer; background: var(--butter-soft); color: var(--ink);
  -webkit-mask: var(--notch); mask: var(--notch);
  filter: drop-shadow(0 2px 3px rgba(74, 58, 46, .08));
  transition: transform .25s var(--ease), background .25s;
}
.tk > span { display: flex; align-items: center; justify-content: center; margin: 4px 0; border: 1px solid var(--gold-line); }
.tk .tk-no {
  margin-left: 4px; padding: 0 10px 0 14px; border-right: 0; border-radius: 5px 0 0 5px;
  font-family: var(--serif); font-weight: 600; font-variant-numeric: lining-nums; font-size: 15px; letter-spacing: .02em; color: var(--gold); min-width: 40px;
}
.tk .tk-name {
  margin-right: 4px; padding: 0 20px 0 14px; border-left: 1.5px dashed var(--gold-line); border-radius: 0 5px 5px 0;
  font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: .02em;
}
.tk:hover { transform: translateY(-2px); }
.tk:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
/* the chosen ticket is punched: a little hole through the stub, and a warmer paper */
.tk.is-on { background: #f3e2dc; }
.tk.is-on .tk-no { color: #9a6a62; }
.tk.is-on::after {
  content: ""; position: absolute; left: 13px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%;
  background: var(--paper); box-shadow: inset 0 1px 2px rgba(74, 58, 46, .45);
}
.tk.is-on .tk-no { padding-left: 28px; }

.sh-rail {
  position: relative; height: 1px; margin: 34px auto 88px; width: min(560px, 80%);
  background: linear-gradient(90deg, transparent, var(--gold-line) 15%, var(--gold-line) 85%, transparent);
}
.sh-rail::after {
  content: "\2726"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -52%);
  padding: 0 12px; background: var(--paper); color: var(--gold); font-size: 15px; line-height: 1;
}

/* ---------- grid of framed pieces ---------- */
.sh-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 64px 40px; padding-bottom: 104px; align-items: start; }
.sh-card { text-align: center; }
.sh-card a { display: block; text-decoration: none; color: inherit; }

/* every frame gets the same height, so the stubs line up like a gallery wall */
.sh-framebox { width: 92%; margin: 0 auto; aspect-ratio: 484 / 620; display: flex; align-items: flex-end; justify-content: center; }
.sh-frame { position: relative; height: 100%; width: auto; max-width: 100%; transition: transform .45s var(--ease); }
.sh-card a:hover .sh-frame { transform: translateY(-4px); }
.sh-oval { aspect-ratio: 1024 / 1407; } /* 2026-11-13: new oval + arch art, see css/frame.css */
.sh-arch { aspect-ratio: 980 / 1453; }
.sh-rect { aspect-ratio: 484 / 620; }
.sh-photo { position: absolute; overflow: hidden; background: var(--cream); }
.sh-oval .sh-photo { inset: 16.49% 11.23% 8.67% 11.23%; border-radius: 50%; }
.sh-arch .sh-photo { inset: 5.99% 8.62% 5.78% 8.62%; border-radius: 999px 999px 0 0; }
.sh-rect .sh-photo { inset: 7.4% 9.6% 7.5% 9.6%; }
.sh-photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease); }
.sh-photo img.b { position: absolute; inset: 0; opacity: 0; }
.sh-card a:hover .sh-photo img.b { opacity: 1; }
.sh-gilt {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  filter: saturate(.62) sepia(.12) brightness(1.05) drop-shadow(0 6px 10px rgba(74, 58, 46, .16));
}

/* ---------- the ticket stub under each frame ---------- */
.sh-stubwrap { margin: 20px auto 0; max-width: 270px; filter: drop-shadow(0 2px 3px rgba(74, 58, 46, .08)); transition: transform .3s var(--ease); }
.sh-card a:hover .sh-stubwrap { transform: translateY(-2px); }
.sh-stub {
  --cut: 38px; /* height of the lower (price) part: the notches sit on the perforation */
  background: var(--butter-soft); border-radius: 8px; padding: 5px;
  -webkit-mask: radial-gradient(circle 10px at 0 calc(100% - var(--cut)), #0000 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 10px at 100% calc(100% - var(--cut)), #0000 97%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 10px at 0 calc(100% - var(--cut)), #0000 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 10px at 100% calc(100% - var(--cut)), #0000 97%, #000) right / 51% 100% no-repeat;
}
.sh-stub-in { border: 1px solid var(--gold-line); border-radius: 5px; }
.sh-stub-top { padding: 11px 16px 9px; min-height: 92px; display: flex; flex-direction: column; justify-content: center; }
.sh-stub h3 { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.sh-stub .ooak { margin: 4px 0 0; font-family: var(--fell); font-size: 12px; letter-spacing: .16em; color: var(--sage); white-space: nowrap; }
.sh-stub-bot {
  height: calc(var(--cut) - 6px); display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0 14px; border-top: 1.5px dashed var(--gold-line);
}
.sh-stub-bot .admit { font-family: var(--fell); font-size: 11px; letter-spacing: .2em; color: var(--gold); white-space: nowrap; }
.sh-stub-bot .price {
  font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: .02em; color: var(--ink);
  font-variant-numeric: lining-nums; margin: 0;
}

.sh-empty { display: none; text-align: center; padding: 20px 0 100px; color: var(--ink-soft); font-style: italic; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .sh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 28px; }
}
@media (max-width: 700px) {
  .sh-head { padding-top: 30px; }
  .sh-head .eyebrow { font-size: 13px; margin-bottom: 8px; }
  .sh-head h1 { font-size: clamp(32px, 9vw, 38px); margin-bottom: 8px; }
  .sh-head h1 em { font-size: .62em; margin-top: 4px; }
  .sh-head .lede { font-size: 17px; margin-bottom: 18px; padding: 0 12px; }

  /* one row of tickets that scrolls sideways */
  .sh-tickets {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overscroll-behavior-x: contain;
    gap: 10px; margin: 0 -24px; padding: 4px 24px 8px; scroll-padding-inline: 24px; scroll-snap-type: x proximity; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
  .sh-tickets::-webkit-scrollbar { display: none; }
  .tk { scroll-snap-align: start; min-height: 46px; }
  .tk .tk-no { min-width: 34px; padding: 0 8px 0 10px; font-size: 14px; }
  .tk.is-on .tk-no { padding-left: 23px; }
  .tk.is-on::after { left: 9px; width: 8px; height: 8px; margin-top: -4px; }
  .tk .tk-name { font-size: 18px; padding: 0 16px 0 11px; }

  .sh-rail { margin: 22px auto 64px; }
  .sh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; padding-bottom: 72px; }
  .sh-framebox { width: 100%; }
  .sh-stubwrap { margin-top: 12px; }
  .sh-stub { --cut: 33px; padding: 4px; }
  .sh-stub-top { padding: 8px 10px 7px; min-height: 76px; }
  .sh-stub h3 { font-size: 16px; }
  .sh-stub .ooak { font-size: 10.5px; letter-spacing: .12em; }
  .sh-stub .ooak .no { display: none; }
  .sh-stub-bot { padding: 0 9px; }
  .sh-stub-bot .admit { font-size: 9.5px; letter-spacing: .14em; }
  .sh-stub-bot .price { font-size: 18px; }
}
@media (max-width: 360px) {
  .sh-stub-bot .admit { display: none; }
  .sh-stub-bot { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .tk, .sh-frame, .sh-stubwrap, .sh-photo img { transition: none !important; }
}
