/* The wardrobe is assembled from two museum originals. Both cape wings share the photographed collar as their hinge. */
:root {
  --fur-edge: polygon(24% 3%,32% 2%,44% 12%,53% 28%,55% 40%,64% 41%,73% 46%,77% 52%,96% 57%,100% 64%,93% 73%,75% 80%,66% 82%,66% 89%,78% 100%,6% 100%,10% 91%,13% 79%,5% 72%,4% 66%,7% 59%,14% 52%,21% 49%,17% 36%,21% 20%);
  --cape-edge: polygon(41.2% 12.5%, 40.7% 12.9%, 40.1% 13.6%, 39.7% 14.6%, 39.1% 16.7%, 37.1% 17.7%, 34.4% 19.8%, 31.7% 23.6%, 27.9% 30.3%, 23.4% 38.6%, 18.7% 47.6%, 16.9% 51.4%, 14.7% 55.5%, 12.2% 60.3%, 9.8% 64.3%, 9.8% 65.3%, 11.9% 68.1%, 13.0% 69.5%, 15.2% 71.6%, 17.4% 74.1%, 21.2% 79.3%, 23.5% 81.8%, 29.0% 85.6%, 34.9% 88.7%, 41.2% 90.8%, 45.9% 91.9%, 47.7% 92.3%, 53.1% 92.3%, 56.4% 91.9%, 61.3% 90.8%, 67.3% 88.7%, 72.1% 85.6%, 77.1% 81.8%, 80.3% 79.3%, 86.0% 74.1%, 88.0% 71.6%, 88.8% 69.5%, 89.0% 68.1%, 87.8% 65.3%, 87.3% 64.3%, 85.0% 60.3%, 83.8% 55.5%, 80.6% 51.4%, 79.1% 47.6%, 75.0% 38.6%, 71.0% 30.3%, 67.3% 23.6%, 64.3% 19.8%, 61.6% 17.7%, 57.8% 16.7%, 57.3% 14.6%, 53.9% 13.6%, 50.1% 12.9%, 48.1% 12.5%);
}
.wardrobe {
  --open: 26deg;
  --turn: 29deg;
  --room-shift: 0px;
  --eye-x: 0px;
  --eye-y: 0px;
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  background: #181014;
}
.corridor { position: absolute; inset: 0; perspective: 650px; perspective-origin: calc(49% + var(--room-shift)) 24%; background: #29171e; }
.corridor span { position: absolute; inset-block: -22%; width: max(110vw, 930px); backface-visibility: hidden; background: #865866 url('/static/club-hare.webp') left center / clamp(120px,18vw,300px) auto repeat; background-blend-mode: multiply; opacity: .68; }
.room-left { right: 50%; transform-origin: right center; transform: translateZ(-650px) rotateY(62deg); }
.room-right { left: 50%; transform-origin: left center; transform: translateZ(-650px) rotateY(-62deg); }
.figure { position: absolute; top: 1%; left: 49%; width: min(108vw, 1320px, 142svh); aspect-ratio: 10/7; transform: translateX(-50%); isolation: isolate; }
.hare-mask { position: absolute; width: 18%; aspect-ratio: 72/117; left: 42.8%; top: 1.3%; transform: rotate(-5deg); transform-origin: 40% 95%; }
.hare-mask .face,.hare-mask .ears,.hare-mask b { position: absolute; inset: 0; display: block; }
.hare-mask .face {clip-path: polygon(0 44%,100% 44%,100% 100%,0 100%)}
.hare-mask .ears {clip-path: polygon(0 0,100% 0,100% 45%,0 45%); transform-origin: 42% 44%;}
.hare-mask b { background: url('/static/club-hare.webp') 30.87% 29.11% / 833.333% auto no-repeat; clip-path: var(--fur-edge); filter: grayscale(1) contrast(1.35); }
.pupil { position:absolute; left:46%; top:58.7%; width:4.7%; aspect-ratio:1; background:#130d10; border-radius:50%; transform: translate(var(--eye-x),var(--eye-y)); }
.garment { position: absolute; inset: 28% 0 auto; aspect-ratio: 599/479; perspective: 1000px; }
.wing,.fabric,.lining-photo { position: absolute; inset: 0; }
.wing { transform-origin: 49% 13%; }
.port { --angle: var(--open); --fold: var(--turn); clip-path: inset(0 50% 0 0); }
.starboard { --angle: calc(-1 * var(--open)); --fold: calc(-1 * var(--turn)); clip-path: inset(0 0 0 49.8%); }
.wing { transform: rotateZ(var(--angle)) rotateY(var(--fold)); }
.fabric { clip-path:var(--cape-edge); background: url('/static/worth-evening-cape-1895.jpg') 50% 50% / 100% 100% no-repeat; filter: grayscale(.88) contrast(1.12); }
.lining-photo { clip-path:var(--cape-edge); background: #9f2f43 url('/static/piranesi-drawbridge-small.webp') 67% 40% / auto 170%; background-blend-mode: luminosity; box-shadow:inset 0 0 0 100vmax #68162971; }
.occupied .wing { animation: unfasten .8s cubic-bezier(.19,.7,.22,1) both; }
.recoils .wing { animation: recoil .8s ease-out both; }
@keyframes unfasten { from { transform:rotateZ(0) rotateY(0); } }
@keyframes recoil { 0%,100% { transform:rotateZ(var(--angle)) rotateY(var(--fold)); } 26% { transform:rotateZ(0) rotateY(0); } }

.lining-door {
  --door-gutter:clamp(32px,8vw,190px);
  position:relative;
  isolation:isolate;
  display:grid;
  align-items:center;
  justify-items:start;
  min-height:max(600px,100svh);
  padding:72px var(--door-gutter);
}
.lining-door .figure {
  left:69%;
  top:max(3%,calc((100svh - 930px)/2));
  width:min(104vw,132svh,1250px);
}
.paper-form {
  --ink:#271b20;
  --muted:#554747;
  --error:#7a0d29;
  position:relative;
  isolation:isolate;
  width:min(100%,408px);
  color:var(--ink);
  color-scheme:light;
}
.paper-form::before {
  content:"";
  position:absolute;
  z-index:-1;
  inset:-31px -48px -30px calc(-1 * var(--door-gutter) - 3px);
  background:linear-gradient(105deg,#dac4aad9,#f5e8d0f5 59%,#eddbc3ec),
             url("/static/piranesi-drawbridge-small.webp") center 62% / cover;
  clip-path:polygon(0 8%,24% 6%,28% 6.8%,56% 3.6%,65% 4.1%,94% 0,96% 11%,
                    95% 14%,97% 36%,96.5% 37%,99% 61%,98% 62%,100% 92%,
                    80% 94%,76% 93.5%,42% 97%,40% 96%,0 100%);
}
.woven-name {
  display:table;
  padding:4px 11px 5px;
  margin:0 0 12px -3px;
  transform:rotate(-3deg);
  color:#f7ebd6;
  background:#2c2022;
  font:800 22px/.95 var(--display);
  text-transform:uppercase;
}
.woven-name i {font:italic 400 1.12em/.9 var(--serif);text-transform:none}
.paper-form h1 {
  color:#33252b;
  margin:0 0 .27em -.025em;
  font:italic 400 clamp(48px,5.8vw,90px)/.94 var(--serif);
  text-transform:none;
  letter-spacing:-.045em;
}
.paper-form form {margin:14px 0 5px;padding:0;background:transparent;border:0}
.paper-form label {margin:0 0 12px;font:600 15px/1.2 "Courier New",monospace}
.paper-form input:not([type=checkbox]) {
  width:100%; height:51px; padding:0 4px; margin:2px 0 0;
  border:0; border-bottom:1px solid #6e514f; border-radius:0;
  color:#23191b; background:transparent;
  caret-color:#381620;
  font:400 clamp(24px,2vw,27px)/1.38 "Club Press Cuttings","Courier New",monospace;
  font-variant-ligatures:contextual;
}
.paper-form :focus-visible {outline:2px dashed #562039;outline-offset:3px}
.paper-form input:not([type=checkbox]):focus {
  outline:2px solid transparent;outline-offset:2px;
  border-bottom:3px double #502834;
  box-shadow:inset 3px 0 #702944;
}
.paper-form button {
  position:relative; isolation:isolate;
  min-height:49px; width:auto; min-width:145px;
  margin:6px 0 0 -3px; padding:9px 22px 9px 30px;
  color:#f8eddc; background:transparent; border:0;
  font:800 23px/1 var(--display); text-transform:uppercase; letter-spacing:.04em;
}
.paper-form button::before {
  content:""; position:absolute; inset:0; z-index:-1;
  background:#39232b;
  clip-path:polygon(0 9%,78% 1%,100% 4%,97% 87%,21% 98%,2% 95%);
}
.paper-form button::after {
  content:""; position:absolute; left:10px; top:50%; width:4px; height:4px;
  background:#ecdbbe; border-radius:50%;
}
.paper-form .error {color:var(--error);border:0;border-left:3px solid;padding:3px 10px;background:none}
.paper-form .notice {background:none;padding:4px 0;border:0}
.entry-links {display:flex; flex-wrap:wrap; gap:0 22px}
.entry-links a {display:inline-flex; align-items:center; min-height:44px; font:600 14px/1.3 "Courier New",monospace}
@media(prefers-reduced-motion:no-preference) {
  .occupied .hare-mask .face {transform-origin:40% 65%;animation:scent 9.7s linear infinite;}
  @keyframes scent {
    0%,35%,37%,40%,75%,77%,100% {transform:none}
    36%,39%,76% {transform:translate(.5px,-.55px) scaleX(1.007)}
  }
}
@media(forced-colors:active) {
  .paper-form {background:Canvas;color:CanvasText;padding:6px}
  .paper-form input:not([type=checkbox]) {font-family:monospace}
  .paper-form input:not([type=checkbox]):focus {outline-color:Highlight}
  .paper-form button {border:1px solid ButtonText}
}
.reward-art .wardrobe {position:relative; inset:auto; width:100%; aspect-ratio:1/.98;}
.hanging .figure {width:116%; top:-13%; left:50%; aspect-ratio:10/9}
.hanging {--open:17deg; --turn:22deg}
.hanging .garment {top:26%}
.hanging .lining-photo {background:#682438; box-shadow:none}
.hanging .hanger {position:absolute;top:0;left:49%;height:38%;width:5%;border-left:2px solid #aa9b89;border-bottom:2px solid #aa9b89;transform:rotate(4deg);border-radius:0 0 0 40%;}

@media(max-width:700px) {
  .lining-door {
    --door-gutter:clamp(22px,8vw,48px);
    align-items:end;
    min-height:100svh;
    padding:max(236px,40svh) var(--door-gutter) 30px;
  }
  .lining-door .figure {left:56%;top:1%;width:min(135vw,750px)}
  .paper-form {width:min(100%,420px)}
  .paper-form::before {inset:-21px -17px -19px calc(-1 * var(--door-gutter) - 3px)}
  .paper-form h1 {font-size:clamp(45px,10vw,60px)}
  .paper-form form {margin:9px 0 2px}
  .paper-form label {margin-bottom:8px}
  .paper-form input:not([type=checkbox]) {font-size:clamp(21.5px,5.5vw,24px)}
  .woven-name {font-size:18px;margin-bottom:9px}
  .reward-art .wardrobe {aspect-ratio:1.13}
  .wardrobe .corridor span {background-size:155px auto}
}
@media(prefers-reduced-motion:reduce) {
  .wardrobe .wing {animation:none}
  .corridor {perspective-origin:49% 24%}
  .pupil {transform:none}
}
@font-face {
  font-family:"Cormorant Garamond";font-style:normal;font-weight:600;font-display:swap;
  src:url("/static/cormorant-garamond-600.woff2") format("woff2");
}
.club-cover,.board-page {position:relative;isolation:isolate;}
.wall[data-view=posters] .board-poster,.board-row,.board-reply,.member-pass {
  color:#1a1416;background-color:#eee3cb;outline:1px dashed #857065;outline-offset:-5px;
}
.wall[data-view=posters] .board-poster,.board-row,.board-reply {border:0;border-radius:0;box-shadow:none;transform:none;padding:clamp(18px,2.4vw,35px);}
.wall[data-view=posters] .board-poster {margin:0;}
.board-row,.board-reply {margin-block:16px}
.wall[data-view=posters] .board-poster h2,.board-row h2,.board-reply p {
  font:600 clamp(26px,3.8vw,56px)/1.05 "Cormorant Garamond",Georgia,serif;letter-spacing:-.025em;margin:14px 0;
}
.board-reply p {font-size:22px;line-height:1.35}
.board-row .eyebrow,.board-reply>b,.wall[data-view=posters] .byline,.wall[data-view=posters] .byline time,.earning-table dd {
  font:800 13px/1.3 var(--display);text-transform:uppercase;letter-spacing:.08em;color:#5d4149;
}
.earning-table dd {font-size:20px;color:var(--ink)}
.artist-feature section,.catalogue article[data-kind=task] {padding-left:16px;border-left:4px solid #c8102e}
.artist-feature section button,.artist-feature section .button {min-height:48px;display:flex;align-items:center;justify-content:center;background:#060506;border:1px solid #998b8a;color:#f3e9da;text-decoration:none;text-transform:uppercase;font:800 19px/1 var(--display);letter-spacing:.045em;padding:8px 14px;}
.artist-feature section button,.artist-feature section .button {width:100%}
.artist-feature section .button:hover {text-decoration:underline}
.member-pass {width:100%;max-width:none;border:0;padding:5px;}
.member-pass>div>strong:first-child,.member-pass>div:first-child strong {text-transform:uppercase;letter-spacing:.01em}
.member-pass .eyebrow,.member-pass .serial {color:#543f44;}
.desk article {border-color:#827a7d;border-bottom-style:dashed;}
@media(max-width:620px) {
  .wall[data-view=posters] .board-poster {margin:0;width:100%;}
  .wall[data-view=posters] .board-poster h2,.board-row h2,.board-reply p {font-size:20px;line-height:24px;}
  .byline,.wall[data-view=posters] .byline time {font-size:12px}
}
.board-row,.board-reply,.member-pass,.wall[data-view=posters] .board-poster {position:relative;isolation:isolate}
.board-row::before,.board-reply::before,.member-pass::before,.wall[data-view=posters] .board-poster::before {
  content:"";position:absolute;inset:5px;z-index:-1;pointer-events:none;
  background:url("/static/worth-evening-cape-1895.jpg") 47% 41% / 540% auto no-repeat;filter:grayscale(1);opacity:.045;
}

.start-scene {
  --figure-width:min(92vw,98svh,1200px);
  --figure-top:calc(50% - var(--figure-width) * .47);
  position:relative;isolation:isolate;min-height:max(320px,100svh);
}
.start-scene .figure {width:var(--figure-width);top:var(--figure-top);left:50%}
.prison-stage {
  position:absolute;
  inset:0;
  overflow:hidden;
  pointer-events:none;
  background:#271619;
}
.prison-stage > div {
  position:absolute;
  background-image:url("/static/piranesi-drawbridge.webp");
  background-repeat:no-repeat;
  background-blend-mode:multiply;
}
@media(max-width:700px) {
  .prison-stage > div {background-image:url("/static/piranesi-drawbridge-small.webp")}
}
.high-gallery {
  inset:-2%;
  background-color:#763747;
  background-size:cover;
  background-position:55% 38%;
}
.drawbridge-leaf {
  left:-8%; top:-9%; width:66%; height:76%;
  background-color:#b69f87;
  background-size:142% auto;
  background-position:46% 32%;
  clip-path:polygon(0 0, 55% 0, 55.8% 8.5%, 47% 13%, 45% 23%, 50% 27%, 44.5% 33%, 47% 40%, 71% 52%, 90% 68%, 88% 73%, 66% 66%, 40% 54%, 36% 59%, 29% 61%, 28% 79%, 16% 87%, 0 100%);
  transform-origin:2% 47%;
}
.inverted-vault {
  inset:auto -2% -2%;
  height:34%;
  background-color:#927676;
  background-size:110% auto;
  background-position:40% 12%;
  transform:rotate(180deg);
  clip-path:polygon(0 0,100% 0,100% 91%,82% 72%,64% 80%,55% 67%,35% 69%,19% 83%,0 100%);
}
@media(orientation:portrait) {
  .high-gallery {background-position:58% 35%}
  .drawbridge-leaf {width:99%;height:47%;left:-29%;top:-3%;background-size:auto 185%}
  .inverted-vault {height:26%;background-size:auto 320%}
}
@media(prefers-reduced-motion:no-preference) {
  .high-gallery {transform:translateX(calc(var(--room-shift) * -.26))}
  .drawbridge-leaf {transition:transform .7s ease-out;transform:translateY(calc(var(--room-shift) * .26))}
  .start-scene:focus-within .drawbridge-leaf,.start-scene.entering .drawbridge-leaf {transform:rotate(4deg)}
}
.start-scene .hare-mask {top:3.6%;left:42.2%}
.start-scene .wing {animation:none;transform:none;transition:transform 320ms cubic-bezier(.25,.72,.22,1)}
.start-scene .lining-photo {opacity:0}
.seam-label {
  position:absolute;z-index:1;top:calc(var(--figure-top) + var(--figure-width) * .918);
  left:50%;transform:translate(-50%,-50%) rotate(-2deg);transform-origin:50% 0;
  display:inline-flex;justify-content:center;align-items:center;min-height:52px;
  padding:10px 26px;background:#eee3cb;color:#24191c;border:1px solid #756a58;
  outline:1px dashed #887b6d;outline-offset:-5px;box-shadow:2px 4px 0 #150e1059;
  text-decoration:none;white-space:nowrap;font:italic 400 clamp(25px,2vw,34px)/1 var(--serif);
  transition:transform 160ms ease;
}
.seam-label:focus-visible {outline:3px solid #80caff;outline-offset:4px}
@media(hover:hover) {.seam-label:hover {transform:translate(-50%,-42%) rotate(1deg)}}
.start-scene.entering .seam-label {transform:translate(-50%,-28%) rotate(2deg)}
.start-scene.entering .wardrobe {--open:13deg;--turn:20deg}
.start-scene.entering[data-returning] .wardrobe {--open:28deg;--turn:29deg}
.start-scene.entering .wing {transform:rotateZ(var(--angle)) rotateY(var(--fold))}
.start-scene.entering .lining-photo {opacity:1}
@media(max-width:700px) {
  .start-scene {--figure-width:min(173vw,99svh)}
  .seam-label {min-height:52px}
}
@media(orientation:landscape) and (max-height:580px) {
  .start-scene {--figure-width:min(92vw,calc(100svh - 56px))}
}
@media(prefers-reduced-motion:reduce) {
  .start-scene .wing,.start-scene.entering .wing {transform:none;transition:none}
  .start-scene .seam-label,.start-scene.entering .seam-label {transform:translate(-50%,-50%) rotate(-2deg);transition:none}
  .start-scene .wardrobe {transition:opacity 150ms linear}
  .start-scene.entering .wardrobe {opacity:.68}
}
