/* =====================================================================
   piece.css — the single-piece page.

   This page exists mainly so crawlers and shared links have something
   real to read, but people land on it too — straight from a TikTok or
   Facebook link — so it has to stand on its own as the first thing
   someone sees of the collection.
   ===================================================================== */

.piece-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 84px 24px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  min-height: 82vh;
}

/* The photograph sits on a ground sampled from itself, so a piece shot
   off the house 3:4 framing letterboxes into its own colour. */
.pp-figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--tile-bg, var(--panel));
  aspect-ratio: 3 / 4;
  display: flex;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07),
              0 0 0 1px rgba(255, 255, 255, .05);
}
.pp-figure img {
  width: 100%; height: 100%;
  object-fit: contain;
}

.pp-body { min-width: 0 }

.pp-id {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .16em;
  color: var(--gold-dim);
}

.piece-page h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  margin: .5rem 0 1rem;
  color: var(--cream);
}

.pp-crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  font-family: var(--label);
  font-size: .64rem; letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.pp-crumbs a { color: var(--gold); text-decoration: none }
.pp-crumbs a:hover { color: var(--gold-bright); text-decoration: underline }
.pp-crumbs .sep { color: var(--gold-dim) }

.pp-desc {
  color: var(--cream-dim);
  font-size: 1.02rem;
  max-width: 54ch;
  margin-bottom: 1.4rem;
}

.pp-tags {
  display: flex; flex-wrap: wrap; gap: 7px;
  list-style: none; margin: 0 0 1.8rem;
}
.pp-tags li {
  font-family: var(--label);
  font-size: .56rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cream-dim);
  border: 1px solid var(--line); border-radius: 20px; padding: 5px 12px;
}

.piece-page .links { justify-content: flex-start }

@media (max-width: 760px) {
  .piece-page {
    grid-template-columns: 1fr;
    padding-top: 72px;
    min-height: 0;
    align-items: start;
  }
  .pp-figure { max-height: 62vh }
  .piece-page .links { justify-content: stretch }
  .piece-page .links .btn { flex: 1 1 auto; text-align: center }
}
