/* ==========================================
   Mia Saga — miasagauniverse.se
   Design: Warm minimal. Auburn & cream.
   ========================================== */

:root {
  --copper: #b5652a;
  --copper-light: #d4864a;
  --cream: #faf8f5;
  --warm-white: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --text-light: #9a9a9a;
  --dark: #111111;
  --dark-bg: #1c1a18;
  --warm-bg: #f5f0eb;
  --border: #e8e2da;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --max-width: 1100px;
  --section-pad: 6rem 1.5rem;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3 { font-family: var(--font-serif); line-height: 1.2; }
h1 { font-size: clamp(3rem, 8vw, 6rem); font-weight: 400; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 400; margin-bottom: 1.2rem; }
h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.4rem; }
p { color: var(--text-muted); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---- LAYOUT ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 680px; }

/* ---- NAV ---- */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 2rem;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text);
}
.nav-links {
  display: none;
  list-style: none;
}
.nav-links.open {
  max-height: calc(100dvh - 65px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 65px; left: 0; right: 0;
  background: var(--cream);
  padding: 2rem 2rem 2.5rem;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border);
  z-index: 99;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--copper); }
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text);
  padding: 0.25rem;
  line-height: 1;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 2px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--copper);
  color: white;
}
.btn-primary:hover { background: var(--copper-light); }
.btn-ghost {
  border: 1.5px solid var(--border);
  color: var(--text-muted);
}
.btn-ghost:hover { border-color: var(--copper); color: var(--copper); }

/* ---- SECTION LABELS ---- */
.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1rem;
}
.section-label.light { color: rgba(255,255,255,0.5); }

/* ---- HERO ---- */
#hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.1) 40%,
    rgba(0,0,0,0.65) 80%,
    rgba(0,0,0,0.82) 100%
  );
  z-index: 1;
}
.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 3rem 4rem;
  max-width: 680px;
  width: 100%;
}
.hero-overline {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
}
#hero h1 { color: #fff; }
.hero-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: rgba(255,255,255,0.75);
  margin: 1.5rem 0 2.5rem;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- OM MIG ---- */
#om { padding: var(--section-pad); }
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.section-text p { max-width: 480px; }
.section-image img {
  border-radius: 2px;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

/* ---- MUSIK ---- */
#musik {
  padding: var(--section-pad);
  background: var(--dark-bg);
  color: white;
}
#musik h2 { color: white; }
.music-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.track-card { cursor: pointer; }
.track-cover {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 1;
  background: #2a2826;
  margin-bottom: 1rem;
}
.track-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.track-card:hover .track-cover img { transform: scale(1.05); }
.track-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.3s;
}
.track-card:hover .track-overlay { opacity: 1; }
.track-info h3 { color: white; font-size: 1rem; }
.track-info p { color: rgba(255,255,255,0.45); font-size: 0.85rem; margin: 0; }

/* ---- BLOGG ---- */
#blogg { padding: var(--section-pad); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.blog-card {
  padding: 2rem;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: box-shadow 0.2s;
}
.blog-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.blog-date {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-light);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
}
.blog-card h3 a { color: var(--text); transition: color 0.2s; }
.blog-card h3 a:hover { color: var(--copper); }
.read-more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--copper);
  font-weight: 500;
}
.read-more:hover { text-decoration: underline; }

/* ---- KONTAKT ---- */
#kontakt {
  padding: var(--section-pad);
  background: var(--warm-bg);
}
.contact-intro { font-size: 1.1rem; margin: 1.5rem 0 2.5rem; max-width: 480px; }
.social-links { display: flex; flex-direction: column; gap: 1rem; }
.social-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.social-link:hover { color: var(--copper); }
.social-icon { font-size: 1.2rem; }

/* ---- FOOTER ---- */
footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
footer p { font-size: 0.8rem; color: var(--text-light); margin: 0; }
footer a { color: var(--copper); }
footer a:hover { text-decoration: underline; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  #hero {
    min-height: 100svh;
    align-items: flex-end;
  }
  .hero-content {
    padding: 0 1.5rem 3rem;
    max-width: 100%;
  }
  .hero-image {
    position: absolute;
    inset: 0;
    height: 100%;
  }
  .section-grid { grid-template-columns: 1fr; gap: 3rem; }
  .music-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  /* nav already hamburger-only on all sizes */
}

@media (max-width: 600px) {
  :root { --section-pad: 4rem 1.2rem; }
  .music-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
}

