@font-face {
  font-family: Figtree;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/figtree-medium.woff2") format("woff2");
}
@font-face {
  font-family: Figtree;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/figtree-bold.woff2") format("woff2");
}

:root {
  --bg: #121016;
  --bg-2: #1b171f;
  --ink: #f4efe8;
  --muted: #c6bfb6;
  --line: #2c2833;
  --accent: #ff4d6d;
  --accent-deep: #ff7a90;
  --card: #1c1822;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 8% -10%, #3a2436 0%, transparent 60%),
    radial-gradient(800px 500px at 100% 0%, #1c2a3a 0%, transparent 55%),
    radial-gradient(900px 600px at 80% 120%, #2a1e18 0%, transparent 50%),
    var(--bg);
  font: 500 16px/1.5 Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}
.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { top: 12px; }

.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; position: relative; z-index: 2; }

header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 48px 0 36px;
}
@media (min-width: 900px) {
  header { padding: 64px 0 44px; }
  .tagline { max-width: none; }
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
}
.logo img, .logo svg.mark {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  flex: none;
}
.wordmark {
  font-family: Figtree, system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 5.6vw, 52px);
  letter-spacing: -0.045em;
  line-height: 1;
}
.tagline {
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 500;
  max-width: 40rem;
  letter-spacing: -0.01em;
}

h1.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.grid {
  list-style: none;
  margin: 0;
  padding: 0 0 64px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

.card {
  margin: 0;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #ffffff0f;
  box-shadow: 0 18px 40px #00000055;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-hit {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.card-hit:focus { outline: none; }
.card-hit:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-5px);
    border-color: #ffffff22;
    box-shadow: 0 24px 50px #00000070;
  }
  .card:hover .cover img { transform: scale(1.04); }
  .card:hover .play { background: var(--accent); color: #fff; }
}
.cover {
  aspect-ratio: 800 / 470;
  background: #2a2430;
  overflow: hidden;
}
.cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.meta {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "genre play"
    "title play"
    "pitch pitch";
  gap: 4px 16px;
  align-items: center;
  padding: 16px 18px 18px;
}
.genre {
  grid-area: genre;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  padding: 0;
  border-radius: 0;
}
.meta h2 {
  grid-area: title;
  margin: 0;
  font-family: Figtree, system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 26px);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.meta p {
  grid-area: pitch;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}
.play {
  grid-area: play;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-height: 40px;
  min-width: 76px;
  padding: 0 16px;
  margin: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  box-shadow: none;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 14px;
  position: relative;
  z-index: 2;
}
footer .wrap { display: flex; flex-direction: column; gap: 12px; }
footer p { margin: 0; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--accent-deep); text-decoration: none; }
footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
footer a:focus { outline: none; }
footer a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.draft-tag { font-size: 12px; opacity: .75; }

@media (prefers-reduced-motion: reduce) {
  .card, .play, .cover img { transition: none; }
}
