/* ============================================================
   khaledjassem.com — article / blog page styles
   ============================================================ */

.article-wrap {
  width: min(740px, 92vw);
  margin-inline: auto;
  padding: clamp(100px, 14vh, 150px) 0 clamp(60px, 8vh, 100px);
}

/* breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: "Spline Sans Mono", monospace; font-size: 0.72rem;
  letter-spacing: 0.1em; color: var(--muted);
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--line); }

/* article header */
.article-header { margin-bottom: 48px; border-bottom: 1px solid var(--line-soft); padding-bottom: 36px; }
.article-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.article-tag {
  font-family: "Spline Sans Mono", monospace; font-size: 0.69rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 12px; color: var(--gold);
}
.article-date, .article-read {
  font-family: "Spline Sans Mono", monospace; font-size: 0.7rem;
  letter-spacing: 0.12em; color: var(--muted);
}
.article-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15; margin-bottom: 18px;
}
.article-lede {
  font-size: 1.08rem; color: var(--muted); line-height: 1.7;
  margin-bottom: 28px;
}
.article-author {
  display: flex; align-items: center; gap: 14px;
}
.article-author img {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--line);
}
.article-author strong { display: block; font-size: 0.92rem; color: var(--text); }
.article-author span { font-size: 0.78rem; color: var(--muted); }

/* article body */
.article-body {
  font-size: 1.02rem; line-height: 1.82;
  color: var(--text);
}
.article-body h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  margin: 2.2em 0 0.8em;
  color: var(--text);
}
.article-body p { margin-bottom: 1.4em; }
.article-body p:last-child { margin-bottom: 0; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a {
  color: var(--gold); text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--gold) 40%, transparent);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.article-body a:hover { text-decoration-color: var(--gold); }

/* footer */
.article-footer {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 36px;
  border-top: 1px solid var(--line-soft);
}

/* related */
.article-related { margin-top: 64px; }
.article-related h3 {
  font-size: 1.05rem; color: var(--muted);
  letter-spacing: 0.02em; margin-bottom: 20px;
}
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: 14px;
}
.related-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 18px 20px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line-soft);
  text-decoration: none; color: inherit;
  transition: border-color 0.25s, transform 0.25s;
}
.related-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.related-card .article-tag { align-self: flex-start; }
.related-card strong { font-size: 0.9rem; line-height: 1.4; color: var(--text); }

@media (max-width: 600px) {
  .article-footer { flex-direction: column; }
  .related-grid { grid-template-columns: 1fr; }
}
