/* ============================================
   Salwa Tazi — Site Stylesheet
   Palette: Purple/mauve with warm accents
   Typography: Cormorant Garamond (headings) + Inter (body)
   ============================================ */

:root {
  --purple-deep: #5b2c6f;
  --purple-mid: #7d3c98;
  --purple-light: #a569bd;
  --purple-pale: #ebdef0;
  --purple-wash: #f8f0fc;
  --cream: #fdfbf7;
  --warm-gray: #4a4a4a;
  --text: #2c2c2c;
  --text-light: #6b6b6b;
  --gold: #c9a84c;
  --gold-light: #f0e6c8;
  --border: #e8e0ed;
  --max-width: 1100px;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { font-size: 18px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--purple-mid); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--purple-deep); }

/* ---- HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--purple-deep);
  letter-spacing: 0.02em;
}

.logo-butterflies {
  font-size: 1.2rem;
  opacity: 0.7;
}

.site-nav {
  display: flex;
  gap: 1.8rem;
}

.site-nav a {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--warm-gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--purple-mid);
  border-bottom-color: var(--purple-light);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--purple-deep);
  transition: 0.3s;
}

/* ---- HERO ---- */
.hero {
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  background: linear-gradient(180deg, var(--purple-wash) 0%, var(--cream) 100%);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.hero-butterflies {
  position: absolute;
  top: -2rem;
  right: -4rem;
  width: 180px;
  height: 180px;
  opacity: 0.25;
  pointer-events: none;
}

.butterfly-heart {
  width: 100%;
  height: 100%;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 500;
  color: var(--purple-deep);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero-quote {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--purple-mid);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---- SECTIONS ---- */
.home-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.home-section + .home-section {
  border-top: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--purple-deep);
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--purple-light);
}

/* ---- ARTICLE GRID ---- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.article-card {
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.25s;
  overflow: hidden;
}

.article-card:hover {
  border-color: var(--purple-light);
  box-shadow: 0 4px 20px rgba(91, 44, 111, 0.08);
  transform: translateY(-2px);
}

.article-card a {
  display: block;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
}

.article-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--purple-deep);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.article-card time {
  font-size: 0.78rem;
  color: var(--text-light);
  display: block;
  margin-bottom: 0.6rem;
}

.article-card p {
  font-size: 0.88rem;
  color: var(--warm-gray);
  line-height: 1.6;
}

.see-all {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--purple-mid);
  border-bottom: 1px solid var(--purple-pale);
  padding-bottom: 2px;
}

.see-all:hover {
  border-bottom-color: var(--purple-mid);
}

/* ---- BOOKS ---- */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.book-card {
  text-align: center;
}

.book-cover {
  width: 160px;
  height: 220px;
  margin: 0 auto 1rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.book-card:hover .book-cover {
  transform: scale(1.03);
}

.book-icon {
  font-size: 3rem;
}

.book-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.book-card h3 a {
  color: var(--purple-deep);
}

.book-pub {
  font-size: 0.82rem;
  color: var(--text-light);
}

.book-award {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 500;
  margin-top: 0.3rem;
}

/* ---- VIDEO ---- */
.video-featured {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-info h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--purple-deep);
  margin-bottom: 0.5rem;
}

.video-info p {
  font-size: 0.9rem;
  color: var(--warm-gray);
  margin-bottom: 1rem;
}

/* ---- PAGE HEADER ---- */
.page-header {
  text-align: center;
  padding: 3.5rem 1.5rem 2rem;
  background: linear-gradient(180deg, var(--purple-wash) 0%, var(--cream) 100%);
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--purple-deep);
}

.page-intro {
  max-width: 650px;
  margin: 1rem auto 0;
  font-size: 0.95rem;
  color: var(--text-light);
}

.content-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ---- ARTICLE SINGLE ---- */
.article-single {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.article-header h1 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--purple-deep);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.article-date {
  font-size: 0.85rem;
  color: var(--text-light);
}

.article-categories {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.category-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--purple-mid);
  background: var(--purple-pale);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}

.article-body {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text);
}

.article-body p {
  margin-bottom: 1.3rem;
}

.article-body blockquote {
  border-left: 3px solid var(--purple-light);
  padding-left: 1.2rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--warm-gray);
}

.article-body h2, .article-body h3 {
  margin: 2rem 0 1rem;
  color: var(--purple-deep);
}

.article-body img {
  border-radius: 4px;
  margin: 1.5rem 0;
}

.article-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.back-link {
  font-size: 0.9rem;
  color: var(--purple-mid);
}

/* ---- MEDIA PAGE ---- */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.video-card {
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.video-card .video-embed {
  border-radius: 0;
  box-shadow: none;
}

.video-card-info {
  padding: 1rem 1.2rem;
}

.video-card-info h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--purple-deep);
  margin-bottom: 0.2rem;
}

.video-card-info p {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ---- PRESS PAGE ---- */
.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.press-card {
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.25s;
}

.press-card:hover {
  box-shadow: 0 4px 20px rgba(91, 44, 111, 0.08);
  transform: translateY(-2px);
}

.press-card img {
  width: 100%;
  display: block;
}

.press-card-info {
  padding: 1rem 1.2rem;
}

.press-card-info h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--purple-deep);
}

.press-card-info p {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ---- ABOUT PAGE ---- */
.about-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.about-content .article-body {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.85;
}

/* ---- PAGINATION ---- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  list-style: none;
}

.pagination .page-item a,
.pagination .page-item span {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.pagination .page-item.active span {
  background: var(--purple-mid);
  color: white;
}

.pagination .page-item a:hover {
  background: var(--purple-pale);
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--purple-deep);
  color: rgba(255,255,255,0.8);
  padding: 2.5rem 1.5rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: white;
  display: block;
}

.footer-tagline {
  font-size: 0.78rem;
  opacity: 0.7;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: white;
}

.footer-copy {
  font-size: 0.75rem;
  opacity: 0.5;
}

/* ---- RESPONSIVE ---- */
/* ---- BOOKS PAGE ---- */
.books-page-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.book-page-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  align-items: start;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 2rem;
}

.book-page-cover {
  width: 160px;
  height: 220px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 4px 15px rgba(0,0,0,0.1);
}

.book-page-info h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.book-page-info h2 a {
  color: var(--purple-deep);
}

.book-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 0.3rem;
}

.book-subtitle-large {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-light);
  margin-top: 0.3rem;
}

.book-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  display: flex;
  gap: 0.3rem;
}

.book-award-large {
  color: var(--gold);
  font-weight: 500;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.book-excerpt {
  font-size: 0.9rem;
  color: var(--warm-gray);
  margin: 0.8rem 0;
  line-height: 1.6;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  html { font-size: 16px; }

  .menu-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 0.8rem;
  }

  .menu-open .site-nav { display: flex; }

  .hero-title { font-size: 2.5rem; }
  .hero-butterflies { display: none; }

  .article-grid { grid-template-columns: 1fr; }
  .books-grid { grid-template-columns: 1fr; }

  .video-featured {
    grid-template-columns: 1fr;
  }

  .videos-grid { grid-template-columns: 1fr; }
  .press-grid { grid-template-columns: 1fr; }

  .book-page-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .book-page-cover {
    margin: 0 auto;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
