/* Hallmark · shape: Narrative Workflow · genre: atmospheric · theme: Kiln (by request: the engine pages share the Glinda page's colour and type) · job: join · draw: 40fbce (shape, nav and footer swapped to keep the three pages one family)
 * hero: Stage (a terminal run beside the headline) · nav: edge-aligned family bar · footer: mast · imagery: the product built (a finding record and an evidence diff), no photographs · signature: the evidence the engine prints, then the same finding as Glinda adds its verdict to it (the heat scale appears only there)
 * axes: dark/high-contrast-serif/warm · posture: full-palette · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: S, a checking engine can read like any scanner page; led with the one thing this engine refuses to do, a verdict, and showed the same line before and after the platform adds one */
/* Hallmark · hero-review: earlier build only · finish-review: earlier build only · the page was rebuilt after the owner corrected what Dorothy does (it searches and prints evidence; verdicts belong to Glinda), and the two reviews have not been run again on this version */
/* Hallmark · dismissed 58 · the page also carries a status block and a contribution note, each a few short lines, and the long text on screen is terminal output in slots */
/* Hallmark · answered F8 · the pinned stages are the page's scroll story; the card in view changes with opacity and transform only, and the run in the hero types its lines with no motion beyond that */
@import url("../tokens.css");
@import url("../base.css");

:root { --banner-height: 72px; --seam: var(--section-gap-s); --text-term: clamp(0.8125rem, 0.55vw + 0.45rem, 1rem); --color-paper-2: oklch(17.5% 0.011 40); --color-paper-3: oklch(22% 0.013 40); --color-rule-2: oklch(96% 0.01 80 / 0.22); --color-accent-2: var(--heat-5); --color-accent-soft: color-mix(in oklab, var(--color-accent) 16%, var(--color-paper-2)); --color-accent-wash: color-mix(in oklab, var(--color-accent) 18%, var(--color-paper)); }

.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }
.link { color: var(--color-ink); text-decoration-color: var(--color-rule-2); text-underline-offset: 0.2em; }
.link:hover { text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; }
.link:active { color: var(--color-ink-2); }
.label { color: var(--color-muted); font-size: var(--text-sm); font-weight: 500; }
.measured, code { font-family: var(--font-outlier); font-size: var(--text-sm); font-variant-numeric: tabular-nums slashed-zero; }
.note { margin-top: var(--space-md); color: var(--color-muted); font-size: var(--text-sm); }

/* buttons: the same pill and the same ember as the Glinda page */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-pill); background: transparent; box-shadow: inset 0 0 0 var(--rule-hair) var(--color-rule); color: var(--color-ink); font: 500 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: color-mix(in oklab, var(--color-ink) 8%, transparent); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--color-accent); box-shadow: none; color: var(--color-accent-ink); }
.btn--primary:hover { background: color-mix(in oklab, var(--color-accent) 86%, var(--color-ink)); }
.btn--sm { min-height: 44px; padding: 0 var(--space-md); }

/* nav: an edge-aligned bar that carries the family */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); height: var(--banner-height); background: color-mix(in oklab, var(--color-paper) 78%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: var(--rule-hair) solid var(--color-rule); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.mark { display: flex; align-items: baseline; gap: var(--space-sm); margin: 0; font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); letter-spacing: var(--tracking-display); }
.mark a { color: var(--color-muted); text-decoration: none; }
.mark a:hover { color: var(--color-ink); }
.mark [aria-hidden="true"] { color: var(--color-rule-2); }
.nav__links { display: flex; align-items: center; gap: var(--space-lg); }
.nav__links > a:not(.btn) { color: var(--color-ink-2); font-weight: 500; text-decoration: none; }
.nav__links > a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.25em; }

/* bands: a fade into the ground of the next */
.band { position: relative; background: var(--ground, var(--color-paper)); color: var(--color-ink); }
.band::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: var(--seam); background: linear-gradient(to bottom, transparent, var(--next, var(--color-paper))); background: linear-gradient(to bottom in oklab, transparent, var(--next, var(--color-paper))); pointer-events: none; }
.band > .container { position: relative; z-index: var(--z-base); }
.band--hero { --ground: var(--color-paper); --next: var(--color-paper-2); --seam: var(--space-3xl); }
.band--stages { --ground: var(--color-paper-2); --next: var(--color-paper); --seam: var(--section-gap-s); }
.band--handoff { --ground: var(--color-paper); --next: var(--color-paper-2); --seam: var(--section-gap-s); }
.band--limits { --ground: var(--color-paper-2); --next: var(--color-paper-2); --seam: var(--section-gap-s); }
.band--stand { --ground: var(--color-paper-2); --next: var(--color-paper); --seam: var(--section-gap-s); }
.band--close { --ground: var(--color-paper); --next: var(--color-paper); --seam: var(--section-gap-s); }
.band--stages { padding-block: var(--section-gap-s) var(--section-gap); }
.band--handoff, .band--limits, .band--stand, .band--close { padding-block: var(--section-gap-s) var(--section-gap); }
.head { display: grid; gap: var(--space-lg); margin-bottom: var(--space-2xl); }
.head .lead { color: var(--color-ink-2); }

