/* Hallmark · shape: manifesto-led product page, the argument first and the product as evidence · genre: modern-minimal · theme: brand (guinea brand kit) · job: understand (no public release yet; the page ends on the principles)
 * paper: oklch(96% 0.012 96) · accent: oklch(85.7% 0.084 121) · display: Geist · body: Inter · hero: Stage · nav: edge-aligned, the wordmark and three section links, no rule · footer: statement, the mascot over the slogan · signature: one terminal holding two real `guinea do` runs, the first closing itself on a passing check, the second waiting for a person
 * axes: lab paper/geist/living green · posture: restrained · contrast: pass · fold: pass · modes: dark by default, light on a toggle · imagery: screenshots 5 (sample data, light and dark) · copy: brand book manifesto, product-vision.md, guinea-method.md · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H4 E4 S5 R4 V4 · weakest: H, a long page; every section is one claim from the product's own docs with the product or the code as its proof, and bands of a second paper break the length */
/* Hallmark · dismissed 58 · the page runs past 450 words because the owner asked for the manifesto, the method and the principles on it; each screen still holds one claim, and the principles screen is the index of all seventeen by design */
/* Hallmark · waive 77 · code blocks 300px tall or more beside a short list, in the contract and recovery sections · each command and its real output is the section's object, the claim shown working */
/* Hallmark · dismissed 59 · twelve sections for the same reason; two paper bands and the dark manifesto band break the length */
@import url("./tokens.css");
@import url("./base.css");

/* Shared */
.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); background: var(--color-ink); color: var(--color-paper); border-radius: var(--radius-input); }
.skip:focus-visible { top: var(--space-md); }
section { padding-block: var(--section-gap) 0; }
.head { display: grid; gap: var(--space-md); max-width: 46rem; }
.head + * { margin-top: var(--space-2xl); }
.head .lead, .lead { color: var(--color-ink-2); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: 1px solid transparent; border-radius: var(--radius-input); background: var(--color-accent); color: var(--color-accent-ink); font: 600 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: var(--color-accent-hover); }
.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; }
@media (prefers-reduced-motion: reduce) { .btn { transition: background-color var(--dur-short) linear; } }

/* Screenshots: shown at their own size, cropped by the frame, never scaled down past legibility */
.shot { margin: 0; border-radius: var(--radius-card); outline: 1px solid color-mix(in oklab, var(--color-ink) 16%, transparent); outline-offset: -1px; background: var(--color-paper-2); }
.shot > .shot__media { position: absolute; inset: 0; z-index: 1; }
:root[data-mode="dark"] .m-light, :root:not([data-mode="dark"]) .m-dark { display: none; }
.shot img { position: absolute; top: calc(-1 * var(--crop-y, 0px)); left: calc(-1 * var(--crop-x, 0px)); width: 1440px; max-width: none; height: auto; }

/* Terminal and code */
.runs__term, .code { margin: 0; background: var(--color-term); color: var(--color-term-ink); font: 400 var(--text-md)/1.75 var(--font-outlier); white-space: pre-wrap; overflow-wrap: normal; }
.runs__term:focus-visible, .code:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.t-dim { color: var(--color-term-dim); }
.t-ok { color: var(--color-term-ok); }
.t-wait { color: var(--color-term-wait); }

/* Lists of facts with hairlines */
.facts { margin: var(--space-md) 0 0; display: grid; }
.facts > div { padding-block: var(--space-md); border-top: 1px solid var(--color-rule); }
.facts dt { font-weight: 600; }
.facts dd { margin: var(--space-2xs) 0 0; color: var(--color-ink-2); }

