/* A COPY of love-shared/web/house-prose.css, written by scripts/design-tokens-sync.py at the monorepo root: do not edit (run it). */
/* love-shared/web/house-prose.css — the house's reading pages on the tokens (2026-10-31, the s2ar site redesign).
   The pages that are not the platform's: s2ar.dev's evidence page, the lab and the assay note under star-web's
   starlens_dark shell (through content/_landing.css's splice and the note's own style block), the API reference that
   starlens/site/tools/api_reference.py writes, the extras and the sym pages through scripts/design-tokens-sync.py's
   house markers (never written out here: a marker quoted inside the sheet would end the sync's span and this very
   comment). Tokens only (love-shared/web/tokens.css, carried into every one of those heads by the same sync);
   starlens/site/tools/house_lint.py holds it. A page's own rules come after it. Under
   the starlens_dark shell it undoes the theme's washes, the lens glow and the 12 px radii, and restyles the shell's
   header (star-web's PAGE_CHROME_DARK_CSS) as the platform's: the four-point star before the wordmark, the links as
   the chrome's uppercase micro line. The platform pages have their own sheet, starlens/site/media/house/house.css. */

:root {
  --accent: var(--seal);
  --t-micro: 12px;
  --t-small: 14px;
  --t-body: 15px;
  --t-label: 16px;
  --t-title: 20px;
  --t-h2: 24px;
  --t-h1: 32px;
  --lh: 1.65;
  --prose-max: 860px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body { margin: 0; background: var(--ink); background-image: none; color: var(--text); font-family: var(--mono); font-size: var(--t-body); line-height: var(--lh); -webkit-font-smoothing: antialiased; }
.wrap, header.nav, main, footer { max-width: var(--prose-max); margin-left: auto; margin-right: auto; }
.wrap { padding: 0 var(--space-7) var(--space-8); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--ring) 25%, transparent); }

/* the header row: the wordmark with the house star, the links as the chrome's uppercase micro line */
header.nav, .wrap > header { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); padding: var(--space-7) 0 var(--space-5); border-bottom: 1px solid var(--line); margin-bottom: var(--space-8); font-family: var(--mono); font-size: var(--t-micro); }
header.nav nav, .wrap > header nav { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-left: auto; }
header.nav nav a, .wrap > header nav a { display: inline-flex; align-items: center; min-height: var(--size-row-h-sm); padding: 0 var(--space-4); margin: 0; border: 1px solid transparent; border-radius: var(--radius-button); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; line-height: 1; }
header.nav nav a:hover, .wrap > header nav a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 4%, transparent); text-decoration: none; }
header.nav nav a.active { color: var(--text); background: var(--panel2); border-color: var(--line-strong); }
header.nav .up { color: var(--muted); }
.brand, header.nav .brand { display: inline-flex; align-items: center; gap: var(--space-3); font-family: var(--mono); font-weight: 700; font-size: var(--t-title); letter-spacing: 0; color: var(--text); }
.brand a { color: inherit; }
.brand .two, a.brand > span { font-size: .72em; }
.brand small { color: var(--muted); font-weight: 400; font-size: var(--t-small); }
/* the house star before the wordmark: the four-point star, cardinals out and diagonals pinched (platform/marks.py's
   star4), as a clipped square; a page whose brand carries a .lens (the extras of the paper) takes it as the star */
