/* ============================================================
   That Kid 104! — smart link landing page
   Base identity matches thatkid104official.ca (dark, bold, red).
   Each song sets its own --accent (see songs.js) for the one
   flash of color that's specific to that release.
   ============================================================ */

@font-face {
  font-family: 'Cactus Jack';
  src: url('../fonts/Cactus-Jack.ttf') format('truetype');
  font-display: swap;
}

:root {
  --bg: #0A0A0A;
  --paper: #f3ede0;
  --muted: #8d8a80;
  --red: #E02020;
  --yellow: #FFD94A;
  --line: rgba(243, 237, 224, 0.14);
  --accent: #E02020; /* overridden per-song by JS */
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--paper);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* subtle grain so the near-black field isn't flat */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  width: 100%;
  max-width: 440px;
  padding: 32px 24px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* ---------- top wordmark ---------- */
.wordmark {
  font-family: 'Cactus Jack', 'Bebas Neue', 'DM Sans', sans-serif;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--paper);
  text-decoration: none;
  opacity: 0.75;
  margin-bottom: 28px;
  transition: opacity 0.2s ease;
}

.wordmark span {
  color: var(--red);
}

.wordmark:hover {
  opacity: 1;
}

/* ---------- cover art ---------- */
.cover-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  padding: 10px;
  margin-bottom: 28px;
}

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

/* ---------- title block ---------- */
.title-block {
  text-align: center;
  margin-bottom: 34px;
}

.song-title {
  font-family: 'Cactus Jack', 'Bebas Neue', 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: clamp(30px, 8vw, 42px);
  line-height: 1.05;
  margin: 0 0 8px;
  letter-spacing: 0.01em;
}

.song-credit {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

.song-credit strong {
  color: var(--paper);
  font-weight: 500;
}

/* ---------- music video ---------- */
.video-section {
  width: 100%;
  margin-bottom: 34px;
}

.video-section h2 {
  font-family: 'Cactus Jack', 'Bebas Neue', 'DM Sans', sans-serif;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: #000;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- platform links ---------- */
.platforms {
  width: 100%;
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  border-top: 1px solid var(--line);
}

.platforms li {
  border-bottom: 1px solid var(--line);
}

.platforms a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 6px;
  color: var(--paper);
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.platforms a .icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--muted);
  transition: color 0.15s ease;
}

.platforms a:hover {
  color: var(--accent);
  padding-left: 12px;
}

.platforms a:hover .icon {
  color: var(--accent);
}

.platforms a .arrow {
  margin-left: auto;
  width: 14px;
  height: 14px;
  color: var(--muted);
  transition: transform 0.15s ease, color 0.15s ease;
}

.platforms a:hover .arrow {
  transform: translateX(3px);
  color: var(--accent);
}

/* ---------- footer / socials (mirrors main site) ---------- */
.socials {
  display: flex;
  gap: 22px;
  margin-bottom: 20px;
}

.socials a {
  color: var(--muted);
  transition: color 0.15s ease;
}

.socials a:hover {
  color: var(--paper);
}

.socials svg {
  width: 19px;
  height: 19px;
}

.more-link {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.more-link:hover {
  color: var(--paper);
  border-bottom-color: var(--muted);
}

.copyright {
  margin-top: 24px;
  font-size: 11px;
  color: var(--muted);
  opacity: 0.6;
}

/* ---------- focus states (keyboard accessibility) ---------- */
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