/* hero: the headline beside the run it is about */
.band--hero { display: flex; flex-direction: column; justify-content: center; padding-block: var(--space-lg) var(--space-xl); }
@media (min-width: 60.0625rem) and (min-height: 43.75rem) { .band--hero { min-height: calc(100svh - var(--banner-height)); } }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: center; }
.hero h1 { max-width: none; font-size: var(--text-display); }
.hero .lead { margin-top: var(--space-lg); color: var(--color-ink-2); max-width: 32ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-xl); }
.hero__term { min-width: 0; }
.statement { max-width: 22ch; font-size: var(--text-display); }

/* the terminal: what the engine prints, in the page's own mono */
.term { overflow: hidden; border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-card); background: var(--color-paper); }
.term__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-xs) var(--space-md) var(--space-xs) var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.term__title { margin: 0; color: var(--color-muted); font-size: var(--text-sm); }
.term__ctl { display: flex; gap: var(--space-xs); }
.term__out { display: block; overflow-x: auto; padding: var(--space-lg); color: var(--color-ink); font-family: var(--font-outlier); font-size: var(--text-term); line-height: 1.8; font-variant-numeric: tabular-nums slashed-zero; }
.t-line { display: block; white-space: pre; }
.t-gap { min-height: 1.8em; }
.t-obs { display: grid; grid-template-columns: 13ch 16ch 28ch auto; }
.t-head { color: var(--color-muted); }
.js [data-term]:not(.is-static) .t-line.is-live::after { content: ""; display: inline-block; width: 0.6em; height: 1.05em; margin-left: 0.4em; background: var(--color-accent); vertical-align: text-bottom; }
.t-cmd { color: var(--color-ink); }
.t-dim { color: var(--color-muted); }
.js [data-term]:not(.is-static) .t-line:not(.is-on) { visibility: hidden; }
html:not(.js) .term__ctl, .term.is-static .term__ctl { display: none; }
.term--big .term__out { padding: var(--space-xl); font-size: var(--text-md); line-height: 1.8; }
.hero__term .term__out { padding: var(--space-lg) var(--space-lg) var(--space-md); }
.term--big .t-gap { min-height: 1.8em; }
.term__out--plain { margin: 0; padding: 0; font-size: var(--text-sm); }
.term__out--plain code { font-size: inherit; }

/* the stages: three steps of text and one pinned panel */
.steps-grid { display: grid; gap: var(--space-3xl); }
.step { display: grid; gap: var(--space-lg); }
.step__text { display: grid; align-content: center; }
.step__body { display: grid; gap: var(--space-md); }
.step__body h3 { max-width: none; font-size: var(--text-display-s); line-height: 1; }
.step__body p { color: var(--color-ink-2); font-size: var(--text-lead); line-height: 1.4; max-width: 28ch; }
.step__card { margin: 0; min-width: 0; }
.step__rail { display: none; }
@media (min-width: 60rem) {
  .js .steps-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--space-2xl); row-gap: 0; align-items: start; }
  .js .step { display: contents; }
  .js .step__text { grid-column: 1; min-height: 100dvh; opacity: 0.45; transition: opacity calc(var(--dur-long) * 1.6) var(--ease-out); }
  .js .step.is-active .step__text { opacity: 1; }
  .js .step__card, .js .step__rail { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: var(--banner-height); align-self: start; display: grid; align-items: center; height: calc(100dvh - var(--banner-height)); }
  .js .step__card { opacity: 0; transform: translateY(28px); pointer-events: none; transition: opacity calc(var(--dur-long) * 1.6) var(--ease-out), transform calc(var(--dur-long) * 1.6) var(--ease-out); }
  .js .step__card.is-current { opacity: 1; transform: none; pointer-events: auto; }
  .js .step__card.is-past { transform: translateY(-28px); }
  .js .step__rail { z-index: var(--z-raised); grid-auto-flow: column; justify-content: start; align-items: end; gap: var(--space-xs); padding-bottom: var(--space-lg); pointer-events: none; }
  .js .step__rail span { display: block; width: 32px; height: 4px; border-radius: calc(var(--radius-well) / 8); background: var(--color-rule); transition: background-color calc(var(--dur-long) * 1.2) var(--ease-out); }
  .js .step__rail span.is-on { background: var(--color-ink); }
}