.brand::before, .brand .lens { content: ""; display: inline-block; width: var(--space-6); height: var(--space-6); flex: none; background: var(--seal); border: 0; border-radius: 0; box-shadow: none; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.brand:has(.lens)::before { content: none; }

/* prose: one weight, size and the tiers for hierarchy */
h1, h2, h3 { color: var(--text); font-weight: 400; letter-spacing: 0; line-height: 1.2; text-wrap: balance; }
h1 { font-size: var(--t-h1); margin: var(--space-8) 0 var(--space-3); }
h2 { font-size: var(--t-h2); margin: var(--space-8) 0 var(--space-4); padding-top: var(--space-7); border-top: 1px solid var(--line); }
h3 { font-size: var(--t-label); margin: var(--space-7) 0 var(--space-3); }
p, li { color: var(--text); max-width: 72ch; }
p { margin: var(--space-5) 0; }
li { margin: var(--space-2) 0; }
ul, ol { padding-left: var(--space-7); }
strong, b { color: var(--text); font-weight: 700; }
em { color: var(--text); }
.lead, p.lead { font-size: var(--t-label); line-height: 1.55; color: var(--muted); max-width: 66ch; }
.meta, .byline, .runstamp { font-family: var(--mono); font-size: var(--t-micro); color: var(--faint); letter-spacing: .04em; margin: 0 0 var(--space-7); }
.runstamp { border-left: 2px solid var(--accent); padding-left: var(--space-5); }
.eyebrow, .kicker { font-family: var(--mono); font-size: var(--t-micro); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 400; margin: 0 0 var(--space-4); }
blockquote { margin: var(--space-6) 0; padding: var(--space-5) var(--space-6); border-left: 2px solid var(--accent); background: var(--panel); border-radius: 0 var(--radius-2) var(--radius-2) 0; color: var(--muted); }
blockquote p { margin: var(--space-2) 0; }
code { font-family: var(--mono); font-size: .92em; background: var(--panel2); border: 1px solid var(--line); border-radius: var(--radius-1); padding: 0 var(--space-2); color: var(--text); }
pre { position: relative; margin: var(--space-6) 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-2); padding: var(--space-6) var(--space-7); overflow-x: auto; font-family: var(--mono); font-size: var(--t-small); line-height: 1.6; color: var(--text); }
pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.copybtn { position: absolute; top: var(--space-3); right: var(--space-3); font: inherit; font-size: var(--t-micro); min-height: var(--size-row-h-sm); padding: 0 var(--space-4); border-radius: var(--radius-button); border: 1px solid var(--line-strong); background: var(--panel2); color: var(--text); cursor: pointer; opacity: 1; }
.copybtn:hover { background: color-mix(in srgb, var(--text) 4%, var(--panel2)); }
table { border-collapse: collapse; width: 100%; font-family: var(--mono); font-size: var(--t-small); margin: var(--space-6) 0; display: table; }
th, td { padding: var(--space-3) var(--space-4); border: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--text); }
th { color: var(--muted); font-weight: 400; font-size: var(--t-micro); letter-spacing: .08em; text-transform: uppercase; background: none; white-space: nowrap; }
td strong { color: var(--accent); }
img, main img { max-width: 100%; display: block; margin: var(--space-7) auto; border: 1px solid var(--line); border-radius: var(--radius-2); background: transparent; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-8) 0; }
sup a { font-size: .75em; }
footer { border-top: 1px solid var(--line); margin-top: var(--space-8); padding: var(--space-7) 0 var(--space-8); color: var(--muted); font-family: var(--mono); font-size: var(--t-small); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); }
footer .tagline { color: var(--faint); flex-basis: 100%; }
footer strong { color: var(--text); }

/* star-web's own chrome under the shell (PAGE_CHROME_DARK_CSS): the sidenotes, the demos, the skip link, the toggle */
label.sn-ref, label.mn-ref { color: var(--accent); }
.sidenote, .marginnote { color: var(--muted); font-size: var(--t-small); border-left: 2px solid var(--line); padding-left: var(--space-5); }
.sidenote .sn-num { color: var(--accent); }
.demo label { color: var(--muted); font-size: var(--t-small); }
.demo textarea, .demo input, .demo select { background: var(--panel2); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--radius-button); padding: var(--space-4) var(--space-5); font: inherit; }
.demo button { background: var(--accent); color: var(--ink); border: 0; border-radius: var(--radius-button); min-height: var(--size-row-h-md); padding: 0 var(--space-6); font: inherit; font-weight: 700; cursor: pointer; }
.skip:focus-visible { background: var(--panel); color: var(--text); border-radius: var(--radius-button); }
.themetoggle { display: none; }

@media (max-width: 640px) {
  :root { --t-h1: 26px; --t-h2: 20px; }
  .wrap { padding: 0 var(--space-6) var(--space-8); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
