/* Lucid Computing site: what every sub-page shares, on top of the kit.
   Load order: assets/taste/tokens.css, assets/taste/base.css, assets/brand/lucid.css, then this file.
   Scripts at the end of <body>: assets/taste/engine/taste.js, then assets/site.js.
   The home page (index.html) carries its own styles and engine; the header and the colophon here are drawn to match it exactly.
   Every colour is a role from the kit (--bg, --fg, --fg-mist, --rule, --signal), so a pattern reads right on paper, night and cobalt.
   Builders: do not edit this file. Patterns and their markup are in _PATTERNS.md and shown in _template.html. */

/* ---------- the measures of the home page, where the kit differs from it ---------- */
:root {
  --grid-gutter: clamp(16px, 2.4vw, 36px);
  --space-top: clamp(66px, 6.5vw, 100px);
  --size-sentence: clamp(19px, 1.5vw, 23px);
  /* the claim of a sub-page head: clearly smaller than the home hero (--size-claim), larger than a part's headline (.tt) */
  --size-page: clamp(36px, 4.7vw, 76px);
  /* the room between the rows of one part (the home's own measure) */
  --space-row: clamp(40px, 4.2vw, 68px);
  /* a sentence on night, a step under white (the hero's lead) */
  --fg-soft: color-mix(in srgb, var(--fg) 86%, var(--bg));
}
@media (max-width: 700px) {
  :root { --grid-gutter: 18px; --space-top: 48px; }
}
/* text is rendered as on the home page (the kit thins it on macOS; the home does not) */
body { overflow-x: clip; -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; }
/* a paused page (or a still address, #t=) stills what the kit's CSS moves by itself: the "pending" state's square */
html.still .state[data-state="pending"]::before { animation: none; background-size: 100% 50%; }
.night { --fg-soft: color-mix(in srgb, var(--fg) 86%, var(--bg)); }
.paper, .white, .accent { --fg-soft: var(--fg); }


/* ---------- the header: exactly the home page's ---------- */
.top { position: relative; z-index: 3; }
.top .wrap { display: grid; grid-template-columns: var(--grid-margin) minmax(0, 1fr); column-gap: var(--grid-gap); align-items: center; height: 68px; }
.top .wrap::after { content: ""; position: absolute; left: var(--grid-gutter); right: var(--grid-gutter); bottom: 0; height: 1px; background: var(--rule); }
.top .logo { justify-self: start; padding-block: 7px; margin-block: -7px; }
.top .logo img { display: block; height: 26px; width: auto; }
.top nav { display: flex; gap: 30px; justify-self: end; }
.top nav a { position: relative; padding-block: 12px; margin-block: -12px; transition: color var(--dur-quick); }
.top nav a:hover { color: var(--fg); }
/* the current page: its name in the ground's ink, and a small filled square before it, hung in the gap so nothing moves */
.top nav a[aria-current] { color: var(--fg); }
.top nav a[aria-current]::before { content: ""; position: absolute; left: -13px; top: 50%; width: 7px; height: 7px; margin-top: -4px; background: var(--signal); }
@media (max-width: 700px) {
  .top .wrap { grid-template-columns: auto 1fr; height: 60px; }
  .top nav { gap: 18px; }
  .top nav a[aria-current]::before { left: -11px; width: 6px; height: 6px; margin-top: -3.5px; }
}

