/* The blog's own rules, on top of marketing.css. Linked by renderMarketingShell for blog pages. */
  /*
   * Magazine canvas. The shell wrap is 720px for FAQ and pricing; an essay
   * that stays in that box looks like a receipt on a laptop. body.blog lifts
   * the wrap so figures can breathe, then the reading column recentres itself.
   */
  body.blog { overflow-x: clip; text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
  body.blog .wrap {
    max-width: min(72rem, 100%);
    /*
     * 5vw on an ultrawide ate the figure stage (the wrap is already capped,
     * so extra viewport padding just shrinks the canvas). Cap the fluid
     * inset so a 3440px window keeps the same magazine column as a laptop.
     */
    padding-inline: max(1.25rem, env(safe-area-inset-left, 0px), min(4.5vw, 2.5rem))
                    max(1.25rem, env(safe-area-inset-right, 0px), min(4.5vw, 2.5rem));
  }
  .post, .blog-hero, .post-list, .crumbs {
    --measure: min(40rem, 100%);
    --figure: min(52rem, 100%);
  }
  @media (min-width: 1100px) {
    .post, .blog-hero, .post-list { --figure: min(56rem, 100%); }
  }
  @media (min-width: 1600px) {
    .post, .blog-hero, .post-list { --measure: min(42rem, 100%); --figure: min(64rem, 100%); }
  }
  @media (min-width: 2200px) {
    .post { --figure: min(70rem, 100%); }
  }

  .crumbs {
    font-family: var(--sans, -apple-system, sans-serif); font-size: 12px; letter-spacing: 0.04em;
    text-transform: uppercase; font-weight: 700; color: var(--faint);
    margin: 0 auto 22px; max-width: var(--measure);
  }
  .crumbs a { color: var(--faint); text-decoration: none; }
  .crumbs a:hover { color: var(--flame); }

  .post {
    display: flex; flex-direction: column; align-items: center;
    overflow-wrap: break-word;
  }
  .post > * { width: min(var(--measure), 100%); }
  .post > .fig { width: min(var(--figure), 100%); }

  .post h1 {
    font-size: clamp(2rem, 1.1rem + 3.2vw, 3.55rem);
    line-height: 1.08; letter-spacing: -0.03em; font-weight: 700;
    margin: 0 0 clamp(16px, 2vw, 26px);
    text-wrap: balance;
  }
  .post .standfirst {
    font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem);
    line-height: 1.45; color: var(--soft); font-style: italic;
    margin: 0 0 clamp(18px, 2.2vw, 28px); text-wrap: pretty;
  }
  .post-meta {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 700;
    color: var(--faint); margin: 0 0 30px; padding: 0 0 22px;
    border-bottom: 1px solid var(--border);
  }
  .post-meta .dot { color: var(--border); margin: 0 8px; }

  .post p {
    font-size: clamp(1.0625rem, 1.02rem + 0.18vw, 1.2rem);
    line-height: 1.65; margin: 0 0 1.15em;
  }

  /* The answer, before the reader has to earn it. */
  .post .key {
    border-left: 3px solid var(--flame); padding: 4px 0 4px 20px;
    margin: 0 0 26px;
  }
  .post .key p { margin: 0 0 10px; color: var(--ink); font-size: 1.05em; line-height: 1.55; }
  .post .key p:last-child { margin: 0; }

  /*
   * A drop cap on the first paragraph after the answer box, which is the
   * moment the essay proper starts. Applied by class rather than :first-of-type
   * so an article that opens with a figure does not get a capital in its
   * caption. Size tracks the viewport so a phone does not get a 62px letter
   * eating half the measure.
   */
  .post .opens::first-letter {
    float: left; font-size: clamp(2.6rem, 8vw, 3.9rem); line-height: 0.82; font-weight: 400;
    color: var(--flame); padding: 6px 10px 0 0;
  }

  .post h2 {
    font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem);
    line-height: 1.25; letter-spacing: -0.015em; color: var(--ink);
    margin: clamp(32px, 5vw, 52px) 0 14px; padding: 22px 0 0; border-top: 1px solid var(--border);
    text-wrap: pretty;
  }
  .post h3 { font-size: 1.1rem; margin: 28px 0 8px; color: var(--ink); }

  /* Figures. Wider than the measure, centered on the canvas, captioned as prose. */
  .fig {
    width: min(var(--figure), 100%);
    max-width: 100%;
    margin: clamp(28px, 4vw, 48px) auto;
  }
  .fig-plate {
    background: transparent; border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
    border-radius: 0; padding: clamp(14px, 2vw, 28px); margin: 0 0 14px;
  }
  .fig-plate svg { display: block; width: 100%; height: auto; }
  /*
   * Photographs sit on the page the way a Works in Progress plate does:
   * square-cut, no card, no radius. Portrait plates are capped to the
   * viewport rather than a fixed 620px: a phone should see the painting,
   * not only the top of the ladder. width/height attributes still declare
   * the intrinsic size, so the cap never causes a reflow, only a smaller box.
   */
  .fig-photo { padding: 0; border: 0; background: transparent; }
  .fig-photo img {
    display: block; margin: 0 auto; max-width: 100%; width: auto; height: auto;
    max-height: min(70vh, 760px); border-radius: 0;
  }
  .fig figcaption {
    max-width: var(--measure);
    margin-inline: auto;
  }
  .fig figcaption p {
    font-family: inherit; font-style: italic;
    font-size: 15px; line-height: 1.55; color: var(--soft); margin: 0;
  }
  .fig figcaption strong {
    color: var(--ink); font-weight: 600; font-style: normal;
    font-variant: small-caps; letter-spacing: 0.04em;
  }
  .fig .fig-src { display: block; margin-top: 6px; font-size: 12.5px; color: var(--faint); font-style: normal; }

  /* A handhold for a scroller, every few screens. */
  .post .pull {
    font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.65rem);
    line-height: 1.35; letter-spacing: -0.015em; color: var(--ink);
    font-style: italic; margin: clamp(28px, 4vw, 40px) 0;
    padding: 0 0 0 22px;
    border-left: 3px solid var(--flame); text-wrap: balance;
  }
  .post .epigraph {
    font-size: 15px; line-height: 1.55; color: var(--muted); font-style: italic;
    margin: 0 0 26px; padding: 0 0 0 20px; border-left: 1px solid var(--border);
  }
  .post .epigraph cite {
    display: block; margin-top: 8px; font-style: normal; font-size: 12.5px;
    letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700; color: var(--faint);
  }

  .post table { border-collapse: collapse; width: 100%; max-width: 100%; font-size: 15px; margin: 0 0 22px; }
  .post th, .post td { text-align: left; padding: 11px 16px 11px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
  .post th {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase;
    color: var(--faint); font-weight: 800; border-bottom-color: var(--ink);
  }
  .post td { color: var(--soft); line-height: 1.55; }
  .post td strong { color: var(--ink); }

  /* Checkable claims get somewhere to be checked. */
  .post .notes {
    margin: 44px 0 0; padding: 22px 0 0; border-top: 1px solid var(--border);
  }
  .post .notes h2 {
    border: 0; padding: 0; margin: 0 0 10px; font-size: 12px; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--faint);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  }
  .post .notes p, .post .notes li {
    font-size: 13.5px; line-height: 1.6; color: var(--muted);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  }

  .post-cta { border-top: 1px solid var(--border); margin: 40px 0 0; padding: 24px 0 0; }
  .post-cta p { color: var(--soft); }
  .post-cta strong { color: var(--ink); }

  /* The index reads as a contents page, with the newest piece given the room. */
  .blog-hero { padding: 0 0 8px; max-width: var(--measure); margin-inline: auto; }
  .blog-hero h1 { max-width: 16ch; }
  .post-list { list-style: none; padding: 0; margin: 0 auto; max-width: var(--measure); }
  .post-list li { margin: 0; padding: 24px 0; border-top: 1px solid var(--border); }
  .post-list li:first-child { border-top: 1px solid var(--ink); }
  .post-list .lead-in {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; font-weight: 800;
    color: var(--flame-dark); margin: 0 0 8px;
  }
  .post-list h2 { font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.7rem); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 8px; }
  .post-list li:first-child h2 { font-size: clamp(1.55rem, 1.2rem + 1.2vw, 2rem); }
  .post-list h2 a { color: var(--ink); text-decoration: none; }
  .post-list h2 a:hover { color: var(--flame); }
  .post-list p { margin: 0 0 8px; }
  .post-list li:first-child p { font-size: 17px; }
  .post-list .when {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 700;
    color: var(--faint);
  }

  @media (max-width: 520px) {
    .post .key { padding-left: 14px; }
    .post .pull { padding-left: 16px; }
    .fig-plate { border-radius: 0; }
  }
