/* Cloakroom: an umbrella check. Each project is an umbrella with a numbered ticket; the one without a ticket is mine. */
:root {
  --wall: #ece7de;
  --floor: #dcd3c4;
  --ink: #1d1c1a;
  --soft: #5f5b54;
  --faint: #8f897e;
  --line: rgba(29, 28, 26, .14);
  --red: #c4432f;
  --wide: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --typed: "Courier Prime", "Courier New", monospace;
  --pad: clamp(18px, 4.5vw, 64px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--wall); color: var(--ink); font: 400 17px/1.6 var(--wide); font-variation-settings: "wdth" 100; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--wall); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cond { font-stretch: 62%; font-variation-settings: "wdth" 62; }
.small-caps { font: 600 12px/1.3 var(--wide); letter-spacing: .14em; text-transform: uppercase; }

/* ---------- the stand (home) ---------- */
.room {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  background: linear-gradient(to bottom, var(--wall) 0 calc(100% - 9svh), var(--floor) calc(100% - 9svh));
}
.stand-wrap { position: relative; display: flex; align-items: flex-end; justify-content: center; padding: 24px var(--pad) 0; }
.stand { width: min(100%, 560px); height: auto; display: block; overflow: visible; margin-bottom: calc(9svh - 28px); }
.counter { padding: clamp(36px, 8vh, 90px) var(--pad) 40px 0; display: flex; flex-direction: column; }
.counter .small-caps { color: var(--red); }
.counter h1 { margin: 10px 0 14px; font-weight: 800; font-size: clamp(54px, 7.4vw, 112px); line-height: .86; letter-spacing: -.01em; font-stretch: 62%; font-variation-settings: "wdth" 62; text-transform: uppercase; }
.lead { margin: 0 0 10px; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.4; max-width: 30ch; }
.note { margin: 0 0 28px; color: var(--soft); max-width: 40ch; }

.tickets { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.tickets li { border-bottom: 1px solid var(--line); }
.tickets a { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 14px; padding: 9px 0; text-decoration: none; }
.chip {
  display: grid; place-items: center; height: 34px; border-radius: 3px;
  font: 800 19px/1 var(--wide); font-stretch: 62%; font-variation-settings: "wdth" 62;
  background: var(--stock); color: var(--print, var(--ink));
  transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.chip.none { background: none; box-shadow: inset 0 0 0 1.5px var(--ink); font-size: 13px; letter-spacing: .04em; }
.tickets .t { display: block; font-weight: 600; font-size: 18px; line-height: 1.2; }
.tickets .d { display: block; color: var(--soft); font-size: 14px; line-height: 1.35; }
.tickets a:hover .chip, .tickets a:focus-visible .chip, .tickets a.on .chip { transform: translateY(-3px) rotate(-4deg); }
.tickets a:hover .t, .tickets a.on .t { text-decoration: underline; text-underline-offset: 3px; }
.counter .foot { margin-top: auto; padding-top: 30px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--soft); }
.counter .foot a { color: var(--soft); }

/* umbrellas in the stand */
.brolly { cursor: pointer; outline: none; }
.brolly .lift { transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); }
.brolly:hover .lift, .brolly:focus-visible .lift, .brolly.on .lift { transform: translateY(-18px); }
.brolly:focus-visible .tagcard { stroke: var(--red); stroke-width: 2.5; }
.swing { transform-box: view-box; }
.brolly:hover .swing, .brolly:focus-visible .swing, .brolly.on .swing { animation: swing 1.6s cubic-bezier(.3, .6, .4, 1); }
@keyframes swing { 0% { rotate: 0deg; } 18% { rotate: 9deg; } 40% { rotate: -6deg; } 62% { rotate: 3deg; } 82% { rotate: -1deg; } 100% { rotate: 0deg; } }
.tagnum { font: 800 22px var(--wide); font-stretch: 62%; font-variation-settings: "wdth" 62; text-anchor: middle; }
.tagsmall { font: 600 6.5px var(--wide); letter-spacing: .12em; text-anchor: middle; }

