/* products/prontoo/site/src/site.css — the Prontoo look of the site's pages. Brand: docs/superpowers/specs/2026-11-01-prontoo-brand/
   (values design-system/tokens.css, parts design-system/prontoo.css, the layout chapter book/chapters/07-layout.html). Linked
   from every page (src/index.html, src/pages/*.html, src/shells/case-studies.html).
   The pages keep their own token names (--paper, --ink, the planes' --model … --agent, the stages' --s-*); their values are
   now the Prontoo literals: --paper is the sheet (Prontoo black), --ink the aged paper that reads on it, and the five
   planes and stages take the three colours plus paper and muted. The shared bar and footer (core/core-design/site/) still
   paint from the Operator theme the worker writes into <head> (`themedResponse`); the Operator preset plungeai-prontoo
   should carry these same values once it exists. The theme owns --font-*, --card, --radius and --border, so the brand's
   own values below are --pr-* names. The site is dark: <html class="dark">. The bar is fixed (core/core-design/site/bar.ts,
   --pn-h), so the body starts below it; each page's sticky table of contents and its sections' anchor offset add --pn-h too. */
:root {
	/* Prontoo (tokens.css) */
	--pr-black: #0b0b0b;
	--pr-black-2: #161616;
	--pr-paper: #efe6d2;
	--pr-paper-2: #e2d6b8;
	--pr-ink: #121212;
	--pr-red: #e3291c;
	--pr-yellow: #f2b52a;
	--pr-blue: #1f3fd6;
	--pr-white: #fbf8f1;
	--pr-muted: #bdb49f;
	--pr-rule-ink: rgba(18, 18, 18, 0.3);
	--pr-font-display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
	--pr-font-italic: 'Instrument Serif', Georgia, serif;
	--pr-font-mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, monospace;
	--pr-ease: cubic-bezier(0.2, 0.7, 0.1, 1);
	/* the pages' names */
	--paper: #0b0b0b; /* the sheet: Prontoo black */
	--ink: #efe6d2; /* Prontoo paper, the ink on black (15.9:1) */
	--ink-soft: #bdb49f; /* muted, second lines (9.5:1) */
	--hairline: rgba(239, 230, 210, 0.22); /* the rule */
	--model: #e3291c; /* red */
	--on-model: #fbf8f1;
	--connector: #f2b52a; /* yellow */
	--tool: #efe6d2; /* paper */
	--mcp: #1f3fd6; /* blue: a fill or a mark, never small text on black (2.6:1) */
	--agent: #bdb49f; /* muted */
	--danger: #e3291c;
	/* the five stages of a request, one plane colour each */
	--s-brief: var(--model);
	--s-produce: var(--agent);
	--s-review: var(--mcp);
	--s-publish: var(--connector);
	--s-measure: var(--tool);
	/* the space above the shared footer (core/core-design/site/footer.ts) */
	--ft-gap: 110px;
}

body {
	padding-top: var(--pn-h, 44px);
}

/* The reading pages (body.doc: the nine document pages and the case-study shell), on the brand book's layout chapter:
   one black sheet with no maximum width, twelve columns with 24px gutters (16px under 768px), the mono strip 40px under
   the bar, the table of contents on a paper card in the first four columns and the text in the other eight, Bodoni Moda
   heads, Instrument Serif leads, Plex Mono reading text at 14px / 1.75 and at most 60ch, paper cards for asides,
   tickets for notes, straight corners. Every rule is :where()-scoped, so a page's own <style> still wins; the type rules
   stay inside .wrap, so the shared bar and footer keep their own. */