/* ---------- the record: the home's rhythm on the kit's grid ---------- */
/* a part: its label line sits --space-top under its top edge (the rail's number and the head's label share that line) */
.part { padding-top: 0; padding-bottom: 0; }
.part > .wrap { padding-top: calc(var(--space-top) - 32px); padding-bottom: var(--space-end); }
.part > .wrap > .rail { top: calc(var(--space-top) - 32px); }
.part > .wrap > .head, .part > .wrap > .rail + .r { padding-top: 32px; }
.part > .wrap > .r + .r { margin-top: var(--space-row); }
.part > .wrap > .head + .r { margin-top: 0; }
/* a part followed by a part on the same ground: one hairline across, where the sheet would have been */
.part.paper + .part.paper:not(.sheet) > .wrap::before, .part.night + .part.night:not(.sheet) > .wrap::before { content: ""; position: absolute; top: 0; left: var(--grid-gutter); right: var(--grid-gutter); height: 1px; background: var(--rule); }
/* the last part before another ground leaves room for the sheet that comes up over it */
.part:has(+ .sheet) > .wrap { padding-bottom: calc(var(--space-end) + var(--radius-sheet)); }
/* a heading's first line, and a margin note's first line, stand on their cap height, so both start on one line */
@media (min-width: 701px) {
  .m > :first-child { text-box: trim-both cap alphabetic; }
  .head .m > span { max-width: 18ch; }
}
/* the part's number in the margin: the running head (wide), or a number in the folded margin line (phones) */
.no { display: none; }
@media (min-width: 701px) {
  .rail { display: block; position: absolute; left: var(--grid-gutter); top: 0; bottom: 0; width: var(--grid-rail); pointer-events: none; }
  .run { position: sticky; top: 26px; display: flex; align-items: center; gap: 9px; padding-top: 32px; }
  .run b { text-box: trim-both cap alphabetic; }
  .run::before { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 29px; background: var(--bg); z-index: -1; }
  .grain .run::before { background-image: var(--grain-tile); background-size: 256px 256px; }
}
@media (min-width: 701px) and (max-width: 1180px) {
  .rail { width: var(--grid-margin); }
  .wrap:has(> .rail) .r > .m { padding-left: 0; }
  .wrap:has(> .rail) .head > .m, .wrap > .rail + .r > .m { padding-top: 24px; }
}
@media (max-width: 700px) {
  .head > .m { margin-bottom: 26px; }
  .m .no { order: -1; display: inline-flex; align-items: center; gap: 8px; color: var(--fg); }
  .m .tag { margin-bottom: 4px; }
}

/* the claim of a page head, the band and the close: Semibold capitals, a step under the home hero */
.pc { font-family: var(--font-sans); font-weight: var(--weight-claim); font-size: var(--size-page); line-height: 0.92; letter-spacing: -0.04em; text-transform: uppercase; text-wrap: balance; overflow-wrap: break-word; text-box: trim-both cap alphabetic; }
/* links in a sentence or a line: no underline at rest, one drawn in under the words on hover and focus */
.ln { color: var(--fg); background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .25s var(--ease), color var(--dur-quick); }
.ln:hover, .ln:focus-visible { background-size: 100% 1px; }
/* a compound word in a large claim that must not break at its hyphen */
.nw { white-space: nowrap; }
a.mono.go { color: var(--fg); white-space: nowrap; padding-block: 12px; margin-block: -12px; }
a.mono.go .ln { color: inherit; }
a.mono.go:hover .ln, a.mono.go:focus-visible .ln { background-size: 100% 1px; }

/* ---------- the page head: night, the page's name in the margin, one claim, one sentence, one action, one figure ---------- */
.hd-in { display: grid; grid-template-columns: var(--grid-margin) minmax(0, 1.42fr) minmax(0, 1fr); grid-template-areas: "m x fig"; column-gap: var(--grid-gap); align-items: start;
  padding-top: var(--space-top); padding-bottom: calc(var(--space-9) + var(--radius-sheet)); }
/* in the margin column: the parent on one line, the page on the next, on every page (a long pair no longer wraps on some pages and not on others).
   On phones, where the label has the full width, it is one line */
.hd-m { grid-area: m; display: block; }
.hd-m > * { white-space: nowrap; }
@media (min-width: 701px) { .hd-m > * { display: block; } }
.hd-m b { color: var(--fg); }
@media (min-width: 701px) { .hd-m { text-box: trim-both cap alphabetic; } }
.hd-x { grid-area: x; min-width: 0; display: grid; justify-items: start; gap: 30px; }
.hd-h { max-width: 12.5em; }
/* a document's title (a note, a policy): Semibold, sentence case, a size smaller */
.hd-h.doc { text-transform: none; font-size: clamp(32px, 3.6vw, 58px); line-height: 1; letter-spacing: -0.035em; max-width: 20em; }
.hd-s { font-size: var(--size-sentence); line-height: var(--leading-sentence); letter-spacing: var(--track-sentence); color: var(--fg-soft); max-width: 34ch; text-wrap: pretty; margin-top: 2px; }
.hd-act { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; }
/* the figure: a field of cipher cells that a wave of light decodes into the page's own few words (site.js). The words are its spans */
.hd-fig { --hf-mode: side; grid-area: fig; position: relative; min-width: 0; align-self: stretch; min-height: 180px; margin-left: clamp(0px, 2vw, 32px); }
.hd-fig > span { display: block; font: var(--weight-regular) var(--size-label)/22px var(--font-mono); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--fg-mist); }
.hd-fig.hf-on > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* a head with nothing under it (the 404) closes on the colophon */
.hd:last-child .hd-in { padding-bottom: var(--space-end); }
@media (max-width: 900px) {
  .hd-in { grid-template-columns: var(--grid-margin) minmax(0, 1fr); grid-template-areas: ". fig" "m x"; }
  .hd-fig { --hf-mode: strip; align-self: start; min-height: 0; margin: 0 0 48px; height: calc(var(--hf-rows, 7) * var(--hf-c, 14px)); }
  .hd-fig:not(.hf-on) { height: auto; }
}
/* phones lying down: the figure goes back beside the words, so the claim stays on the first screen */
@media (min-width: 701px) and (max-width: 900px) and (max-height: 520px) and (orientation: landscape) {
  .hd-in { grid-template-columns: var(--grid-margin) minmax(0, 1.42fr) minmax(0, 1fr); grid-template-areas: "m x fig"; }
  .hd-fig { --hf-mode: side; align-self: stretch; min-height: 160px; margin: 0 0 0 16px; height: auto; }
}
@media (max-width: 700px) {
  .hd-in { display: flex; flex-direction: column; }
  .hd-fig { order: -1; align-self: stretch; margin-bottom: 30px; }
  .hd-m { margin-bottom: 22px; }
  .hd-x { gap: 20px; }
}