/* ---------- inner pages ---------- */
.top {
  display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 18px;
  padding: 0 var(--pad);
}
.home { padding-top: 18px; font: 600 13px/1.3 var(--wide); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.home:hover { color: var(--red); }
.brand { padding-top: 18px; font: 800 18px/1 var(--wide); font-stretch: 62%; font-variation-settings: "wdth" 62; text-transform: uppercase; letter-spacing: .02em; text-decoration: none; }
/* the rail: a rod with every ticket hanging from it; the current one hangs lowest */
.rail { position: relative; display: flex; justify-content: center; gap: clamp(8px, 1.6vw, 18px); margin: 0; padding: 0 0 12px; list-style: none; }
.rail::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 3px; border-radius: 3px; background: var(--ink); opacity: .85; }
.rail a { position: relative; display: block; padding-top: 22px; text-decoration: none; transition: padding-top .4s cubic-bezier(.3, 1.4, .5, 1); }
.rail a::before { content: ""; position: absolute; left: 50%; top: 12px; bottom: calc(100% - 22px); width: 1px; background: var(--ink); }
.rail a[aria-current="page"] { padding-top: 40px; }
.rail a[aria-current="page"]::before { bottom: calc(100% - 40px); }
.rail a:hover { padding-top: 30px; }
.rail a:hover::before { bottom: calc(100% - 30px); }
.rail .chip { width: 40px; height: 52px; clip-path: polygon(22% 0, 78% 0, 100% 14%, 100% 100%, 0 100%, 0 14%); align-content: end; padding-bottom: 8px; position: relative; }
.rail .chip::before { content: ""; position: absolute; top: 7px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--wall); }
.rail .chip.none { clip-path: none; border-radius: 50% 50% 4px 4px; box-shadow: inset 0 0 0 1.5px var(--ink); align-content: center; padding: 6px 0 0; }
.rail .chip.none::before { display: none; }

.page { padding: clamp(26px, 5vw, 60px) var(--pad) 0; max-width: 1320px; margin: 0 auto; }
.ticket-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 220px); gap: 24px clamp(24px, 4vw, 64px); align-items: start; }
.lone-fig { align-self: end; }