html:has(> body.doc) { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
:where(.doc), :where(.doc) *, :where(.doc) *::before, :where(.doc) *::after { margin: 0; padding: 0; box-sizing: border-box; }
:where(.doc) { background: var(--paper); color: var(--ink); font: 400 14px/1.75 var(--pr-font-mono); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
:where(.doc) a { color: inherit; }
:where(.doc) :focus-visible { outline: 3px solid var(--pr-yellow); outline-offset: 3px; }
:where(.doc) .wrap { padding: 0 max(24px, env(safe-area-inset-right, 0px)) 0 max(24px, env(safe-area-inset-left, 0px)); }

/* the strip: one mono line above the head */
:where(.doc) .strip { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font: 500 10px/1.6 var(--pr-font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
:where(.doc) .strip > span { display: inline-flex; align-items: center; gap: 8px; }
:where(.doc) .strip .sun { width: 14px; height: 14px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e3291c' d='M12 1l1.8 5.4L19 4l-2.4 5.2L22 12l-5.4 1.8L19 19l-5.2-2.4L12 22l-1.8-5.4L5 19l2.4-5.2L2 12l5.4-1.8L5 5l5.2 2.4z'/%3E%3C/svg%3E") center / contain no-repeat; }
:where(.doc) .strip .bar { flex: 1; min-width: 40px; height: 1px; background: var(--ink); opacity: 0.6; }
:where(.doc) .strip .barcode { flex: none; width: 80px; height: 14px; background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 3px, var(--ink) 3px 5px, transparent 5px 7px); }
:where(.doc) .strip .num { font-variant-numeric: tabular-nums; }

/* the sheet: contents in columns 1–4, the text in 5–12 */
:where(.doc) .page { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding-top: 48px; }
:where(.doc) .page > .toc { grid-column: 1 / span 4; }
:where(.doc) .page > main { grid-column: 5 / span 8; min-width: 0; }
:where(.doc .wrap) article { max-width: 1040px; counter-reset: fig; }

/* the contents: a paper card with a strip of tape, numbered entries */
:where(.doc) .toc { position: sticky; top: calc(var(--pn-h, 44px) + 24px); align-self: start; max-width: 340px; }
:where(.doc) .toc a.back { display: inline-block; margin-bottom: 28px; font: 500 11px/1.6 var(--pr-font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
:where(.doc) .toc a.back:hover { color: var(--pr-yellow); }
:where(.doc) .toc ol { list-style: none; }
:where(.doc) .toc > ol { position: relative; counter-reset: toc; padding: 24px 20px 14px; background: var(--pr-paper); color: var(--pr-ink); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); }
/* the tape sits on the card's top edge (the back link's line and margin above it), on .toc so a card that scrolls keeps it */
:where(.doc) .toc::after { content: ""; position: absolute; top: calc(11px * 1.6 + 28px - 12px); left: 50%; width: 96px; height: 24px; margin-left: -48px; background: rgba(242, 181, 42, 0.75); transform: rotate(-4deg); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); pointer-events: none; }
:where(.doc) .toc li { counter-increment: toc; }
:where(.doc) .toc li a { display: flex; gap: 12px; align-items: baseline; padding: 7px 0; border-bottom: 1px dashed var(--pr-rule-ink); font: 500 12px/1.45 var(--pr-font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--pr-ink); text-decoration: none; }
:where(.doc) .toc li a::before { content: counter(toc, decimal-leading-zero); flex: none; min-width: 22px; font-size: 10px; letter-spacing: 0.1em; color: var(--pr-blue); }
:where(.doc) .toc li:last-child > a { border-bottom: 0; }
:where(.doc) .toc li a:hover { color: var(--pr-blue); }
:where(.doc) .toc :focus-visible { outline-color: var(--pr-ink); }

/* heads (Bodoni's optical size follows the type size: opsz 96 at the page head's full size, thicker hairlines below it),
   the lead, the date chip. The head's mark is yellow; `--c` on one section may make it red, red once per page (the brand
   book's colour chapter: one red element per composition), which the strip's sun already is on every page. */
:where(.doc .wrap) :is(h1, h2, h3) { font-family: var(--pr-font-display); font-weight: 900; text-transform: uppercase; color: var(--ink); text-wrap: balance; }
:where(.doc .wrap) h1 { font-size: clamp(40px, 6.4vw, 96px); line-height: 0.9; letter-spacing: -0.01em; }
:where(.doc .wrap) .lede { margin-top: 28px; max-width: 26em; font: italic 400 clamp(24px, 2.4vw, 32px)/1.15 var(--pr-font-italic); letter-spacing: -0.01em; color: var(--ink); text-wrap: pretty; }
:where(.doc .wrap) .reviewed { display: inline-block; text-wrap: balance; margin-top: 24px; padding: 6px 10px; background: var(--pr-yellow); color: var(--pr-ink); font: 500 11px/1.4 var(--pr-font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
:where(.doc .wrap) section { padding-top: 64px; scroll-margin-top: calc(var(--pn-h, 44px) + 16px); }
:where(.doc .wrap) h2 { display: flex; align-items: baseline; gap: 14px; font-size: clamp(28px, 3vw, 40px); line-height: 0.95; letter-spacing: -0.01em; }
:where(.doc .wrap) h2::before { content: ""; flex: none; width: 12px; height: 12px; background: var(--c, var(--pr-yellow)); }
:where(.doc .wrap) h3 { margin-top: 36px; font-size: 20px; line-height: 1.05; }

/* reading text */
:where(.doc .wrap) :is(p, li, dd, td) { color: var(--ink-soft); }
:where(.doc .wrap) :is(p, li, dd) { max-width: 60ch; }
:where(.doc .wrap) article p { margin-top: 16px; }
:where(.doc .wrap) :is(strong, b) { color: var(--ink); font-weight: 500; }
:where(.doc .wrap) main a:where(:not(.btn)) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--model); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:where(.doc .wrap) main a:where(:not(.btn)):hover { color: var(--pr-yellow); }
:where(.doc .wrap) :is(code, kbd) { font: 500 0.9em var(--pr-font-mono); background: var(--pr-black-2); border: 1px solid var(--hairline); padding: 1px 5px; color: var(--ink); }
:where(.doc .wrap) ul.plain { margin-top: 16px; list-style: none; display: grid; gap: 10px; }
:where(.doc .wrap) ul.plain > li { position: relative; padding-left: 22px; }
:where(.doc .wrap) ul.plain > li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 7px; background: var(--ink); }
:where(.doc .wrap) ol.steps { margin-top: 16px; list-style: none; counter-reset: step; display: grid; gap: 10px; }
:where(.doc .wrap) ol.steps > li { position: relative; counter-increment: step; padding-left: 36px; }
:where(.doc .wrap) ol.steps > li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; font: 600 11px/2.23 var(--pr-font-mono); letter-spacing: 0.1em; color: var(--pr-yellow); }
:where(.doc .wrap) .role { display: inline-block; padding: 4px 6px; border: 1px solid var(--tool); font: 600 10px/1 var(--pr-font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); vertical-align: 2px; white-space: nowrap; }

/* facts and tables: mono labels over a paper rule */
:where(.doc .wrap) .facts { margin-top: 24px; border-top: 1px solid var(--ink); }
:where(.doc .wrap) .facts > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
:where(.doc .wrap) .facts dt { padding-top: 4px; font: 500 11px/1.6 var(--pr-font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
:where(.doc .wrap) .table-wrap { margin-top: 24px; overflow-x: auto; }
:where(.doc .wrap) table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.6; font-variant-numeric: tabular-nums; }
:where(.doc .wrap) :is(th, td) { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--hairline); }
:where(.doc .wrap) th { font: 600 10px/1.6 var(--pr-font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); border-bottom-color: var(--ink); }
:where(.doc .wrap) td:first-child { color: var(--ink); white-space: nowrap; }
:where(.doc .wrap) td small { display: block; margin-top: 4px; font-size: 11px; color: var(--ink-soft); }

/* asides: paper cards; notes: tickets; rules: raised black cards */
:where(.doc .wrap) .tip { margin-top: 24px; max-width: calc(60ch + 40px); padding: 18px 20px; background: var(--pr-paper); color: var(--pr-ink); border-top: 6px solid var(--pr-yellow); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); }
:where(.doc .wrap) .note { position: relative; margin-top: 24px; max-width: calc(60ch + 56px); padding: 14px 28px; background: var(--pr-yellow); color: var(--pr-ink); border: 1.5px solid var(--pr-black); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45); }
:where(.doc .wrap) .note::before, :where(.doc .wrap) .note::after { content: ""; position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); transform: translateY(-50%); }
:where(.doc .wrap) .note::before { left: -9px; }
:where(.doc .wrap) .note::after { right: -9px; }
:where(.doc .wrap) :is(.tip, .note) :is(p, li, strong, b, a) { color: var(--pr-ink); }
:where(.doc .wrap) .tip a:hover { color: var(--pr-blue); }
:where(.doc .wrap) .note a:hover { text-decoration-thickness: 2px; }
:where(.doc .wrap) :is(.tip, .note) :focus-visible { outline-color: var(--pr-ink); }
:where(.doc .wrap) :is(.tip, .note) > p:first-child { margin-top: 0; }
:where(.doc .wrap) .rules { margin-top: 24px; max-width: calc(60ch + 48px); display: grid; gap: 16px; }
:where(.doc .wrap) .rule { padding: 20px 22px; background: var(--pr-black-2); border: 1px solid var(--hairline); border-left: 4px solid var(--ink); }
:where(.doc .wrap) .rule h3 { margin-top: 0; font-size: 18px; }
:where(.doc .wrap) .rule p { margin-top: 10px; font-size: 13px; }

