/*
 * Press kit page layout. Builds on the shared site stylesheet (colors, fonts,
 * header, buttons, footer and the legal-page backdrop) and adds only the
 * press-specific panels, fact sheet and asset galleries.
 */

.press-shell {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  width: min(78rem, 100%);
  margin: 0 auto;
  padding: clamp(7rem, 14vh, 9rem) clamp(1rem, 4vw, 3rem) clamp(3rem, 8vw, 5rem);
}

.press-hero h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  line-height: 0.95;
}

.press-intro {
  max-width: 44rem;
  color: #241607;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  line-height: 1.55;
}

.press-hero .hero-actions {
  margin-top: 1.5rem;
}

/* The section index sits under the hero and wraps on narrow screens. */
.press-section-nav {
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: 1.75rem;
}

.press-panel {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid rgba(139, 86, 25, 0.18);
  border-radius: 8px;
  background: rgba(255, 252, 241, 0.82);
  scroll-margin-top: 6.5rem;
}

.press-panel h2 {
  max-width: none;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
}

.press-panel p {
  max-width: 48rem;
  color: #4b3515;
}

/* Fact sheet: label/value pairs in a responsive two-column grid. */
.press-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid rgba(139, 86, 25, 0.16);
}

.press-facts > div {
  display: grid;
  grid-template-columns: minmax(8rem, 0.4fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(139, 86, 25, 0.16);
}

.press-facts > div:nth-child(odd) {
  padding-right: 1.5rem;
}

.press-facts dt {
  color: #8b5619;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.press-facts dd {
  min-width: 0;
  margin: 0;
  color: #2c1d0a;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.press-language-list {
  display: block;
  margin-top: 0.3rem;
  color: #6b5128;
  font-size: 0.86rem;
  font-weight: 500;
}

/* The usual Steam sale price sits beside the list price as secondary detail. */
.press-price-note {
  color: #6b5128;
  font-weight: 500;
}

.press-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.press-facts a,
.press-text-link {
  color: #007c86;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.press-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 4vw, 3rem);
  margin-top: 1.25rem;
}

.press-short {
  padding: 0.85rem 1rem;
  border-left: 3px solid #d6a64c;
  background: rgba(255, 238, 194, 0.5);
  color: #2c1d0a;
}

.press-features {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.press-features li {
  position: relative;
  padding-left: 1.4rem;
  color: #4b3515;
  font-family: var(--font-lore);
  line-height: 1.55;
}

.press-features li::before {
  position: absolute;
  top: 0.55em;
  left: 0.2rem;
  width: 0.45rem;
  height: 0.45rem;
  content: "";
  background: #d6a64c;
  transform: rotate(45deg);
}

.press-trailer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center;
}

.press-trailer-art img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(139, 86, 25, 0.2);
  border-radius: 6px;
}

.press-category {
  margin-top: 2rem;
}

.press-category-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.press-category-head h3 {
  margin: 0;
  font-size: 1.4rem;
}

.press-zip {
  min-height: 2.5rem;
  padding: 0.6rem 0.9rem;
  font-size: 0.74rem;
}

/* Gallery grids. Aspect classes keep tiles even while previews load. */
.press-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.9rem;
}

.press-gallery.is-tall {
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
}

.press-gallery.is-square {
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
}

.press-tile {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(139, 86, 25, 0.2);
  border-radius: 6px;
  background: rgba(255, 247, 224, 0.9);
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.press-tile:hover,
.press-tile:focus-visible {
  border-color: #9b611b;
  transform: translateY(-2px);
}

.press-tile-frame {
  display: grid;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  background: #2a1c0c;
}

.is-tall .press-tile-frame {
  aspect-ratio: 2 / 3;
}

.is-square .press-tile-frame {
  aspect-ratio: 1;
}

/* Transparent art sits on a checkerboard so its edges are visible. */
.is-transparent-set .press-tile-frame {
  background:
    conic-gradient(#e9d9b6 25%, #f8eedb 0 50%, #e9d9b6 0 75%, #f8eedb 0) 0 0 / 1.25rem 1.25rem;
}

.press-tile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.is-transparent-set .press-tile-frame img,
.is-tall .press-tile-frame img,
.is-square .press-tile-frame img {
  padding: 0.5rem;
  object-fit: contain;
}

.is-tall:not(.is-transparent-set) .press-tile-frame img {
  padding: 0;
  object-fit: cover;
}

.press-tile-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  padding: 0.6rem 0.7rem 0.7rem;
}

.press-tile-name {
  width: 100%;
  color: #2c1d0a;
  font-size: 0.78rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.press-tile-details {
  color: #6b5128;
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
}

.press-tile-badge {
  padding: 0.1rem 0.4rem;
  border: 1px solid rgba(0, 124, 134, 0.35);
  border-radius: 999px;
  color: #005d64;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Header follows the homepage's small-screen behavior: it scrolls away and wraps its links. */
@media (max-width: 900px) {
  .press-page .site-header {
    position: relative;
    align-items: flex-start;
    gap: 1rem;
  }

  .press-page .site-header-actions {
    flex: 1;
    flex-wrap: wrap;
    row-gap: 0.8rem;
  }

  .press-page .site-header nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .press-shell {
    padding-top: clamp(1.5rem, 5vw, 3rem);
  }

  .press-facts,
  .press-columns,
  .press-trailer {
    grid-template-columns: minmax(0, 1fr);
  }

  .press-facts > div:nth-child(odd) {
    padding-right: 0;
  }
}

@media (max-width: 640px) {
  .press-page .site-header {
    position: relative;
  }

  .press-page .brand-mark {
    flex: 0 0 5rem;
  }

  .press-page .site-header nav {
    flex: 0 0 100%;
    min-width: 0;
  }

  .press-facts > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
  }

  .press-gallery {
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  }

  .press-gallery.is-tall,
  .press-gallery.is-square {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