/* Nav */
.nav__row { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); }
.nav__home { display: inline-flex; border-radius: var(--radius-input); color: var(--color-ink); }
.nav__home:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.nav__logo { width: 125px; height: 32px; }
.nav__links { display: flex; gap: var(--space-xl); font-size: var(--text-sm); }
.nav__links a { color: var(--color-ink-2); text-decoration: none; border-radius: var(--space-2xs); }
.nav__links a:hover { color: var(--color-ink); text-decoration: underline; }
.nav__links a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.nav__links { align-items: center; }
.mode { min-height: 36px; padding: 0 var(--space-sm); border: 1px solid var(--color-rule); border-radius: var(--radius-input); background: transparent; color: var(--color-ink-2); font: 400 var(--text-sm)/1 var(--font-body); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.mode:hover { background: var(--color-paper-2); color: var(--color-ink); }
.mode:active { background: var(--color-paper-3); }
.mode:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* Hero: Stage, text on five columns, the board on seven bleeding off the right edge */
.hero { padding-block: 0; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: center; min-height: min(calc(100svh - 73px), 860px); padding-block: var(--space-2xl); }
.hero__text { display: grid; gap: var(--space-lg); }
.hero h1 { font-size: min(4.75rem, calc((min(100vw, var(--container)) - 192px) * 5 / 12 / 7.1)); line-height: 1.02; max-width: none; }
.hero h1 span { white-space: nowrap; } /* each sentence stays on its line; the size follows the five-column track */
.hero .lead { max-width: 26ch; }
.hero__actions { display: grid; justify-items: start; gap: var(--space-sm); margin-top: var(--space-xs); }
.hero__terms { font-size: var(--text-sm); color: var(--color-muted); }
.shot--hero { height: min(66svh, 536px); min-height: 440px; max-width: 852px; margin-right: calc(-1 * (var(--gutter) + max(0px, (100dvw - var(--container)) / 2))); --crop-x: 588px; --crop-y: 70px; } /* 852 = the capture's width past the crop, so at 1920 the frame ends on the board's own edge */

/* Manifesto: a band of the dark paper, a statement in three parts */
.manifesto { margin-top: var(--section-gap-s); padding-block: var(--section-gap); background: var(--color-band); color: var(--color-band-ink); }
.manifesto__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-2xl) var(--gap-columns); }
.manifesto h2 { font-size: var(--text-display-s); max-width: 13ch; }
.manifesto__body { display: grid; gap: var(--space-md); align-content: end; font-size: var(--text-lead); line-height: 1.5; color: var(--color-band-muted); }
.manifesto__body p { max-width: 40ch; }
.manifesto__close { grid-column: 1 / -1; display: flex; align-items: end; justify-content: space-between; gap: var(--space-2xl); padding-top: var(--space-xl); border-top: 1px solid color-mix(in oklab, var(--color-band-ink) 18%, transparent); }
.manifesto__close p { font: 600 var(--text-section)/1.05 var(--font-display); letter-spacing: var(--tracking-display); max-width: 28ch; }
.manifesto__guinea { flex: none; width: 168px; height: 141px; color: var(--color-band-ink); }

/* A session is not an organization: a comparison table */
.compare { width: 100%; border-collapse: collapse; font-size: var(--text-lead); }
.compare th, .compare td { text-align: left; padding: var(--space-md) var(--space-lg) var(--space-md) 0; border-bottom: 1px solid var(--color-rule); vertical-align: baseline; }
.compare thead th { font-size: var(--text-sm); font-weight: 600; color: var(--color-muted); padding-bottom: var(--space-sm); }
.compare tbody th { width: 18%; font-weight: 600; }
.compare td:nth-child(2) { width: 36%; color: var(--color-muted); }
.compare td:nth-child(3) { color: var(--color-ink); }

/* Meet the colony: four roles across */
.colony { margin-top: var(--section-gap); padding-block: var(--section-gap); background: var(--color-paper-2); }
.roles { list-style: none; margin: var(--space-2xl) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); }
.role { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-md); row-gap: var(--space-sm); align-items: center; align-content: start; padding-top: var(--space-lg); border-top: 1px solid var(--color-rule); }
.role__face { display: block; width: 64px; height: 54px; color: var(--color-ink); }
.role__face svg { width: 100%; height: 100%; }
.role h3 { font-size: var(--text-xl); }
.role p { grid-column: 1 / -1; color: var(--color-ink-2); font-size: var(--text-lg); line-height: 1.45; max-width: 28ch; }

