/* Trance Playlist — design tokens
   Grounded in the Voices of EDM cover art: a near-black frame, a cold
   cyan energy-glow, a warm ember rim-light. Spotify green is reserved
   for the one place it's functionally honest: the Follow button. */

:root {
  --bg: #0a0c0f;
  --bg-raised: #12151a;
  --bg-raised-2: #171b21;
  --cyan: #0ecfdf; /* verified brand cyan, matches sveadynamics.com's real logo-sampled value */
  --cyan-dim: #2b7a85;
  --ember: #e8543d;
  --ember-dim: #8a3226;
  --ink: #edeef0;
  --ink-dim: #9ba3ae;
  --ink-faint: #5b6270;
  --spotify-green: #1ed760;
  --border: rgba(237, 238, 240, 0.08);
  --border-strong: rgba(237, 238, 240, 0.16);

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius: 14px;
  --max-w: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ambient glow, purely atmospheric — sits behind content, never in it */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 640px 420px at 15% -5%, rgba(77, 217, 232, 0.14), transparent 60%),
    radial-gradient(ellipse 560px 380px at 90% 10%, rgba(232, 84, 61, 0.10), transparent 60%);
}

main, header, footer { position: relative; z-index: 1; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; color: var(--ink); }
p.lede { color: var(--ink-dim); font-size: 1.1rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  display: block;
  margin-bottom: 0.9em;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

header.site {
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.wordmark span { color: var(--cyan); }

nav.site a {
  color: var(--ink-dim);
  font-size: 0.92rem;
  margin-left: 22px;
}
nav.site a:hover { color: var(--ink); text-decoration: none; }

section { padding: 56px 0; }
section.hero { padding-top: 40px; padding-bottom: 40px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { border-color: var(--cyan); text-decoration: none; transform: translateY(-1px); }

.btn-spotify {
  background: var(--spotify-green);
  border-color: var(--spotify-green);
  color: #051209;
}
.btn-spotify:hover { border-color: var(--spotify-green); filter: brightness(1.08); }

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--ember));
  border: none;
  color: #05080a;
  font-weight: 700;
}
.btn-primary:hover { filter: brightness(1.1); }

.embed-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  margin: 28px 0;
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 640px) {
  .two-col { grid-template-columns: 1fr; }
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* signature element: a pulse divider, styled like a level meter.
   Content-honest — this is a music site, the divider looks like sound. */
.pulse {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 28px;
  margin: 48px 0;
  opacity: 0.85;
}
.pulse span {
  flex: 1;
  max-width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--ember));
  animation: pulse-bar 1.8s ease-in-out infinite;
}
.pulse span:nth-child(1) { height: 30%; animation-delay: -1.4s; }
.pulse span:nth-child(2) { height: 70%; animation-delay: -0.8s; }
.pulse span:nth-child(3) { height: 45%; animation-delay: -1.1s; }
.pulse span:nth-child(4) { height: 90%; animation-delay: -0.2s; }
.pulse span:nth-child(5) { height: 55%; animation-delay: -1.7s; }
.pulse span:nth-child(6) { height: 80%; animation-delay: -0.5s; }
.pulse span:nth-child(7) { height: 35%; animation-delay: -1s; }
.pulse span:nth-child(8) { height: 65%; animation-delay: -1.6s; }
.pulse span:nth-child(9) { height: 40%; animation-delay: -0.3s; }
.pulse span:nth-child(10) { height: 75%; animation-delay: -0.9s; }

@keyframes pulse-bar {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .pulse span { animation: none; }
  html { scroll-behavior: auto; }
}

form.subscribe {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
form.subscribe input[type="email"] {
  flex: 1;
  min-width: 220px;
  background: var(--bg-raised-2);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 16px;
  border-radius: 999px;
}
form.subscribe input[type="email"]:focus { border-color: var(--cyan); outline: none; }
.form-note { font-size: 0.82rem; color: var(--ink-faint); margin-top: 10px; }
.form-status { font-size: 0.9rem; margin-top: 10px; min-height: 1.2em; }
.form-status[data-state="ok"] { color: var(--cyan); }
.form-status[data-state="error"] { color: var(--ember); }

ol.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
ol.steps li {
  counter-increment: step;
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
ol.steps li:first-child { border-top: none; }
ol.steps li::before {
  content: counter(step);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--bg);
  background: var(--cyan);
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

footer.site {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 32px 24px 48px;
}
footer.site .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
footer.site a { color: var(--ink-dim); margin-right: 18px; }
footer.site a:last-child { margin-right: 0; }
