/* Article pages — layered on top of styles.css, which supplies the
   design tokens, the topbar and the button styles. Only what the
   article layout adds lives here. */

.article-body {
  background: var(--bg, #070c14);
  color: var(--ink, #e8eef8);
}

.article-wrap {
  width: 100%;
  max-width: 760px;          /* ~72 characters — a comfortable measure */
  margin: 0 auto;
  padding: 32px 20px calc(64px + env(safe-area-inset-bottom));
}

.article h1,
.article-wrap > h1 {
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.2;
  letter-spacing: -.03em;
  margin: 8px 0 12px;
}

/* Hebrew and Arabic have no tight Latin tracking; negative letter
   spacing pinches the joins. */
html[lang="he"] h1, html[lang="ar"] h1,
html[lang="he"] h2, html[lang="ar"] h2 { letter-spacing: normal; }

.article h2 {
  font-size: clamp(19px, 2.6vw, 24px);
  line-height: 1.3;
  letter-spacing: -.02em;
  margin: 34px 0 10px;
}

.article p {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.72;         /* long-form needs more air than UI text */
  color: color-mix(in srgb, var(--ink, #e8eef8) 88%, transparent);
}

.article em { font-style: italic; color: var(--ink, #e8eef8); }

.article-lede {
  font-size: 18.5px;
  line-height: 1.6;
  color: var(--mut, #8ea7bb);
  margin-bottom: 22px;
}

.article-meta {
  font-size: 13px;
  color: var(--mut, #8ea7bb);
  margin: 0 0 20px;
  /* Dates are numerals: keep them LTR inside RTL prose. */
  unicode-bidi: plaintext;
}

.eyebrow a {
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mut, #8ea7bb);
  text-decoration: none;
}
.eyebrow a:hover { color: var(--accent, #22e3c3); }

/* ── Hub list ─────────────────────────────────────────────────── */
.article-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.article-card a {
  display: block;
  padding: 20px 22px;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  background: color-mix(in srgb, var(--ink, #e8eef8) 4%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink, #e8eef8) 10%, transparent);
  transition: border-color .18s, transform .12s;
}
.article-card a:hover {
  border-color: color-mix(in srgb, var(--accent, #22e3c3) 45%, transparent);
  transform: translateY(-1px);
}
.article-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.article-card p { margin: 0 0 8px; color: var(--mut, #8ea7bb); font-size: 15px; }
.article-card .article-meta { margin: 0; }

/* ── Inline CTA ───────────────────────────────────────────────── */
.article-cta {
  margin: 40px 0 28px;
  padding: 24px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent, #22e3c3) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, #22e3c3) 28%, transparent);
}
.article-cta h2 { margin: 0 0 8px; font-size: 21px; letter-spacing: -.02em; }
.article-cta p { margin: 0 0 16px; color: var(--mut, #8ea7bb); }

/* Reader arriving cold from search is browsing, not buying: the demo is
   the low-commitment step next to the primary "start free". */
.article-cta .btn { vertical-align: middle; }
.article-cta .cta-alt {
  display: inline-block;
  vertical-align: middle;
  margin-inline-start: 16px;
  font-size: 15px;
  color: var(--accent, #22e3c3);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.article-cta .cta-alt:hover {
  border-bottom-color: color-mix(in srgb, var(--accent, #22e3c3) 55%, transparent);
}

@media (max-width: 480px) {
  /* Side by side, the two would wrap with a dangling inline offset. */
  .article-cta .cta-alt { display: block; margin: 14px 0 0; }
}

/* ── Language switcher ────────────────────────────────────────
   Real links to real translated URLs, so this doubles as internal
   linking between the hreflang cluster rather than a JS toggle. */
.lang-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--ink, #e8eef8) 10%, transparent);
  font-size: 14px;
  color: var(--mut, #8ea7bb);
}
.lang-switch a { color: var(--accent, #22e3c3); text-decoration: none; }
.lang-switch a:hover { text-decoration: underline; }
.lang-switch a[aria-current="true"] {
  color: var(--mut, #8ea7bb);
  pointer-events: none;
}

.site-foot {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  color: var(--mut, #8ea7bb);
  font-size: 13px;
  text-align: center;
}
.site-foot .brand-logo-foot { height: 26px; width: auto; opacity: .8; }
.site-foot a { color: var(--accent, #22e3c3); }

@media (max-width: 640px) {
  .article p { font-size: 16.5px; }
  .article-wrap { padding-top: 20px; }
}
