/* Article pages (landing/blog/<slug>/). Original to MIRA (2026-10-05).
   Sits on top of components/blog/blog.css, which already gives the page its
   shell: .mira-blog body, container, "Back" link, CTA band and foot. This
   file only adds the long-form reading column. Tokens only. */

.mira-article {
  --article-ease: cubic-bezier(0.22, 1, 0.36, 1);
  padding: 24px 0 96px;
}

/* =========================================================
   HEADER
========================================================= */

.mira-article__header {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.mira-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: var(--fs-small);
  color: var(--ui-muted);
}

.mira-article__meta li + li::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 14px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
  opacity: 0.6;
}

.mira-article__category {
  color: var(--ui-text);
  font-weight: 600;
}

.mira-article__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--ui-text);
  text-wrap: balance;
}

.mira-article__lead {
  max-width: 680px;
  margin: 26px 0 0;
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ui-muted);
}

/* =========================================================
   COVER
========================================================= */

.mira-article__cover {
  max-width: 1080px;
  margin: 48px auto 0;
  padding: 0 24px;
}

.mira-article__cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border-radius: 16px;
  background: var(--ui-gray-100);
}

/* =========================================================
   BODY
========================================================= */

.mira-article__body {
  max-width: 720px;
  margin: 56px auto 0;
  padding: 0 24px;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ui-text);
}

.mira-article__body > * + * { margin-top: 1.1em; }

.mira-article__body h2 {
  margin-top: 2.2em;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.mira-article__body h2 + * { margin-top: 0.8em; }

.mira-article__body p { margin-bottom: 0; }

.mira-article__body ul,
.mira-article__body ol { padding-left: 1.3em; margin-bottom: 0; }

.mira-article__body li + li { margin-top: 0.45em; }

.mira-article__body strong { font-weight: 700; }

.mira-article__body a {
  color: var(--ui-text);
  text-decoration: underline;
  text-decoration-color: rgba(var(--ui-text-rgb), 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 200ms ease;
}

.mira-article__body a:hover { text-decoration-color: var(--ui-text); }

.mira-article__body blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--ui-account-1);
  font-size: var(--fs-lead);
  line-height: 1.6;
}

.mira-article__body blockquote p + p { margin-top: 0.9em; }

.mira-article__body blockquote footer {
  margin-top: 0.9em;
  font-size: var(--fs-small);
  color: var(--ui-muted);
}

/* A short, scannable set of facts (numbers, limits, settings). */
.mira-article__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 1.8em 0;
  padding: 0;
  list-style: none;
}

.mira-article__body .mira-article__facts li { margin: 0; }

.mira-article__facts li {
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: var(--ui-gray-50);
  border: 1px solid rgba(var(--ui-text-rgb), 0.08);
}

.mira-article__facts strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}

.mira-article__facts span {
  display: block;
  margin-top: 8px;
  font-size: var(--fs-small);
  line-height: 1.4;
  color: var(--ui-muted);
}

/* Fine print under a claim: sources, limits, "not a guarantee". */
.mira-article__note {
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--ui-gray-50);
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--ui-muted);
}

/* =========================================================
   MORE ARTICLES
========================================================= */

.mira-article__more {
  max-width: 720px;
  margin: 72px auto 0;
  padding: 32px 24px 0;
  border-top: 1px solid rgba(var(--ui-text-rgb), 0.1);
}

.mira-article__more h2 {
  margin: 0 0 18px;
  font-size: var(--fs-ui);
  font-weight: 700;
  color: var(--ui-muted);
}

.mira-article__more ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mira-article__more a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(var(--ui-text-rgb), 0.1);
  color: var(--ui-text);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 200ms ease, transform 300ms var(--article-ease);
}

.mira-article__more a:hover {
  border-color: rgba(var(--ui-text-rgb), 0.35);
  transform: translateY(-2px);
}

.mira-article__more a:focus-visible {
  outline: 2px solid var(--ui-text);
  outline-offset: 3px;
}

.mira-article__more svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: reduce) {
  .mira-article__more a { transition: none; }
  .mira-article__more a:hover { transform: none; }
}

@media (max-width: 767.98px) {
  .mira-article { padding-bottom: 72px; }
  .mira-article__header,
  .mira-article__cover,
  .mira-article__body,
  .mira-article__more { padding-left: 16px; padding-right: 16px; }
  .mira-article__cover { margin-top: 32px; }
  .mira-article__body { margin-top: 40px; }
}
