/* ==========================================================================
   Azkhaa Journal: index, article, cards
   ========================================================================== */
body.page-blog { background: var(--cream-50); }
.narrow-wide { width: min(100% - 2 * var(--gutter), 1040px); margin-inline: auto; }

.chip { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(205, 164, 90, 0.45); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-400); background: rgba(205, 164, 90, 0.08); transition: background 0.3s, color 0.3s, border-color 0.3s; }
a.chip:hover, .chip.is-on { background: var(--gold-gradient); color: #2a1c13; border-color: transparent; }
.on-light .chip, .post-card .chip { color: var(--gold-700); background: rgba(176, 138, 67, 0.1); border-color: rgba(176, 138, 67, 0.35); }

/* ---------------------------------------------------------------- index */
.journal-hero { position: relative; padding: clamp(150px, 20vw, 230px) 0 clamp(70px, 9vw, 120px); background: radial-gradient(ellipse 70% 80% at 85% 10%, rgba(205, 164, 90, 0.16), transparent 65%), radial-gradient(ellipse 50% 60% at 0% 100%, rgba(140, 90, 40, 0.18), transparent 70%), var(--espresso-800); overflow: hidden; }
.journal-hero::after { content: "نوى"; position: absolute; right: -2vw; bottom: -6vw; font-family: var(--font-arabic); font-size: clamp(12rem, 30vw, 34rem); line-height: 1; color: rgba(205, 164, 90, 0.05); pointer-events: none; user-select: none; }
.journal-title { font-size: clamp(3.2rem, 8vw, 7rem); line-height: 0.96; letter-spacing: -0.025em; color: var(--cream-50); max-width: 12ch; }
.journal-title em { font-style: italic; font-weight: 400; background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.journal-lead { max-width: 560px; margin: 28px 0 0; font-size: 1.18rem; color: var(--on-dark-soft); }
.journal-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; position: relative; z-index: 1; }
.journal-empty { padding: 60px 0; text-align: center; color: var(--ink-soft); font-family: var(--font-display); font-size: 1.8rem; }
.journal-list { padding-top: clamp(60px, 8vw, 100px); }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 40px); }
.post-card { position: relative; }
.post-card > a { display: grid; gap: 22px; height: 100%; align-content: start; }
.post-card figure { margin: 0; overflow: hidden; border-radius: 26px; aspect-ratio: 4 / 3; background: var(--espresso-700); box-shadow: 0 30px 60px -40px rgba(42, 28, 19, 0.6); }
.post-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-card:hover figure img { transform: scale(1.06); }
.post-card-fallback { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--font-display); font-size: 5rem; color: var(--gold-500); }
.post-card-meta { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 0.78rem; letter-spacing: 0.08em; color: var(--ink-soft); }
.post-card h3 { font-size: clamp(1.55rem, 2.1vw, 2rem); line-height: 1.12; transition: color 0.3s; }
.post-card:hover h3 { color: var(--gold-700); }
.post-card-desc { margin: 12px 0 0; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-more { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-700); }
.post-card-more .icon { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.post-card:hover .post-card-more .icon { transform: translateX(6px); }

.post-card.is-featured { margin-bottom: clamp(50px, 7vw, 90px); }
.post-card.is-featured > a { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
.post-card.is-featured figure { aspect-ratio: 5 / 4; border-radius: 34px; }
.post-card.is-featured h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1.04; letter-spacing: -0.015em; }
.post-card.is-featured:hover h2 { color: var(--gold-700); }
.post-card.is-featured .post-card-desc { font-size: 1.1rem; -webkit-line-clamp: 4; }

/* ---------------------------------------------------------------- article */
.post-hero { position: relative; padding: clamp(150px, 19vw, 220px) 0 clamp(90px, 11vw, 150px); background: radial-gradient(ellipse 60% 80% at 80% 0%, rgba(205, 164, 90, 0.16), transparent 65%), var(--espresso-800); }
.post-hero-inner { width: min(100% - 2 * var(--gutter), 920px); margin-inline: auto; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 26px; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-soft); }
.crumbs a:hover { color: var(--gold-300); }
.crumbs span[aria-current] { color: var(--gold-400); }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.post-title { font-size: clamp(2.6rem, 6.2vw, 5.4rem); line-height: 1; letter-spacing: -0.022em; color: var(--cream-50); text-wrap: balance; }
.post-lede { max-width: 700px; margin: 28px 0 0; font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-style: italic; line-height: 1.45; color: var(--gold-200); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 34px 0 0; padding-top: 24px; border-top: 1px solid rgba(205, 164, 90, 0.22); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-soft); }

.post-cover { position: relative; z-index: 2; width: min(100% - 2 * var(--gutter), 1240px); margin: calc(-1 * clamp(50px, 7vw, 90px)) auto 0; overflow: hidden; border-radius: clamp(22px, 3vw, 40px); aspect-ratio: 16 / 9; background: var(--espresso-700); box-shadow: 0 60px 100px -50px rgba(0, 0, 0, 0.7); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }

