/* Navicade blog look. Tokens only: no colour is set here that a token does not own.
   Source lives in blog-src/blog.css; build.py copies it to blog/blog.css.
   Bands follow the direction: black head, white reading band, black next step, black footer.
   Spacing comes from the "spacing" tokens in tokens.css: the page starts --sp-page-top under the header, every band
   is --sp-section deep, and the eyebrow (.label) and the next step band are the home page's own rules (page.css, sections/shell.css).
   Type tokens --t-h2x and --dim come from the direction block in tokens.css. */

/* shared bits */
.crumbs ol { display: flex; flex-wrap: nowrap; white-space: nowrap; margin: 0; padding: 0; list-style: none; font-size: var(--t-small); color: var(--text-2); }
.crumbs li { min-width: 0; flex: 0 0 auto; }
.crumbs li + li::before { content: "/"; margin-inline: 10px; color: var(--text-3); }
.crumbs li:last-child { display: flex; align-items: center; flex: 0 1 auto; overflow: hidden; white-space: nowrap; }
.crumbs li:last-child a { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; line-height: 44px; }
.crumbs li:last-child::before { flex: none; }
.crumbs a { min-height: 44px; display: inline-flex; align-items: center; transition: color var(--dur-1) ease; }
.crumbs a:hover { color: var(--text); }
.crumbs li:last-child a { color: var(--text); }

/* head band (black): the fixed header sits over the top of the page, so the band starts below it */
.post-head { padding-top: calc(var(--header) + var(--sp-page-top)); padding-bottom: var(--sp-section); }
.post-head .crumbs { margin-bottom: var(--sp-head); }
.post-title { max-width: 13em; font-size: var(--t-h2x, clamp(40px, 5.4vw, 76px)); line-height: 1.02; letter-spacing: var(--track-h2); font-weight: 480; }
.post-title .dim { display: block; color: var(--dim, var(--text-3)); }
.post-meta { margin-top: 28px; font-size: var(--t-small); color: var(--text-2); }
.lead { margin-top: 28px; max-width: 34em; font-size: var(--t-lead); line-height: 1.5; color: var(--text-2); }

/* reading band (white) */
.post-body { background: var(--page); color: var(--text); padding-block: var(--sp-section); }
.prose { max-width: 680px; font-size: clamp(17px, 1.25vw, 19px); line-height: 1.7; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2.4em; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; letter-spacing: var(--track-h2); font-weight: 480; }
.prose h2 + * { margin-top: 0.7em; }
.prose ul { padding-left: 1.25em; }
.prose li + li { margin-top: 0.55em; }
.prose li::marker { color: var(--violet); }
.prose a { color: var(--violet); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.prose a:hover { color: var(--text); text-decoration-thickness: 2px; }

.nb { white-space: nowrap; }

/* index list */
.posts { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hair); }
.posts li { border-bottom: 1px solid var(--hair); }
.posts a { display: grid; grid-template-columns: 48px minmax(0, 5fr) minmax(0, 6fr) 24px; gap: 8px clamp(16px, 3vw, 40px); align-items: baseline; padding-block: clamp(24px, 3vw, 36px); }
.num { font: 400 14px/1 var(--pixel); letter-spacing: -0.04em; color: var(--violet); }
.ptitle { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -0.03em; font-weight: 480; transition: color var(--dur-1) ease; }
.pdesc { color: var(--text-2); }
.posts svg.i { align-self: center; width: 20px; height: 20px; color: var(--text-2); transition: transform var(--dur-2) var(--ease), color var(--dur-1) ease; }
.posts a:hover .ptitle, .posts a:hover svg.i { color: var(--violet); }
.posts a:hover svg.i { transform: translate(2px, -2px); }
@media (max-width: 760px) {
  .posts a { grid-template-columns: 36px minmax(0, 1fr) 24px; }
  .pdesc { grid-column: 2; grid-row: 2; }
  .posts svg.i { grid-column: 3; grid-row: 1; }
}

/* next step (black): the home close's own head and side (sections/shell.css), so nothing is set here beyond the band */

@media (prefers-reduced-motion: reduce) {
  .crumbs a, .ptitle, .posts svg.i { transition: none; }
  .posts a:hover svg.i { transform: none; }
}

/* Tables scroll within the reading column on narrow screens. */
.table-scroll { max-width: 100%; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { padding: 0.75em 1em; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair); }
.prose th { font-weight: 600; }
.post-group-label { margin-top: 3em; }

/* Phones: a table stacks, one small block per row. The first cell is a bold line, every other cell sits on its own line under its column name. */
@media (max-width: 639px) {
  .prose table, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .prose tr { padding-block: 0.9em; border-bottom: 1px solid var(--hair); }
  .prose td { padding: 0.15em 0; border: 0; }
  .prose td:first-child { font-weight: 600; padding-bottom: 0.3em; }
  .prose td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-size: var(--t-small); color: var(--text-3); }
}

/* Key points, a quiet word list and a quoted prompt inside articles: hairlines only, no fill, no rounded card. */
.prose .key-points { padding-block: 1.1em; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.prose .key-points-label { font-size: var(--t-small); font-weight: 600; color: var(--text-2); }
.prose .key-points ul { margin-top: 0.6em; }
.prose dl.words { border-top: 1px solid var(--hair); }
.prose dl.words dt { padding-top: 0.8em; font-weight: 600; }
.prose dl.words dd { margin: 0.2em 0 0; padding-bottom: 0.8em; border-bottom: 1px solid var(--hair); color: var(--text-2); }
.prose blockquote { margin-inline: 0; padding-left: 1.1em; border-left: 1px solid var(--hair); color: var(--text-2); }
