/* ============================================================
   Liza Couture — journal
   Loaded on /journal/ and on every article, after site.css.

   Everything here uses logical properties (inline-start / end,
   padding-inline) so the Arabic RTL mirror needs no separate rules.
   Small text roles reuse the AA-safe companions declared in site.css.
   ============================================================ */

/* ---------- breadcrumb ---------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--taupe-aa);
  margin-bottom: 40px;
}
.crumbs a { color: var(--taupe-aa); transition: color var(--dur-base) var(--ease-standard); }
.crumbs a:hover { color: var(--gold-deep-aa); }
.crumbs [aria-current] { color: var(--espresso); }
.crumbs span[aria-hidden] { color: var(--gold-soft); }
html[lang='ar'] .crumbs { letter-spacing: 0; font-size: 13px; text-transform: none; }

/* ---------- journal index ---------- */

.journal-intro { padding-block: 64px 8px; }
.journal-intro__inner { max-width: 720px; }
.journal-intro__body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  color: var(--mocha);
  margin: 24px 0 0;
}

.journal-featured { padding-block: 40px 88px; }
.journal-featured .label { margin-bottom: 22px; }

/* The newest entry runs wide: image beside copy, stacking at 900px.
   `.post__frame` and `.post__copy` are the only two children, so the
   same card markup serves both the wide and the grid variant. */
.post--featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 44px;
  align-items: center;
}
.post--featured .post__frame { aspect-ratio: 3 / 2; }
.post--featured .post__date { margin-top: 0; }
.post--featured h3 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.15; }
.post--featured .post__excerpt { font-size: 16px; }

/* ---------- cards (shared with the landing page section) ---------- */

.post__badge { position: absolute; top: 14px; inset-inline-start: 14px; }

.post__excerpt {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--mocha);
  margin: 10px 0 0;
}
.post__more {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep-aa);
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 3px;
}
html[lang='ar'] .post__more { letter-spacing: 0; font-size: 13px; }

/* ---------- article ---------- */

.article { padding-block: 64px 0; }
.article__shell { max-width: 760px; margin-inline: auto; }

.article__head { margin-bottom: 44px; }
.article__title {
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.08;
  margin: 0 0 24px;
}
.article__lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 21px;
  line-height: 1.6;
  color: var(--mocha);
  margin: 0 0 30px;
}
html[lang='ar'] .article__lede { font-style: normal; line-height: 1.9; font-size: 20px; }

.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-top: 18px;
  font-family: var(--font-body);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--taupe-aa);
}
.article__byline { display: inline-flex; gap: 6px; color: var(--espresso); }
html[lang='ar'] .article__meta { letter-spacing: 0; font-size: 13px; text-transform: none; }

.article__hero {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--champagne);
  margin: 0 0 52px;
}
.article__hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- article body ---------- */

.article__body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  color: var(--espresso);
}
.article__body > p { margin: 0 0 26px; }

.article__body h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: var(--ls-tight);
  color: var(--espresso);
  margin: 52px 0 18px;
}
.article__body h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: 23px;
  color: var(--espresso);
  margin: 38px 0 14px;
}
html[lang='ar'] .article__body h2 { letter-spacing: 0; line-height: 1.4; }
.article__body > :first-child { margin-top: 0; }

/* Article bodies are Markdown now, so these hang off the elements the
   renderer emits rather than off classes the old generator wrote in. */
.article__body ul,
.article__body ol { margin: 0 0 26px; padding: 0; list-style: none; }
.article__body li {
  position: relative;
  padding-inline-start: 26px;
  margin-bottom: 16px;
}
/* Ornament instead of a bullet — the atelier lozenge used across the page.
   Inlined rather than linked so a bullet never waits on a second request;
   the fill is --gold (#A98A57), which a data URI cannot read from a token.
   margin-top optically centres it on the first line (17px × 1.85). */
.article__body li::before {
  content: '';
  position: absolute;
  inset-inline-start: 1px;
  top: 0;
  margin-top: 0.63em;
  width: 10px;
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.4 20.2 12 12 21.6 3.8 12Z' fill='none' stroke='%23A98A57' stroke-width='1.4' stroke-linejoin='round' opacity='.55'/%3E%3Cpath d='M12 7.6 15.6 12 12 16.4 8.4 12Z' fill='%23A98A57'/%3E%3C/svg%3E") no-repeat center / contain;
}
.article__body ol { counter-reset: step; }
.article__body ol li::before {
  counter-increment: step;
  content: counter(step);
  /* undo the ornament box — numbered steps set type, not an image */
  background: none;
  margin-top: 0;
  width: auto;
  height: auto;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.75;
  color: var(--gold-deep-aa);
}
/* Prices and dates elsewhere on the site use Arabic-Indic digits; the
   step numerals follow so a translated list does not read half-Latin. */
html[lang='ar'] .article__body ol li::before { content: counter(step, arabic-indic); }
/* "**Lead** — rest" in the Markdown; the lead carries the emphasis. */
.article__body li > strong:first-child { font-weight: var(--fw-medium); color: var(--espresso); }

.article__body blockquote {
  margin: 40px 0;
  padding-inline-start: 28px;
  border-inline-start: 2px solid var(--gold-soft);
}
.article__body blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  line-height: 1.5;
  color: var(--espresso);
  margin: 0;
}
html[lang='ar'] .article__body blockquote p { font-style: normal; line-height: 1.8; font-size: 22px; }

/* ---------- article footer ---------- */

.article__foot { margin: 64px 0 0; padding-bottom: 8px; }
.article__foot .rule { margin-bottom: 28px; }

.article__tags { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 18px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tag {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--mocha);
  background: var(--gold-wash);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
}

.article__foot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* ---------- newer / older ---------- */

.article-pager { padding-block: 64px 0; }
.article-pager__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
  max-width: 760px;
  margin-inline: auto;
}
.article-pager__inner--single { grid-template-columns: 1fr; }
.article-pager__link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--warm-white);
  transition: border-color var(--dur-base) var(--ease-standard);
}
.article-pager__link:hover { border-color: var(--gold-soft); }
.article-pager__link--next { text-align: end; }
.article-pager__label {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe-aa);
}
html[lang='ar'] .article-pager__label { letter-spacing: 0; font-size: 12px; }
.article-pager__title {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.3;
  color: var(--espresso);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
  .journal-intro { padding-block: 48px 0; }
  .journal-featured { padding-block: 32px 64px; }
  .post--featured { grid-template-columns: 1fr; gap: 8px; }
  .post--featured .post__frame { aspect-ratio: 4 / 3; }
  .post--featured .post__date { margin-top: 16px; }   /* stacked again, so restore the gap */

  .article { padding-block: 48px 0; }
  .article__hero { margin-bottom: 40px; }
  .article__body { font-size: 16.5px; }
  .article__body h2 { font-size: 26px; margin-top: 44px; }
  .article-pager { padding-block: 48px 0; }
}

@media (max-width: 640px) {
  .crumbs { margin-bottom: 28px; font-size: 10px; gap: 8px; }
  .article__lede { font-size: 19px; }
  .article__body blockquote { margin: 32px 0; padding-inline-start: 20px; }
  .article__body blockquote p { font-size: 21px; }
  .article__foot-actions .btn { width: 100%; }

  .article-pager__inner { grid-template-columns: 1fr; }
  .article-pager__link--next { text-align: start; }
}
