/* Press page — reuses the color/font tokens defined in style.css. Uniform
   grid, same footprint as credits.css. Each tile shows the outlet/
   conference's own logo (some logos are self-contained brand cards and sit
   directly on the dark tile; others are transparent marks meant for a light
   background, so those get a small light "plate" behind them — see
   logoPlate in press.json) with the article title overlaid at the bottom.
   The one accent color (#b5573f) matches the rust-red --thread accent
   already used on map.html. */

.press {
  --accent: #b5573f;
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  padding: 12vh 5vw 10vh;
}

.press-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #141412;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.press-tile:hover,
.press-tile:focus-visible {
  border-color: var(--fg-dim);
  transform: translateY(-2px);
}
.press-tile:focus-visible { outline: 1px solid var(--accent); outline-offset: -1px; }

.press-logo-wrap {
  position: absolute;
  inset: 0 0 34%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14%;
}

.press-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Transparent marks designed for a light background get a plate behind
   them so they don't disappear into the dark tile. */
.press-logo-plate {
  background: #f3f1ec;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 78%;
  max-height: 78%;
}
.press-logo-plate img { max-width: 100%; max-height: 100%; }

.press-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(6,6,5,0) 0%, rgba(6,6,5,0.85) 45%, rgba(6,6,5,0.95) 100%);
}

.press-outlet {
  margin: 0 0 0.3em;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.press-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.84rem;
  line-height: 1.3;
  margin: 0 0 0.3em;
  color: var(--fg);
}

.press-meta {
  margin: 0;
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

@media (max-width: 640px) {
  .press-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 12vh 5vw 8vh; }
}
