.post-progress { position: fixed; top: var(--header); inset-inline: 0; height: 2px; z-index: 41; pointer-events: none; }
.post-progress span { display: block; width: 100%; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.post-heading { padding-top: calc(var(--header) + 55px); }
.post-back { display: inline-flex; align-items: center; gap: 12px; color: var(--accent-ink); font-size: 14px; }
.post-back:hover { text-decoration: underline; text-underline-offset: 5px; }
.post-back span { font-size: 21px; }
.post-heading h1 { max-width: 1180px; margin-top: 30px; font-size: clamp(42px, 5.4vw, 76px); line-height: 1.12; letter-spacing: -.06em; font-weight: 400; text-wrap: balance; }
.post-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 35px; font-size: 12px; }
.post-tags a { border: 1px solid var(--line); padding: 7px 14px; color: var(--blue); transition: background .2s, border-color .2s; }
.post-tags a:hover { background: var(--soft); border-color: var(--blue); }
.post-tags > span { color: var(--muted); }
.post-cover { margin-top: 30px; }
.post-cover img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; max-height: 600px; }
.post-cover figcaption { margin-top: 12px; font-size: 12px; color: var(--muted); }
.post-layout { display: grid; grid-template-columns: 260px minmax(0, 760px); justify-content: space-between; align-items: start; gap: 70px; padding-block: 75px 90px; }
.post-sidebar { position: sticky; top: calc(var(--header) + 30px); max-height: calc(100svh - var(--header) - 60px); overflow-y: auto; scrollbar-width: thin; padding-right: 8px; }
.post-toc summary { list-style: none; font-size: 13px; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.post-toc summary::-webkit-details-marker { display: none; }
.post-toc summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.post-toc summary svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.post-toc[open] summary svg { transform: rotate(180deg); }
.post-toc ol { list-style: none; margin: 20px 0 0; padding: 0; }
.post-toc li + li { margin-top: 8px; }
.post-toc a { display: block; font-size: 14px; line-height: 1.6; padding: 8px 0 8px 15px; border-left: 2px solid var(--line); transition: border-color .2s, color .2s; }
.post-toc a:hover, .post-toc a[aria-current="location"] { border-color: var(--accent); color: var(--accent-ink); }
.post-credit { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-credit span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.post-credit a { font-size: 14px; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; }
.post-credit a:hover { text-decoration-color: var(--accent); }
.post-share { margin-top: 25px; }
.post-share > p { font-size: 12px; color: var(--muted); }
.post-copy { display: inline-flex; gap: 10px; align-items: center; margin-top: 12px; padding: 10px 13px; border: 1px solid var(--line); font-size: 12px; }
.post-copy:hover { background: var(--soft); border-color: var(--blue); }
.post-copy svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.post-share .post-copy-status:not(:empty) { margin-top: 10px; }
.post-copy-fallback { margin-top: 12px; }
.post-copy-fallback label { display: block; font-size: 12px; margin-bottom: 8px; }
.post-copy-fallback input { width: 100%; min-width: 0; padding: 10px; font-size: 14px; border: 1px solid var(--line); color: var(--blue); background: white; }
.post-reading { min-width: 0; }
.post-body p, .post-body li { color: var(--muted); font-size: 17px; line-height: 1.9; }
.post-body p + p { margin-top: 22px; }
.post-body .post-lead { color: var(--blue); font-size: 23px; line-height: 1.6; letter-spacing: -.025em; margin-bottom: 32px; }
.post-body h2 { margin: 42px 0 22px; font-size: clamp(29px, 2.8vw, 38px); line-height: 1.22; }
.post-body h2:focus { outline: none; }
.post-body h2:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; }
.post-body ul { padding-left: 22px; }
.post-body li + li { margin-top: 12px; }
.blog-post-page .text-link { gap: 16px; justify-content: flex-start; }
.post-project-callout { padding: 30px; margin-top: 40px; background: var(--soft); border-left: 2px solid var(--accent); }
.post-body .post-project-callout .eyebrow { color: var(--accent-ink); font-size: 11px; line-height: 1.5; }
.post-project-callout h3 { font-size: 29px; line-height: 1.25; margin-top: 14px; }
.post-project-callout .text-link { margin-top: 24px; }
.post-author { display: grid; grid-template-columns: 130px 1fr; gap: 28px; margin-top: 45px; padding-top: 35px; border-top: 1px solid var(--line); }
.post-author-logo { background: var(--soft); align-self: start; padding: 25px 15px; }
.post-author .eyebrow { font-size: 10px; }
.post-author h2 { margin-top: 10px; font-size: 27px; }
.post-author h2 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.post-author p:not(.eyebrow) { font-size: 14px; color: var(--muted); margin-top: 14px; }
.post-author .text-link { font-size: 13px; margin-top: 20px; }
.blog-post-page .blog-more { padding-block: 65px 80px; }
@media (max-width: 1100px) {
  .post-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 45px; }
}
/* At the site's tablet breakpoint, the index moves into the reading flow. */
@media (max-width: 800px) {
  .post-heading { padding-top: calc(var(--header) + 35px); }
  .post-layout { grid-template-columns: 1fr; gap: 35px; padding-block: 40px 60px; }
  .post-sidebar { position: static; max-height: none; overflow: visible; padding-right: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
  .post-toc { grid-column: 1 / -1; padding-block: 20px; border-block: 1px solid var(--line); }
  .post-toc summary { color: var(--blue); font-size: 15px; }
  .post-credit { margin: 0; padding: 0; border: 0; }
  .post-share { margin: 0; }
  .post-cover img { aspect-ratio: 16 / 9; }
  .post-body .post-lead { font-size: 21px; }
}
@media (max-width: 600px) {
  .post-heading h1 { font-size: clamp(36px, 8.8vw, 50px); margin-top: 24px; text-wrap: initial; }
  .post-tags { margin-top: 26px; }
  .post-cover { margin-top: 25px; }
  .post-cover img { aspect-ratio: 4 / 3; }
  .post-body p, .post-body li { font-size: 16px; }
  .post-project-callout { padding: 25px; }
  .post-project-callout h3 { font-size: 27px; }
  .post-author { grid-template-columns: 1fr; gap: 22px; }
  .post-author-logo { width: 135px; }
  .blog-post-page .blog-more { padding-block: 45px 55px; }
  .blog-post-page .blog-more-heading > .text-link { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.blog-post-page) { scroll-behavior: auto; }
  .post-tags a, .post-toc a { transition: none; }
}
