/* ============================================================
   MIMI CROSS — Global Stylesheet
   Color palette: deep navy #0d1b2a, warm ivory #f5f0e8,
   dusty rose #c9a0a0, muted gold #b8934a, slate #4a5568
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500&display=swap');

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

:root {
  --navy:      #0d1b2a;
  --ivory:     #f5f0e8;
  --rose:      #c9a0a0;
  --gold:      #b8934a;
  --gold-lt:   #d4aa6a;
  --slate:     #4a5568;
  --slate-lt:  #6b7b8d;
  --charcoal:  #1e2d3d;
  --off-white: #faf8f3;
  --border:    rgba(184,147,74,0.25);
  --shadow:    0 4px 24px rgba(13,27,42,0.12);
  --shadow-lg: 0 12px 48px rgba(13,27,42,0.2);
  --radius:    4px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  color: var(--charcoal);
  background: var(--ivory);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

em { font-style: italic; }
strong { font-weight: 500; }

.serif { font-family: 'Playfair Display', Georgia, serif; }
.italic { font-style: italic; }

/* ---- Layout ---- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.container--narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.container--wide {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

section { padding: clamp(3rem, 8vw, 6rem) 0; }

/* ---- Navigation ---- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,27,42,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184,147,74,0.2);
  transition: var(--transition);
}
.site-nav.scrolled {
  background: rgba(13,27,42,0.99);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  max-width: 1280px;
  margin: 0 auto;
}
.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ivory);
  text-transform: uppercase;
}
.nav-logo span { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.7);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--ivory);
}
.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}
.nav-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-social a {
  color: rgba(245,240,232,0.55);
  font-size: 0.85rem;
  transition: color var(--transition);
}
.nav-social a:hover { color: var(--gold); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ivory);
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---- Page Header / Banner ---- */
.page-banner {
  padding-top: 64px; /* nav offset */
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(184,147,74,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.page-banner-inner {
  padding: clamp(3rem, 8vw, 5rem) clamp(1.25rem, 4vw, 3rem) clamp(2rem, 5vw, 3.5rem);
  max-width: 1280px;
  margin: 0 auto;
}
.page-banner h1 {
  color: var(--ivory);
  margin-bottom: 0.4rem;
}
.page-banner .breadcrumb {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.page-banner .eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}
.banner-rule {
  width: 3rem;
  height: 1px;
  background: var(--gold);
  margin-top: 1.25rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  border-radius: var(--radius);
}
.btn:hover {
  background: var(--gold);
  color: var(--navy);
}
.btn--solid {
  background: var(--gold);
  color: var(--navy);
}
.btn--solid:hover {
  background: var(--gold-lt);
}
.btn--dark {
  border-color: var(--navy);
  color: var(--navy);
}
.btn--dark:hover {
  background: var(--navy);
  color: var(--ivory);
}
.btn--ivory {
  border-color: var(--ivory);
  color: var(--ivory);
}
.btn--ivory:hover {
  background: var(--ivory);
  color: var(--navy);
}

/* ---- Divider ---- */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: clamp(2rem, 5vw, 4rem) 0;
}
.divider--gold {
  border-color: var(--gold);
  opacity: 0.4;
}

/* ---- Section Labels ---- */
.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
  display: block;
}

/* ---- Social Icons (SVG fallback text) ---- */
.social-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-lt);
  transition: color var(--transition);
  padding: 0.4rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 2rem;
  transition: all var(--transition);
}
.social-link:hover {
  color: var(--gold);
  border-color: var(--border);
}
.social-link svg {
  width: 15px; height: 15px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--navy);
  color: rgba(245,240,232,0.55);
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
  margin-top: clamp(2rem, 6vw, 4rem);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem 3rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.footer-brand .nav-logo { margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.65; max-width: 22ch; }
.footer-nav h4, .footer-connect h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 500;
}
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 0.5rem; }
.footer-nav a {
  font-size: 0.88rem;
  color: rgba(245,240,232,0.55);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--ivory); }
.footer-connect .social-links { flex-direction: column; align-items: flex-start; }
.footer-bottom {
  border-top: 1px solid rgba(184,147,74,0.15);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(245,240,232,0.3);
  max-width: 1120px;
  margin-left: auto; margin-right: auto;
  padding-left: clamp(1.25rem, 4vw, 3rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
}

/* ---- YouTube embed ---- */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  margin-top: 1.5rem;
  box-shadow: var(--shadow);
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ---- SoundCloud embed ---- */
.soundcloud-wrap {
  margin: 1.25rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.soundcloud-wrap iframe {
  width: 100%;
  border: none;
  display: block;
}

/* ---- Pull quote ---- */
.pull-quote {
  border-left: 2px solid var(--gold);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 1.5rem 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--slate);
  line-height: 1.55;
}
.pull-quote cite {
  display: block;
  font-style: normal;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.5rem;
}

/* ---- Goodreads badge ---- */
.goodreads-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-lt);
  border: 1px solid var(--border);
  padding: 0.4rem 0.9rem;
  border-radius: 2rem;
  transition: all var(--transition);
  margin-top: 0.5rem;
}
.goodreads-badge:hover {
  color: var(--gold);
  border-color: var(--gold);
}
.goodreads-badge img { width: 16px; height: 16px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .nav-links, .nav-social { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--navy);
    padding: 2rem clamp(1.25rem, 4vw, 3rem) 3rem;
    gap: 1.5rem;
    border-top: 1px solid rgba(184,147,74,0.2);
    z-index: 99;
    align-items: flex-start;
  }
  .nav-links.mobile-open a {
    font-size: 1rem;
    letter-spacing: 0.06em;
  }
  .nav-social.mobile-open {
    display: flex;
    position: fixed;
    top: calc(64px + 16rem);
    left: 0; right: 0;
    background: var(--navy);
    padding: 0 clamp(1.25rem, 4vw, 3rem) 2rem;
    justify-content: flex-start;
    z-index: 99;
  }
}

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ---- Animations ---- */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .fade-up.visible {
    opacity: 1;
    transform: none;
  }
  .fade-up:nth-child(2) { transition-delay: 0.1s; }
  .fade-up:nth-child(3) { transition-delay: 0.2s; }
  .fade-up:nth-child(4) { transition-delay: 0.3s; }
}