/* the ticket: coloured stock, a stub torn along a perforation, notches at the tear line */
.ticket {
  --notch: 11px;
  position: relative;
  display: grid; grid-template-columns: 150px minmax(0, 1fr);
  background: var(--stock); color: var(--print, var(--ink));
  border-radius: 6px;
  -webkit-mask: radial-gradient(circle var(--notch) at 150px 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at 150px 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle var(--notch) at 150px 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at 150px 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .05);
}
.stub { position: relative; padding: 22px 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; border-right: 2px dotted currentColor; }
.stub .no { font: 800 74px/.8 var(--wide); font-stretch: 62%; font-variation-settings: "wdth" 62; }
.stub .keep { font: 600 10.5px/1.35 var(--wide); letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.tbody { padding: 22px clamp(20px, 3vw, 38px) 26px; }
.trow { display: flex; justify-content: space-between; gap: 12px; font: 600 11px/1.3 var(--wide); letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.tbody h1 { margin: 18px 0 6px; font: 800 clamp(46px, 6vw, 88px)/.9 var(--wide); font-stretch: 62%; font-variation-settings: "wdth" 62; text-transform: uppercase; letter-spacing: -.005em; }
.tbody .one { margin: 0 0 22px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.4; max-width: 40ch; }
.fields { display: grid; grid-template-columns: 130px minmax(0, 1fr); margin: 0; border-top: 1.5px solid currentColor; }
.fields dt, .fields dd { margin: 0; padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.fields dt { font: 600 11px/1.7 var(--wide); letter-spacing: .14em; text-transform: uppercase; opacity: .8; padding-top: 12px; }
.fields dd p { margin: 0 0 10px; max-width: 58ch; }
.fields dd p:last-child { margin: 0; }
.collect { display: flex; flex-wrap: wrap; gap: 10px; }
.collect a { display: inline-block; padding: 7px 13px; border: 1.5px solid currentColor; border-radius: 3px; text-decoration: none; font-weight: 600; font-size: 15px; transform: rotate(-.6deg); transition: background-color .2s, color .2s, transform .25s; }
.collect a:nth-child(2) { transform: rotate(.5deg); }
.collect a:hover { background: var(--print, var(--ink)); color: var(--stock); transform: none; }
.collect a::after { content: " \2197"; }

.lone { width: 100%; height: auto; display: block; overflow: visible; }
.after { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 26px; padding: 16px 0 34px; border-top: 1px solid var(--line); font-size: 15px; }
.after a { text-decoration: none; font-weight: 600; }
.after a:hover { color: var(--red); }
.after .muted { color: var(--soft); font-weight: 400; }

/* ---------- lost property card (mine) ---------- */
.mine-row { display: grid; grid-template-columns: minmax(200px, 4fr) minmax(0, 7fr); gap: 24px clamp(24px, 5vw, 80px); align-items: start; }
.card { background: #fbf8f2; border-radius: 4px; box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 18px 40px -28px rgba(0, 0, 0, .35); transform: rotate(-.4deg); }
.card-head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 22px; background: var(--red); color: #fbf8f2; border-radius: 4px 4px 0 0; font: 700 13px/1.3 var(--wide); letter-spacing: .16em; text-transform: uppercase; }
.card .fields { margin: 0 22px; border-top: 0; }
.card .fields dd { font: 400 17px/1.55 var(--typed); }
.card .fields dt { color: var(--soft); opacity: 1; }
.card .fields > :nth-last-child(-n + 2) { border-bottom: 0; }
.card-foot { padding: 12px 22px 18px; font: 400 13px/1.4 var(--wide); color: var(--soft); border-top: 1.5px solid var(--ink); margin: 0 22px; }
.copy { margin-left: 10px; padding: 3px 9px; border: 1.5px solid var(--ink); border-radius: 3px; background: none; font: 600 12px/1.4 var(--wide); color: var(--ink); cursor: pointer; vertical-align: 2px; }
.copy:hover { background: var(--ink); color: #fbf8f2; }
.returns a { text-decoration: none; border-bottom: 1px solid var(--line); }
.returns a:hover { color: var(--red); border-color: var(--red); }
.open-brolly { width: 100%; max-width: 360px; height: auto; display: block; }
.open-brolly .eyes { animation: blink 5s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.12); } }

@media (max-width: 900px) {
  .room { grid-template-columns: 1fr; background: var(--wall); }
  .stand-wrap { padding-top: 8px; background: linear-gradient(to bottom, var(--wall) 0 calc(100% - 46px), var(--floor) calc(100% - 46px)); }
  .stand { width: min(88%, 380px); margin-bottom: 18px; }
  .counter { padding: 26px var(--pad) 34px; }
  .ticket-row, .mine-row { grid-template-columns: 1fr; }
  .ticket-row .lone-fig { display: none; }
  .top { grid-template-columns: auto auto; }
  .top nav { grid-column: 1 / -1; grid-row: 2; }
  .top .rail { justify-content: flex-start; }
  .brand { justify-self: end; }
  .open-brolly { max-width: 220px; }
}
@media (max-width: 620px) {
  .ticket { grid-template-columns: 1fr; -webkit-mask: none; mask: none; }
  .stub { flex-direction: row; align-items: flex-end; border-right: 0; border-bottom: 2px dotted currentColor; padding: 16px 18px; }
  .stub .no { font-size: 54px; }
  .fields { grid-template-columns: 1fr; }
  .fields dt { border-bottom: 0; padding-bottom: 0; }
  .rail { gap: 6px; }
  .rail .chip { width: 34px; height: 46px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