/* ---- PLACEHOLDER IMAGES ---- */
.hero-image img[src="images/mia-hero.jpg"]:not([src*="/"]),
.section-image img[src="images/mia-about.jpg"]:not([src*="/"]) {
  background: linear-gradient(135deg, #c8956a 0%, #8b4513 100%);
}

/* ---- ALBUM BLOCK ---- */
.album-block {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2.5rem;
}
.album-cover-placeholder {
  aspect-ratio: 1;
  background: linear-gradient(145deg, #2a1a0e 0%, #1a0e05 60%, #3a2010 100%);
  border: 1px solid rgba(181,101,42,0.25);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  gap: 0.5rem;
}
.album-cover-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.album-cover-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: #d4a060;
  line-height: 1.3;
}
.album-cover-artist {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.album-meta {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.6rem;
}
.album-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 400;
  color: #f0ebe3;
  margin-bottom: 1.75rem;
}
.track-list {
  list-style: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}
.track-list li {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.track-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  cursor: pointer;
  transition: background 0.15s;
  user-select: none;
}
.track-header:hover { background: rgba(255,255,255,0.03); }
.track-header.open .track-toggle { transform: rotate(45deg); }
.track-num {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  font-variant-numeric: tabular-nums;
  min-width: 1.5rem;
}
.track-name {
  font-size: 0.95rem;
  color: rgba(240,235,227,0.85);
  flex: 1;
}
.track-toggle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.25);
  transition: transform 0.2s, color 0.2s;
  line-height: 1;
  min-width: 1rem;
  text-align: center;
}
.track-header:hover .track-toggle { color: rgba(255,255,255,0.5); }
.track-lyrics {
  display: none;
  padding: 0.5rem 0 1.5rem 2.5rem;
  border-left: 2px solid rgba(181,101,42,0.3);
  margin-left: 0.2rem;
  margin-bottom: 0.5rem;
}
.track-lyrics.open { display: block; }
.track-lyrics p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(240,235,227,0.65);
  margin-bottom: 0.9rem;
}
.track-lyrics p:last-child { margin-bottom: 0; }
.album-links { display: flex; gap: 1rem; }
.spotify-embed {
  margin-top: 2.5rem;
  max-width: 700px;
}
.btn-outline-light {
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.7);
  background: transparent;
  padding: 0.55rem 1.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.2s;
  display: inline-block;
}
.btn-outline-light:hover {
  border-color: var(--copper);
  color: var(--copper);
}
.album2-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: #f0ebe3;
  margin-top: 4rem;
  margin-bottom: 0;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.album-block--unreleased .album-cover-placeholder {
  background: linear-gradient(145deg, #0e1a2a 0%, #050e1a 60%, #102035 100%);
  border: 1px solid rgba(42,101,181,0.2);
}
.album-block--unreleased .album-cover-placeholder span {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: rgba(180,200,230,0.6);
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.5;
}
.album-meta em {
  font-style: normal;
  color: rgba(255,255,255,0.3);
}
@media (max-width: 700px) {
  .album-block { grid-template-columns: 1fr; gap: 2rem; }
  .album-cover-wrap { max-width: 200px; }
  .album-title { font-size: 1.5rem; }
}

/* ── Nav symbol ──────────────────────────────────────────────────────────── */
.nav-logo { display:flex; align-items:center; gap:0.5rem; }
.nav-symbol { width:28px; height:28px; object-fit:contain; border-radius:50%; }

/* ── Studion ─────────────────────────────────────────────────────────────── */
#studion { background: #1c0f07; color: #e8d5c4; padding: 5rem 0; }
#studion .section-label { color: #b5652a; }
#studion h2 { color: #f0e0d0; }
#studion .studio-intro { color: #a08070; }
.studio-intro { color: var(--text-muted, #777); margin-bottom: 2rem; max-width: 560px; }
.studio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.25rem; }
.studio-card { background: #2a1508; border: 1px solid #4a2510; border-radius: 6px; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; transition: box-shadow 0.2s; }
.studio-card:hover { box-shadow: 0 4px 24px rgba(181,101,42,0.15); border-color: #b5652a; }
.studio-card-title { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 600; color: #f0e0d0; }
.studio-card-authors { font-size: 0.75rem; color: #b5652a; letter-spacing: 0.04em; margin-bottom: 0.25rem; }
.studio-card-desc { font-size: 0.875rem; color: #a08070; line-height: 1.6; flex: 1; }
.studio-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.25rem; }
.studio-listen { font-size: 0.8rem; color: #b5652a; text-decoration: none; border: 1px solid #b5652a; border-radius: 3px; padding: 0.25rem 0.65rem; transition: all 0.15s; }
.studio-listen:hover { background: #b5652a; color: #fff; }
.studio-vote { display: flex; align-items: center; gap: 0.4rem; background: none; border: 1px solid #4a2510; border-radius: 20px; padding: 0.3rem 0.85rem; cursor: pointer; font-size: 0.82rem; color: #a08070; transition: all 0.2s; }
.studio-vote:hover { border-color: #e05; color: #e05; }
.studio-vote.voted { border-color: #e05; color: #e05; background: rgba(238,0,85,0.06); }
.studio-vote .vote-heart { font-size: 1rem; }
.studio-vote .vote-count { font-weight: 600; }
.studio-lyrics-toggle { background: none; border: none; color: #b5652a; font-size: 0.8rem; cursor: pointer; padding: 0.4rem 0; margin-top: 0.25rem; text-decoration: underline; text-underline-offset: 3px; }
.studio-lyrics-toggle:hover { color: #d4854a; }
.studio-lyrics { display: none; margin-top: 0.5rem; font-size: 0.82rem; color: #c4a898; line-height: 1.8; white-space: pre-wrap; border-top: 1px solid #3a1f0e; padding-top: 0.75rem; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.studio-lyrics.open { display: block; max-height: 9999px; }
@media (max-width: 600px) { .studio-grid { grid-template-columns: 1fr; } }

/* ---- FOOTER NAV ---- */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  margin-bottom: 1.25rem;
}
.footer-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--copper); }
@media (max-width: 600px) {
  .footer-nav { gap: 0.5rem 1.25rem; }
}
