/* ===== Electromuse — modern dark / glass / gradient design ===== */

:root {
  --bg: #07070e;
  --bg-2: #0b0b16;
  --card: rgba(255, 255, 255, 0.045);
  --card-hover: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f4f8;
  --dim: #a0a3b8;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #22d3ee 100%);
  --radius: 20px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .display { font-family: "Space Grotesk", "Inter", sans-serif; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* gradient text helper */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ----- ambient background blobs ----- */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}
.blob-1 { width: 560px; height: 560px; background: var(--violet); top: -180px; left: -160px; animation: drift1 18s ease-in-out infinite alternate; }
.blob-2 { width: 520px; height: 520px; background: var(--cyan); top: 30vh; right: -200px; animation: drift2 22s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(80px, 60px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-70px, -50px) scale(1.1); } }

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

/* ----- nav ----- */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(1100px, calc(100% - 28px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 18px;
  background: rgba(11, 11, 22, 0.6);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.nav-mark { height: 24px; width: auto; }
.nav-name { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1rem; letter-spacing: 0.04em; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--dim);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }

.nav-cta {
  display: inline-block;
  background: var(--grad);
  color: #fff;
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 20px;
  border-radius: 999px;
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.4);
  transition: transform 0.15s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 32px rgba(34, 211, 238, 0.45); }

/* ----- hero ----- */
.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 130px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 65% 55% at 50% 42%, black 25%, transparent 72%);
  opacity: 0.5;
  pointer-events: none;
}

.hero-content { position: relative; max-width: 860px; }

.hero-logo {
  display: block;
  margin: 0 auto;
  width: clamp(150px, 22vw, 220px);
  filter: drop-shadow(0 0 40px rgba(139, 92, 246, 0.5));
}

.hero-eyebrow {
  display: inline-block;
  margin-top: 30px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--line);
  background: var(--card);
  padding: 7px 18px;
  border-radius: 999px;
}

.hero-title {
  font-size: clamp(2.6rem, 9.5vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin-top: 22px;
}

.hero-tagline {
  color: var(--dim);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  max-width: 560px;
  margin: 18px auto 0;
}

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }

/* ----- buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-icon { width: 21px; height: 21px; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.45);
}
.btn-primary:hover { box-shadow: 0 10px 44px rgba(34, 211, 238, 0.5); }

.btn-ghost {
  background: var(--card);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { background: var(--card-hover); border-color: rgba(255, 255, 255, 0.2); }

/* ----- sections ----- */
.section { padding: 110px 0; scroll-margin-top: 90px; }

.section-head { margin-bottom: 44px; }
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
}
.section-title {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 8px;
}
.section-sub { color: var(--dim); margin-top: 10px; max-width: 560px; }

/* ----- cards / music grid ----- */
.glass {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.music-grid { display: grid; gap: 20px; }

.player-card {
  padding: 14px;
  transition: border-color 0.25s, background 0.25s;
}
.player-card:hover { border-color: rgba(255, 255, 255, 0.18); background: var(--card-hover); }
.player-card iframe { display: block; border: 0; border-radius: var(--radius-sm); width: 100%; }

.player-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--dim);
  padding: 4px 6px 12px;
}
.player-label svg { width: 17px; height: 17px; }

.tracks-heading {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 44px 0 18px;
}

#spotify-tracks .player-card, #new-singles .player-card { margin-top: 16px; }

/* ----- journal ----- */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, border-color 0.25s, background 0.25s;
}
.post-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.2); background: var(--card-hover); }

.post-cover {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  display: block;
  background: var(--bg-2);
}
.post-cover.placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(139, 92, 246, 0.35), transparent 60%),
    radial-gradient(ellipse at 75% 80%, rgba(34, 211, 238, 0.3), transparent 60%),
    var(--bg-2);
}
.post-cover.placeholder img { width: 56px; opacity: 0.85; }

.post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: 0.78rem; color: var(--dim); }
.post-tag {
  background: rgba(139, 92, 246, 0.16);
  color: #c4b5fd;
  border-radius: 999px;
  padding: 2px 11px;
  font-weight: 600;
}
.post-title { font-size: 1.18rem; font-weight: 700; line-height: 1.35; }
.post-excerpt { color: var(--dim); font-size: 0.92rem; flex: 1; }
.post-readmore { font-weight: 600; font-size: 0.88rem; color: var(--cyan); }

.journal-empty { color: var(--dim); }

/* ----- single post page ----- */
.post-page { max-width: 760px; margin: 0 auto; padding: 150px 24px 90px; }
.post-page .back-link { color: var(--dim); text-decoration: none; font-size: 0.9rem; }
.post-page .back-link:hover { color: var(--text); }
.post-hero-cover { width: 100%; border-radius: var(--radius); margin-top: 26px; aspect-ratio: 16/9; object-fit: cover; }
.post-page h1 { font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.15; letter-spacing: -0.01em; margin-top: 26px; }
.post-page .post-meta { margin-top: 16px; }
.post-content { margin-top: 34px; color: #cfd2e0; font-size: 1.05rem; }
.post-content p { margin-bottom: 20px; }
.post-content h2 { font-size: 1.5rem; margin: 38px 0 14px; color: var(--text); }
.post-content h3 { font-size: 1.2rem; margin: 30px 0 12px; color: var(--text); }
.post-content img { max-width: 100%; border-radius: var(--radius-sm); margin: 10px 0 20px; display: block; }
.post-missing { text-align: center; color: var(--dim); padding: 60px 0; }

/* ----- about ----- */
.about-panel {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px;
}
.about-mark { width: 100%; filter: drop-shadow(0 0 30px rgba(34, 211, 238, 0.35)); }
.about-text { color: var(--dim); font-size: 1.05rem; }
.about-text p + p { margin-top: 14px; }

/* ----- footer ----- */
.footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 90px 0 56px;
  text-align: center;
  scroll-margin-top: 90px;
}
.footer-title { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 700; }
.footer-mail {
  display: inline-block;
  margin-top: 14px;
  color: var(--cyan);
  text-decoration: none;
  font-size: 1.05rem;
}
.footer-mail:hover { text-shadow: 0 0 22px rgba(34, 211, 238, 0.7); }

.socials { display: flex; justify-content: center; gap: 14px; margin-top: 34px; }
.socials a {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--dim);
  transition: color 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.socials a:hover {
  color: var(--text);
  border-color: var(--violet);
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.4);
}
.socials svg { width: 21px; height: 21px; }

.footer-note { margin-top: 44px; color: var(--dim); font-size: 0.8rem; }

/* ----- responsive ----- */
@media (min-width: 760px) {
  .music-grid { grid-template-columns: 3fr 2fr; align-items: start; }
}

@media (max-width: 700px) {
  .nav-links a:not(.nav-cta) { padding: 8px 9px; font-size: 0.8rem; }
  .nav-name { display: none; }
  .about-panel { grid-template-columns: 1fr; gap: 26px; padding: 30px; text-align: center; }
  .about-mark { width: 130px; margin: 0 auto; }
  .section { padding: 80px 0; }
}

@media (max-width: 480px) {
  .nav-extra { display: none; }
  .nav-cta { padding: 8px 14px; font-size: 0.8rem; }
  .nav-links a:not(.nav-cta) { padding: 8px 7px; }
}

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