/* =========================================================
   Article / blog post styles
   ========================================================= */

.article-head {
  padding: 120px 0 64px;
  border-bottom: 1px solid var(--rule);
}
.article-head .wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 var(--gutter); }
.article-head .meta-row {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.article-head .meta-row .dot { width: 4px; height: 4px; background: var(--rule); border-radius: 50%; }
.article-head .meta-row .topic { color: var(--tan); font-family: var(--serif); letter-spacing: 0.04em; text-transform: none; font-size: 14px; font-style: italic; }
.article-head h1 {
  margin-top: 28px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 22ch;
}
.article-head h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--green); }
.article-head .deck {
  margin-top: 28px;
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 56ch;
  font-style: italic;
}
.article-head .byline {
  margin-top: 40px;
  display: flex; align-items: center; gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.article-head .byline .monogram {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green-deep); color: var(--tan);
  font-family: var(--serif); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.article-head .byline .author { font-size: 14px; color: var(--ink); }
.article-head .byline .author .name { font-weight: 500; }
.article-head .byline .author .role { color: var(--muted); font-size: 12px; margin-top: 2px; }

.article-layout {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  gap: 56px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px var(--gutter);
}
.article-toc {
  position: sticky; top: 96px;
  align-self: start;
  font-size: 13px;
}
.article-toc h4 { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; font-weight: 500; }
.article-toc ol { counter-reset: toc; padding-left: 0; }
.article-toc li { padding: 6px 0; color: var(--ink-2); border-left: 1px solid var(--rule); padding-left: 14px; line-height: 1.4; counter-increment: toc; }
.article-toc li::marker { content: ''; }
.article-toc li::before { content: counter(toc, decimal-leading-zero); font-family: var(--serif); color: var(--muted); font-size: 11px; margin-right: 8px; letter-spacing: 0.05em; }
.article-toc li.active { color: var(--ink); border-left-color: var(--green); }
.article-toc li a { display: inline; }

.article-body { max-width: 680px; font-size: 18px; line-height: 1.65; color: var(--ink); }
.article-body > * + * { margin-top: 22px; }
.article-body h2 {
  margin-top: 56px;
  font-family: var(--sans);
  font-size: 30px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  scroll-margin-top: 88px;
}
.article-body h2 .ix { font-family: var(--serif); font-size: 14px; color: var(--muted); letter-spacing: 0.06em; margin-right: 14px; vertical-align: middle; }
.article-body h3 { margin-top: 36px; font-size: 22px; letter-spacing: -0.015em; }
.article-body p { color: var(--ink); font-size: 18px; line-height: 1.65; }
.article-body p.lead-para {
  font-family: var(--serif); font-style: italic;
  font-size: 22px; line-height: 1.5; color: var(--ink-2);
  border-left: 2px solid var(--green); padding-left: 20px;
}
.article-body ul, .article-body ol { padding-left: 24px; }
.article-body ul li, .article-body ol li { padding: 4px 0; }
.article-body ul li::marker { color: var(--tan); }
.article-body strong { font-weight: 600; }
.article-body em { font-family: var(--serif); font-style: italic; }
.article-body a { color: var(--green); border-bottom: 1px solid var(--green); }
.article-body a:hover { background: var(--green); color: var(--paper-3); }
.article-body blockquote {
  margin: 40px -24px;
  padding: 24px 32px;
  background: var(--paper-2);
  font-family: var(--serif); font-style: italic;
  font-size: 22px; line-height: 1.5;
  color: var(--ink);
  border-left: 3px solid var(--green);
}
.article-body blockquote cite { display: block; margin-top: 16px; font-style: normal; font-family: var(--sans); font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 15px;
}
.article-body table th, .article-body table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.article-body table th {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
}
.article-body table tr:last-child td { border-bottom: 1px solid var(--ink); }

.article-body .callout {
  margin: 36px 0;
  padding: 24px 28px;
  background: var(--paper-3);
  border: 1px solid var(--rule);
}
.article-body .callout .label {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--tan);
  font-family: var(--sans); margin-bottom: 8px;
}
.article-body .callout h4 { font-size: 18px; margin: 0 0 8px; }
.article-body .callout p { font-size: 15px; color: var(--ink-2); margin: 0; }

