:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e9e9e9;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --shadow: 0 8px 22px -14px rgba(0, 0, 0, 0.25);
  font-family: Geist, system-ui, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c0f;
    --ink: #f4f4f5;
    --gray-50: #18181b;
    --gray-100: #1e1e22;
    --gray-200: #2a2a30;
    --gray-300: #3a3a42;
    --gray-400: #8a8a92;
    --gray-500: #a0a0a8;
    --shadow: 0 8px 22px -14px rgba(0, 0, 0, 0);
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  transition: background-color 500ms ease, color 500ms ease;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 25%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 200ms ease, text-decoration-color 200ms ease, transform 200ms ease;
}

a:hover {
  text-decoration-color: currentColor;
}

.page {
  width: min(100%, 56rem);
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 2rem);
}

header {
  display: grid;
  gap: 0.85rem;
  border-bottom: 1px solid var(--gray-200);
  padding: clamp(4.5rem, 16vw, 8rem) 0 2rem;
}

h1,
h2,
p {
  margin: 0;
}

h1,
h2 {
  font-size: inherit;
  font-weight: 400;
}

.deck {
  max-width: 34rem;
  color: var(--gray-500);
  font-size: clamp(1.05rem, 2.8vw, 1.45rem);
  line-height: 1.45;
}

main {
  display: grid;
  gap: 3.25rem;
  padding: 2rem 0 3.5rem;
}

section {
  display: grid;
  gap: 1rem;
}

.section-label {
  color: var(--gray-400);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--gray-200);
  border-left: 1px solid var(--gray-200);
  padding: 0;
  margin: 0;
  list-style: none;
}

.link-grid a {
  min-height: 4.25rem;
  display: flex;
  align-items: end;
  border-right: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 0.8rem;
  color: var(--ink);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  line-height: 1.25;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.link-grid a::after {
  content: "↗";
  margin-left: 0.35rem;
  color: var(--gray-400);
  transition: transform 200ms ease;
}

.link-grid a:hover::after {
  transform: translate(2px, -2px);
}

.media-grid {
  display: grid;
  gap: 1rem;
}

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

.player {
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  background: var(--gray-50);
  box-shadow: var(--shadow);
}

.player iframe {
  display: block;
  width: 100%;
  border: 0;
}

.spotify-player {
  background: #121212;
  line-height: 0;
}

.spotify-player iframe {
  height: 152px;
}

.youtube-player {
  aspect-ratio: 16 / 9;
}

.youtube-player iframe {
  height: 100%;
}

footer {
  border-top: 1px solid var(--gray-200);
  padding: 1.5rem 0;
  color: var(--gray-400);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.enter {
  animation: enter 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.enter:nth-child(2) {
  animation-delay: 70ms;
}

.enter:nth-child(3) {
  animation-delay: 140ms;
}

.enter:nth-child(4) {
  animation-delay: 210ms;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 760px) {
  .link-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .media-grid {
    grid-template-columns: 1fr 1.35fr;
    align-items: start;
  }
}

@media (max-width: 520px) {
  .link-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
