@font-face {
  font-family: Condensed;
  src: url("fonts/barlow-condensed-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: Condensed;
  src: url("fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url("fonts/barlow-500.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: Mono;
  src: url("fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #0e1012;
  --surface: #16191b;
  --surface-2: #1d2124;
  --line: #2b3033;
  --text: #f1f0ec;
  --muted: #a1a3a2;
  --gold: #f2bc56;
  --gold-hover: #ffcd6e;
  --on-gold: #15130e;
  --display: Condensed, "Arial Narrow", sans-serif;
  --body: Barlow, system-ui, sans-serif;
  --mono: Mono, ui-monospace, monospace;
  --radius: 10px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

code {
  font: 0.88em var(--mono);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.05em 0.35em;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Top bar */
.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--gutter);
  background: rgb(14 16 18 / 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 800 21px/1 var(--display);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand b {
  color: var(--gold);
}

.bar nav {
  display: flex;
  gap: 4px;
}

.bar nav a {
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font: 700 16px/1 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bar nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

/* Featured */
.hero {
  position: relative;
  max-width: var(--max);
  margin: 28px auto 0;
  margin-inline: max(var(--gutter), calc((100% - var(--max)) / 2));
  min-height: clamp(320px, 42vw, 460px);
  display: flex;
  align-items: flex-end;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(14 16 18 / 0.92) 0%, rgb(14 16 18 / 0.55) 48%, rgb(14 16 18 / 0) 80%),
    linear-gradient(0deg, rgb(14 16 18 / 0.75) 0%, rgb(14 16 18 / 0) 55%);
}

.hero-body {
  position: relative;
  z-index: 1;
  max-width: 560px;
  padding: clamp(22px, 4vw, 44px);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--gold);
  font: 400 13px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font: 800 clamp(44px, 7vw, 76px) / 0.92 var(--display);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.hero .desc {
  margin: 12px 0 18px;
  color: #d6d5d1;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--on-gold);
  text-decoration: none;
  font: 800 19px/1 var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.play:hover {
  background: var(--gold-hover);
}

.play svg {
  width: 14px;
  height: 14px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px var(--gutter) 0;
}

.section h2 {
  margin: 0;
  font: 800 32px/1.05 var(--display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: 20px;
}

.count {
  color: var(--muted);
  font: 400 15px var(--mono);
  vertical-align: middle;
}

#search {
  flex: 0 1 320px;
  min-width: 0;
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}

#search::placeholder {
  color: #7d807f;
}

.status {
  margin: 0 0 16px;
  color: var(--muted);
}

.status:empty {
  display: none;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.thumb {
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
  padding: 14px 16px 16px;
}

.card h3 {
  margin: 0;
  font: 800 24px/1 var(--display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.by {
  margin: 0;
  color: var(--gold);
  font: 400 12.5px/1.3 var(--mono);
}

.card .desc {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: auto 0 0;
  padding: 8px 0 0;
  list-style: none;
}

.tags li {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: #c9c8c4;
  font-size: 12.5px;
  line-height: 1.3;
}

.card.empty {
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 220px;
  padding: 24px;
  border-style: dashed;
  background: transparent;
  text-align: center;
  color: var(--muted);
}

.card.empty b {
  color: var(--text);
  font: 800 24px/1 var(--display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.card.empty .plus {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 6px;
  border-radius: 50%;
  border: 1px dashed var(--gold);
  color: var(--gold);
  font: 800 26px/1 var(--display);
}

/* Submit */
.submit {
  padding-top: 64px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 15px;
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font: 400 13px var(--mono);
}

.steps b {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 16px;
}

.fine {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: var(--max);
  margin: 64px auto 0;
  padding: 24px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.foot span:first-child {
  color: var(--text);
  font: 700 16px var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 560px) {
  .brand span {
    font-size: 17px;
  }
  .bar nav a:first-child {
    display: none;
  }
  .hero::after {
    background: linear-gradient(0deg, rgb(14 16 18 / 0.95) 10%, rgb(14 16 18 / 0.2) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .card {
    transition: none;
  }
  .card:hover {
    transform: none;
  }
}