/* ---------- (b) prose rows: a label beside sentences, about 60 characters to the line ---------- */
.copy { font-size: var(--size-sentence); line-height: 1.4; letter-spacing: var(--track-sentence); max-width: 46ch; text-wrap: pretty; }
.copy > * + * { margin-top: .75em; }
.copy a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: var(--rule); transition: text-decoration-color var(--dur-quick); }
.copy a:hover { text-decoration-color: currentColor; }
.split > .mono { padding-top: .1em; }
@media (max-width: 700px) { .split { row-gap: 10px; } pre.code { white-space: pre-wrap; overflow-wrap: anywhere; } }

/* ---------- (c) an index: numbered rows between an ink rule above and below, hairlines between (the home's research list) ---------- */
.idx { border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); }
.idx > li + li { border-top: 1px solid var(--rule); }
.idx-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; column-gap: 24px; row-gap: clamp(10px, 1vw, 16px);
  padding: clamp(18px, 1.5vw, 26px) 0 clamp(22px, 2vw, 34px); }
.idx-k { grid-area: 1 / 1; }
.idx-go { grid-area: 1 / 2; white-space: nowrap; color: var(--fg); }
.idx-t { grid-area: 2 / 1 / 3 / 3; font-size: clamp(20px, 1.85vw, 30px); line-height: 1.22; letter-spacing: -0.02em; max-width: 34ch; text-wrap: pretty; transition: color var(--dur-quick); }
.idx-d { grid-area: 3 / 1 / 4 / 3; font-size: var(--size-body); line-height: var(--leading-body); color: var(--fg-mist); max-width: 60ch; }
a.idx-row:hover .idx-t, a.idx-row:hover .idx-go, a.idx-row:focus-visible .idx-t, a.idx-row:focus-visible .idx-go { color: var(--signal); }
a.idx-row:focus-visible { outline: none; }
a.idx-row:focus-visible::after { content: ""; position: absolute; inset: 4px -14px; border-radius: 18px; box-shadow: 0 0 0 2px var(--focus); pointer-events: none; }
@media (max-width: 700px) { .idx-t { font-size: 20px; } a.idx-row:focus-visible::after { inset: 4px -8px; } }

/* ---------- (d) a record of facts: a mono key, the value, and an optional state (kit dl.kv, with a third cell) ---------- */
.kv { border-top: 2px solid var(--rule-strong); border-bottom: 2px solid var(--rule-strong); }
.kv > div:last-child { border-bottom: 0; }
.kv > div { padding: 14px 0 15px; }
.kv dd { font-size: var(--size-body); line-height: var(--leading-body); }
.kv dd.v { font-family: var(--font-mono); letter-spacing: 0; }
.kv dd.s { display: flex; }
@media (min-width: 701px) {
  .kv > div:has(> dd.s) { grid-template-columns: var(--grid-label) minmax(0, 1fr) auto; }
  .kv dd.s { justify-content: flex-end; }
}
@media (max-width: 700px) { .kv > div:has(> dd.s) { grid-template-columns: minmax(0, 1fr) auto; } .kv > div > dd:not(.s) { grid-column: 1 / -1; } .kv dd.s { grid-row: 1; grid-column: 2; } }