/* Done means checked: one terminal, two runs, a note beside each */
.done { padding-top: calc(var(--section-gap-l) + var(--space-2xl)); }
.runs { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); column-gap: var(--space-2xl); }
.runs__term { padding: var(--space-xl) var(--space-xl) var(--space-lg); }
.runs__term--first { border-radius: var(--radius-card) var(--radius-card) 0 0; }
.runs__term--last { padding-block: var(--space-lg) var(--space-xl); border-top: 1px dashed color-mix(in oklab, var(--color-term-ink) 18%, transparent); border-radius: 0 0 var(--radius-card) var(--radius-card); }
.runs__note { align-self: center; color: var(--color-ink-2); font-size: var(--text-lead); line-height: 1.45; max-width: 24ch; }
.runs__note strong { display: block; font: 600 var(--text-title)/1.2 var(--font-display); letter-spacing: -0.02em; color: var(--color-ink); margin-bottom: var(--space-2xs); }

/* Every issue carries a contract: the parts beside the command that writes one */
.contract { padding-top: var(--section-gap-l); }
.contract__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: center; }
.contract h2 { max-width: 12ch; }
.code { padding: var(--space-2xl) var(--space-xl); border-radius: var(--radius-card); min-height: 320px; display: flex; align-items: center; }

/* Failure is knowledge: four steps, then the screen */
.research { margin-top: var(--section-gap-l); padding-block: calc(var(--section-gap) + var(--space-2xl)) var(--section-gap); background: var(--color-paper-2); }
.steps { list-style: none; margin: var(--space-2xl) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); }
.steps li { display: grid; gap: var(--space-xs); align-content: start; padding-top: var(--space-lg); border-top: 1px solid var(--color-ink); }
.steps h3 { font-size: var(--text-xl); }
.steps p { color: var(--color-ink-2); }
.shot--exp { margin-top: var(--space-2xl); height: 212px; max-width: 1212px; background: var(--color-paper); margin-right: calc(-1 * (var(--gutter) + max(0px, (100dvw - var(--container)) / 2))); border-radius: var(--radius-card) 0 0 var(--radius-card); --crop-x: 228px; --crop-y: 2px; }

/* Intelligence is a resource: the usage screen beside three facts */
.accounts { padding-top: var(--section-gap-l); }
.accounts__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: center; }
.shot--usage { height: 540px; --crop-x: 236px; --crop-y: 0px; }
.accounts__text { display: grid; gap: var(--space-md); }
.accounts h2 { max-width: 12ch; }

/* Nothing is assumed to have worked: three facts beside a real recovery transcript */
.keep { padding-top: var(--section-gap-l); }
.keep__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: center; }
.keep h2 { max-width: 13ch; }
.keep__text { display: grid; gap: var(--space-md); }
.code--recovery { padding: var(--space-xl); border-radius: var(--radius-card); }

/* Your machine: a band of paper-2, rows beside the devices screen */
.local { margin-top: var(--section-gap-l); padding-block: var(--section-gap); background: var(--color-paper-2); }
.local__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: center; }
.local__text { display: grid; gap: var(--space-xl); }
.local h2 { max-width: 12ch; }
.shot--devices { height: 520px; background: var(--color-paper); margin-right: calc(-1 * (var(--gutter) + max(0px, (100dvw - var(--container)) / 2))); border-radius: var(--radius-card) 0 0 var(--radius-card); --crop-x: 236px; --crop-y: 236px; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; gap: var(--space-2xs); padding-block: var(--space-md); border-top: 1px solid var(--color-rule); }
.rows h3 { font-size: var(--text-lg); letter-spacing: -0.015em; }
.rows li:last-child { border-bottom: 1px solid var(--color-rule); }
.rows p { color: var(--color-ink-2); }