.article-body hr { margin: 56px 0; border: 0; border-top: 1px solid var(--rule); }

.article-aside {
  position: sticky; top: 96px;
  align-self: start;
  font-size: 13px;
}
.article-aside .block { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.article-aside .block:first-child { border-top: 1px solid var(--rule); }
.article-aside h5 { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; font-weight: 500; }
.article-aside .v { color: var(--ink); font-size: 14px; }
.article-aside .share { display: flex; gap: 12px; margin-top: 8px; }
.article-aside .share a {
  width: 32px; height: 32px; border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--ink-2);
}
.article-aside .share a:hover { background: var(--ink); color: var(--paper-3); border-color: var(--ink); }

.article-end-disclaimer {
  max-width: 680px;
  margin: 56px auto 0;
  padding: 24px;
  background: var(--paper-2);
  font-size: 13px; color: var(--muted); line-height: 1.55;
}

.related-strip { padding: 72px 0; border-top: 1px solid var(--rule); }
.related-strip .wrap { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; border-top: 1px solid var(--rule); }
.related-strip h3 { font-size: 24px; margin: 0 0 32px; max-width: 12ch; }
.related-strip .head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.related-strip article { padding: 28px 28px 28px 0; border-right: 1px solid var(--rule); }
.related-strip article:nth-child(2), .related-strip article:nth-child(3) { padding-left: 28px; }
.related-strip article:last-child { border-right: 0; padding-right: 0; }
.related-strip .topic { font-family: var(--serif); font-size: 13px; color: var(--tan); }
.related-strip h4 { margin: 8px 0; font-size: 18px; line-height: 1.25; }
.related-strip p { font-size: 13px; color: var(--ink-2); }
.related-strip .meta { font-size: 11px; letter-spacing: 0.06em; color: var(--muted); margin-top: 12px; }

@media (max-width: 1024px) {
  .article-head { padding: 96px 0 48px; }
  .article-layout { grid-template-columns: 1fr; gap: 32px; padding: 48px var(--gutter); }
  .article-toc, .article-aside { position: static; }
  .article-toc { order: 2; padding: 24px 0; border-top: 1px solid var(--rule); }
  .article-aside { order: 1; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
  .article-body { max-width: 100%; font-size: 17px; }
  .article-body p { font-size: 17px; }
  .article-body blockquote { margin: 32px 0; padding: 20px 24px; font-size: 19px; }
  .article-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  .article-body table th, .article-body table td { white-space: normal; min-width: 140px; }
  .related-strip .wrap { grid-template-columns: 1fr; }
  .related-strip article { border-right: 0; border-bottom: 1px solid var(--rule); padding: 24px 0; }
  .related-strip article:nth-child(2), .related-strip article:nth-child(3) { padding-left: 0; }
}

@media (max-width: 640px) {
  .article-head { padding: 80px 0 40px; }
  .article-head h1 { font-size: clamp(28px, 7vw, 40px); }
  .article-head .deck { font-size: clamp(18px, 5vw, 22px); }
  .article-head .meta-row { gap: 10px 14px; font-size: 11px; }
  .article-head .byline { margin-top: 28px; padding-top: 18px; flex-wrap: wrap; }
  .article-layout { padding: 36px var(--gutter); }
  .article-body { font-size: 16px; line-height: 1.6; }
  .article-body p { font-size: 16px; line-height: 1.6; }
  .article-body h2 { font-size: 24px; margin-top: 40px; }
  .article-body h3 { font-size: 20px; margin-top: 28px; }
  .article-body p.lead-para { font-size: 18px; padding-left: 16px; }
  .article-body blockquote { font-size: 17px; padding: 18px 20px; }
  .article-body .callout { padding: 18px 20px; margin: 28px 0; }
  .article-end-disclaimer { padding: 18px; font-size: 12px; margin-top: 40px; }
  .related-strip { padding: 48px 0; }
}
