.sheet {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  /* A tile is half the widest sheet minus the gap, and the art band is 16/9 of
     exactly that, so no tile can outgrow the illustration it is showing. Both
     come from --wrap rather than a literal, so widening the page moves the two
     together. */
  --tile-max: calc((var(--wrap) - (2 * var(--pad)) - 18px) / 2);
  --art-max: calc(var(--tile-max) * 9 / 16);
}

/* Half the row minus the gap gives at most two per row; flex-basis is a request,
   not a promise, so min-width decides the real column count and flex-grow hands
   the leftover width to whatever is left over on the final row, up to --tile-max. */
.tile {
  flex: 1 1 calc((100% - 18px) / 2);
  max-width: var(--tile-max);
  min-width: 250px;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r4);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.14s ease;
}
.tile:hover, .tile:focus-visible { border-color: var(--red); }
.tile:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.tag {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  font-size: 10px; line-height: 1; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.86);
}

.art {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: var(--art-max);
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
}
.art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) and (pointer: fine) {
  .tile:hover .art img,
  .tile:focus-visible .art img {
    transform: translateY(-2px) scale(1.02);
  }
}

.cap { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.cap .t { font-size: 19px; letter-spacing: -0.015em; }
.cap .d { font-size: 13.5px; color: var(--ink-dim); max-width: 46ch; }

.foot {
  display: flex; align-items: center; gap: 10px;
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
}
.path { font-size: 12.5px; line-height: 1; color: var(--red); }
.go { font-size: 11px; line-height: 1; letter-spacing: 0.06em; color: var(--ink-faint); white-space: nowrap; }
.tile:hover .go { color: var(--red); }

.status {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10.5px; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 10px;
  white-space: nowrap;
}
.solid { width: 7px; height: 7px; background: var(--ink); border: 1.5px solid var(--ink); }
.hollow { width: 7px; height: 7px; border: 1.5px dashed var(--ink-faint); }

.tile.draft { border-style: dashed; border-color: var(--line-strong); }
.tile.draft .art { background: #f2f0ec; }
.tile.draft .tag { border-style: dashed; }
.tile.draft .cap .t { color: var(--ink-dim); }
.tile.draft:hover, .tile.draft:focus-visible { border-color: var(--ink-faint); }
