/* ============================================================
   2104 Publishing V2 — Shared Styles
   Design: Cormorant Garamond + Inter | Charcoal / Gold / Cream
   ============================================================ */

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

:root {
  --charcoal: #1a1a1a;
  --charcoal-light: #252525;
  --charcoal-mid: #1a1a2e;
  --offwhite: #f5f0e8;
  --gold: #c08040;
  --gold-dim: #9a6530;
  --cream: #faf7f2;
  --text-dark: #2c2c2c;
  --text-muted: #6b6b6b;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
p  { font-size: clamp(0.95rem, 1.1vw, 1.05rem); }

/* ── Scroll Animations ────────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
[data-animate].is-visible { opacity: 1; transform: translateY(0); }
[data-animate][data-delay="1"] { transition-delay: 0.15s; }
[data-animate][data-delay="2"] { transition-delay: 0.3s; }
[data-animate][data-delay="3"] { transition-delay: 0.45s; }
[data-animate][data-delay="4"] { transition-delay: 0.6s; }

/* ── Nav ──────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.2rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}
nav.scrolled {
  background: rgba(26, 26, 46, 0.97);
  box-shadow: 0 2px 30px rgba(0,0,0,0.3);
  padding: 0.8rem 2rem;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem; font-weight: 700;
  color: var(--offwhite);
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: rgba(245, 240, 232, 0.75);
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold); }

.hamburger {
  display: none; cursor: pointer; flex-direction: column;
  gap: 5px; background: none; border: none; padding: 5px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--offwhite); transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 70%; height: 100vh;
    background: var(--charcoal); flex-direction: column;
    padding: 5rem 2rem; gap: 1.5rem;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: -10px 0 40px rgba(0,0,0,0.5);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.1rem; }
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--charcoal); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(192,128,64,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(192,128,64,0.05) 0%, transparent 50%),
    linear-gradient(180deg, #0f0f1e 0%, #1a1a2e 40%, #1f1f35 100%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 2rem;
}
.hero-content h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  color: var(--offwhite);
  font-weight: 500; font-style: italic;
  margin-bottom: 1rem;
}
.hero-content h1 em { font-style: normal; color: var(--gold); }
.hero-subtitle {
  color: rgba(245, 240, 232, 0.5);
  font-size: clamp(0.9rem, 1.3vw, 1.1rem);
  font-weight: 300;
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 2.5rem;
}
.hero-line {
  width: 60px; height: 1px;
  background: var(--gold); margin: 0 auto 2rem; opacity: 0.6;
}
.scroll-indicator {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.scroll-indicator span {
  color: rgba(245, 240, 232, 0.35);
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.scroll-arrow {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* ── Sections Common ──────────────────────────────────────── */
section { padding: 6rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.section-title { margin-bottom: 1.5rem; }
.section-desc {
  color: var(--text-muted); max-width: 620px;
  margin-bottom: 3rem; font-size: 1.05rem; line-height: 1.8;
}

/* ── About ────────────────────────────────────────────────── */
.about { background: var(--cream); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.about-visual {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-light) 100%);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.about-visual-inner {
  text-align: center;
  font-family: var(--font-heading);
  color: rgba(245,240,232,0.15);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.about-visual-inner small {
  display: block;
  font-size: 0.3em;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: 0.5rem;
  color: rgba(192,128,64,0.4);
}
.about-text p { margin-bottom: 1.2rem; color: var(--text-dark); line-height: 1.85; }

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-visual { max-height: 280px; }
}

/* ── Authors ──────────────────────────────────────────────── */
.authors { background: var(--offwhite); }
.author-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.author-card {
  background: white; border-radius: 6px;
  padding: 2.5rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.author-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}
.author-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  margin-bottom: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.6rem; font-weight: 700;
  color: var(--offwhite);
  object-fit: cover;
}
.author-avatar img {
  width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover;
}
.author-card h3 { margin-bottom: 0.4rem; }
.author-genre {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.author-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.75; margin-bottom: 1.5rem; }
.author-card-link {
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); display: inline-flex; align-items: center; gap: 0.4rem;
  transition: gap 0.2s;
}
.author-card:hover .author-card-link { gap: 0.7rem; }

/* Skeleton loader */
.skeleton-card {
  background: white; border-radius: 6px; padding: 2.5rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}