/* ---------- (e) steps: four or five short numbered statements, side by side where there is room ---------- */
.steps { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); column-gap: var(--grid-gap); counter-reset: none; }
.steps > li { border-top: 1px solid var(--rule-strong); padding-top: 16px; display: grid; align-content: start; gap: 14px; min-width: 0; }
.steps p { font-size: clamp(18px, 1.45vw, 22px); line-height: 1.3; letter-spacing: -0.015em; text-wrap: pretty; max-width: 22ch; }
@media (max-width: 1180px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }
@media (max-width: 700px) {
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 0; border-bottom: 1px solid var(--rule-strong); }
  .steps > li { gap: 8px; padding: 16px 0 20px; }
  .steps > li + li { border-top-color: var(--rule); }
  .steps p { font-size: 19px; max-width: none; }
}

/* ---------- (f) the band: the cobalt ground, one claim, once per page at most ---------- */
.band > .wrap { padding-top: calc(var(--space-top) - 32px); padding-bottom: calc(var(--space-9) + var(--radius-sheet)); }
.band > .wrap > .rail { top: calc(var(--space-top) - 32px); }
.band > .wrap > .r { min-height: clamp(280px, 46svh, 560px); align-items: stretch; }
.band > .wrap > .r > .m { padding-top: 32px; align-self: start; }
.band > .wrap > .r > .x { display: flex; align-items: flex-end; }
.band .pc { max-width: 11em; }
@media (min-width: 701px) and (max-width: 1180px) { .band > .wrap > .r > .m { padding-top: 56px; } }
@media (max-width: 700px) { .band > .wrap > .r { min-height: 0; } .band > .wrap > .r > .m { padding-top: 18px; margin-bottom: 40px; } .band > .wrap > .r > .x { min-height: 32svh; } }

/* ---------- (g) references: many outbound links, compact and numbered, in mono ---------- */
.refs { border-top: 1px solid var(--rule-strong); }
.refs > li { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); column-gap: 12px; padding: 12px 0 13px; border-bottom: 1px solid var(--rule); }
.refs > li > .mono:first-child { padding-top: 2px; }
.refs-t { min-width: 0; display: grid; gap: 4px; }
.refs-t > a, .refs-t > span:first-child { font: var(--weight-regular) 13px/1.45 var(--font-mono); letter-spacing: 0; color: var(--fg); overflow-wrap: anywhere; justify-self: start; }
.refs-t > a { background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .25s var(--ease), color var(--dur-quick); }
.refs-t > a:hover, .refs-t > a:focus-visible { color: var(--signal); background-size: 100% 1px; }
.refs-t > a::after { content: "\00a0\2197"; }
@media (min-width: 1000px) { .refs.two { column-count: 2; column-gap: var(--grid-gap); border-top: 0; } .refs.two > li { break-inside: avoid; } .refs.two > li:first-child, .refs.two { border-top: 1px solid var(--rule-strong); } }

