/* Maghreb Voyager — style-v3.css */
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{background:#f7f1e6;color:#2a201a;font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-weight:400;line-height:1.7;font-size:17px;-webkit-font-smoothing:antialiased}
h1,h2,h3,h4{font-family:'DM Serif Display','Playfair Display',Georgia,serif;font-weight:400;line-height:1.2;color:#2a201a;letter-spacing:-0.01em}
h1{font-size:2.6rem;margin-bottom:1rem}
h2{font-size:1.85rem;margin-bottom:0.9rem}
h3{font-size:1.35rem;margin-bottom:0.6rem}
p{margin-bottom:1.1rem}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}

.container{max-width:1000px;margin:0 auto;padding:0 24px}

/* Header */
.site-header{background:#f7f1e6;border-bottom:1px solid #e3d8c4;padding:28px 0 20px 0;position:relative}
.header-inner{display:flex;flex-direction:column;align-items:center;gap:18px}
.site-brand{display:block;text-align:center}
.site-logo img{max-width:100%;height:auto}
.site-title,.site-tagline{display:none}
.nav-menu{display:flex;gap:30px;flex-wrap:wrap;justify-content:center}
.nav-menu a{color:#3b2f24;font-size:0.82rem;text-transform:uppercase;letter-spacing:2.2px;font-weight:500;padding:4px 0;border-bottom:1px solid transparent;transition:border-color .2s ease, color .2s ease}
.nav-menu a:hover,.nav-menu a.active{border-bottom-color:#b04a2f;color:#b04a2f}

/* Mobile menu */
.menu-toggle{display:none;background:none;border:none;cursor:pointer;padding:8px}
.menu-toggle span{display:block;width:24px;height:2px;background:#2a201a;margin:5px 0;transition:all .3s}
.menu-toggle.open span:nth-child(1){transform:rotate(45deg) translate(5px,5px)}
.menu-toggle.open span:nth-child(2){opacity:0}
.menu-toggle.open span:nth-child(3){transform:rotate(-45deg) translate(5px,-5px)}

@media(max-width:768px){
  .menu-toggle{display:block;position:absolute;right:24px;top:30px}
  .nav-menu{display:none;flex-direction:column;width:100%;gap:0;padding:12px 0}
  .nav-menu.open{display:flex}
  .nav-menu a{padding:12px 0;border-bottom:1px solid #e3d8c4}
  .site-header{position:relative}
}

/* Homepage main */
main{padding:0 0 64px}
.sr-h1{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}

/* Hero — image overlay with text on top (Style 6 per brief) */
.hero{position:relative;min-height:480px;background:#2a201a center/cover no-repeat;display:flex;align-items:center;justify-content:center;text-align:center;color:#fff;margin-bottom:56px}
.hero::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg, rgba(20,12,6,0.45) 0%, rgba(20,12,6,0.6) 100%)}
.hero .hero-inner{position:relative;z-index:2;max-width:760px;padding:60px 24px}
.hero h1{color:#fff;font-size:3.4rem;line-height:1.05;margin-bottom:18px;letter-spacing:-0.01em}
.hero p{color:#f3e7d3;font-size:1.18rem;font-style:italic;font-family:'DM Serif Display',Georgia,serif;line-height:1.5;margin-bottom:0}
@media(max-width:768px){
  .hero{min-height:380px}
  .hero h1{font-size:2.3rem}
  .hero p{font-size:1.05rem}
}

/* Homepage container under hero */
.home-container{padding:0 24px}

/* Featured post (top of home) */
.featured-post{margin-bottom:56px}
.featured-post .card{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:36px;align-items:center}
.featured-post .card-image{min-width:0;overflow:hidden;border-radius:6px;aspect-ratio:4/3;background:#e3d8c4}
.featured-post .card-image img{width:100%;height:100%;object-fit:cover}
.featured-body{min-width:0;background:#f7f1e6;position:relative;z-index:1}
.featured-post .card-category{color:#b04a2f;font-family:'Inter',sans-serif;text-transform:uppercase;letter-spacing:2.6px;font-size:0.72rem;font-weight:600;display:inline-block;margin-bottom:14px}
.featured-post h2{font-size:2.1rem;margin-bottom:14px;line-height:1.15}
.featured-post .card-meta{font-size:0.85rem;color:#7a6b58;margin:14px 0 0 0;font-family:'Inter',sans-serif}
.featured-post .card-excerpt{font-size:1.05rem;color:#4a3d33;margin-top:14px;line-height:1.65}

@media(max-width:768px){
  .featured-post .card{grid-template-columns:1fr;gap:20px}
  .featured-post h2{font-size:1.6rem}
}

/* Section label */
.section-label{font-family:'Inter',sans-serif;text-transform:uppercase;letter-spacing:2.8px;font-size:0.72rem;color:#b04a2f;font-weight:600;margin-bottom:22px;border-top:1px solid #d6c7ab;padding-top:22px}

/* Post grid */
.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:34px}
@media(max-width:900px){.post-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.post-grid{grid-template-columns:1fr}}

.card{display:block;color:inherit}
.card-image{aspect-ratio:4/3;overflow:hidden;border-radius:6px;background:#e3d8c4;margin-bottom:14px}
.card-image img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.card:hover .card-image img{transform:scale(1.04)}
.card-category{display:inline-block;color:#b04a2f;font-family:'Inter',sans-serif;text-transform:uppercase;letter-spacing:2.4px;font-size:0.7rem;font-weight:600;margin-bottom:8px}
.card h2,.card h3{font-size:1.25rem;margin-bottom:8px;line-height:1.25}
.card-meta{font-size:0.8rem;color:#7a6b58;font-family:'Inter',sans-serif}
.card-excerpt{font-size:0.95rem;color:#4a3d33;margin-top:8px;line-height:1.55}

/* Article (post page) */
.article{max-width:720px;margin:0 auto;padding:48px 24px 64px}
.article-header{margin-bottom:36px}
.article-header .breadcrumb{font-family:'Inter',sans-serif;text-transform:uppercase;letter-spacing:2.6px;font-size:0.72rem;color:#b04a2f;font-weight:600;margin-bottom:18px}
.article-header h1{font-size:2.5rem;line-height:1.15;margin-bottom:18px}
.article-meta{color:#7a6b58;font-size:0.9rem;font-family:'Inter',sans-serif}
.article-image{margin:28px 0 36px 0;background:#e3d8c4;border-radius:6px;overflow:hidden}
.article-image img{width:100%;height:auto}
.article-content p{margin-bottom:1.2rem;font-size:1.05rem;color:#2a201a}
.article-content h2{margin-top:2rem;margin-bottom:1rem;font-size:1.6rem}
.article-content h3{margin-top:1.4rem;margin-bottom:0.8rem;font-size:1.2rem}
.article-content a{color:#b04a2f;text-decoration:underline;text-decoration-color:rgba(176,74,47,0.35);text-underline-offset:3px}
.article-content a:hover{text-decoration-color:#b04a2f}

/* Related posts */
.related-posts{max-width:1000px;margin:24px auto 64px;padding:0 24px}
.related-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:28px;margin-top:16px}
@media(max-width:700px){.related-grid{grid-template-columns:1fr}}

/* Category page */
.category-header{max-width:720px;margin:0 auto 36px;padding:0 24px;text-align:center}
.category-header .breadcrumb{font-family:'Inter',sans-serif;text-transform:uppercase;letter-spacing:2.6px;font-size:0.72rem;color:#b04a2f;font-weight:600;margin-bottom:16px}
.category-header h1{font-size:2.4rem;margin-bottom:14px}
.category-header p{color:#4a3d33;font-size:1.05rem}
.category-posts{max-width:1000px;margin:0 auto 64px;padding:0 24px}

/* Standard pages (about/contact/etc) */
.page{max-width:720px;margin:0 auto;padding:48px 24px 64px}
.page h1{font-size:2.4rem;margin-bottom:18px}
.page h2{font-size:1.5rem;margin-top:1.8rem;margin-bottom:0.8rem}
.page p{font-size:1.05rem;color:#2a201a;margin-bottom:1.1rem}
.page a{color:#b04a2f;text-decoration:underline;text-decoration-color:rgba(176,74,47,0.35);text-underline-offset:3px}
.page a:hover{text-decoration-color:#b04a2f}
.page .meta-line{color:#7a6b58;font-size:0.9rem;font-family:'Inter',sans-serif;margin-bottom:30px}

/* Footer */
.site-footer{background:#f7f1e6;border-top:1px solid #e3d8c4;padding:50px 0 30px 0;margin-top:40px}
.footer-inner{max-width:1000px;margin:0 auto;padding:0 24px;display:flex;flex-direction:column;align-items:center;gap:22px;text-align:center}
.footer-logo img{max-width:70%;height:auto;margin:0 auto}
.footer-tagline{color:#4a3d33;font-size:0.95rem;font-family:'DM Serif Display',Georgia,serif;font-style:italic;max-width:480px}
.footer-nav{display:flex;gap:24px;flex-wrap:wrap;justify-content:center;font-size:0.78rem;letter-spacing:2.2px;text-transform:uppercase;font-weight:500}
.footer-nav a{color:#3b2f24;border-bottom:1px solid transparent;padding:2px 0;transition:border-color .2s ease}
.footer-nav a:hover{border-bottom-color:#b04a2f;color:#b04a2f}
.footer-bottom{margin-top:18px;padding-top:18px;border-top:1px solid #e3d8c4;width:100%;font-size:0.82rem;color:#7a6b58;font-family:'Inter',sans-serif}