.skeleton-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin-bottom: 1.5rem;
}
.skeleton-line {
  height: 12px; border-radius: 6px;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin-bottom: 0.8rem;
}
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w40 { width: 40%; }
.skeleton-line.w80 { width: 80%; }
.skeleton-line.w90 { width: 90%; }
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Books ────────────────────────────────────────────────── */
.books { background: var(--cream); }
.book-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2.5rem;
}
.book-card {
  background: white; border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
  transition: transform 0.3s, box-shadow 0.3s;
}
.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}
.book-cover {
  aspect-ratio: 2 / 3; width: 100%;
  position: relative; overflow: hidden;
}
.book-cover img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  display: block;
}
.book-cover-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; text-align: center;
}
.book-cover-placeholder-title {
  font-family: var(--font-heading);
  font-size: 1.4rem; color: rgba(255,255,255,0.85);
  font-weight: 600; line-height: 1.3;
  z-index: 1; position: relative;
}
.book-body { padding: 1.5rem; }
.book-meta {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 0.75rem; flex-wrap: wrap;
}
.book-author-name { font-size: 0.83rem; color: var(--text-muted); }
.book-badge {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.2rem 0.55rem; border-radius: 3px;
  background: rgba(192,128,64,0.12); color: var(--gold-dim);
}
.book-body h3 { margin-bottom: 0.5rem; font-size: 1.25rem; line-height: 1.3; }
.book-body p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.2rem; line-height: 1.7; }
.book-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }

/* Status badges */
.status-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 0.25rem 0.7rem; border-radius: 20px;
}
.status-available {
  background: rgba(34,197,94,0.1); color: #16a34a;
}
.status-available::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: #16a34a;
}
.status-pre_order {
  background: rgba(192,128,64,0.15); color: var(--gold);
}
.status-pre_order::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: var(--gold);
  animation: pulse 2s ease-in-out infinite;
}
.status-coming_soon {
  background: rgba(192,128,64,0.08); color: var(--gold-dim);
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Retail link buttons */
.btn-retail {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 4px; border: none; cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.8rem; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-retail:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-kindle  { background: #FF9900; color: #111; }
.btn-audible { background: #F37C1F; color: #fff; }
.btn-apple   { background: #1c1c1e; color: #fff; }
.btn-google  { background: #4285F4; color: #fff; }
.btn-kobo    { background: #e32428; color: #fff; }
.btn-storytel{ background: #1a78c2; color: #fff; }
.btn-bookbeat{ background: #6b21a8; color: #fff; }
.btn-spotify { background: #1DB954; color: #fff; }

.btn-learn-more {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold); transition: gap 0.2s;
}
.btn-learn-more:hover { gap: 0.7rem; }

/* ── For Authors ──────────────────────────────────────────── */
.for-authors { background: var(--charcoal); }
.for-authors .section-label { color: rgba(192,128,64,0.7); }
.for-authors .section-title { color: var(--offwhite); }
.for-authors .section-desc { color: rgba(245,240,232,0.55); max-width: none; }
.for-authors-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem; margin-bottom: 3rem;
}
.for-authors-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(192,128,64,0.15);
  border-radius: 6px; padding: 2rem;
}
.for-authors-card h4 {
  font-family: var(--font-heading);
  font-size: 1.3rem; color: var(--offwhite);
  margin-bottom: 0.75rem;
}
.for-authors-card p { color: rgba(245,240,232,0.5); font-size: 0.93rem; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--gold); color: var(--charcoal);
  padding: 0.9rem 2rem; border-radius: 4px;
  font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: #d4904a; transform: translateY(-2px); }

/* ── Contact ──────────────────────────────────────────────── */
.contact { background: var(--offwhite); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start;
}
.contact-info p { color: var(--text-muted); margin-bottom: 1rem; }
.contact-links { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.contact-link {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--text-muted); font-size: 0.95rem;
  transition: color 0.2s;
}
.contact-link:hover { color: var(--gold); }
.contact-link-label {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); min-width: 80px;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--charcoal);
  padding: 3rem 2rem;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem; font-weight: 700;
  color: var(--offwhite); margin-bottom: 0.5rem;
}
.footer-logo span { color: var(--gold); }
footer p {
  color: rgba(245,240,232,0.3);
  font-size: 0.85rem; margin-bottom: 0.25rem;
}
.footer-links {
  display: flex; justify-content: center;
  gap: 2rem; list-style: none; margin-top: 1.5rem;
}
.footer-links a {
  color: rgba(245,240,232,0.4); font-size: 0.8rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }

/* ── Error State ──────────────────────────────────────────── */
.error-state {
  text-align: center; padding: 3rem; color: var(--text-muted);
}
.error-state p { font-size: 1rem; margin-bottom: 1rem; }

/* ── Author Detail Page ───────────────────────────────────── */
.author-hero {
  min-height: 60vh;
  display: flex; align-items: flex-end;
  background: var(--charcoal);
  padding: 8rem 2rem 4rem;
  position: relative; overflow: hidden;
}
.author-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(192,128,64,0.07) 0%, transparent 60%),
    linear-gradient(180deg, #0f0f1e 0%, #1a1a2e 100%);
}
.author-hero-content {
  position: relative; z-index: 2;
  max-width: 1100px; margin: 0 auto; width: 100%;
  display: flex; gap: 3rem; align-items: flex-end;
}
.author-hero-photo {
  width: 180px; height: 180px; flex-shrink: 0;
  border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(192,128,64,0.4);
}
.author-hero-photo-placeholder {
  width: 180px; height: 180px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-size: 3.5rem; font-weight: 700;
  color: var(--offwhite);
  border: 3px solid rgba(192,128,64,0.3);
}
.author-hero-text .section-label { color: rgba(192,128,64,0.7); }
.author-hero-text h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--offwhite); font-weight: 600;
  margin-bottom: 0.5rem;
}
.author-hero-text .genre-tag {
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); opacity: 0.8;
}

@media (max-width: 600px) {
  .author-hero-content { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .author-hero-photo, .author-hero-photo-placeholder { width: 120px; height: 120px; }
  .author-hero-photo-placeholder { font-size: 2.5rem; }
}

.author-body { background: var(--cream); padding: 5rem 2rem; }
.author-body-grid {
  display: grid; grid-template-columns: 2fr 1fr;
  gap: 4rem; max-width: 1100px; margin: 0 auto;
}
.bio-text { color: var(--text-dark); line-height: 1.9; font-size: 1.05rem; }
.bio-text p { margin-bottom: 1.2rem; }
.author-sidebar {}
.sidebar-card {
  background: white; border-radius: 6px;
  padding: 1.75rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
  margin-bottom: 1.5rem;
}
.sidebar-card h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem; margin-bottom: 1rem;
  color: var(--charcoal);
}
.sidebar-link {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--text-muted); font-size: 0.9rem;
  margin-bottom: 0.6rem; transition: color 0.2s;
}
.sidebar-link:hover { color: var(--gold); }