/* Seventeen principles: an index in two columns beside the head */
.principles { padding-block: calc(var(--section-gap-l) + var(--space-2xl)) var(--section-gap); }
.principles__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); align-items: start; }
.principles__grid .head + * { margin-top: 0; }
.principles h2 { max-width: 10ch; }
.index { margin: 0; padding: 0; list-style: none; counter-reset: p; columns: 2; column-gap: var(--gap-columns); }
.index li { counter-increment: p; break-inside: avoid; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); padding-block: var(--space-sm); border-top: 1px solid var(--color-rule); font-size: var(--text-lead); line-height: 1.35; }
.index li::before { content: counter(p); color: var(--color-muted); font: 400 var(--text-md)/1.7 var(--font-body); font-variant-numeric: tabular-nums; }

/* Footer: the mascot over the slogan */
.foot { border-top: 1px solid var(--color-rule); padding-block: var(--space-3xl) var(--space-2xl); }
.foot__grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "mark line links" "mark note links"; column-gap: var(--space-2xl); row-gap: var(--space-md); align-items: end; }
.foot__guinea { grid-area: mark; width: 132px; height: 111px; color: var(--color-ink); }
.foot__line { grid-area: line; font: 600 var(--text-section)/1.02 var(--font-display); letter-spacing: var(--tracking-display); }
.foot__note { grid-area: note; font-size: var(--text-sm); color: var(--color-muted); max-width: 60ch; }
.foot__links { grid-area: links; display: grid; gap: var(--space-xs); justify-items: end; }
.foot__links a { color: var(--color-ink-2); text-decoration: none; border-radius: var(--space-2xs); }
.foot__links a:hover { color: var(--color-ink); text-decoration: underline; }
.foot__links a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }

@media (max-width: 60rem) {
  .nav__links { gap: var(--space-md); }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); min-height: 0; }
  .hero h1 { font-size: clamp(2.5rem, 10vw, 4.75rem); }
  .shot--hero { height: 420px; min-height: 0; margin-right: calc(-1 * var(--gutter)); }
  .manifesto__grid, .keep__grid, .contract__grid, .accounts__grid, .local__grid, .principles__grid { grid-template-columns: minmax(0, 1fr); }
  .roles, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-xl); }
  .runs { grid-template-columns: minmax(0, 1fr); }
  .manifesto__guinea { width: 112px; height: 94px; }
  .runs__note { margin-block: var(--space-sm) var(--space-lg); }
  .runs__term--first, .runs__term--last { border-radius: var(--radius-card); border-top: 0; }
  .compare { font-size: var(--text-md); }
  .shot--usage, .shot--devices { height: 420px; }
  .shot--devices { margin-right: calc(-1 * var(--gutter)); }
  .accounts__text { order: -1; }
  .index { columns: 1; }
  .foot__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "mark" "line" "links" "note"; }
  .foot__links { justify-items: start; }
}
@media (max-width: 40rem) {
  .nav__links a { display: none; }
  .roles, .steps { grid-template-columns: minmax(0, 1fr); }
  .runs__term, .code { padding: var(--space-lg); font-size: var(--text-sm); white-space: pre; overflow-x: auto; min-height: 0; }
  .code--recovery { white-space: pre-wrap; }
  .manifesto__close { flex-direction: column-reverse; align-items: start; gap: var(--space-lg); }
  .shot--exp { margin-right: calc(-1 * var(--gutter)); }
  .compare thead { display: none; }
  .compare tr { display: grid; grid-template-columns: minmax(0, 1fr); padding-block: var(--space-sm); border-bottom: 1px solid var(--color-rule); }
  .compare th, .compare td { padding: var(--space-2xs) 0; border: 0; width: auto; }
  .compare tbody th, .compare td:nth-child(2) { width: auto; }
  .compare td:nth-child(2)::before { content: "In a session: "; }
  .compare td:nth-child(3)::before { content: "In a colony: "; font-weight: 600; }
  .shot--hero, .shot--usage, .shot--devices { height: 360px; }
  .shot--exp { height: 220px; }
}
