/* MWH-MTE — Memory Witness and Hope */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple: #5c2d8a;
  --purple-light: #7a42b0;
  --purple-dark: #3a1960;
  --gold: #d4a843;
  --text: #1a1a2e;
  --text-muted: #5a5a7a;
  --bg: #ffffff;
  --bg-light: #f8f5ff;
  --bg-dark: #1a1a2e;
  --border: #e0d5f0;
  --radius: 8px;
  --wrap: 1100px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: Georgia, 'Times New Roman', serif; color: var(--text); background: var(--bg); line-height: 1.7; }

a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-light); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* WRAP */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* HEADER */
.site-header { background: var(--bg-dark); border-bottom: 3px solid var(--purple); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: var(--wrap); margin: 0 auto; }

.site-logo { display: flex; align-items: center; gap: 14px; }
.site-logo img { width: 52px; height: 52px; object-fit: contain; border-radius: 50%; }
.logo-text { color: #fff; }
.logo-text strong { display: block; font-size: 1.05rem; font-weight: 700; letter-spacing: 0.03em; }
.logo-text span { display: block; font-size: 0.75rem; color: #c4b5d9; font-style: italic; }

.site-nav ul { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; }
.site-nav a { color: #d0c0e8; font-size: 0.88rem; padding: 6px 12px; border-radius: var(--radius); transition: background 0.2s, color 0.2s; font-family: 'Helvetica Neue', Arial, sans-serif; }
.site-nav a:hover, .site-nav a.active { background: var(--purple); color: #fff; text-decoration: none; }

.menu-toggle { display: none; background: none; border: 2px solid #9a7bc8; color: #d0c0e8; padding: 6px 12px; border-radius: var(--radius); cursor: pointer; font-size: 1.1rem; }

/* HERO BANNER */
.hero { background: var(--purple-dark); color: #fff; padding: 0; overflow: hidden; position: relative; }
.hero-img { width: 100%; max-height: 340px; object-fit: cover; opacity: 0.7; }
.hero-overlay { position: absolute; inset: 0; display: flex; align-items: center; background: linear-gradient(90deg, rgba(58,25,96,0.85) 0%, rgba(58,25,96,0.4) 70%, transparent 100%); }
.hero-content { max-width: var(--wrap); margin: 0 auto; padding: 40px 24px; }
.hero h1 { font-size: 2rem; font-weight: 700; line-height: 1.25; margin-bottom: 10px; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.hero .tagline { font-size: 1.1rem; font-style: italic; color: #e0d0f5; }

/* Simple hero (no bg image) */
.hero-plain { background: var(--purple-dark); color: #fff; padding: 60px 24px; text-align: center; }
.hero-plain h1 { font-size: 2.2rem; margin-bottom: 12px; }
.hero-plain p { font-size: 1.1rem; color: #c4b5d9; font-style: italic; }

/* MAIN */
main { padding: 60px 0; }
section + section { margin-top: 60px; }

/* SECTION STYLES */
.section-title { font-size: 1.6rem; font-weight: 700; color: var(--purple-dark); margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--purple); }
.section-title.centered { text-align: center; }

/* ABOUT SECTION */
.about-grid { display: flex; gap: 40px; align-items: flex-start; }
.about-text { flex: 1; }
.about-text p { margin-bottom: 1em; }
.about-text ul { margin: 1em 0 1em 1.5em; }
.about-text li { margin-bottom: 0.5em; }
.about-image { flex-shrink: 0; width: 280px; }
.about-image img { border-radius: var(--radius); box-shadow: 0 4px 20px rgba(92,45,138,0.2); }

/* BLOG GRID */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.post-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.2s; background: var(--bg); }
.post-card:hover { box-shadow: 0 6px 24px rgba(92,45,138,0.15); }
.post-card img { width: 100%; height: 200px; object-fit: cover; }
.post-card-body { padding: 20px; }
.post-card-lang { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--purple); font-weight: 700; margin-bottom: 6px; font-family: Arial, sans-serif; }
.post-card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--text); line-height: 1.35; }
.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--purple); text-decoration: none; }
.post-card-date { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; font-family: Arial, sans-serif; }
.post-card-excerpt { font-size: 0.9rem; color: var(--text-muted); }

/* RESOURCES */
.resources-list { list-style: none; }
.resources-list li { padding: 14px 0; border-bottom: 1px solid var(--border); display: flex; gap: 12px; align-items: baseline; }
.resources-list li:last-child { border-bottom: none; }
.resources-list a { font-weight: 600; }
.resources-list .res-lang { font-size: 0.75rem; text-transform: uppercase; background: var(--purple); color: #fff; padding: 2px 7px; border-radius: 3px; flex-shrink: 0; }

/* PARTICIPANTS */
.participants { background: var(--bg-light); border-radius: var(--radius); padding: 28px; margin-top: 32px; }
.participants h3 { font-size: 1.1rem; margin-bottom: 14px; color: var(--purple-dark); }
.participants ul { list-style: disc; margin-left: 1.5em; }
.participants li { margin-bottom: 6px; }

/* PRINCIPLES */
.principles { list-style: none; counter-reset: principle; }
.principles li { counter-increment: principle; padding: 14px 0; border-bottom: 1px solid var(--border); padding-left: 40px; position: relative; }
.principles li::before { content: counter(principle); position: absolute; left: 0; top: 14px; width: 28px; height: 28px; background: var(--purple); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; font-family: Arial, sans-serif; }
.principles li:last-child { border-bottom: none; }

/* CONTACT */
.contact-info { background: var(--bg-light); border-radius: var(--radius); padding: 32px; max-width: 600px; }
.contact-info p { margin-bottom: 1em; }
.contact-email { font-size: 1.2rem; font-weight: 700; color: var(--purple); }

/* POST */
.post-header { text-align: center; margin-bottom: 40px; }
.post-header h1 { font-size: 2rem; line-height: 1.3; margin-bottom: 12px; }
.post-meta { font-size: 0.85rem; color: var(--text-muted); font-family: Arial, sans-serif; }
.post-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; max-height: 420px; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-body p { margin-bottom: 1.2em; }
.post-body ul, .post-body ol { margin: 1em 0 1em 1.5em; }
.post-body li { margin-bottom: 0.5em; }
.post-body blockquote { border-left: 4px solid var(--purple); padding-left: 20px; margin: 1.5em 0; font-style: italic; color: var(--text-muted); }
.back-link { margin-bottom: 32px; display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; }
.back-link::before { content: '←'; }

/* LANGUAGE BADGE */
.lang-badge { display: inline-flex; gap: 8px; margin-bottom: 16px; }
.lang-badge a { font-size: 0.8rem; padding: 3px 10px; border-radius: 3px; border: 1px solid var(--purple); color: var(--purple); font-family: Arial, sans-serif; transition: background 0.2s, color 0.2s; }
.lang-badge a:hover, .lang-badge a.active { background: var(--purple); color: #fff; text-decoration: none; }

/* LINKS SECTION */
.ext-links { margin-top: 24px; }
.ext-links h3 { font-size: 1rem; color: var(--text-muted); margin-bottom: 12px; font-family: Arial, sans-serif; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.ext-links ul { list-style: disc; margin-left: 1.5em; }
.ext-links li { margin-bottom: 8px; }

/* CALLOUT BOX */
.callout { background: var(--bg-light); border-left: 4px solid var(--purple); border-radius: 0 var(--radius) var(--radius) 0; padding: 24px 28px; margin: 32px 0; }
.callout p { margin-bottom: 0.5em; }
.callout p:last-child { margin-bottom: 0; }

/* FOOTER */
.site-footer { background: var(--bg-dark); color: #a090c0; padding: 40px 0 24px; margin-top: 80px; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; display: flex; gap: 40px; flex-wrap: wrap; }
.footer-brand { flex: 0 0 260px; }
.footer-brand img { width: 60px; margin-bottom: 12px; border-radius: 50%; }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; }
.footer-nav { flex: 1; }
.footer-nav h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; font-family: Arial, sans-serif; }
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 6px; }
.footer-nav a { color: #a090c0; font-size: 0.88rem; }
.footer-nav a:hover { color: #d0c0e8; text-decoration: none; }
.footer-bottom { text-align: center; font-size: 0.8rem; border-top: 1px solid #2e2a45; margin-top: 32px; padding-top: 20px; color: #7060a0; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-dark); padding: 16px 24px; border-bottom: 2px solid var(--purple); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .about-grid { flex-direction: column; }
  .about-image { width: 100%; }
  .hero h1 { font-size: 1.5rem; }
  .footer-inner { flex-direction: column; gap: 28px; }
  .footer-brand { flex: none; }
}
