/* Shared look of every press kit (/press/ and /press/<game>/). Layout like presskit.gg,
   colors from the main page: Solarized light, or Solarized dark when the system is dark. */
:root {
  --bg: #fdf6e3;
  --surface: #eee8d5;
  --surface-2: #e6dfc9;
  --border: #d9d2bc;
  --text: #073642;
  --heading: #002b36;
  --muted: #657b83;
  --accent: #268bd2;
  --accent-hover: #1c6ea8;
  --accent-soft: rgba(38, 139, 210, 0.12);
  --on-accent: #fdf6e3;
  --hero-shadow: rgba(253, 246, 227, 0.85);
  --radius: 14px;
  --max: 1200px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #002b36;
    --surface: #073642;
    --surface-2: #0b4150;
    --border: #154f5e;
    --text: #93a1a1;
    --heading: #eee8d5;
    --muted: #839496;
    --accent: #4aa3e0;
    --accent-hover: #74b9e8;
    --accent-soft: rgba(74, 163, 224, 0.14);
    --on-accent: #002b36;
    --hero-shadow: rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
strong {
  color: var(--heading);
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0;
}

small {
  font-size: 0.8em;
}

.muted {
  color: var(--muted);
}

.draft-banner {
  margin: 0;
  padding: 8px 16px;
  text-align: center;
  background: #b58900;
  color: #fdf6e3;
  font-size: 0.9em;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  color: var(--accent);
  background: transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95em;
  cursor: pointer;
  white-space: nowrap;
}

.button:hover {
  background: var(--accent-soft);
  text-decoration: none;
}

.button small {
  font-weight: 400;
  opacity: 0.75;
}

.button.primary {
  background: var(--accent);
  color: var(--on-accent);
}

.button.primary:hover {
  background: var(--accent-hover);
}

.button.small {
  padding: 5px 12px;
  font-size: 0.85em;
}

.pill {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.8em;
  white-space: nowrap;
}

/* Hero */
.hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--surface);
}

.hero.no-art {
  min-height: 300px;
  background:
    radial-gradient(ellipse at 20% 0%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 60%),
    radial-gradient(ellipse at 90% 100%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 55%),
    var(--surface);
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--bg) 0%,
    color-mix(in srgb, var(--bg) 75%, transparent) 35%,
    color-mix(in srgb, var(--bg) 10%, transparent) 100%
  );
}

.hero.no-art::after {
  background: linear-gradient(to top, var(--bg) 0%, transparent 60%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 32px;
}

.crumbs {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  color: var(--muted);
  font-size: 0.85em;
}

.crumbs a {
  color: var(--heading);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--heading);
  text-shadow: 0 2px 24px var(--hero-shadow);
}

.tagline {
  max-width: 720px;
  margin: 12px 0 0;
  font-size: 1.15em;
  color: var(--heading);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}

.actions .button:not(.primary) {
  background: color-mix(in srgb, var(--bg) 60%, transparent);
}

/* Section tabs */
.tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.tabs-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs a {
  padding: 14px 12px;
  color: var(--muted);
  font-size: 0.82em;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.tabs a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* Fact sheet beside the content */
.layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.factsheet {
  position: sticky;
  top: 72px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.factsheet h2 {
  display: inline-block;
  padding-bottom: 6px;
  margin-bottom: 8px;
  border-bottom: 3px solid var(--accent);
  color: var(--accent);
  font-size: 1.15em;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.factsheet dl {
  margin: 0;
}

.fact {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.fact:last-child {
  border-bottom: 0;
}

.fact dt {
  color: var(--accent);
  font-size: 0.7em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fact dd {
  margin: 2px 0 0;
  color: var(--heading);
  font-weight: 500;
}

.fact-line {
  display: block;
}

.fact-line small {
  color: var(--muted);
}

/* Sections */
main {
  min-width: 0;
}

.kit-section {
  margin-bottom: 64px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section-title::before,
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  opacity: 0.6;
}

.section-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: -8px 0 16px;
  font-size: 0.9em;
}

.prose > :first-child {
  margin-top: 0;
}

.prose > :last-child {
  margin-bottom: 0;
}

.copy-block + .copy-block {
  margin-top: 24px;
}

.copy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.copy-head h3 {
  font-size: 0.8em;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.copy-block p {
  margin: 0 0 12px;
}

.features {
  columns: 2 280px;
  column-gap: 40px;
  padding-left: 20px;
  margin: 0;
}

.features li {
  margin-bottom: 10px;
  break-inside: avoid;
}

/* Screenshots */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.shot {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  background: var(--surface);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.shot:hover img {
  transform: scale(1.04);
}

/* Pixel art and tiny captures: whole picture, sharp pixels. */
img.pixel {
  image-rendering: pixelated;
}

.shot img.pixel {
  object-fit: contain;
  background: #000;
}

/* Key art, logos and videos as cards with a download bar */
.media-grid,
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.media-card,
.video-card {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}

.media-frame {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 16px;
  background: var(--surface-2);
}

.media-frame.light,
.extra-image.light {
  background: #ffffff;
}

.media-frame img {
  max-height: 260px;
  width: auto;
}

.media-card figcaption,
.video-card figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
}

.media-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.9em;
}

.video-card video {
  width: 100%;
  background: #000;
}

.video-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
}

.video-link:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.video-link .play {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
}

.video-link small {
  display: block;
  color: var(--muted);
}

.extra-image {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface-2);
}

/* Games on the studio kit */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.game-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
}

.game-card:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.game-art {
  display: block;
  aspect-ratio: 460 / 215;
  background: var(--surface-2);
}

.game-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
}

.game-text span {
  color: var(--muted);
  font-size: 0.92em;
}

.game-text small {
  color: var(--accent);
  font-weight: 600;
}

/* Cards: awards, quotes, coverage, contact */
.cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.card {
  margin: 0 0 12px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cards .card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cards .card span {
  color: var(--muted);
}

blockquote.card p {
  margin: 0 0 8px;
  font-size: 1.1em;
}

blockquote.card cite {
  color: var(--muted);
  font-style: normal;
}

.coverage-title {
  font-weight: 600;
  font-size: 1.05em;
}

.outlet {
  font-weight: 600;
  color: var(--heading) !important;
}

.contact .email {
  margin-top: 0;
  font-size: 1.15em;
  font-weight: 600;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0;
}

/* Team */
.team {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 32px 16px;
  text-align: center;
}

.person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 160px;
  height: 160px;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface-2);
  font-size: 2.4em;
  font-weight: 800;
  color: var(--accent);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person strong a {
  color: var(--heading);
}

.role {
  color: var(--accent);
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kit-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 24px 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9em;
  text-align: center;
}

/* Narrow screens: fact sheet above the content */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 24px 16px;
  }

  .factsheet {
    position: static;
    max-height: none;
  }

  .hero-inner {
    padding: 40px 16px 24px;
  }

  .media-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .shot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .avatar {
    width: 120px;
    height: 120px;
  }
}
