/* Prose layer for /notes/ pages — loaded only there, so the main
   stylesheet's published numbers stay exactly as the essay states them. */

@layer prose {
  .article {
    padding-inline: var(--pad);
    padding-block: clamp(3rem, 8vh, 5rem) clamp(4rem, 10vh, 6.5rem);
  }
  .article > * {
    max-width: 66ch;
  }
  .article .dataline {
    margin-top: 0;
  }
  .article h1 {
    font-family: var(--disp);
    font-weight: 700;
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.02;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    margin-top: 1.75rem;
    max-width: 12ch;
  }
  .lede {
    margin-top: 1.4rem;
    font-size: 1.125rem;
    color: var(--muted);
    text-wrap: pretty;
  }
  .prose {
    margin-top: 1rem;
    line-height: 1.7;
  }
  .prose h2 {
    font-family: var(--mono);
    font-weight: 400;
    font-size: 0.8125rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    border-top: 1px solid var(--line);
    padding-top: 2.25rem;
    margin: 3rem 0 1.1rem;
  }
  .prose p {
    margin-block: 0 0.95em;
  }
  .prose ul {
    padding-left: 1.15rem;
    margin: 0 0 0.95em;
  }
  .prose li {
    margin-block: 0.4em;
  }
  .prose li::marker {
    color: var(--muted);
  }
  .prose strong {
    font-weight: 500;
  }
  .prose code {
    font-family: var(--mono);
    font-size: 0.875em;
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 0.08em 0.3em;
  }
  .prose pre {
    border: 1px solid var(--line);
    padding: 1rem 1.1rem;
    overflow-x: auto;
    margin: 1.25rem 0 1.5rem;
  }
  .prose pre code {
    border: none;
    padding: 0;
    font-size: 0.8125rem;
    line-height: 1.6;
  }
  .numbers {
    width: 100%;
    max-width: 34rem;
    margin: 1.25rem 0 0.5rem;
    border-collapse: collapse;
    font-family: var(--mono);
    font-size: 0.8125rem;
  }
  .numbers th,
  .numbers td {
    text-align: left;
    font-weight: 400;
    padding: 0.55rem 1rem 0.55rem 0;
    border-top: 1px solid var(--line);
    vertical-align: top;
  }
  .numbers th {
    color: var(--muted);
    letter-spacing: 0.04em;
  }
  @media print {
    .article h1 {
      font-size: 2rem;
    }
    .article,
    .prose pre {
      padding-block: 1rem;
    }
  }
}
