*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --paper: #e9e4da;
  --ink: #1c1a17;
  --muted: #8a8478;
  --print: #fbf9f4;
}

html,
body {
  height: 100%;
  background-color: var(--paper);
  overflow: hidden;
  font-family: "Libre Caslon Text", Georgia, serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.spotlight {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  cursor: grab;
  /* Paper grain, drawn inline so the showcase has no extra assets */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─────────── Masthead ─────────── */

.masthead {
  position: absolute;
  top: clamp(1.5rem, 4vw, 3rem);
  left: 50%;
  transform: translateX(-50%);
  width: min(40rem, 90%);
  text-align: center;
  z-index: 2;
  pointer-events: none;
}

.issue {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.issue span {
  color: var(--muted);
  margin-left: 0.75em;
}

h1 {
  margin-top: 0.9rem;
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

h1 em {
  color: #8c4a2f;
}

.sub {
  margin: 0.9rem auto 0;
  max-width: 34ch;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ─────────── Cards ─────────── */

.cards {
  position: absolute;
  top: 56%;
  left: 50%;
  /* The script positions cards relative to this container's center via
     translate(-50%, -50%). Scaling the container shrinks the whole
     composition without touching any value the physics depends on. */
  --cards-scale: 1;
  transform: translate(-50%, -50%) scale(var(--cards-scale));
  transform-origin: center center;
}

@media (max-width: 900px) {
  .cards {
    --cards-scale: 0.72;
  }
}

@media (max-width: 500px) {
  .cards {
    --cards-scale: 0.5;
  }
}

/* Each card is a bordered photographic print */
.card {
  position: absolute;
  width: 250px;
  padding: 12px 12px 0;
  background: var(--print);
  border-radius: 2px;
  box-shadow:
    0 1px 1px rgba(40, 30, 20, 0.08),
    0 10px 24px -8px rgba(40, 30, 20, 0.28),
    0 30px 60px -20px rgba(40, 30, 20, 0.3);
}

.photo {
  aspect-ratio: 25 / 29;
  overflow: hidden;
  background: #d7d1c5;
}

.card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 0 0.85rem;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.56rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.card figcaption span:last-child {
  color: var(--muted);
}

/* ─────────── Footer ─────────── */

.foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(1.25rem, 3vw, 2rem);
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
  z-index: 2;
}

.hint {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
}

.hint .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8c4a2f;
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@media (max-width: 700px) {
  .foot span:not(.hint) {
    display: none;
  }

  .foot {
    justify-content: center;
  }

  .sub {
    display: none;
  }
}
