/* =============================================================================
   Single blog post (/blog/{slug}). Loaded only on this page.
   Ported from BlogPost.dc.html — inline styles hoisted to semantic classes.
   ========================================================================== */

.article { color: var(--ink); background: var(--bg); overflow-x: hidden; }

/* ------------------------------------------------------------ hero ------ */
.article-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #0f1210, #14201a);
  color: #e8ebe6; padding: 40px 32px 56px;
}
.article-hero__glow {
  position: absolute; width: 520px; height: 520px; border-radius: 50%;
  top: -240px; right: -120px; pointer-events: none;
  background: radial-gradient(circle, rgba(0, 214, 119, .16), transparent 62%);
}
.article-hero__inner { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; }

.article-hero__back {
  text-decoration: none; color: var(--foot-ink); font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 7px;
}
.article-hero__back:hover { color: #e8ebe6; }

.article-hero__title {
  margin: 26px 0 0; font-size: 42px; line-height: 1.12; letter-spacing: -.03em;
  font-weight: 700; color: #f4f6f2; text-wrap: pretty;
}

/* Category and date on one line under the title. */
.article-hero__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.article-hero__tag {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  background: var(--accent); color: #05130c; padding: 6px 13px; border-radius: 100px;
}
.article-hero__date { font-size: 13px; color: #8a9188; }

/* ------------------------------------------------------------ body ------ */
/* ---- with a cover: the picture leads --------------------------------------
   Shown whole, at the site's container width, on the page's own background. No
   scrim, no overlay: these covers are composed images with their own wordmark
   and headline inside them, and anything written across one fights it.
   The frame is 16:9 because covers are authored 16:9 (1920x1080), so `cover`
   has nothing to crop — it is only there to keep an odd-sized upload tidy. */
.article-head { background: var(--bg); padding: 22px 32px 0; }
.article-head__inner { max-width: 1180px; margin: 0 auto; }
/* The link rides the 1040 column with the title and the text, not the 1180 edge
   of the cover — otherwise it hangs out on its own to the left. */
.article-head__top { max-width: 1040px; margin: 0 auto; }
.article-head__back {
  text-decoration: none; color: #6f746a; font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 7px;
}
.article-head__back:hover { color: var(--ink); }
.article-head__cover {
  margin: 18px 0 0; border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 60px -34px rgba(18, 40, 28, .45);
}
.article-head__cover img {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
}
.article-head__meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 30px auto 0; max-width: 1040px;
}
.article-head__tag {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  background: var(--accent); color: #05130c; padding: 6px 13px; border-radius: 100px;
}
.article-head__date { font-size: 13px; color: #8a9188; }
.article-head__title {
  margin: 16px auto 0; max-width: 1040px;
  font-size: 42px; line-height: 1.12; letter-spacing: -.03em;
  font-weight: 700; color: var(--ink); text-wrap: pretty;
}

/* The site's container is 1180 — the blog listing, features, buy and the footer
   all sit on it, and the article was the one page that did not. */
.article-body { padding: 44px 32px 20px; }
.article-body__inner { max-width: 1180px; margin: 0 auto; }
.article-body__prose { max-width: 1040px; margin: 0 auto; }

.article-body__dek {
  font-size: 20px; line-height: 1.6; color: var(--ink-2); font-weight: 500;
  margin: 0 0 28px; text-wrap: pretty;
}

/* Shared prose styling — applies to both the generated blocks and the raw HTML
   printed by a "paragraph" block, so authored markup matches the rest. */
.article-body__prose h2 {
  font-size: 27px; font-weight: 700; color: var(--ink); letter-spacing: -.01em;
  margin: 38px 0 12px; line-height: 1.2;
}
.article-body__prose h3 {
  font-size: 21px; font-weight: 700; color: var(--ink); letter-spacing: -.01em;
  margin: 30px 0 10px; line-height: 1.25;
}
.article-body__prose h4 {
  font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -.01em;
  margin: 24px 0 8px; line-height: 1.25;
}
.article-body__prose p {
  font-size: 18px; line-height: 1.75; color: #4c5147; margin: 0 0 18px; text-wrap: pretty;
}
.article-body__prose a { color: var(--accent-deep); text-decoration: underline; }
.article-body__prose strong, .article-body__prose b { font-weight: 700; color: var(--ink); }

.article-body__prose ul, .article-body__prose ol { margin: 0 0 20px; padding-left: 22px; }
.article-body__prose li { font-size: 18px; line-height: 1.7; color: #4c5147; margin-bottom: 8px; }

.article-body__prose blockquote {
  margin: 28px 0; padding: 2px 0 2px 22px; border-left: 3px solid var(--accent);
  font-size: 20px; line-height: 1.55; color: #23271f; font-style: italic; font-weight: 500;
}
.article-body__prose blockquote footer {
  margin-top: 10px; font-size: 14px; color: #6b7168; font-style: normal; font-weight: 600;
}

.article-body__prose figure { margin: 30px 0; }
.article-body__prose figure img {
  width: 100%; height: auto; border-radius: 14px; display: block;
  border: 1px solid var(--line);
}
.article-body__prose figcaption {
  font-size: 13.5px; color: #7c8278; margin-top: 10px; text-align: center;
}

.article-body__prose pre {
  background: #0f1210; color: #e8ebe6; border-radius: 12px; padding: 18px 20px;
  overflow-x: auto; font-size: 13.5px; line-height: 1.6;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; margin: 24px 0;
}
.article-body__prose pre code { font: inherit; color: inherit; background: none; }

.article-body__prose hr { border: 0; border-top: 1px solid var(--line-2); margin: 34px 0; }
.article-body__prose .embed { margin: 26px 0; border-radius: 14px; overflow: hidden; background: #000; }

/* callout — admin "green note" block */
.article-body__prose .callout {
  margin: 22px 0; padding: 15px 18px; border-radius: 10px;
  background: rgba(0, 214, 119, .08); border-left: 3px solid var(--accent);
  font-size: 15.5px; line-height: 1.6; color: #23271f;
}
.article-body__prose .callout > :first-child { margin-top: 0; }
.article-body__prose .callout > :last-child  { margin-bottom: 0; }

/* button block */
.article-body__prose .btn-block { margin: 24px 0; }
.article-body__prose .btn-block__link {
  display: inline-block; background: var(--accent); color: #05130c;
  font-weight: 700; font-size: 15px; padding: 12px 24px; border-radius: 12px;
  text-decoration: none;
}

/* ------------------------------------------------------------ cta ------- */
/* What the article is about. It sits between the body and the "all posts"
   footer, where a reader who has just finished is deciding where to go next. */
.article-tags { padding: 8px 32px 0; }
.article-tags__inner {
  max-width: 1040px; margin: 0 auto; display: flex; align-items: center;
  gap: 8px; flex-wrap: wrap;
}
.article-tags__label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted, #6b7168); margin-right: 2px;
}
.article-tag {
  font-size: 13.5px; font-weight: 600; color: #3d4136; background: #fff;
  border: 1px solid rgba(20, 22, 15, .12); border-radius: 100px;
  padding: 6px 14px; text-decoration: none;
  transition: border-color .15s ease, color .15s ease;
}
.article-tag:hover { color: #05130c; border-color: rgba(20, 22, 15, .3); }

.article-cta { padding: 40px 32px 90px; }
.article-cta__inner {
  max-width: 1040px; margin: 0 auto; border-top: 1px solid var(--line);
  padding-top: 32px; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.article-cta__back { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink); }
.article-cta__buy {
  text-decoration: none; background: var(--accent); color: #05130c;
  font-weight: 700; font-size: 15px; padding: 13px 24px; border-radius: 12px;
}

/* ------------------------------------------------------------ responsive - */
@media (max-width: 640px) {
  .article-hero, .article-head, .article-body, .article-tags, .article-cta { padding-left: 20px; padding-right: 20px; }
  .article-hero__title, .article-head__title { font-size: 32px; }
  .article-head__cover { border-radius: 12px; }
}