/* ---------- (h) an action row: one sentence, one or two actions ---------- */
.act-x { display: grid; justify-items: start; gap: 24px; }
.act-b { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
/* on phones the row's label sits as close over its sentence as a prose row's label does */
@media (max-width: 700px) { .r.act > .m { margin-bottom: 10px; } }

/* ---------- (i) a post: a long-form column for an article ---------- */
.post { max-width: none; }
.post-h { max-width: 18em; font-weight: var(--weight-claim); font-size: clamp(30px, 3.1vw, 46px); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.post-by { margin-top: 18px; }
.post .prose { margin-top: clamp(36px, 3.6vw, 56px); max-width: 33em; font-size: clamp(18px, 1.3vw, 20px); line-height: 1.55; }
.post .prose h2 { font-size: 1.3em; margin-top: 2em; }
.post .prose h3 { font-size: 1.05em; margin-top: 1.8em; }
.post .prose figure { margin: 2em 0; }
.post .prose figure.quote { padding-left: 22px; border-left: 1px solid var(--rule-strong); }
.post .prose blockquote { font-size: 1.15em; line-height: 1.35; letter-spacing: -0.02em; }
.post .prose figure.quote figcaption { padding-top: 10px; }
.post .prose pre.code { margin: 1.6em 0; font-size: var(--size-code); line-height: 1.6; }
.post .prose sup { line-height: 0; font-size: .7em; }
.post .prose sup a { text-decoration: none; font-family: var(--font-mono); color: var(--signal); padding: 0 1px; }
.fn { max-width: 42em; margin-top: clamp(40px, 4vw, 64px); padding-top: 16px; border-top: 1px solid var(--rule-strong); font-size: 15px; line-height: 1.5; counter-reset: fn; }
.fn > li { display: grid; grid-template-columns: 2.2em minmax(0, 1fr); padding: 6px 0; counter-increment: fn; }
.fn > li::before { content: counter(fn, decimal-leading-zero); font: var(--weight-regular) var(--size-label)/22px var(--font-mono); letter-spacing: var(--track-label); color: var(--fg-mist); }
.fn a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: var(--rule); }
.fn .back { margin-left: 6px; font: var(--weight-regular) var(--size-label)/1 var(--font-mono); letter-spacing: var(--track-label); text-transform: uppercase; text-decoration: none; color: var(--fg-mist); }
:target { scroll-margin-top: 24px; }

/* ---------- the close: night, one claim, one action ---------- */
.cl > .wrap { padding-bottom: var(--space-9); }
.cl > .wrap > .r.head { margin-bottom: 0; }
.cl-x { display: grid; justify-items: start; gap: clamp(30px, 3.4vw, 48px); }
.cl .pc { max-width: 12em; }

/* ---------- the colophon: exactly the home page's ---------- */
/* the home page's body text sets the line boxes of the colophon: 18px at 1.4 */
.foot { font-size: 18px; line-height: 1.4; }
.foot .wrap { padding-top: 26px; padding-bottom: 44px; }
.foot .wrap::before { content: ""; position: absolute; left: var(--grid-gutter); right: var(--grid-gutter); top: 0; height: 1px; background: var(--rule); }
.foot-r { display: grid; grid-template-columns: var(--grid-margin) minmax(0, 1fr); column-gap: var(--grid-gap); align-items: baseline; }
.foot-m { display: flex; flex-direction: column; gap: 2px; min-width: 0; font: var(--weight-regular) var(--size-label)/var(--leading-label) var(--font-mono); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--fg-mist); }
.foot-m b { color: var(--fg); }
.foot-m > :first-child { text-box: trim-both cap alphabetic; }
.foot .colo { display: grid; grid-template-columns: var(--grid-label) minmax(0, 1fr) minmax(0, 1fr) var(--grid-value); column-gap: var(--grid-gap); align-items: start; }
.foot .logo { justify-self: start; padding-block: 9px; margin-block: -9px; }
.foot .logo img { display: block; height: 22px; width: auto; }
.foot ul { display: grid; gap: 6px; }
.foot a.mono { transition: color var(--dur-quick); }
.foot a.mono:hover, .foot button:hover { color: var(--fg); }
.foot .legal { margin-top: 56px; }
:where(.foot) button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: 0; padding: 12px 0; margin: -12px 0; cursor: pointer; }
@media (pointer: coarse) { .foot ul { gap: 0; } .foot ul a { display: inline-block; padding-block: 12px; } }
@media (max-width: 1180px) { .foot .colo { grid-template-columns: var(--grid-label) minmax(0, 1fr) minmax(0, 1fr); } .foot .colo > :last-child { display: none; } }
@media (max-width: 900px) { .foot .colo { grid-template-columns: 1fr 1fr; row-gap: 26px; } .foot .colo .logo { grid-column: 1 / -1; } }
@media (max-width: 700px) {
  .foot-r { display: block; }
  .foot-m { margin-bottom: 20px; }
  .foot .legal { display: flex; justify-content: space-between; gap: 16px; }
  .foot .legal .foot-m { margin: 0; flex-direction: row; justify-content: space-between; }
}

@media print { .top nav, .foot button { display: none; } }


