/* Hallmark · shape: Narrative Workflow (home), Long Document (piece) · genre: editorial · theme: Editorial (locked in DESIGN.md) · job: listen · draw: 07b5a5
 * hero: Index · nav: edge-aligned · footer: mast · imagery: the user's own poster photographs and seller preview sheets, 4 · signature: the lineage as three numbered stages, broken by a fourth poster that refuses the sequence
 * axes: light/display-condensed/chromatic-green · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · dismissed 58 · the piece and method pages are long documents, not landing pages: an 80-word screen budget would cap an article at about 450 words, and craft.md § 9's own prose spec of a 66ch measure at 1.75 leading is what is set here instead */
/* Hallmark · waive 78 · the piece and method pages carry the Long Document shape named in the stamp · a long document heads its passages as inline annotation inside a 66ch measure, so a 52px section head would sit wider than the prose it introduces */
/* Hallmark · waive 44c · the piece and method pages carry the Long Document shape named in the stamp · a long document has no hero: the article head is a title and a standfirst, and the reading text starts immediately beneath it rather than filling a first screen */
/* Hallmark · waive 79 · the piece and method pages carry the Long Document shape named in the stamp · the space the check reads as a dead hero band is the top margin of the first paragraph of an article */
/* Hallmark · waive 77 · the theory and corrections blocks are running prose capped at 66ch by gate 25 · on a 1312px container a legal prose measure is necessarily under three quarters of the width, so 77 and 25 cannot both hold on a long document */
/* Hallmark · pre-emit critique: P5 H5 E4 S5 R4 V5 · weakest: E, four pictures is one past the theme's two or three; the TAP grid earns its place because it is the only view of the middle of the chain, and the stages between it are type alone */
@import url("/tokens.css");
@import url("/base.css");

h1, h2, h3 { font-variation-settings: "wdth" 75, "opsz" 96; color: var(--color-ink); line-height: 1.0; }
body { font-size: 1.125rem; color: var(--color-ink-2); }
a { color: inherit; text-decoration-color: var(--color-rule-2); text-underline-offset: 0.16em; }
a:hover { text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; }
a:active { color: var(--color-accent); }
.sf { font-family: var(--font-body); font-size: var(--text-lead); line-height: 1.35; color: var(--color-ink); max-width: 46ch; }

/* edge-aligned bar */
.bar { border-bottom: var(--rule-heavy) solid var(--color-ink); }
.bar__in { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-md); padding-block: var(--space-md); }
.bar__word { font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 75, "opsz" 96; font-size: var(--text-xl); letter-spacing: var(--tracking-display); text-decoration: none; }
.bar__nav { display: flex; gap: var(--space-lg); }
.bar__nav a { font-family: var(--font-display); font-weight: 500; font-variation-settings: "opsz" 12; font-size: var(--text-sm); color: var(--color-muted); text-decoration: none; }
.bar__nav a:hover { color: var(--color-ink); }

/* hero — Index: the three stages are the lead */
.hero__in { min-height: calc(100dvh - 86px); display: flex; flex-direction: column; justify-content: center; gap: var(--space-xl); padding-block: var(--space-2xl); }
.hero h1 { font-size: var(--text-display-s); max-width: 24ch; }
.hero__sf { font-family: var(--font-body); font-size: var(--text-lead); line-height: 1.4; color: var(--color-ink); max-width: 54ch; margin-top: var(--space-lg); }
.toc { list-style: none; margin: 0; padding: 0; counter-reset: s; border-top: var(--rule-heavy) solid var(--color-ink); }
.toc li { counter-increment: s; border-bottom: var(--rule-hair) solid var(--color-rule); }
.toc a { display: grid; grid-template-columns: 3.5rem minmax(0, 6fr) minmax(0, 5fr) auto; gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-lg); text-decoration: none; }
.toc a::before { content: counter(s); font-family: var(--font-display); font-weight: 500; font-variation-settings: "opsz" 12; font-size: var(--text-md); color: var(--color-muted); font-variant-numeric: tabular-nums lining-nums; }
.toc__t { font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 75, "opsz" 96; font-size: var(--text-2xl); letter-spacing: var(--tracking-display); color: var(--color-ink); }
.toc__s { font-family: var(--font-body); color: var(--color-ink-2); }
.toc__y { font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 75, "opsz" 96; font-size: var(--text-xl); font-variant-numeric: tabular-nums lining-nums; color: var(--color-ink); text-align: right; }
.toc a:hover .toc__t { color: var(--color-accent); }