.post-layout { display: grid; grid-template-columns: 230px minmax(0, 720px) 110px; justify-content: center; gap: clamp(30px, 4vw, 60px); padding-block: clamp(60px, 8vw, 110px); align-items: start; }
.post-toc, .post-share { position: sticky; top: calc(var(--header-h) + 28px); font-size: 0.9rem; }
.post-toc-title { margin: 0 0 14px; font-size: 0.66rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-700); }
.post-toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid rgba(42, 28, 19, 0.14); }
.post-toc li a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; line-height: 1.4; color: var(--ink-soft); transition: color 0.25s, border-color 0.25s; }
.post-toc li a:hover { color: var(--ink); }
.post-toc li a.is-active { color: var(--ink); border-left-color: var(--gold-600); font-weight: 500; }
.post-toc.is-empty { visibility: hidden; }
.post-share { display: grid; gap: 4px; justify-items: start; }
.post-share a, .post-share button { padding: 7px 0; font-size: 0.86rem; color: var(--ink-soft); border-bottom: 1px solid transparent; transition: color 0.25s, border-color 0.25s; }
.post-share a:hover, .post-share button:hover { color: var(--gold-700); border-bottom-color: currentColor; }

.post-body { font-size: clamp(1.08rem, 1.15vw, 1.2rem); line-height: 1.85; color: #2f2219; font-weight: 300; }
.post-body > * + * { margin-top: 1.5em; }
.post-body p { margin: 0; }
.post-body strong { font-weight: 500; color: var(--ink); }
.post-body a { color: var(--gold-700); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color 0.2s; }
.post-body a:hover { color: var(--ink); }
.post-body .lede-p { font-size: 1.12em; color: var(--ink); }
.post-body .lede-p::first-letter { float: left; margin: 0.06em 0.12em 0 -0.02em; font-family: var(--font-display); font-size: 5.1em; line-height: 0.78; font-weight: 500; background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.post-body h2 { position: relative; margin-top: 2.4em; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.08; letter-spacing: -0.015em; scroll-margin-top: calc(var(--header-h) + 20px); }
.post-body h2 + * { margin-top: 0.9em; }
.post-body h3 { margin-top: 1.9em; font-size: clamp(1.5rem, 2.3vw, 1.9rem); line-height: 1.15; scroll-margin-top: calc(var(--header-h) + 20px); }
.post-body h3 + * { margin-top: 0.6em; }
.post-body .anchor { position: absolute; left: -1.1em; color: var(--gold-500); opacity: 0; text-decoration: none; font-family: var(--font-body); font-size: 0.7em; transition: opacity 0.2s; }
.post-body h2:hover .anchor { opacity: 1; }
.post-body ul, .post-body ol { padding-left: 0; list-style: none; display: grid; gap: 0.6em; }
.post-body ul li { position: relative; padding-left: 1.6em; }
.post-body ul li::before { content: ""; position: absolute; left: 0.2em; top: 0.78em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-600); }
.post-body ol { counter-reset: n; }
.post-body ol li { position: relative; padding-left: 2.4em; counter-increment: n; }
.post-body ol li::before { content: counter(n); position: absolute; left: 0; top: 0.1em; width: 1.7em; height: 1.7em; display: grid; place-items: center; border-radius: 50%; background: var(--espresso-800); color: var(--gold-300); font-size: 0.78em; font-weight: 500; }
.post-body code { padding: 2px 7px; border-radius: 6px; background: rgba(42, 28, 19, 0.07); font-size: 0.88em; }
.post-rule { border: 0; height: 1px; margin-block: 3em; background: linear-gradient(90deg, transparent, var(--gold-500), transparent); overflow: visible; position: relative; }
.post-rule::after { content: "◆"; position: absolute; left: 50%; top: -0.75em; transform: translateX(-50%); padding: 0 14px; background: var(--cream-50); color: var(--gold-600); font-size: 0.8rem; }

.pull-quote { position: relative; margin-inline: -2%; padding: 2.2em 0 0.6em; text-align: center; }
.pull-quote::before { content: "“"; position: absolute; top: -0.1em; left: 50%; transform: translateX(-50%); font-family: var(--font-display); font-size: 6rem; line-height: 1; color: var(--gold-500); opacity: 0.55; }
.pull-quote p { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.45rem); font-style: italic; line-height: 1.3; color: var(--ink); text-wrap: balance; }
.pull-quote cite { display: block; margin-top: 1em; font-size: 0.78rem; font-style: normal; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-700); }