/* figures: the product's own screenshots framed in paper, numbered captions (a diagram's caption numbers itself) */
:where(.doc .wrap) figure { margin-top: 28px; }
:where(.doc .wrap) figure.shot { counter-increment: fig; }
:where(.doc .wrap) figure.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--ink); background: var(--pr-black-2); }
:where(.doc .wrap) figcaption { margin-top: 10px; max-width: 72ch; font: 500 11px/1.6 var(--pr-font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
:where(.doc .wrap) figure.shot figcaption::before { content: "Fig. " counter(fig, decimal-leading-zero) " · "; color: var(--ink); }

/* the button: the kit's yellow ticket button with the red offset */
:where(.doc) .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 51px; padding: 14px 18px; font: 500 12px/1 var(--pr-font-mono); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; white-space: nowrap; background: var(--pr-yellow); color: var(--pr-ink); border: 2px solid var(--pr-black); box-shadow: 4px 4px 0 var(--pr-red); transition: transform 0.2s var(--pr-ease), box-shadow 0.2s var(--pr-ease); }
:where(.doc) .btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--pr-red); }

@media (max-width: 960px) {
	:where(.doc) .page { grid-template-columns: minmax(0, 1fr); padding-top: 32px; }
	:where(.doc) .page > .toc, :where(.doc) .page > main { grid-column: 1 / -1; }
	:where(.doc) .toc { position: static; max-width: none; }
	:where(.doc) .toc a.back { margin-bottom: 20px; }
	:where(.doc) .toc ol, :where(.doc) .toc::after { display: none; }
}
@media (max-width: 768px) {
	:where(.doc) .wrap { padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
	:where(.doc) .strip { margin-top: 24px; }
	:where(.doc .wrap) .reviewed { font-size: 10px; }
	:where(.doc .wrap) section { padding-top: 48px; }
	:where(.doc .wrap) .facts > div { grid-template-columns: minmax(0, 1fr); }
	:where(.doc .wrap) td:first-child { white-space: normal; }
	:where(.doc .wrap) .rule { padding: 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
	html:has(> body.doc) { scroll-behavior: auto; }
	:where(.doc) .btn { transition: none; }
}