/* stages */
.stage { padding-block: var(--section-gap-s); border-top: var(--rule-hair) solid var(--color-rule); }
.stage__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--gap-columns) var(--space-3xl); align-items: center; }
.stage--flip .stage__in { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.stage--flip .stage__text { order: 2; }
.stage h2 { font-size: var(--text-section); max-width: 18ch; margin-bottom: var(--space-lg); }
.stage__text p:not([class]) { margin-top: var(--space-md); color: var(--color-muted); max-width: 48ch; }
.stage__fig, .wide__fig, .coda__fig { margin: 0; }
.stage__fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; outline: 1px solid var(--color-ink); outline-offset: -1px; }
.stage--flip .stage__fig img { aspect-ratio: 3 / 4; object-position: top center; }
figcaption { font-family: var(--font-display); font-weight: 500; font-variation-settings: "opsz" 12; font-size: var(--text-sm); color: var(--color-muted); padding-top: var(--space-sm); }

.stage--wide .stage__head { max-width: 62ch; margin-bottom: var(--space-2xl); }
.stage--wide h2 { max-width: 22ch; }
.wide__fig img { width: 100%; max-width: 1100px; outline: 1px solid var(--color-ink); outline-offset: -1px; }

/* the coda breaks the sequence */
.coda { padding-block: var(--section-gap); background: var(--color-paper-2); border-top: var(--rule-heavy) solid var(--color-ink); }
.coda__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--gap-columns) var(--space-3xl); align-items: center; }
.coda__fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top center; outline: 1px solid var(--color-ink); outline-offset: -1px; }
.statement { font-family: var(--font-body); font-size: var(--text-display-s); line-height: 1.2; color: var(--color-ink); max-width: 20ch; }

/* sections */
.sect { padding-block: var(--section-gap-s); }
#method { padding-block: var(--section-gap); }
.sect__h { font-size: var(--text-section); border-top: var(--rule-heavy) solid var(--color-ink); padding-top: var(--space-lg); margin-bottom: var(--space-2xl); max-width: none; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr) auto; gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.rows__t { font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 75, "opsz" 96; font-size: var(--text-title); letter-spacing: var(--tracking-display); color: var(--color-ink); }
.rows__s { font-family: var(--font-body); color: var(--color-muted); }
.rows__y { font-family: var(--font-display); font-weight: 500; font-variation-settings: "opsz" 12; font-size: var(--text-sm); font-variant-numeric: tabular-nums lining-nums; color: var(--color-muted); text-align: right; }

/* method */
.well { background: var(--color-paper-2); border-top: var(--rule-hair) solid var(--color-rule-2); padding: var(--space-xl) var(--space-2xl); }
.meth { margin: 0; }
.meth > div { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: var(--gap-columns); padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.meth > div:first-child { border-top: 0; padding-top: 0; }
.meth dt { font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 75, "opsz" 96; font-size: var(--text-title); letter-spacing: var(--tracking-display); color: var(--color-ink); }
.meth dd { margin: 0; font-family: var(--font-body); color: var(--color-ink-2); max-width: 48ch; }
.corr { margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule-2); font-family: var(--font-body); font-size: var(--text-md); color: var(--color-ink-2); max-width: 64ch; }
.corr s { color: var(--color-muted); text-decoration-thickness: 2px; }

/* mast footer */
.foot { border-top: var(--rule-heavy) solid var(--color-ink); padding-block: var(--space-2xl); }
.foot__in { display: grid; gap: var(--space-lg); }
.foot__word { font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 75, "opsz" 96; font-size: var(--text-display-s); line-height: 1; letter-spacing: var(--tracking-display); color: var(--color-ink); }
.foot__nav { display: flex; flex-wrap: wrap; gap: var(--space-lg); }
.foot__nav a { font-family: var(--font-display); font-weight: 500; font-variation-settings: "opsz" 12; font-size: var(--text-sm); text-decoration: none; color: var(--color-muted); }
.foot__nav a:hover { color: var(--color-ink); }
.foot__p { font-family: var(--font-body); font-size: var(--text-sm); color: var(--color-muted); max-width: 60ch; }

