@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=Instrument+Sans:wght@400;500;600&display=swap');

:root {
  color-scheme: dark;
  --ground: #222415;
  --panel: #2b2d1b;
  --line: #67694b;
  --coral: #ef8d79;
  --paper: #ede7d4;
  --muted: #bfbca5;
  --display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0 clamp(14px, 2.5vw, 40px);
  background: radial-gradient(ellipse at 55% 0, #3a3c23, transparent 42rem), var(--ground);
  color: var(--paper);
  font: 16px/1.55 'Instrument Sans', Arial, sans-serif;
}
header, main, footer { width: min(100%, 1440px); margin-inline: auto; }
a { color: var(--coral); text-underline-offset: .2em; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; }
.masthead { padding: 16px 0 22px; }
.masthead nav, footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.masthead nav, footer, .return, summary { font-size: .875rem; }
.masthead p, h1, h2, .directory a > span {
  margin: 0;
  color: var(--coral);
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
}
.masthead p { margin-top: 24px; font-size: clamp(18px, 2vw, 30px); letter-spacing: .12em; }
h1 { font-size: clamp(48px, 14vw, 164px); font-weight: 900; letter-spacing: -.035em; line-height: .88; }
.directory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.directory a {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
}
img { display: block; width: 100%; height: auto; }
.directory img { height: clamp(230px, 42svh, 580px); object-fit: cover; object-position: center 59%; }
.directory a > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 1;
  padding: 10px 14px 12px;
  font-size: clamp(18px, 2.8vw, 42px);
  line-height: 1;
}
.directory a:hover { border-color: var(--coral); }
.directory a:hover > span { background: var(--coral); color: var(--ground); }
.movement {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  max-width: 1000px;
  margin: clamp(54px, 8vw, 128px) auto;
  border: 1px solid var(--line);
  background: var(--panel);
  scroll-margin-top: 18px;
}
.movement > img { height: 100%; max-height: 560px; object-fit: cover; }
.movement > div { align-self: center; padding: clamp(20px, 4vw, 56px); }
.movement h2 { font-size: clamp(36px, 6vw, 76px); line-height: .95; }
.movement p { color: var(--muted); }
.movement ol { padding-left: 1.75rem; margin: 22px 0; }
.movement li { padding: 6px 0 6px 6px; border-bottom: 1px solid #50523b; }
.sleeve summary { cursor: pointer; padding: 12px 0; color: var(--coral); border-top: 1px solid var(--line); }
.sleeve div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px 0 24px; }
footer { padding: 18px 0 28px; color: var(--muted); border-top: 1px solid var(--line); }
@media (max-width: 650px) {
  .directory { grid-template-columns: 1fr; }
  .directory img { height: clamp(128px, 40vw, 255px); }
  .directory a > span { min-height: 44px; font-size: 25px; }
  .movement { grid-template-columns: 1fr; }
  .movement > img { height: min(76vw, 400px); object-position: center 60%; }
  .sleeve div { grid-template-columns: 1fr; }
}

.storefront-playback {
  margin: 20px 0;
  padding: 12px 16px;
  border-inline-start: 2px solid var(--coral);
  background: var(--ground);
}
.storefront-playback p { margin: 0; color: var(--paper); }
.archive-entry { margin-top: 16px; }

.mall-room {
  max-width: 860px;
  margin: 48px auto;
  padding: clamp(18px, 4vw, 40px);
  border: 1px solid var(--line);
  background: var(--panel);
  scroll-margin-top: 18px;
}
.mall-room:not(:target) { display: none; }
.mall-room h2 { font-size: clamp(32px, 6vw, 64px); line-height: 1; }
.room-heading, .mall-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.room-heading { justify-content: space-between; }
.mall-button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: var(--ground);
  color: var(--coral);
  font: inherit;
  cursor: pointer;
}
.mall-button:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; }
.mall-button:hover, .mall-button[aria-pressed="true"] { border-color: var(--coral); }
.mall-button:disabled { cursor: wait; }
.floor-plan {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: 'behind behind' 'store atrium' 'corridor corridor';
  margin-top: 24px;
  gap: 5px;
  padding: 8px;
  background: var(--ground);
}
.map-room {
  position: relative;
  display: flex;
  min-height: 78px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid var(--line);
  text-align: center;
}
.map-room[hidden] { display: none; }
.map-storefront { grid-area: store; }
.map-atrium { grid-area: atrium; }
.map-corridor { grid-area: corridor; min-height: 58px; }
.map-behind { grid-area: behind; min-height: 48px; }
.map-room[data-marker]::after {
  content: '● YOU ARE HERE';
  color: var(--paper);
  font-size: .75rem;
  letter-spacing: .08em;
  padding-top: 5px;
}
.photo-strip {
  width: min(100%, 300px);
  padding: 12px;
  margin: 24px 0 0;
  display: grid;
  gap: 8px;
  background: #ded8ba;
  list-style: none;
}
.photo-strip[hidden] { display: none; }
.exposure {
  aspect-ratio: 3 / 2;
  background: #353521 url('booth-exposures.webp') 0 0 / 200% 200%;
}
.photo-strip li:nth-child(2) .exposure { background-position: 100% 0; }
.photo-strip li:nth-child(3) .exposure { background-position: 0 100%; }
.photo-strip li:nth-child(4) .exposure { background-position: 100% 100%; }

.map-clue {
  max-width: 45ch;
  padding-inline-start: 14px;
  border-inline-start: 2px solid var(--coral);
  color: var(--paper);
}

.booth-trigger {
  display: grid;
  width: min(100%, 340px);
  padding: 0;
  border: 1px solid var(--line);
  background: var(--ground);
  color: var(--coral);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.booth-trigger img { max-height: 360px; object-fit: cover; object-position: center 47%; }
.booth-trigger span { padding: 10px 14px; }
.booth-trigger:hover { border-color: var(--coral); }
.booth-trigger:focus-visible, .photo-strip:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; }
.booth-trigger:disabled { cursor: wait; }

.recovered-exposure {
  width: min(100%, 360px);
  margin: 24px 0 12px;
  padding: 10px;
  background: #ded8ba;
  color: var(--ground);
}

.recovered-exposure figcaption { padding: 7px 2px 2px; }
.prize-download { display: inline-flex; align-items: center; }
