/* 2 Yellow Elephants — links page.
   Animations use only transform and opacity and stop for prefers-reduced-motion. */

/* Fonts are served from this site (Google Fonts, SIL Open Font License), latin only. */
@font-face { font-family: "Righteous"; font-weight: 400; font-display: swap; src: url("/fonts/righteous-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("/fonts/poppins-700.woff2") format("woff2"); }

:root {
  --bg: #000;
  --yellow: #f2d34b; /* taken from the logo */
  --ink: #fff8ec;
  --muted: rgba(255, 248, 236, 0.62);
  --line: rgba(242, 211, 75, 0.18);
  --card: rgba(255, 248, 236, 0.04);
  --radius: 999px;
  --font-display: "Righteous", ui-rounded, system-ui, sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font: 16px/1.5 var(--font-body);
  background: var(--bg);
  overflow-x: clip;
}

/* Faint yellow light drifting over the black background. */
.glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.glow::before,
.glow::after {
  content: "";
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(242, 211, 75, 0.09), transparent);
  will-change: transform;
}
.glow::before { top: -35vmax; left: -25vmax; animation: drift 26s ease-in-out infinite alternate; }
.glow::after {
  bottom: -40vmax; right: -30vmax;
  background: radial-gradient(closest-side, rgba(242, 211, 75, 0.05), transparent);
  animation: drift 32s ease-in-out infinite alternate-reverse;
}

/* Film grain: one static tile, no work per frame. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.sprite { position: absolute; width: 0; height: 0; }

main {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  margin: 0 auto;
  padding: clamp(40px, 9vh, 88px) 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Round logo: a slow light runs around it and a soft halo breathes behind. */
.badge {
  position: relative;
  width: min(62vw, 280px);
  aspect-ratio: 1;
}
.badge::before,
.badge::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.badge::before {
  inset: -18%;
  background: radial-gradient(closest-side, rgba(242, 211, 75, 0.22), transparent);
  animation: breathe 6s ease-in-out infinite;
}
.badge::after {
  inset: -6px;
  background: conic-gradient(from 0deg, transparent 0 55%, rgba(242, 211, 75, 0.9) 75%, transparent 95%);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  mask: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  animation: spin 9s linear infinite;
}
.logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
}

h1 {
  margin: 30px 0 6px;
  font-family: var(--font-display);
  font-size: clamp(34px, 9.5vw, 46px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: 0.01em;
}
h1 span { color: var(--yellow); }

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.links {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  width: 100%;
  display: grid;
  gap: 12px;
}

.link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 10px 18px 10px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  text-align: left;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.25s, color 0.25s, transform 0.25s;
}
/* Yellow fill slides in on hover: a transform, not a background change. */
.link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.link:hover,
.link:focus-visible {
  color: var(--bg);
  border-color: var(--yellow);
  transform: translateY(-2px);
}
.link:hover::before,
.link:focus-visible::before { transform: scaleX(1); }
.link:active { transform: translateY(0) scale(0.99); }
.link:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(242, 211, 75, 0.12);
  color: var(--yellow);
  transition: background-color 0.25s, color 0.25s;
}
.link:hover .icon,
.link:focus-visible .icon { background: var(--bg); color: var(--yellow); }
/* Line icons: <use> copies take paint from here, not from the sprite. */
.icon svg,
.mini svg,
.arrow { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon svg { width: 24px; height: 24px; }

.text { flex: 1; min-width: 0; }
.text b { display: block; font-size: 16px; font-weight: 700; line-height: 1.3; }
.text small { display: block; font-size: 13px; line-height: 1.4; opacity: 0.7; }

.arrow { flex: none; width: 20px; height: 20px; opacity: 0.55; transition: transform 0.25s, opacity 0.25s; }
.link:hover .arrow,
.link:focus-visible .arrow { opacity: 1; transform: translate(2px, -2px); }

/* "More music": one strip per artist with small round buttons. */
.more { width: 100%; margin-top: 44px; }
.more h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.more h2::before,
.more h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.strips { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 10px 10px 10px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  text-align: left;
}
.strip b { font-size: 16px; font-weight: 700; line-height: 1.3; }
.mini { display: flex; gap: 8px; flex: none; }
.mini a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(242, 211, 75, 0.12);
  color: var(--yellow);
  transition: background-color 0.25s, color 0.25s, transform 0.25s;
}
.mini a:hover,
.mini a:focus-visible { background: var(--yellow); color: var(--bg); transform: translateY(-2px); }
.mini a:active { transform: scale(0.95); }
.mini a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.mini svg { width: 22px; height: 22px; }

footer {
  margin-top: 40px;
  color: var(--muted);
  font-size: 13px;
}
footer a { color: inherit; }

/* Entrance: each item rises in turn (.d1 … .d8 set the order). */
.rise { animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.d1 { animation-delay: 70ms; }
.d2 { animation-delay: 140ms; }
.d3 { animation-delay: 210ms; }
.d4 { animation-delay: 280ms; }
.d5 { animation-delay: 350ms; }
.d6 { animation-delay: 420ms; }
.d7 { animation-delay: 490ms; }
.d8 { animation-delay: 560ms; }
.d9 { animation-delay: 630ms; }
.d10 { animation-delay: 700ms; }


@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes breathe { 50% { opacity: 0.55; transform: scale(0.94); } }
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes drift { to { transform: translate(18vmax, 14vmax) scale(1.15); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