/* ---------- the top bar's sections, its action, and its menu on a phone ---------- */
.top nav { align-items: center; }
.top-links { display: flex; gap: 30px; }
.top-links a { white-space: nowrap; }
@media (max-width: 900px) { .top-links { gap: 24px; } }
.top nav a[aria-current="true"] { color: var(--fg); }
.top nav .top-x { display: grid; place-items: center; padding: 12px 4px; margin: -12px -4px; }
.top nav .top-x svg { display: block; }
.top nav .top-cta { margin: 0 0 0 4px; padding: 9px 13px; min-height: 0; }
.top-more { display: none; }
/* the links fold into the menu while the bar is too narrow to hold them on one line */
@media (max-width: 780px) {
  .top-links { display: none; }
  .top nav { gap: 14px; }
  .top-more { display: block; }
  .top-more summary { list-style: none; cursor: pointer; padding: 12px 0; color: var(--fg); }
  .top-more summary::-webkit-details-marker { display: none; }
  .top-more summary::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 9px; box-shadow: inset 0 0 0 1px currentColor; }
  .top-more[open] summary::after { background: currentColor; }
  .top-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 6; padding: 6px var(--grid-gutter) 22px; border-bottom: 1px solid var(--rule); }
  .top-panel ul { margin: 0; padding: 0; list-style: none; }
  .top-panel li { padding: 14px 0 15px; border-top: 1px solid var(--rule); }
  .top-panel .top-sec { display: block; margin: 0; padding: 0; font-size: 22px; font-weight: var(--weight-claim); letter-spacing: -0.03em; color: var(--fg); text-transform: none; }
  .top-panel .top-sec[aria-current]::before { display: none; }
  .top-panel .top-sub { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 9px; }
  .top-panel .top-sub a { margin: 0; padding: 4px 0; }
}

/* ---------- the pages of a section, under the top bar ---------- */
.sec { position: relative; z-index: 2; }
.sec .wrap { display: flex; gap: 26px; align-items: center; height: 46px; overflow-x: auto; scrollbar-width: none; padding-left: calc(var(--grid-gutter) + var(--grid-margin) + var(--grid-gap)); }
.sec .wrap::-webkit-scrollbar { display: none; }
.sec .wrap::after { content: ""; position: absolute; left: var(--grid-gutter); right: var(--grid-gutter); bottom: 0; height: 1px; background: var(--rule); }
.sec a { flex: none; position: relative; padding-block: 10px; white-space: nowrap; transition: color var(--dur-quick); }
.sec a:hover, .sec a[aria-current] { color: var(--fg); }
.sec a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--signal); }
@media (max-width: 700px) { .sec .wrap { gap: 20px; padding-left: var(--grid-gutter); } }

/* the label over a title is a path: its first part leads back up */
.hd-m a { color: inherit; text-decoration: none; transition: color var(--dur-quick); }
.hd-m a:hover { color: var(--fg); }

/* ---------- the other pages of the section, at the foot of a page ---------- */
.more .wrap { padding-top: 26px; padding-bottom: 30px; }
.more .wrap::before { content: ""; position: absolute; left: var(--grid-gutter); right: var(--grid-gutter); top: 0; height: 1px; background: var(--rule); }
.more ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); column-gap: var(--grid-gap); }
.more li a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0 13px; border-bottom: 1px solid var(--rule); font-size: clamp(18px, 1.5vw, 22px); letter-spacing: -0.02em; color: var(--fg-soft); text-decoration: none; transition: color var(--dur-quick); }
.more li a:hover { color: var(--fg); }
.more li a:hover .mono { color: var(--signal); }


/* ---------- one frame for every page: night top bar, a short night head, then the content on paper. Clean and short, so the content comes fast ----------
   The head has no figure: the path in the margin, one claim, one line, the page's actions. The home page alone opens differently. */
.hd-c .hd-in { grid-template-columns: var(--grid-margin) minmax(0, 1fr); grid-template-areas: "m x"; padding-top: clamp(40px, 4.6vw, 76px); padding-bottom: calc(clamp(40px, 4.4vw, 68px) + var(--radius-sheet)); }
.hd-c .hd-h { font-size: clamp(34px, 4.1vw, 66px); max-width: 17em; }
.hd-c .hd-x { gap: 24px; }

/* ---------- a post is set for reading: paper, its head centred (the rest is in src/styles/post.css) ---------- */
.pp-head { display: grid; justify-items: center; text-align: center; padding-top: clamp(48px, 6.4vw, 104px); padding-bottom: clamp(36px, 4.4vw, 68px); }
.pp-m { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 12px; margin-bottom: clamp(20px, 2.2vw, 32px); }
.pp-m b { color: var(--fg); font-weight: inherit; }
.pp-m a { color: inherit; text-decoration: none; }
.pp-m a:hover { color: var(--signal); }
.pp-t { max-width: 15em; font-weight: var(--weight-claim); font-size: clamp(34px, 4.4vw, 72px); line-height: 0.99; letter-spacing: -0.04em; text-wrap: balance; }
.pp-d strong { font-weight: 600; color: var(--fg); }
.pp-d { max-width: 31em; margin-top: clamp(18px, 1.9vw, 30px); font-size: var(--size-sentence); line-height: 1.38; letter-spacing: var(--track-sentence); color: var(--fg-mist); text-wrap: balance; }
