:root {
  color-scheme: light;
  color: #26371b;
  background: #eeede8;
  font: 1rem/1.55 'Hiragino Kaku Gothic ProN', 'Yu Gothic', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }

.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #18181a;
  touch-action: manipulation;
}

.photo {
  position: absolute;
  display: block;
  user-select: none;
}

.hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 24px;
  color: #f4f2eb;
  font-size: clamp(.9rem, 2.2vw, 1.05rem);
  text-align: center;
  pointer-events: none;
}

.hint-touch { display: none; }

.point {
  position: absolute;
  z-index: 1;
  width: 16px;
  height: 16px;
  border: 2px solid #fff0ec;
  border-radius: 50%;
  outline: 2px solid #171719;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.surface {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: crosshair;
}

.surface:focus-visible {
  outline: 2px solid white;
  outline-offset: -4px;
}

.visually-hidden, .credits-entry:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.credits-entry:focus {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  padding: .4rem .65rem;
  background: #eeede8;
}

.page { width: min(100% - 32px, 940px); margin: 0 auto; }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 64px; }
.brand { font-family: Georgia, serif; font-weight: 700; }
.utility, .credit-meta { font-size: .875rem; }
.credits { padding-block: 24px 48px; }
.credits h1 { margin: 0; font-size: clamp(1.75rem, 4vw, 2.75rem); }
.credits-intro { max-width: 46ch; margin-bottom: 24px; }
.credits-list { list-style: none; padding: 0; margin: 0; }
.credits-list li { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 6px 16px; padding: 12px; overflow-wrap: anywhere; }
.credits-list li:nth-child(odd) { background: #f8f7f2; }
.credits-list p { margin: 0; }

@media (max-width: 520px) {
  .credits-list li { grid-template-columns: 1fr; }
}

@media (hover: none) {
  .hint-mouse { display: none; }
  .hint-touch { display: inline; }
}