.callout { padding: 1.5em 1.7em; border-radius: 22px; background: #fff; border: 1px solid rgba(42, 28, 19, 0.08); border-left: 4px solid var(--gold-600); box-shadow: 0 24px 44px -34px rgba(60, 38, 18, 0.45); font-size: 0.97em; line-height: 1.7; }
.callout > * + * { margin-top: 0.7em; }
.callout-title { font-family: var(--font-display); font-size: 1.45em; font-weight: 500; line-height: 1.15; color: var(--ink); }
.callout-tip { border-left-color: #6a8a45; background: #fbfdf7; }
.callout-recipe { background: var(--espresso-800); border-color: transparent; border-left-color: var(--gold-500); color: var(--on-dark); }
.callout-recipe .callout-title { color: var(--gold-300); }
.callout-recipe strong { color: var(--cream-50); }
.callout-warning { border-left-color: #b3482c; background: #fff9f6; }
.callout ul li::before { background: var(--gold-500); }

.post-figure { margin-inline: clamp(-80px, -6vw, 0px); }
.post-figure img { width: 100%; border-radius: 24px; box-shadow: 0 40px 70px -46px rgba(42, 28, 19, 0.6); }
.post-figure figcaption { margin-top: 12px; text-align: center; font-size: 0.86rem; font-style: italic; color: var(--ink-soft); }

.post-table { overflow-x: auto; border-radius: 20px; box-shadow: 0 24px 44px -34px rgba(60, 38, 18, 0.45); background: #fff; }
.post-table table { width: 100%; border-collapse: collapse; font-size: 0.94em; }
.post-table th, .post-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid rgba(42, 28, 19, 0.08); }
.post-table th { background: var(--espresso-800); color: var(--gold-300); font-size: 0.72em; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.post-table tr:last-child td, .post-table tr:last-child th { border-bottom: 0; }
.post-table tbody th { background: transparent; color: var(--ink); font-size: inherit; font-weight: 500; letter-spacing: 0; text-transform: none; }

.post-cta { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 28px; align-items: center; margin-block: 3em; padding: 28px 32px; border-radius: 30px; background: radial-gradient(circle at 90% 0%, rgba(205, 164, 90, 0.22), transparent 60%), var(--espresso-800); color: var(--on-dark); box-shadow: 0 50px 80px -44px rgba(19, 14, 11, 0.8); }
.post-cta-media img { width: 100%; filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.5)); }
.post-cta-eyebrow { margin: 0 0 8px; font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-400); }
.post-cta h3 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: var(--cream-50); }
.post-cta p { margin: 10px 0 0; font-size: 0.96rem; line-height: 1.6; color: var(--on-dark-soft); }
.post-cta .post-cta-price { margin: 14px 0 18px; font-size: 1rem; color: var(--on-dark); }
.post-cta-price strong { font-family: var(--font-display); font-size: 1.9rem; font-weight: 500; color: var(--gold-300); }
.post-cta-price s { opacity: 0.55; margin-left: 6px; }
.post-body .post-cta a.btn { color: #2a1c13; text-decoration: none; }

.post-author { display: flex; gap: 22px; align-items: center; width: min(100% - 2 * var(--gutter), 720px); margin: 0 auto clamp(50px, 7vw, 90px); padding: 28px 0; border-top: 1px solid var(--line-light); }
.post-author img { flex: none; width: 64px; height: 64px; padding: 12px; border-radius: 50%; background: var(--espresso-800); }
.post-author-name { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.4rem; }
.post-author p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.post-author a { color: var(--gold-700); text-decoration: underline; text-underline-offset: 3px; }
.journal-related { background: var(--cream-100); }

/* home page teaser */
.journal-home { background: var(--cream-100); }
.journal-home .post-grid { margin-top: 10px; }
.journal-home-foot { margin-top: clamp(36px, 5vw, 60px); text-align: center; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .post-layout { grid-template-columns: minmax(0, 720px); }
  .post-toc { position: static; order: -1; padding: 22px 24px; border-radius: 22px; background: rgba(42, 28, 19, 0.04); }
  .post-toc.is-empty { display: none; }
  .post-share { position: static; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; order: 2; padding-top: 24px; border-top: 1px solid var(--line-light); }
  .post-share .post-toc-title { margin: 0 6px 0 0; }
  .post-figure { margin-inline: 0; }
  .post-body .anchor { display: none; }
}
@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-card.is-featured > a { grid-template-columns: 1fr; }
  .post-cover { aspect-ratio: 16 / 10; }
}
@media (max-width: 620px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-cta { grid-template-columns: 96px minmax(0, 1fr); gap: 18px; padding: 22px 20px; }
  .post-body .lede-p::first-letter { font-size: 4.4em; }
  .pull-quote { margin-inline: 0; }
}
@media print { .site-header, .post-share, .post-toc, .post-cta, .journal-related, .scroll-progress { display: none !important; } .post-hero { background: none; color: #000; padding-top: 20px; } .post-title, .post-lede { color: #000; } }