/* the split: the same finding, before and after the platform */
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-lg); margin-top: var(--space-3xl); align-items: start; }
.split__pane { display: grid; gap: var(--space-md); align-content: start; padding: var(--space-xl); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-card); background: var(--color-paper-2); }
.split__pane--raw { background: var(--color-paper); }
.split__title { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-2xl); line-height: 1.1; letter-spacing: var(--tracking-display); }
.heat { display: flex; align-items: center; gap: var(--space-md); color: var(--color-ink); }
.heat__bar { display: inline-grid; grid-template-columns: repeat(6, 22px); gap: var(--space-3xs); }
.heat__bar i, .heat__bar b { display: block; height: 10px; border-radius: 2px; }
.heat__bar i:nth-child(1) { background: var(--heat-1); }
.heat__bar i:nth-child(2) { background: var(--heat-2); }
.heat__bar i:nth-child(3) { background: var(--heat-3); }
.heat__bar i:nth-child(4) { background: var(--heat-4); }
.heat__bar b { background: var(--color-rule-2); }
.split__list { display: grid; gap: var(--space-sm); margin: 0; padding: 0; list-style: none; color: var(--color-ink-2); font-size: var(--text-lead); line-height: 1.4; }
.split__list li { padding-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); }
.band--handoff .family { margin-top: var(--space-3xl); }

/* the family */
.family ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-card); background: var(--color-rule); gap: var(--rule-hair); overflow: hidden; }
.family li { display: grid; gap: var(--space-2xs); align-content: start; padding: var(--space-lg); background: var(--color-paper-2); }
.family a { display: grid; gap: var(--space-2xs); color: inherit; text-decoration: none; }
.family b { font-family: var(--font-display); font-weight: 500; font-size: var(--text-2xl); letter-spacing: var(--tracking-display); line-height: 1.1; }
.family span { color: var(--color-ink-2); }
.family li:has(> a:hover) { background: var(--color-paper); }
.family .is-current { box-shadow: inset 0 2px 0 var(--color-ink); }
.family small { color: var(--color-ink-2); font-size: var(--text-sm); font-weight: 500; }

/* the limits: four ruled rows */
.panels { display: grid; grid-template-columns: minmax(0, 1fr); border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule-2); color: var(--color-ink); }
.panel h3 { max-width: none; font-size: var(--text-2xl); line-height: 1.15; }
.panel p { color: var(--color-ink-2); font-size: var(--text-lead); line-height: 1.45; max-width: 44ch; }

/* where it stands */
.stand { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule-2); }
.stand > li { display: grid; gap: var(--space-md); align-content: start; padding: var(--space-xl) var(--space-lg); border-left: var(--rule-hair) solid var(--color-rule); }
.stand > li:first-child { padding-left: 0; border-left: 0; }
.stand h3 { max-width: none; font-size: var(--text-2xl); line-height: 1.1; }
.stand p { color: var(--color-ink-2); max-width: 34ch; }
.band--stand .head .lead { color: var(--color-ink-2); }

/* the way in */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule-2); }
.ways > li { display: grid; gap: var(--space-md); align-content: start; justify-items: start; min-height: 260px; padding: var(--space-xl) var(--space-lg); border-left: var(--rule-hair) solid var(--color-rule); }
.ways > li:first-child { padding-left: 0; border-left: 0; }
.ways h3 { max-width: none; font-size: var(--text-2xl); line-height: 1.1; }
.ways p { color: var(--color-ink-2); max-width: 34ch; }

/* footer: a mast, the same as its siblings */
.mast { background: var(--color-paper); padding-block: var(--space-3xl) var(--space-xl); }
.mast__word { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(4rem, 12vw, 10rem); line-height: 0.95; letter-spacing: var(--tracking-display); }
.mast__links { display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-xl); margin: var(--space-2xl) 0 0; padding: 0; list-style: none; }
.mast__links a { text-decoration: none; }
.mast__links a:hover { text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.2em; }
.mast__legal { display: grid; gap: var(--space-2xs); margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule-2); color: var(--color-muted); font-size: var(--text-sm); }

/* narrower screens */
@media (max-width: 60rem) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .family ol { grid-template-columns: minmax(0, 1fr); }
  .panel { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .stand { grid-template-columns: minmax(0, 1fr); }
  .stand > li { padding-left: 0; border-left: 0; border-top: var(--rule-hair) solid var(--color-rule); }
  .stand > li:first-child { border-top: 0; }
  .ways { grid-template-columns: minmax(0, 1fr); }
  .ways > li { min-height: 0; padding-left: 0; border-left: 0; border-top: var(--rule-hair) solid var(--color-rule); }
  .ways > li:first-child { border-top: 0; }
}
@media (max-width: 40rem) {
  .nav__links { gap: var(--space-md); }
  .term__out, .term--big .term__out, .split__pane { padding: var(--space-md); }
  .term--big .term__out { font-size: var(--text-sm); }
  .term__bar { flex-wrap: wrap; }
  .t-line { white-space: pre-wrap; overflow-wrap: anywhere; }
  .t-obs { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: var(--space-md); padding-bottom: var(--space-xs); }
  .t-obs > span:nth-child(1) { grid-column: 1; grid-row: 1; }
  .t-obs > span:nth-child(2) { grid-column: 2; grid-row: 1; }
  .t-obs > span:nth-child(3) { grid-column: 1 / -1; grid-row: 2; color: var(--color-ink-2); }
  .t-obs > span:nth-child(4) { grid-column: 3; grid-row: 1; }
  .t-head { display: none; }
  .heat__bar { grid-template-columns: repeat(6, 16px); }
}
