:root {
  color-scheme: dark;
  --bg: #101412;
  --panel: #171d1a;
  --panel-2: #1d2420;
  --text: #f3f6ef;
  --muted: #b8c2b2;
  --line: #303a34;
  --accent: #62c49d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 .25rem;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.sponsor {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

main {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
}

.card {
  display: grid;
  gap: .55rem;
  min-width: 0;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-decoration: none;
}

.card:focus-visible,
.card:hover,
.sponsor:focus-visible,
.sponsor:hover {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
  background: #0b0e0c;
}

.card span {
  font-size: 1.1rem;
  font-weight: 850;
}

.card small,
footer {
  color: var(--muted);
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 3vw, 2rem) 2rem;
  border-top: 1px solid var(--line);
}

footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .sponsor {
    width: 100%;
  }
}
