@scope (.blog) {
  :scope {
    min-height: calc(100svh - var(--nav-height));
    padding: 56px 4% 96px;
    background:
      radial-gradient(circle, #0b2d7418 1px, transparent 1.5px) right top / 6px
        6px,
      var(--cream);
  }
  .blog-index,
  .blog-status {
    max-width: 760px;
    margin-inline: auto;
  }
  .post-nav,
  .post {
    max-width: 860px;
    margin-inline: auto;
  }
  .blog-kicker,
  .post-date {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 18px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .issue {
    background: var(--blue);
    color: var(--cream);
    padding: 8px;
  }
  .blog-title,
  .post-title {
    margin: 0;
    color: var(--navy);
    font:
      400 clamp(48px, 9vw, 96px) / 1.1 "Rctngl Display",
      "IBM Plex Mono",
      monospace;
  }
  .post-title {
    font-size: clamp(36px, 6vw, 64px);
  }

  /* Index: one paper slip per post. */
  .post-list,
  .video-list {
    display: grid;
    gap: 32px;
    margin: 48px 0 0;
    padding: 0;
    list-style: none;
  }
  .post-list a {
    display: grid;
    gap: 10px;
    padding: 24px;
    border: 3px solid var(--blue);
    box-shadow: 8px 8px 0 var(--lime);
    background: var(--cream);
    text-decoration: none;
    transition:
      translate 120ms ease,
      box-shadow 120ms ease;
  }
  .post-list li:nth-child(even) a {
    box-shadow: 8px 8px 0 var(--pink);
  }
  .post-list a:hover {
    translate: 3px 3px;
    box-shadow: 4px 4px 0 var(--blue);
  }
  .post-list img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 2px solid var(--blue);
  }
  .post-list time,
  .video-list time {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .post-list h2,
  .video-list h2 {
    margin: 0;
    color: var(--navy);
    font:
      400 32px/1.1 "Rctngl Display",
      "IBM Plex Mono",
      monospace;
  }
  .post-list p,
  .video-list p {
    margin: 0;
    line-height: 1.5;
  }
  .video-list article {
    display: grid;
    gap: 14px;
    overflow-wrap: anywhere;
  }
  .paired-editions [data-video-orientation="portrait"] {
    display: none;
  }
  @media (orientation: portrait) {
    .paired-editions [data-video-orientation="landscape"] {
      display: none;
    }
    .paired-editions [data-video-orientation="portrait"] {
      display: grid;
    }
  }
  .paired-editions
    .video-edition:has(.video-player:is(:fullscreen, :-webkit-full-screen)) {
    display: grid;
  }
  .video-description {
    white-space: pre-line;
  }

  /*
   * Post view: a printed sheet. The cover is a full-width splash panel and
   * the title sits in a caption box that overlaps its bottom edge.
   *
   *   +--------------------------------+
   *   | cover                          |
   *   |  +------------+                |
   *   +--| caption    |----------------+
   *   |  +------------+                |
   *   |  body                          |
   *   +--------------------------------+
   */
  .post-nav {
    margin-bottom: 28px;
    font-size: 14px;
    font-weight: 600;
  }
  .post {
    border: 3px solid var(--blue);
    box-shadow: 10px 10px 0 var(--lime);
    background: var(--cream);
  }
  .post-cover {
    display: block;
    width: 100%;
    border-bottom: 3px solid var(--blue);
  }
  .post-header {
    position: relative;
    width: fit-content;
    max-width: min(640px, calc(100% - 80px));
    margin: 48px 40px 0;
    padding: 22px 26px 24px;
    border: 3px solid var(--blue);
    box-shadow: 6px 6px 0 var(--pink);
    background: var(--cream);
    transform: rotate(-1deg);
  }
  .post-cover + .post-header {
    margin-top: -88px;
  }
  .post-summary {
    margin: 16px 0 0;
    font-size: 19px;
    line-height: 1.45;
  }
  .post-body {
    margin-top: 48px;
    padding: 0 56px 64px;
    color: var(--navy);
    font-size: 18px;
    line-height: 1.65;
    overflow-wrap: break-word;
  }
  .post-body > p:first-child {
    color: var(--blue);
    font-size: 1.3em;
    line-height: 1.5;
  }
  .post-body :is(h1, h2, h3, h4, h5, h6) {
    margin: 1.6em 0 0.5em;
    color: var(--blue);
    font-family: "Rctngl Display", "IBM Plex Mono", monospace;
    font-weight: 400;
    line-height: 1.1;
  }

  /* ## headings: lime caption labels, as on the waitlist form. */
  .post-body h2 {
    width: fit-content;
    max-width: 100%;
    margin: 1.8em 0 0.8em;
    padding: 6px 12px;
    border: 2px solid var(--blue);
    box-shadow: 3px 3px 0 var(--blue);
    background: var(--lime);
    color: var(--navy);
    font-size: 26px;
    transform: rotate(-1.5deg);
  }
  .post-body a {
    color: var(--blue);
    text-decoration-color: var(--pink);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
  }
  .post-body img {
    max-width: 100%;
    height: auto;
  }

  /* > quotes: speech balloons, as on the waitlist contact field. */
  .post-body blockquote {
    position: relative;
    margin: 2em 0 2.4em;
    padding: 18px 24px;
    border: 3px solid var(--blue);
    border-radius: 28px 22px 30px 14px / 24px 18px 28px 12px;
    box-shadow: 4px 4px 0 var(--pink);
    background: var(--cream);
    color: var(--blue);
    font-size: 1.15em;
  }
  .post-body blockquote::before,
  .post-body blockquote::after {
    content: "";
    position: absolute;
    clip-path: polygon(0 0, 100% 0, 0 100%);
  }
  .post-body blockquote::before {
    left: 32px;
    bottom: -20px;
    width: 28px;
    height: 23px;
    background: var(--blue);
  }
  .post-body blockquote::after {
    left: 35px;
    bottom: -13px;
    width: 20px;
    height: 17px;
    background: var(--cream);
  }
  .post-body blockquote > :first-child {
    margin-top: 0;
  }
  .post-body blockquote > :last-child {
    margin-bottom: 0;
  }
  .post-body code {
    padding: 2px 5px;
    background: #0b2d7414;
    font-size: 0.9em;
  }
  .post-body pre {
    padding: 18px;
    overflow-x: auto;
    background: var(--navy);
    color: var(--cream);
    line-height: 1.5;
  }
  .post-body pre code {
    padding: 0;
    background: none;
  }

  /* --- rules: a perforation with the triangle from the ticket foot. */
  .post-body hr {
    position: relative;
    overflow: visible;
    margin: 3em 0;
    border: 0;
    border-top: 2px dashed var(--pink);
  }
  .post-body hr::after {
    content: "\25B3";
    position: absolute;
    top: 0;
    left: 50%;
    padding: 0 12px;
    background: var(--cream);
    color: var(--blue);
    font-size: 16px;
    line-height: 1;
    translate: -50% -55%;
  }

  /* End mark: the lime triangle closes the last paragraph. */
  .post-body > p:last-child::after {
    content: "";
    display: inline-block;
    width: 0.9em;
    height: 0.8em;
    margin-left: 0.4em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 90'%3E%3Cpath d='M7 82 50 6 93 82Z' fill='%23bcdb22' stroke='%230b2d74' stroke-width='8' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / contain no-repeat;
    vertical-align: -0.05em;
  }
  .post-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
  }
  .post-body :is(th, td) {
    padding: 6px 12px;
    border: 1px solid var(--blue);
  }

  .blog-status {
    margin-top: 48px;
    font-size: 16px;
    font-weight: 600;
  }

  @media (max-width: 600px) {
    :scope {
      padding: 32px 20px 64px;
    }
    .post-list a {
      padding: 18px;
      box-shadow: 5px 5px 0 var(--lime);
    }
    .post-list li:nth-child(even) a {
      box-shadow: 5px 5px 0 var(--pink);
    }
    .post-list h2,
    .video-list h2 {
      font-size: 26px;
    }
    .post {
      box-shadow: 6px 6px 0 var(--lime);
    }
    .post-header {
      max-width: calc(100% - 24px);
      margin: 28px 12px 0;
      padding: 16px 18px 18px;
      box-shadow: 4px 4px 0 var(--pink);
    }
    .post-cover + .post-header {
      margin-top: -36px;
    }
    .post-summary {
      font-size: 17px;
    }
    .post-body {
      margin-top: 32px;
      padding: 0 20px 40px;
      font-size: 17px;
    }
    .post-body h2 {
      font-size: 22px;
    }
    .post-body > p:first-child {
      font-size: 1.15em;
    }
  }
}
