/* A single article. Loaded only there, after site.css. */

/* Article diagrams use ordinary HTML so they remain readable without images. */
.prose .process-diagram {
  margin: 2.5rem 0;
  padding: 1.5rem;
  border: 1px solid var(--ink-200);
  border-left: 4px solid var(--spruce);
  background: var(--white);
}

.process-diagram figcaption {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.process-diagram ol {
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  list-style: none;
}

.process-diagram li {
  margin: 0;
  padding: 1rem;
  border-top: 2px solid var(--spruce);
  background: var(--paper);
}

.process-diagram strong,
.process-diagram span {
  display: block;
}

.process-diagram strong {
  color: var(--ink-950);
}

.process-diagram span {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-700);
}

.prose .process-diagram ol {
  padding-left: 0;
}

.prose .process-diagram li + li {
  margin-top: 0;
}

.article__inner {
  margin: 0 auto;
  max-width: 42rem;
}

.article__title {
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 0.5rem + 3.75vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.article__crumb {
  color: inherit;
  text-decoration: none;
}

.article__byline {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-600);
}

.article__byline a {
  color: var(--spruce);
  font-weight: 600;
  text-decoration: none;
}

.article__byline a:hover {
  text-decoration: underline;
}

.article__standfirst {
  margin-top: 1.25rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--ink-700);
}

.article__meta {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ink-200);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-500);
}

/* The share status wraps in this block and leaves the signature in place. */
.article__foot > :first-child {
  flex: 1 1 20rem;
  min-width: 0;
}

.article__tools {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.article__tools .btn {
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
}

.article__share-status a {
  color: var(--spruce);
  overflow-wrap: anywhere;
}

.article__share-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-600);
}

/* The body copy. Measure is set by the container, so nothing here caps width
   except the pull quote. */
.prose {
  margin-top: 2.5rem;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ink-900);
}

.prose > * + * {
  margin-top: 1.5rem;
}

.prose p,
.prose li,
.prose blockquote {
  text-wrap: pretty;
}

.prose h2 {
  margin-top: 3rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.75rem;
  line-height: 1.3;
}

.prose h3 {
  margin-top: 2.25rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.3125rem;
}

.prose ul,
.prose ol {
  padding-left: 1.375rem;
}

.prose li + li {
  margin-top: 0.5rem;
}

.prose a {
  color: var(--spruce);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose strong {
  font-weight: 600;
}

.prose blockquote {
  border-left: 4px solid var(--spruce);
  padding-left: 1.5rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--ink-800);
}

.prose blockquote > * + * {
  margin-top: 1rem;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--ink-50);
  border-radius: var(--radius-sm);
  padding: 0.1rem 0.35rem;
}

.prose pre {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.7;
}

.prose pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--ink-200);
  margin: 3rem 0;
}

.prose img {
  border-radius: var(--radius);
  border: 1px solid var(--ink-200);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.prose th,
.prose td {
  border-bottom: 1px solid var(--ink-100);
  padding: 0.625rem 0.75rem;
  text-align: left;
}

.prose .align-center {
  text-align: center;
}

.prose .align-right {
  text-align: right;
}

.prose th {
  font-weight: 600;
  border-bottom-color: var(--ink-300);
}

.prose .table-scroll {
  overflow-x: auto;
}

.article__foot {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ink-200);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
}

.article__foot a:not(.btn) {
  text-decoration: none;
  color: var(--spruce);
  font-weight: 600;
}

.article__foot a:not(.btn):hover {
  text-decoration: underline;
}

.article__foot .article__tools {
  margin-top: 0;
}

.article__back {
  display: inline-block;
  margin-top: 1rem;
}

.article__signature {
  margin-left: auto;
  text-align: right;
}

.article__signature p + p {
  margin-top: 0.5rem;
}

.article__signature a::after {
  inset-block: -0.5rem;
}

@media (max-width: 39.9375em) {
  .article__signature {
    margin-left: 0;
    text-align: left;
  }
}

@media (min-width: 40em) {
  .process-diagram ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media print {
  .article__tools,
  .article__back,
  .article__crumb,
  .article-more {
    display: none;
  }
}
