/* indiegames.lol — Mobbin-style showcase */
:root {
  --bg: #f4f2ee;
  --ink: #111111;
  --muted: #6b6862;
  --line: #e4e0d8;
  --chip: #111111;
  --focus: #111111;
  --max: 72rem;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 0.15em; }
a:hover { opacity: 0.6; }
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 100;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 242, 238, 0.92);
  backdrop-filter: blur(12px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0 1.25rem;
  transition: padding 0.22s ease;
}
.logo {
  color: var(--ink);
  text-decoration: none;
  flex: 0 1 auto;
  max-width: 280px;
  overflow: visible;
}
.logo img {
  height: 86px;
  width: auto;
  max-width: 280px;
  display: block;
  object-fit: contain;
  object-position: left center;
  transition: height 0.22s ease;
}
.site-header.is-compact .nav { padding: 0.45rem 0; }
.site-header.is-compact .logo img { height: 36px; }
@media (prefers-reduced-motion: reduce) {
  .nav, .logo img { transition: none; }
}
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a:hover { opacity: 0.5; }

.hero { padding: 3.25rem 0 0.5rem; }
.hero h1 {
  margin: 0 0 1.75rem;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.15;
  max-width: 18ch;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.chip {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 550;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}
.chip:hover { background: #e8e4dc; }
.chip.is-active {
  background: var(--chip);
  color: #fff;
}

.section { padding: 2.25rem 0 4rem; }
.grid {
  display: grid;
  gap: 2rem 1.25rem;
}
@media (min-width: 640px) {
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1040px) {
  .grid { grid-template-columns: 1fr 1fr 1fr; }
}

.card { min-width: 0; }
.card[hidden] { display: none; }
.media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ddd9d1;
  margin-bottom: 0.75rem;
}
.pill-new {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 1;
  background: #111;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  pointer-events: none;
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body h3 {
  margin: 0 0 0.2rem;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.pitch {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.creator {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
}
.creator a { color: inherit; }
.stat, .extra {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.78rem;
}
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.45rem;
  font-size: 0.8rem;
  font-weight: 550;
}
.links a { text-decoration: underline; }

.also-ran {
  margin: 2rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-kicker {
  margin: 0 0 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.prose { max-width: 38rem; }
.prose h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
  line-height: 1.15;
}
.prose p { color: #3c3a36; }
.prose h2 {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.45rem;
}

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}
.site-footer p { margin: 0 0 0.5rem; }
.fine { font-size: 0.75rem; }
.drop { margin-top: 1.25rem; max-width: 24rem; }
.drop label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.drop-row { display: flex; gap: 0.4rem; }
.drop input {
  flex: 1;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  padding: 0.5rem 0.65rem;
  font: inherit;
  font-size: 0.85rem;
  border-radius: 6px;
}
.drop button {
  border: 0;
  background: #ddd9d1;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0 0.85rem;
  border-radius: 6px;
  cursor: not-allowed;
}

@media (max-width: 639px) {
  .wrap { width: min(100% - 1.5rem, var(--max)); }
  .hero { padding-top: 2rem; }
}

.byline { margin: 0 0 0.75rem; font-size: 0.9rem; }
.byline a { text-decoration: none; font-weight: 600; }
.byline a:hover { text-decoration: underline; opacity: 1; }