@media (max-width: 60rem) {
  .hero__in { min-height: 0; }
  .stage__in, .stage--flip .stage__in, .coda__in { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .stage--flip .stage__text { order: 0; }
  .toc a { grid-template-columns: 2.5rem minmax(0, 1fr) auto; }
  .toc__s { grid-column: 2 / -1; }
  .meth > div { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .rows li { grid-template-columns: minmax(0, 1fr) auto; }
  .rows__s { grid-column: 1 / -1; }
}
@media (max-width: 40rem) {
  .bar__nav, .foot__nav { gap: var(--space-md); }
  .well { padding: var(--space-lg); }
}


/* ============ shared chrome for the inner pages ============ */
.bar__nav a[aria-current="page"] { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.3em; }

/* ============ the piece: a long document ============ */
.piece { padding-block: var(--space-3xl) var(--section-gap-s); }
.piece__head { max-width: 60rem; }
.piece h1 { font-size: var(--text-display-s); max-width: 20ch; }
.piece__sf { font-family: var(--font-body); font-style: italic; font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink); max-width: 54ch; margin-top: var(--space-lg); }
.piece__meta { display: flex; flex-wrap: wrap; gap: var(--space-lg); margin-top: var(--space-xl); padding-top: var(--space-md); border-top: var(--rule-heavy) solid var(--color-ink); font-family: var(--font-display); font-weight: 500; font-variation-settings: "opsz" 12; font-size: var(--text-sm); color: var(--color-muted); }

.prose { max-width: 36rem; margin-top: var(--space-3xl); }
.prose > p { margin-bottom: var(--space-xl); font-size: 1.1875rem; line-height: 1.75; max-width: 66ch; }
.prose > h2 { font-size: var(--text-2xl); margin-top: var(--space-4xl); margin-bottom: var(--space-xl); max-width: 26ch; }
.prose > h2:first-child { margin-top: 0; }
.prose > blockquote { margin: var(--space-2xl) 0; padding-left: var(--space-lg); border-left: var(--rule-heavy) solid var(--color-accent); font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 75, "opsz" 96; font-size: var(--text-title); line-height: 1.3; letter-spacing: var(--tracking-display); color: var(--color-ink); }
.prose > .first { font-size: var(--text-lead); line-height: 1.5; }
.prose strong, .theory strong { font-family: var(--font-display); font-weight: 500; font-variation-settings: "opsz" 12; font-size: 1.0625em; }

/* figures break the measure */
.piece figure { margin: var(--space-3xl) 0; max-width: 60rem; }
.piece figure img { width: 100%; outline: 1px solid var(--color-ink); outline-offset: -1px; }
.piece figure.fig--tall img { max-width: 26rem; }
.piece figcaption { max-width: 54ch; }

/* the theory block is visibly separated from the evidence */
.theory { margin: var(--space-4xl) 0; padding: var(--space-3xl) 0; border-block: var(--rule-heavy) solid var(--color-accent); max-width: 60rem; }
.theory > h2 { margin-top: 0; }
.theory > p { margin-bottom: var(--space-xl); font-size: 1.1875rem; line-height: 1.75; max-width: 66ch; }
.theory__flag { font-family: var(--font-display); font-weight: 500; font-variation-settings: "opsz" 12; font-size: var(--text-sm); color: var(--color-accent); margin-bottom: var(--space-md); }

/* the correction, at the foot of every piece */
.errata { margin-top: var(--section-gap-s); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule-2); max-width: 60rem; }
.errata h2 { font-size: var(--text-title); margin-bottom: var(--space-md); }
.errata p { font-family: var(--font-body); font-size: var(--text-md); color: var(--color-ink-2); max-width: 66ch; }
.errata s { color: var(--color-muted); text-decoration-thickness: 2px; }

.piece__next { margin-top: var(--section-gap-s); padding-top: var(--space-lg); border-top: var(--rule-heavy) solid var(--color-ink); }
.piece__next a { font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 75, "opsz" 96; font-size: var(--text-title); letter-spacing: var(--tracking-display); color: var(--color-ink); }

@media (max-width: 60rem) {
  .prose, .piece__head, .piece figure, .theory, .errata { max-width: none; }
}

/* the opening trio of posters */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.trio img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top center; outline: 1px solid var(--color-ink); outline-offset: -1px; }
@media (max-width: 40rem) { .trio { grid-template-columns: minmax(0, 1fr); } }

/* the method page's own rule list */
.meth--page { max-width: 60rem; margin-top: var(--space-xl); border-top: var(--rule-heavy) solid var(--color-ink); }
.meth--page > div:first-child { border-top: 0; padding-top: var(--space-xl); }

/* heads that route into the piece keep the head's colour until hover */
.stage h2 a { color: var(--color-ink); text-decoration-color: var(--color-rule-2); text-underline-offset: 0.12em; }
.stage h2 a:hover { text-decoration-color: var(--color-accent); }
.corr a { color: var(--color-ink); text-decoration-color: var(--color-accent); }


/* states, shared across every page */
.piece a:focus-visible, .foot a:focus-visible, .bar a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.piece a:active, .foot__nav a:active { color: var(--color-accent); }
.prose a, .errata a, .theory a { color: var(--color-ink); text-decoration-color: var(--color-accent); text-underline-offset: 0.16em; }
.prose a:hover, .errata a:hover, .theory a:hover { text-decoration-thickness: 2px; }
/* the piece's measure holds at 1920 */
.piece .container { max-width: var(--container); }
.piece__head, .piece figure, .theory, .errata, .piece__next { max-width: 60rem; }

h1, h2, h3 { text-wrap: balance; }
.prose > p, .theory > p, .errata p { text-wrap: pretty; }

.theory__stmt { font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 75, "opsz" 96; font-size: var(--text-section); line-height: 1.15; letter-spacing: var(--tracking-display); color: var(--color-ink); max-width: 20ch; margin-bottom: var(--space-xl); }
