/* ============================================================
   Dojo Poker — Journal article layout
   Loaded AFTER ../colors_and_type.css on every article page.
   ============================================================ */

body { background: var(--paper); }

/* --- Article top bar --- */
.article-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 240, 230, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-faint);
}
.article-nav__inner {
  width: min(1100px, 100% - 48px);
  margin-inline: auto;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}
.article-nav__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.article-nav__brand img { height: 44px; width: auto; display: block; }
.article-nav__back {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none;
}
.article-nav__back:hover { color: var(--ember-deep); }

/* --- Article shell --- */
.article {
  width: min(720px, 100% - 48px);
  margin: 0 auto;
  padding: 72px 0 40px;
}
.article__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ember-deep);
  margin-bottom: 20px;
}
.article__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 24px;
  text-wrap: balance;
}
.article__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.06em;
  color: var(--ink-soft);
  padding-bottom: 32px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.article__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-faint); }

/* --- Article body typography --- */
.article__body { font-size: 19px; line-height: 1.7; color: var(--ink); }
.article__body > p { margin: 0 0 24px; text-wrap: pretty; }
.article__body > p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 3.4em;
  line-height: 0.8;
  float: left;
  margin: 6px 12px 0 0;
  color: var(--ember-deep);
}
.article__body h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  color: var(--ink);
  margin: 48px 0 16px;
}
.article__body h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 21px;
  color: var(--ink);
  margin: 36px 0 12px;
}
.article__body a { color: var(--ember-deep); text-decoration: underline; text-underline-offset: 3px; }
.article__body blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--ember);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink);
}
.article__body ul, .article__body ol { margin: 0 0 24px; padding-left: 24px; }
.article__body li { margin-bottom: 10px; }
.article__body hr { border: 0; border-top: 1px solid var(--border); margin: 48px 0; }
.article__body img { width: 100%; height: auto; border-radius: var(--radius-md); margin: 32px 0; }

/* --- End CTA --- */
.article-cta {
  width: min(720px, 100% - 48px);
  margin: 24px auto 96px;
  padding: 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--paper-warm) 0%, var(--paper-dim) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
}
.article-cta__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 26px;
  color: var(--ink);
  margin: 0 0 10px;
}
.article-cta__copy { color: var(--ink-soft); margin: 0 0 24px; }
.article-cta__btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 28px;
  background: var(--ember); color: var(--paper-warm);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-weight: 700; font-size: 16px;
  text-decoration: none;
  box-shadow: var(--shadow-1), var(--shadow-inset-top);
  transition: background 120ms var(--ease-out);
}
.article-cta__btn:hover { background: var(--ember-deep); }

/* --- Footer --- */
.article-foot {
  text-align: center;
  padding: 32px 24px 48px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.05em;
  color: var(--ink-mute);
}

@media (max-width: 600px) {
  .article { padding-top: 48px; }
  .article__body { font-size: 17px; }
  .article-cta { padding: 28px 22px; }
}
