/* ─── CSS Variables & Themes ─────────────────────────────────────────────── */
:root {
  --bg: #0d0d0f;
  --bg2: #131316;
  --card-bg: #18181c;
  --border: rgba(255,255,255,0.08);
  --fg: #f0eee8;
  --fg-muted: #9996a0;
  --fg-subtle: #5a5760;
  --accent: #c8a96e;
  --accent-rgb: 200, 169, 110;
  --accent2: #7b9ea6;
  --accent2-rgb: 123, 158, 166;
  --tag-bg: rgba(255,255,255,0.06);
  --nav-bg: rgba(13,13,15,0.88);
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

[data-theme="light"] {
  --bg: #f5f3ee;
  --bg2: #edeae2;
  --card-bg: #ffffff;
  --border: rgba(0,0,0,0.09);
  --fg: #1a1814;
  --fg-muted: #6b6660;
  --fg-subtle: #a09c96;
  --accent: #9e7a3a;
  --accent-rgb: 158, 122, 58;
  --accent2: #4a7a84;
  --accent2-rgb: 74, 122, 132;
  --tag-bg: rgba(0,0,0,0.05);
  --nav-bg: rgba(245,243,238,0.9);
  --shadow: 0 4px 24px rgba(0,0,0,0.1);
}

/* ─── Reset & Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.5;
  min-height: 100svh;
  transition: background 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { cursor: pointer; border: none; background: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ─── Animations ─────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

/* ─── Navigation ─────────────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

.nav-brand {
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-every { color: var(--fg-muted); }
.brand-song  { color: var(--accent); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-back {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-back:hover { color: var(--accent); }

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--fg-muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ─── Utility Buttons ────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background: var(--accent);
  color: #0d0d0f;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.85; }
