:root {
  --cream: #faf7f2;
  --dark: #16120e;
  --ink: #2a2118;
  --warm: #8b6f4e;
  --accent: #e85c2d;
  --accent2: #4a7c59;
  --accent3: #3d6b9e;
  --border: #e2d9ce;
  --muted: #9c8878;
  --surface: #f4efe8;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-tap-highlight-color: rgba(232,92,45,0.15);
}
button, a, select, input, textarea, .post-card { touch-action: manipulation; }
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 900; color: var(--dark); letter-spacing: -0.5px; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { text-decoration: none; color: var(--warm); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--dark); }
.btn-ghost { padding: 8px 16px; border-radius: 8px; background: none; border: 1px solid var(--border); color: var(--ink); font-family: 'Cabinet Grotesk', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all 0.2s; }
.btn-ghost:hover { background: var(--surface); }
.hamburger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 40px; height: 40px; background: none; border: none; cursor: pointer; padding: 0; flex-shrink: 0; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.2s; }

/* Nav layout — center menu, push CTA + lang switcher to right */
@media (min-width: 601px) {
  nav .nav-links {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
  }
  nav > div:has(> .btn-ghost) {
    margin-inline-start: auto;
  }
}

.blog-hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: 72px 40px 56px; text-align: center; }
.blog-hero .tag { display: inline-block; background: var(--accent); color: white; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; margin-bottom: 20px; }
.blog-hero h1 { font-family: 'Instrument Serif', serif; font-size: clamp(34px, 5vw, 56px); font-weight: 400; color: var(--dark); line-height: 1.15; margin-bottom: 16px; }
.blog-hero h1 em { font-style: italic; color: var(--accent); }
.blog-hero p { font-size: 17px; color: var(--warm); max-width: 620px; margin: 0 auto; line-height: 1.6; }

.post-list { max-width: 920px; margin: 0 auto; padding: 72px 40px 96px; display: grid; gap: 36px; }
.post-card { display: block; background: white; border: 1px solid var(--border); border-radius: 16px; padding: 36px 40px; text-decoration: none; color: var(--ink); transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.post-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(232, 92, 45, 0.08); }
.post-meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin-bottom: 14px; flex-wrap: wrap; }
.post-meta .dot { color: var(--border); }
.post-card h2 { font-family: 'Instrument Serif', serif; font-size: clamp(24px, 3vw, 32px); font-weight: 400; color: var(--dark); line-height: 1.25; margin-bottom: 12px; }
.post-card p { font-size: 15px; color: var(--warm); line-height: 1.65; margin-bottom: 20px; }
.read-more { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.5px; }
.post-card.featured { background: linear-gradient(135deg, #fff8f4 0%, #faf7f2 100%); border: 2px solid var(--accent); }
.post-card.featured .featured-tag { display: inline-block; background: var(--accent); color: white; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; padding: 3px 10px; border-radius: 12px; margin-bottom: 16px; }

footer { background: var(--dark); padding: 60px 40px 40px; color: #6b5f52; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; border-bottom: 1px solid #2a241c; padding-bottom: 48px; }
.footer-brand .logo { color: #f4efe8; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 260px; }
.footer-col h4 { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #a89d90; margin-bottom: 16px; font-weight: 700; }
.footer-col a { display: flex; align-items: center; min-height: 44px; font-size: 13px; color: #6b5f52; text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: #f4efe8; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 12px; flex-wrap: wrap; gap: 12px; }

/* RTL adjustments — Arabic */
html[dir="rtl"] .blog-hero { text-align: center; }
html[dir="rtl"] .post-card h2 { text-align: right; }
html[dir="rtl"] .post-card p { text-align: right; }

@media (max-width: 768px) {
  nav { padding: 0 20px; height: 56px; }
  .nav-links { display: none; position: absolute; top: 56px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; padding: 16px 20px 20px; background: var(--cream); border-bottom: 1px solid var(--border); }
  .nav-links.mobile-open { display: flex; }
  .nav-links.mobile-open a { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
  .hamburger { display: flex; }
  nav .btn-ghost { display: none; }
  .blog-hero { padding: 48px 20px 36px; }
  .post-list { padding: 48px 20px 64px; gap: 24px; }
  .post-card { padding: 28px 24px; }
  .footer-top { grid-template-columns: 1fr; }
  footer { padding: 40px 20px 28px; }
}
