:root {
  --fgs-ink: #23152f;
  --fgs-purple: #6f3ca3;
  --fgs-purple-deep: #4b2475;
  --fgs-pink: #ed4e9a;
  --fgs-teal: #3db7b4;
  --fgs-paper: #fffdfd;
  --fgs-blush: #fff5fa;
  --fgs-lilac: #f6f0fb;
  --fgs-line: rgba(75, 36, 117, 0.14);
  --fgs-muted: #73697a;
  --fgs-shadow: 0 20px 52px rgba(49, 25, 73, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.studio-article-page {
  margin: 0;
  color: var(--fgs-ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(237, 78, 154, 0.08), transparent 30rem),
    radial-gradient(circle at 92% 14%, rgba(61, 183, 180, 0.07), transparent 32rem),
    var(--fgs-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

.article-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.article-site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(75, 36, 117, 0.08);
  background: rgba(255, 253, 253, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.studio-wordmark {
  color: var(--fgs-ink);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.075em;
  font-size: 0.9rem;
}

.article-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.article-nav a {
  color: #5b5060;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.article-nav a:hover,
.article-backlink:hover {
  color: var(--fgs-pink);
}

/* ---------------------------------------------------------
   ARTICLE HERO
   --------------------------------------------------------- */

.article-hero {
  padding-top: 76px;
  padding-bottom: 20px;
}

.article-backlink {
  display: inline-flex;
  color: var(--fgs-purple-deep);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 42px;
}

.article-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--fgs-pink);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.article-kicker::before {
  content: "✦";
}

.article-hero h1 {
  max-width: 930px;
  margin: 0;
  font-family: "Bodoni XT", "Bodoni 72", Didot, Georgia, serif;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.article-hero h1 span {
  color: var(--fgs-purple);
}

.article-deck {
  max-width: 720px;
  margin: 24px 0 18px;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.35;
  color: #5e5264;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--fgs-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.article-meta span + span::before {
  content: "•";
  margin-right: 18px;
  color: var(--fgs-pink);
}

/*
  Updated for real hero images/cards.
  The old version forced a 430px minimum height,
  which created the giant empty gap.
*/
.article-hero-placeholder {
  margin-top: 36px !important;
  margin-bottom: 12px;
  min-height: 0;
}

/* ---------------------------------------------------------
   ARTICLE LAYOUT
   --------------------------------------------------------- */

.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: 76px;
  justify-content: center;
  align-items: start;
  padding-bottom: 100px;
}

.article-toc {
  position: relative;
}

.toc-inner {
  position: sticky;
  top: 105px;
  padding: 20px 0 20px 18px;
  border-left: 2px solid var(--fgs-line);
}

.toc-label {
  margin-bottom: 14px;
  color: var(--fgs-muted);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-toc a {
  display: block;
  margin: 8px 0;
  color: #6c6071;
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.3;
  font-weight: 700;
}

.article-toc a:hover {
  color: var(--fgs-pink);
}

.article-body {
  min-width: 0;
}

.article-section {
  scroll-margin-top: 110px;
  margin: 0 0 64px;
}

.article-section h2 {
  margin: 0 0 28px;
  padding-top: 8px;
  font-family: "Bodoni XT", "Bodoni 72", Didot, Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

/* ---------------------------------------------------------
   INTERVIEW
   --------------------------------------------------------- */

.interview-line,
.interview-continuation {
  margin: 0 0 16px;
  font-size: 1.03rem;
}

.interview-continuation {
  padding-left: 0;
}

.speaker {
  display: inline-block;
  margin-right: 3px;
  font-weight: 900;
}

.speaker-solace {
  color: var(--fgs-purple);
}

.speaker-devlin {
  color: #332a37;
}

/* ---------------------------------------------------------
   PULL QUOTES
   --------------------------------------------------------- */

.pull-quote {
  position: relative;
  margin: 72px 0;
  padding: 38px 42px 36px;
  border-radius: 28px;
  background: linear-gradient(135deg, #f3ecfa, #fff);
  box-shadow: var(--fgs-shadow);
  overflow: hidden;
}

.pull-quote::before {
  content: "“";
  position: absolute;
  right: 26px;
  top: -36px;
  color: rgba(111, 60, 163, 0.12);
  font-family: Georgia, serif;
  font-size: 11rem;
  line-height: 1;
}

.pull-quote p {
  position: relative;
  margin: 0;
  font-family: "Bodoni XT", "Bodoni 72", Didot, Georgia, serif;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.pull-quote span {
  display: block;
  margin-top: 16px;
  color: var(--fgs-purple);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pull-quote-pink {
  background: linear-gradient(135deg, #fff0f7, #fff);
}

.pull-quote-final {
  text-align: center;
  background: var(--fgs-ink);
  color: white;
}

.pull-quote-final::before {
  color: rgba(255, 255, 255, 0.08);
}

/* ---------------------------------------------------------
   ARTICLE IMAGES
   --------------------------------------------------------- */

.article-image-placeholder {
  margin: 48px 0;
}

/*
  Hero image gets tighter spacing than normal inline images.
*/
.article-image-placeholder.article-hero-placeholder {
  margin-top: 36px !important;
  margin-bottom: 12px;
  min-height: 0;
}

.image-suggestion {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 6vw, 58px);
  border: 2px dashed rgba(111, 60, 163, 0.28);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(111, 60, 163, 0.06), rgba(237, 78, 154, 0.05)),
    #fff;
}

/*
  If the hero placeholder now contains a real image,
  remove the placeholder sizing.
*/
.article-hero-placeholder .image-suggestion {
  min-height: 0;
  padding: 0;
}

.image-suggestion-label {
  color: var(--fgs-pink);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.image-suggestion p {
  max-width: 680px;
  margin: 12px 0 18px;
  color: #4f4554;
  font-size: 1rem;
  line-height: 1.55;
}

.image-suggestion code {
  width: fit-content;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(35, 21, 47, 0.07);
  color: #6e5e75;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.article-image-placeholder figcaption {
  margin-top: 8px;
  color: #8a7e90;
  font-size: 0.78rem;
  text-align: center;
}

/* Reusable class for prototype/card images */
.article-card-image {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* ---------------------------------------------------------
   ARTICLE CLOSING
   --------------------------------------------------------- */

.article-closing {
  margin: 76px 0 0;
  padding: 44px;
  border-radius: 30px;
  background: linear-gradient(145deg, #4b2475, #2d173d);
  color: white;
  box-shadow: var(--fgs-shadow);
}

.closing-speaker {
  margin-bottom: 16px;
  color: #f0b6d4;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-closing p {
  margin: 0 0 13px;
  font-size: 1.08rem;
}

.article-closing p:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------
   ARTICLE FOOTER
   --------------------------------------------------------- */

.article-footer {
  margin-top: 34px;
  padding: 30px 0 0;
  border-top: 1px solid var(--fgs-line);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
}

.article-footer-label {
  color: var(--fgs-pink);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-footer h3 {
  margin: 7px 0 5px;
  font-size: 1.25rem;
}

.article-footer p {
  max-width: 540px;
  margin: 0;
  color: var(--fgs-muted);
  font-size: 0.9rem;
}

.article-button {
  flex: 0 0 auto;
  display: inline-flex;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--fgs-purple);
  color: white;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 900;
}

.article-button:hover {
  background: var(--fgs-pink);
}

/* ---------------------------------------------------------
   SITE FOOTER
   --------------------------------------------------------- */

.article-site-footer {
  border-top: 1px solid var(--fgs-line);
  padding: 28px 0;
  color: #786d7d;
  font-size: 0.8rem;
}

.article-site-footer .article-shell {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .article-toc {
    display: none;
  }

  .article-hero {
    padding-top: 48px;
  }

  /*
    Do NOT restore the old 320px minimum height here.
  */
  .article-hero-placeholder {
    min-height: 0;
  }
}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 680px) {
  .article-shell {
    width: min(100% - 28px, 1180px);
  }

  .article-nav {
    gap: 12px;
  }

  .article-nav a:first-child {
    display: none;
  }

  .article-hero h1 {
    font-size: clamp(2.7rem, 14vw, 4.5rem);
  }

  .article-meta {
    display: grid;
    gap: 3px;
  }

  .article-meta span + span::before {
    display: none;
  }

  .pull-quote,
  .article-closing {
    padding: 30px 24px;
    border-radius: 22px;
  }

  .image-suggestion {
    min-height: 240px;
    border-radius: 22px;
  }

  /*
    Real hero/card images should not inherit
    the generic mobile placeholder minimum height.
  */
  .article-hero-placeholder .image-suggestion {
    min-height: 0;
    padding: 0;
  }

  .article-footer {
    align-items: start;
    flex-direction: column;
  }

  .article-site-footer .article-shell {
    flex-direction: column;
    gap: 4px;
  }
}

/* =========================================================
   REAL HERO IMAGE SPACING OVERRIDE
   Keep this at the very bottom of article.css
   ========================================================= */

.article-hero {
  padding-bottom: 0 !important;
}

.article-hero .article-image-placeholder.article-hero-placeholder {
  min-height: 0 !important;
  height: auto !important;
  margin-top: 36px !important;
  margin-bottom: 0 !important;
}

.article-hero .article-hero-placeholder .image-suggestion {
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}

.article-hero .article-hero-placeholder figcaption {
  margin-top: 8px !important;
  margin-bottom: 0 !important;
}

.article-hero + .article-layout {
  margin-top: 24px !important;
  padding-top: 0 !important;
}