/* The blog on the Sheet: /blog and every post. Loaded after sheet.css. A post is a reading column, 680px wide, Inter 17px on a 28px line; nothing in it moves on scroll. */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.kicker { display: block; color: var(--muted); margin: 0 0 18px; }

/* the cover: the question, the answer, the byline */
.cover { padding-bottom: clamp(36px, 5vw, 56px); }
.motion .cover > .wrap > :nth-child(2) { --i: 1; }
.motion .cover > .wrap > :nth-child(3) { --i: 2; }
.motion .cover > .wrap > :nth-child(4) { --i: 3; }
.cover.post > .wrap > * { max-width: 680px; margin-inline: auto; }
.cover.post h1 { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.12; margin-bottom: 20px; }
.cover .answer { font-size: 19px; line-height: 1.5; letter-spacing: -.012em; color: var(--ink-3); margin-bottom: 22px; }
.cover .meta { font-size: 14px; letter-spacing: -.011em; color: var(--ink-2); margin-bottom: 0; }
.cover .meta b { font-weight: 510; }
.cover .meta a { color: var(--ink-3); text-decoration: none; }
.cover .meta a:hover { color: var(--ink); }
.cover.index .sub { margin-bottom: 0; }

/* the reading column */
.ed { max-width: 680px; margin-inline: auto; font-size: 17px; line-height: 28px; letter-spacing: -.011em; color: var(--ink-3); overflow-wrap: break-word; }
.ed p { margin: 0 0 20px; }
.ed b { font-weight: 590; color: var(--ink); }
.ed h2 { font-size: 24px; line-height: 1.25; letter-spacing: -.018em; color: var(--ink); margin: 48px 0 14px; }
.ed .cols > h2:first-child { margin-top: 0; }
.ed a:not(.go) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-2); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color .16s var(--quick); }
.ed a:not(.go):hover { text-decoration-color: var(--ink); }
.ed code { font: 400 .88em/1 var(--mono); letter-spacing: 0; color: var(--ink); background: var(--glass); border-radius: 4px; padding: .12em .34em; overflow-wrap: anywhere; }
.ed pre { max-width: 100%; overflow-x: auto; background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; padding: 14px 16px; margin: 0 0 20px; }
.ed pre code { background: none; padding: 0; line-height: 1.6; overflow-wrap: normal; }
.ed table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 15px; line-height: 1.5; margin: 0 0 20px; }
.ed th, .ed td { text-align: left; padding: 8px 14px 8px 0; border-bottom: 1px solid var(--rule); }
.ed th { font-weight: 510; color: var(--ink); }

/* a pull quote and a pull note: hairline at the side, no box */
.ed .pull, .ed .note { border-left: 1px solid var(--rule-2); padding-left: 20px; margin: 32px 0; }
.ed .pull { font-size: 20px; line-height: 30px; letter-spacing: -.014em; color: var(--ink); }
.ed .pull cite { display: block; margin-top: 10px; font-size: 14px; line-height: 22px; font-style: normal; letter-spacing: -.011em; color: var(--ink-2); }
.ed .pull cite a { color: var(--ink-3); }
.ed .note p { margin: 0 0 6px; color: var(--ink-2); }
.ed .note .rev { display: block; color: var(--ink); }

/* the signature and the sources */
.ed .end { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 14px; line-height: 22px; color: var(--ink-2); }
.ed .end span a { color: var(--ink-3); text-decoration: none; }
.ed .end span a:hover { color: var(--ink); }
.ed .refs { margin-top: 44px; font-size: 14px; line-height: 22px; color: var(--ink-2); }
.ed .refs h2 { font-size: 17px; letter-spacing: -.012em; margin: 0 0 12px; }
.ed .refs ol { margin: 0; padding-left: 1.6em; }
.ed .refs li { margin: 0 0 8px; padding-left: 2px; }
.ed .refs li::marker { color: var(--muted); }
.ed .refs a { color: var(--ink-3); overflow-wrap: anywhere; }

/* read next */
#related h2 { margin-bottom: clamp(24px, 3vw, 36px); }
#related h3 a { color: inherit; text-decoration: none; transition: color .16s var(--quick); }
#related h3 a:hover { color: var(--accent); }

/* /blog: the topics, one ruled list, the pager */
.topics { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 clamp(20px, 3vw, 32px); font-size: 14px; font-weight: 510; letter-spacing: -.013em; }
.topics a { color: var(--ink-2); text-decoration: none; transition: color .16s var(--quick); }
.topics a:hover, .topics a[aria-current] { color: var(--ink); }
.topics b { font: 400 12px/1 var(--grid); color: var(--muted); margin-left: 2px; }
.post-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.post-list > li { border-top: 1px solid var(--rule); }
.post-card { padding: 24px 0 26px; }
.post-card h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.016em; margin: 0 0 8px; }
.post-card h3 a { color: var(--ink); text-decoration: none; transition: color .16s var(--quick); }
.post-card h3 a:hover { color: var(--accent); }
.post-card .summary { font-size: 15px; line-height: 1.55; letter-spacing: -.011em; color: var(--ink-2); max-width: 66ch; margin: 0 0 10px; }
.post-card .by { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0; }
.post-card .by .px { margin-right: 12px; color: var(--ink-2); }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 28px; }
.pager a { display: grid; gap: 2px; text-decoration: none; font-size: 14px; color: var(--ink-2); transition: color .16s var(--quick); }
.pager a:hover { color: var(--ink); }
.pager .next { margin-left: auto; text-align: right; }
.pager b { font-weight: 510; color: var(--ink); }
.pages { margin: 16px 0 0; font-size: 13px; color: var(--muted); }

/* a phone: keep the words off the dotted margins; code and long links wrap, a table or a block scrolls inside itself */
@media (max-width: 720px) {
  .cover.post > .wrap > *, .ed { padding-inline: 10px; }
  .ed .pull, .ed .note { padding-left: 14px; }
  .ed .note, .ed .pull { padding-inline-end: 0; }
  .cover.index > .wrap > *, #posts .wrap > *, #related .wrap > * { padding-inline: 10px; }
}
