/* ============================================================
   Article template — jimmy.hk
   Shared long-form page template. Added 2026-11-23.

   Before this file, /privacy/ and /blog/ai-short-film-pipeline/
   linked only /css/wise-style.css, which contains no .article
   rules at all (grep count for "article" in that file: 0). The
   .article markup therefore fell through to the global
   "h1, .display { font-size: clamp(60px, 8vw, 105px) }" rule:
   the article box rendered full-bleed at 1280px with no
   max-width and no padding, and the h1 measured 102.4px instead
   of 48px. Two other blog posts carried their own private copy
   of this template inside a page-level <style> block; this file
   is the shared copy.

   Colours use the Wise Style tokens (--color-*), so it works on
   any page that also links /css/wise-style.css.
   ============================================================ */

.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.article h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--color-obsidian);
  margin-bottom: 1rem;
}

.article-subtitle {
  color: var(--color-charcoal);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.article-meta {
  color: var(--color-charcoal);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-fog);
}

.article h2 {
  font-size: 1.875rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--color-obsidian);
  margin: 2.5rem 0 1rem;
}

.article h3 {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-obsidian);
  margin: 2rem 0 0.75rem;
}

.article p {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.article ul,
.article ol {
  margin: 1rem 0 1.5rem 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.article li {
  margin-bottom: 0.75rem;
}

.article a {
  color: var(--color-forest-ink);
}

.article strong {
  color: var(--color-obsidian);
}

.article code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--color-fog);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.9em;
}

/* CTA buttons inside long-form copy.
   The global "a.cta" rule in wise-style.css sets geometry but no
   colours, and ".article a" above is more specific than ".cta",
   so the button label has to be restated here at higher
   specificity or it renders forest-ink on a forest-ink fill. */
.article a.cta {
  display: inline-block;
  background: var(--color-forest-ink);
  color: var(--color-lime-voltage);
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
  margin: 0.5rem 0.5rem 0.5rem 0;
}

.article a.cta:hover {
  background: var(--color-spruce);
  color: var(--color-lime-voltage);
  opacity: 1;
}

/* Footer for long-form pages. The global "footer, .site-footer"
   rule sets padding 64px 0 32px with no horizontal padding, so
   the footer copy ran edge to edge, and the global
   "p { color: var(--color-charcoal) }" rule left the footer
   paragraph charcoal on the forest-ink fill. */
.footer {
  background: var(--color-forest-ink);
  color: var(--color-paper);
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  font-size: 0.875rem;
}

.footer p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.footer a {
  color: var(--color-lime-voltage);
  font-size: 0.875rem;
}

.footer a:hover {
  color: var(--color-paper);
  opacity: 1;
}

@media (max-width: 768px) {
  .article {
    padding: 2.5rem 1.25rem;
  }

  .article h1 {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }

  .article h2 {
    font-size: 1.5rem;
  }
}
