/* =========================================================
   The Drift3r — styles
   Colours come from the artwork: near-black, gold, silver.
   Change a colour here once and it changes everywhere.
   ========================================================= */
:root {
  --bg: #050403;          /* page background (warm black) */
  --bg-raised: #0e0b07;   /* cards */
  --line: #2a2214;        /* thin borders */
  --gold: #d4a64a;        /* main accent */
  --gold-bright: #f3cf7a; /* glow / hover */
  --silver: #dcdde3;      /* headings */
  --text: #c9c6bf;        /* body text */
  --muted: #8d877b;       /* small print */
  --serif: "Didot", "Bodoni 72", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-bright); }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #000; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px;
  background: rgba(5, 4, 3, 0.82);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(212, 166, 74, 0.12);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--silver); text-decoration: none; font-family: var(--serif); font-size: 1.1rem; letter-spacing: 0.02em; }
.brand img { border-radius: 6px; }
.topbar nav { display: flex; gap: 18px; }
.topbar nav a { color: var(--text); text-decoration: none; font-size: 0.92rem; letter-spacing: 0.04em; }
.topbar nav a:hover { color: var(--gold-bright); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 8px 16px 56px; }
.hero-img {
  width: min(100%, 680px); margin: 0 auto;
  /* soften the square edges into the page */
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 62%, transparent 74%);
          mask-image: radial-gradient(circle at 50% 50%, #000 62%, transparent 74%);
}
.hero-line { margin: 4px 0 22px; color: var(--silver); font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0.04em; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.03em; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-gold { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #120d04; }
.btn-gold:hover { color: #120d04; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(212, 166, 74, 0.35); }
.btn-ghost { border: 1px solid rgba(212, 166, 74, 0.5); color: var(--gold); }
.btn-ghost:hover { background: rgba(212, 166, 74, 0.08); }

/* ---------- Shared headings ---------- */
.eyebrow { margin: 0 0 14px; color: var(--gold); font: 600 0.8rem/1 var(--sans); letter-spacing: 0.28em; text-transform: uppercase; }
.section-title { margin: 0 0 24px; color: var(--silver); font: 400 clamp(2rem, 6vw, 3rem)/1.1 var(--serif); letter-spacing: 0.01em; }
.big-quote { margin: 0 0 18px; color: var(--silver); font: 400 clamp(1.4rem, 3.8vw, 2.1rem)/1.35 var(--serif); }
.big-quote p { margin: 0; }
.lead { max-width: 62ch; font-size: 1.08rem; }
.muted { color: var(--muted); }

section { scroll-margin-top: 64px; }
.sound, .message { padding: 56px 16px; max-width: 820px; }

/* ---------- Listen ---------- */
.listen { padding-bottom: 64px; }
.note-banner {
  height: clamp(180px, 34vw, 420px);
  background: url("/images/banner-note.webp") center / contain no-repeat, var(--bg);
  /* fade top and bottom edges into the page so the cut-off notes disappear */
  /* fade all four edges into the page: top/bottom hide the cut-off notes,
     left/right hide the line where the banner's brown-black meets the page black */
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0, #000 18%, #000 80%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0, #000 18%, #000 80%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect;
  max-width: 1400px; margin: 0 auto 8px;
}
.players { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .players { grid-template-columns: 1fr 1fr; } }

.player {
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
}
.player h3 { margin: 0; color: var(--silver); font: 400 1.6rem/1.2 var(--serif); }
.player-sub { margin: 0; color: var(--muted); font-size: 0.95rem; }
.out { font-size: 0.9rem; align-self: flex-start; }

.embed {
  position: relative; border-radius: 12px; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(212, 166, 74, 0.28), transparent 60%),
    linear-gradient(180deg, #120e08, #050403);
  border: 1px solid rgba(212, 166, 74, 0.2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 16px;
}
.embed-video { aspect-ratio: 16 / 9; }
.embed-audio { min-height: 300px; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed.is-loaded { padding: 0; }
.play {
  display: inline-flex; align-items: center; gap: 12px;
  background: none; border: 0; cursor: pointer;
  color: var(--silver); font: 600 1rem var(--sans); letter-spacing: 0.03em;
}
.play-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  box-shadow: 0 0 0 6px rgba(212, 166, 74, 0.15), 0 0 40px rgba(212, 166, 74, 0.35);
  position: relative; flex: none; transition: transform 0.15s ease;
}
.play-icon::after {
  content: ""; position: absolute; left: 26px; top: 20px;
  border-left: 18px solid #120d04; border-top: 12px solid transparent; border-bottom: 12px solid transparent;
}
.play:hover .play-icon { transform: scale(1.06); }
.embed-note { margin: 0; color: var(--muted); font-size: 0.8rem; text-align: center; }

/* Album covers behind the play buttons.
   Only a round play button sits on the art, in a quiet corner,
   so the artwork stays clean. The small note sits under the cover. */
.embed.has-cover {
  aspect-ratio: 16 / 9; min-height: 0; padding: 14px;
  background-size: cover; background-position: center;
}
.embed.cover-rise-up {
  /* sky and title on top, mountains bottom-left: button bottom-left */
  background-image: url("/images/cover-rise-up.webp");
  justify-content: flex-end; align-items: flex-start;
}
.embed.cover-glassline {
  /* lettering at the bottom, empty black top-left: button top-left */
  background-image: url("/images/cover-glassline.webp");
  justify-content: flex-start; align-items: flex-start;
}
.has-cover .play-icon { width: 54px; height: 54px; box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.35), 0 0 30px rgba(212, 166, 74, 0.45); }
.has-cover .play-icon::after { left: 22px; top: 17px; border-left-width: 15px; border-top-width: 10px; border-bottom-width: 10px; }
.player > .embed-note { text-align: left; margin-top: -2px; }
/* once SoundCloud loads, give its playlist room */
.embed-audio.is-loaded { aspect-ratio: auto; height: 450px; }

/* ---------- Releases ---------- */
.releases { padding: 24px 16px 64px; }
.release-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.release-list li { background: var(--bg); padding: 18px 20px; }
.release-list h3 { margin: 0; color: var(--silver); font: 400 1.3rem/1.3 var(--serif); }
.release-list p { margin: 4px 0 0; color: var(--muted); font-size: 0.95rem; }
.tracks-title { margin: 0 0 12px; color: var(--gold); font: 600 0.8rem/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 0.9rem; }

/* ---------- DriftMix ---------- */
.driftmix {
  padding: 96px 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(5, 4, 3, 0.55) 30%, rgba(5, 4, 3, 0.55) 70%, var(--bg) 100%),
    url("/images/waves.webp") center / cover no-repeat;
  border-top: 1px solid rgba(212, 166, 74, 0.1);
  border-bottom: 1px solid rgba(212, 166, 74, 0.1);
}

/* ---------- Message ---------- */
.message blockquote { margin: 0 0 18px; padding-left: 18px; border-left: 2px solid var(--gold); }
.motto { margin: 0; color: var(--gold); font-style: italic; letter-spacing: 0.03em; }

/* ---------- Follow ---------- */
.follow { padding: 24px 16px 72px; }
.follow-links { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .follow-links { grid-template-columns: repeat(3, 1fr); } }
.follow-links a {
  display: flex; flex-direction: column; gap: 2px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: 14px; text-decoration: none;
  background: var(--bg-raised); transition: border-color 0.15s ease, transform 0.15s ease;
}
.follow-links a:hover { border-color: var(--gold); transform: translateY(-2px); }
.follow-links span { color: var(--silver); font: 400 1.3rem var(--serif); }
.follow-links small { color: var(--muted); font-size: 0.88rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--muted); font-size: 0.82rem; }
.footer p { margin: 0 0 8px; }
.footer .rights { color: var(--text); font-size: 0.86rem; }
.footer .rights a { color: var(--gold); }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--gold); }
mark.todo { background: #ffde59; color: #000; padding: 0 4px; }

/* ---------- Privacy page ---------- */
.doc { max-width: 720px; padding: 48px 16px 72px; }
.doc h1 { color: var(--silver); font: 400 clamp(2rem, 6vw, 2.8rem)/1.15 var(--serif); margin: 0 0 8px; }
.doc h2 { color: var(--silver); font: 400 1.4rem/1.3 var(--serif); margin: 36px 0 8px; }
.doc li { margin-bottom: 6px; }
.notfound { text-align: center; padding-top: 96px; margin: 0 auto; }

/* Respect people who turn off animation in their settings */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media (max-width: 420px) {
  .topbar nav { gap: 12px; }
  .brand span { display: none; }
}
