/* Maria X — artist site
   Palette: near-black charcoal + warm amber/coral accent + bone white text
   Type: "Fraunces" (display serif, headings) + "Inter" (body/UI) */

:root {
  --bg: #0e0d0c;
  --bg-raised: #171513;
  --bg-card: #1c1a17;
  --border: #2c2823;
  --text: #f2ece2;
  --text-dim: #b8ada0;
  --text-faint: #7a7168;
  --accent: #e8935a;
  --accent-2: #d64545;
  --accent-soft: rgba(232, 147, 90, 0.14);
  --focus: #f2ece2;
  --radius: 14px;
  --max-w: 1100px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #0e0d0c;
    --bg-raised: #171513;
    --bg-card: #1c1a17;
    --border: #2c2823;
    --text: #f2ece2;
    --text-dim: #b8ada0;
    --text-faint: #7a7168;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  position: relative;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Site-wide flame background — dimmed with a dark overlay so it reads as
   texture, not a focal image, and never fights body-text contrast. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(180deg, rgba(14, 13, 12, 0.92) 0%, rgba(14, 13, 12, 0.8) 35%, rgba(14, 13, 12, 0.94) 100%),
    url("/images/bg-flame.webp");
  background-size: cover;
  background-position: center 10%;
  background-repeat: no-repeat;
  pointer-events: none;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 500; }
h1 .h1-sub {
  display: block;
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0;
  margin-top: 8px;
}
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--text-dim); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

img { max-width: 100%; display: block; }

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

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #14110d;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 13, 12, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.brand {
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
  color: var(--text);
  letter-spacing: 0.02em;
}
.brand:hover { text-decoration: none; color: var(--accent); }
.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav a {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--accent); }
.lang-switch {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.lang-switch:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 8px 10px;
  font-size: 1.1rem;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 88px;
}
.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 900/1612;
  max-width: 420px;
  margin: 0 auto;
  background: linear-gradient(160deg, #241f1a, #14120f);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-text .eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}
.hero-text .tagline { font-size: 1.15rem; max-width: 40ch; }
.btn-row { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  background: none;
  appearance: none;
  -webkit-appearance: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #14110d; }
.btn-primary:hover { background: #f0a675; }
.btn-outline { border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Sections */
section.block { padding: 64px 0; border-top: 1px solid var(--border); }
.section-head { max-width: 60ch; margin-bottom: 36px; }
.bio-tagline {
  margin-top: 28px;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--accent);
  border-left: 2px solid var(--accent);
  padding-left: 18px;
}
.placeholder-note {
  display: block;
  margin-top: 10px;
  padding: 12px 16px;
  background: var(--accent-soft);
  border: 1px dashed var(--accent);
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--accent);
}

/* Player embed */
.player-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-raised);
}
.player-frame iframe { display: block; width: 100%; border: 0; }

/* Embed consent gate — third-party player only loads (and only sets its
   cookies) after the visitor opts in. */
.embed-consent {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 22px;
}
.embed-consent p { margin: 0; font-size: 0.85rem; max-width: 46ch; }
.embed-consent-btn { cursor: pointer; }

/* Social bar */
.social-bar { display: flex; flex-wrap: wrap; gap: 12px; }
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 30px;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
}
.social-pill:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* Song grid */
.song-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.song-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.song-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.song-card a.song-link { color: var(--text); text-decoration: none; display: block; }
.song-card .song-cover {
  aspect-ratio: 1/1;
  border-radius: 8px;
  background: linear-gradient(135deg, #2a241d, #171512);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 0.8rem;
  overflow: hidden;
}
.song-card .song-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.song-card h2 { margin-bottom: 4px; font-size: 1.3rem; }
.song-card .song-meta { color: var(--text-faint); font-size: 0.85rem; }

/* Song detail page cover art */
.song-cover-art {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.song-cover-art img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Listen-everywhere platform links */
.listen-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 8px;
}
.listen-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 30px;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
}
.listen-pill:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* Lyrics page */
.lyrics-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 30px;
  overflow: hidden;
  margin-bottom: 28px;
}
.lyrics-toggle button {
  background: none;
  border: none;
  color: var(--text-dim);
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.lyrics-toggle button[aria-pressed="true"] { background: var(--accent); color: #14110d; }

.lyrics-panes { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.lyrics-panes.single-view { grid-template-columns: 1fr; max-width: 62ch; }
.lyrics-pane h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); margin-bottom: 18px; }
.lyrics-pane[hidden] { display: none; }
.lyrics-text {
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  line-height: 1.9;
  white-space: pre-line;
  color: var(--text);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 40px;
  color: var(--text-faint);
  font-size: 0.85rem;
}
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--text-faint); }
.footer-links a:hover { color: var(--accent); }

/* Contact */
.contact-block { display: flex; flex-direction: column; gap: 10px; font-size: 1.05rem; }

/* Cookie / privacy notice banner */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 0.85rem; color: var(--text-dim); flex: 1 1 260px; }
.cookie-banner .btn { padding: 9px 20px; font-size: 0.85rem; white-space: nowrap; }

/* Legal pages (privacy policy) */
.legal-content h2 { margin-top: 2em; font-size: 1.2rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--text-dim); }
.legal-content ul { padding-left: 1.2em; }
.legal-content .updated { color: var(--text-faint); font-size: 0.85rem; margin-bottom: 2em; }

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; padding: 44px 0 56px; }
  .hero-photo { max-width: 320px; }
  .nav-wrap { position: relative; }
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .main-nav.nav-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 60;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 20px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  }
  .main-nav.nav-open a { padding: 10px 0; width: 100%; }
  .lyrics-panes { grid-template-columns: 1fr; }
}
