/* Article presentation; the site's shared post styles supply the reading column. */
body.dark-mode {
    --black: #f2f2f2;
    --border: rgba(255, 255, 255, .18);
    --prompt: #8a8a8a;
    --gray-500: #a0a0a0;
    --gray-700: #e5e5e5;
}
.article-header { display: flex; justify-content: space-between; align-items: flex-start; }
.top-nav { position: static; gap: 26px; padding-top: 4px; }
.brand { color: var(--black); text-decoration: none; font: bold 16px 'Courier New', monospace; letter-spacing: .34em; -webkit-text-stroke: 0; }
.brand img { display: block; margin-bottom: 24px; }
.brand .brand-dark { display: none; }
.dark-mode .brand-light { display: none; }
.dark-mode .brand .brand-dark { display: block; }
.back-link { display: inline-block; margin-bottom: 28px; color: var(--prompt); font: 13px 'Courier New', monospace; text-decoration: none; }
.back-link:hover { color: var(--black); }
h1 { font-family: 'Courier New', Courier, monospace; font-size: clamp(24px, 3vw, 32px); line-height: 1.25; letter-spacing: -.7px; margin: 18px 0 24px; text-wrap: wrap; }
.byline { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 28px; color: var(--gray-500); font-size: 13px; }
.byline a { color: var(--black); text-decoration: none; }
.byline a:hover { text-decoration: underline; }
.content { border-top: 0; padding-top: 0; margin-top: 36px; }
.content h2, .content h3, .content h4 { font-family: 'Courier New', Courier, monospace; font-weight: 700; line-height: 1.5; color: var(--black); position: relative; scroll-margin-top: 32px; }
.content h2 { font-size: 18px; margin: 44px 0 16px; }
.content h3 { font-size: 16px; margin: 32px 0 16px; }
.content h4 { font-size: 16px; margin: 24px 0 12px; }
.content h2:before, .content h3:before { content: none; }
.content p, .content li { line-height: 1.75; }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 2px solid var(--black); outline-offset: 4px; }
@media (max-width: 600px) {
    .article-header { margin-bottom: 36px; }
    .top-nav { gap: 16px; }
    h1 { letter-spacing: -.4px; }
    .content h2 { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    body, a, button { transition: none; }
}

/* Foundry launch page */
html { overflow-x: clip; }
.content .lede { font-size: 23px; line-height: 1.4; letter-spacing: -.01em; margin-bottom: 18px; }
.content .lede + .lede { margin-bottom: 28px; }
.content h2 { margin-top: 56px; }
:root { --accent: #8b7cf6; }

/* Breakout: the stage runs a little wider than the prose column */
.content .breakout, .content figure.breakout {
  width: min(920px, calc(100vw - 48px));
  max-width: none;
  margin-left: calc(50% - min(920px, calc(100vw - 48px)) / 2);
}

/* Still figure: the QA verdict screenshot */
.content figure.stage { background: #1c1917; border-radius: 18px; padding: 16px 16px 14px; margin: 28px 0 56px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .45); color: #edebe9; }
body.dark-mode .content figure.stage { background: #211e1b; box-shadow: none; border: 1px solid rgba(255, 255, 255, .08); }
.content figure.stage .stage-screen { border-radius: 10px; overflow: hidden; background: #272421; }
.content figure.stage .frame { display: block; width: 100%; height: auto; margin: 0; }
.content figure.stage figcaption { font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .6); padding: 12px 6px 2px; text-align: left; margin: 0; }

/* Steps: four screens stacked, text beside each */
.content .steps { padding: 24px 0 48px; margin: 24px 0 56px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); display: grid; row-gap: 72px; }
.content .step { display: grid; grid-template-columns: 260px 1fr; column-gap: 40px; align-items: start; }
.content .step-text { position: sticky; top: 96px; }
.content .step-text .n { display: block; font: 12px 'Courier New', Courier, monospace; letter-spacing: .14em; color: var(--accent); margin-bottom: 10px; }
.content .step-text h3 { font-size: 18px; font-weight: 600; line-height: 1.25; margin: 0 0 10px; color: var(--black); letter-spacing: -.01em; }
.content .step-text p { font-size: 16px; line-height: 1.55; margin: 0; color: var(--gray-700); }
.content figure.step-shot { margin: 0; min-width: 0; }
.content figure.step-shot img { display: block; width: 100%; height: auto; border: 1px solid rgba(0, 0, 0, .1); border-radius: 10px; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .25); }
body.dark-mode .content figure.step-shot img { border-color: rgba(255, 255, 255, .12); box-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  .content .steps.js figure.step-shot { opacity: 0; transform: translateY(12px); transition: opacity .4s ease, transform .4s ease; }
  .content .steps.js figure.step-shot.in { opacity: 1; transform: none; }
}
@media (max-width: 700px) {
  .content .steps { row-gap: 48px; }
  .content .step { grid-template-columns: 1fr; row-gap: 16px; }
  .content .step-text { position: static; }
}

/* Checks */
.content ol.checks { padding-left: 0; margin: 20px 0 8px; list-style: none; counter-reset: check; }
.content ol.checks li { position: relative; padding-left: 44px; margin: 0 0 14px; line-height: 1.6; counter-increment: check; }
.content ol.checks li::before { content: counter(check, decimal-leading-zero); position: absolute; left: 0; top: 2px; font: 12px 'Courier New', Courier, monospace; letter-spacing: .1em; color: var(--accent); }
.content ol.checks b { color: var(--black); }


/* CTA */
.content .cta {
  margin-top: 32px;
  padding: 20px 24px;
  border: 1px solid rgba(0, 0, 0, .14);
  border-radius: 10px;
}
body.dark-mode .content .cta { border-color: rgba(255, 255, 255, .16); }
.content .cta p:last-child { margin-bottom: 0; }