@media (max-width: 768px) {
  .author-body-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.author-books { background: var(--offwhite); padding: 5rem 2rem; }
.author-books .container { max-width: 1100px; }

/* ── Book Detail Page ─────────────────────────────────────── */
.book-hero {
  min-height: 70vh;
  display: flex; align-items: center;
  background: var(--charcoal);
  padding: 8rem 2rem 4rem;
  position: relative; overflow: hidden;
}
.book-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #0f0f1e 0%, #1a1a2e 100%);
}
.book-hero-content {
  position: relative; z-index: 2;
  max-width: 1100px; margin: 0 auto; width: 100%;
  display: flex; gap: 4rem; align-items: flex-start;
}
.book-hero-cover {
  width: 220px; flex-shrink: 0;
  border-radius: 4px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.book-hero-cover img { width: 100%; display: block; }
.book-hero-cover-placeholder {
  width: 220px; flex-shrink: 0;
  aspect-ratio: 2/3;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.book-hero-cover-placeholder span {
  font-family: var(--font-heading);
  font-size: 1.4rem; color: rgba(255,255,255,0.8);
  font-weight: 600; line-height: 1.3;
}
.book-hero-text { padding-top: 1rem; }
.book-hero-text .section-label { color: rgba(192,128,64,0.7); }
.book-hero-text h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--offwhite); font-weight: 600;
  margin-bottom: 0.5rem; line-height: 1.15;
}
.book-hero-text .book-hero-author {
  color: rgba(245,240,232,0.6); font-size: 1rem;
  margin-bottom: 1.5rem;
}
.book-hero-text .book-hero-author a { color: var(--gold); transition: opacity 0.2s; }
.book-hero-text .book-hero-author a:hover { opacity: 0.75; }
.book-hero-series {
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(192,128,64,0.6); margin-bottom: 1.5rem;
}
.book-hero-retail { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 2rem; }

@media (max-width: 700px) {
  .book-hero-content { flex-direction: column; gap: 2rem; }
  .book-hero-cover, .book-hero-cover-placeholder { width: 160px; }
}

.book-description { background: var(--cream); padding: 5rem 2rem; }
.book-description .container { max-width: 760px; }
.book-description-text {
  color: var(--text-dark); line-height: 1.9; font-size: 1.05rem;
}
.book-description-text p { margin-bottom: 1.2rem; }

/* ── Back link ────────────────────────────────────────────── */
.back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: rgba(245,240,232,0.5);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--gold); }

/* ── Loading spinner ──────────────────────────────────────── */
.loading-spinner {
  display: flex; justify-content: center; padding: 4rem;
}
.spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(192,128,64,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Fallback: ensure content visible if JS/observer fails to fire */
@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1 !important; transform: none !important; }
}
