/* The Fine Print — /fine-print (the strip) and its four panels: /about,
   /privacy, /terms, /contact (2026-11-19). Theme tokens only, so all 15
   themes carry it. The why: docs/the-fine-print.md. */

/* ── the strip: four panels unfolded, real text in miniature ── */
/* spacing (docs/the-spacing-rule.md), measured to the ink: the bar → the
   title = part 24 (the bar's 24 margin + 8 for the title's line box); the
   title → its line of names = pair 8 (16 of box, the display face's line box
   eats the rest); the heading → the strip = break 32 */
.fp-front { max-width: 1100px; margin-inline: auto; display: grid; gap: var(--space-8); padding-top: var(--space-2); padding-bottom: var(--space-6); }
.fp-front-head { text-align: center; display: grid; gap: var(--space-4); }
.fp-front-head h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.05; margin: 0; text-wrap: balance; }
.fp-front-head p { margin: 0; font: var(--weight-semibold) var(--text-2xs) var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); }
.fp-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 var(--space-2); }
@media (min-width: 900px) { .fp-strip { gap: 0 var(--space-4); } }
.fp-panel { position: relative; min-width: 0; }
/* one screen: this height is the first guess; fine_print.js takes back
   whatever still scrolls. Nothing under the sheets (his ask, 2026-11-20),
   so they take that room too. */
.fp-sheet { position: relative; height: clamp(220px, calc(100svh - 300px), 600px); overflow: hidden; border: 1px solid var(--ink); background: var(--surface); }
/* the page itself, laid out at its real width and left edge, scaled to the
   sheet by fine_print.js (the fallback scale is a phone's) */
.fp-mini { position: absolute; top: 0; left: 0; width: 358px; transform: scale(.22); transform-origin: top left; pointer-events: none; }
/* the whole sheet is the link; its name is for screen readers only */
.fp-name { position: absolute; inset: 0; }
.fp-panel:hover .fp-sheet, .fp-panel:focus-within .fp-sheet { border-color: var(--accent-glow); outline: 1px solid var(--accent-glow); }
.fp-name:focus-visible { outline: none; }
/* the panel opening into its page (and back): a fixed copy of the sheet
   that grows to the page's region under the bar, its page going to scale 1.
   Grown it is transparent and the strip under it has faded out, so the
   page's real ground (texture, scanlines, glow) shows — not a flat colour.
   Its edge is an inset line, not a border, so the page inside sits at the
   exact pixel the real page will. */
.fp-grow { position: fixed; z-index: 50; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--ink); }
.fp-grow.is-big { background: transparent; box-shadow: inset 0 0 0 1px transparent; }
.fp-front { transition: opacity .45s cubic-bezier(.4, 0, .2, 1); }
.fp-front.fp-away { opacity: 0; }
.fp-front.fp-still { transition: none; }
.fp-grow.go { transition: top .45s cubic-bezier(.4, 0, .2, 1), left .45s cubic-bezier(.4, 0, .2, 1), width .45s cubic-bezier(.4, 0, .2, 1), height .45s cubic-bezier(.4, 0, .2, 1), background-color .45s, box-shadow .45s; }
.fp-grow.go .fp-mini { transition: transform .45s cubic-bezier(.4, 0, .2, 1); }

/* ── a panel: the charter type ── */
.fp-page { max-width: 40rem; margin-inline: auto; display: grid; gap: var(--space-8); padding-bottom: var(--space-8); }
.fp-head { display: grid; gap: var(--space-2); margin-bottom: var(--space-4); }
.fp-eyebrow { font: var(--weight-semibold) var(--text-2xs) var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-glow); }
.fp-head h1 { font-family: var(--font-display); font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.05; margin: 0; text-wrap: balance; }
.fp-date { margin: 0; font: var(--weight-medium) var(--text-2xs) var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.fp-body { counter-reset: clause; padding-left: 2.2rem; display: grid; gap: var(--space-4); }
.fp-body > p:first-child { margin-left: -2.2rem; }
.fp-body p, .fp-body li { line-height: 1.62; hyphens: auto; margin: 0; }
.fp-body h2 { counter-increment: clause; position: relative; margin: var(--space-4) 0 0; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; font-variant-caps: all-small-caps; letter-spacing: .07em; display: flex; gap: var(--space-3); align-items: baseline; text-wrap: balance; }
.fp-body h2::before { content: counter(clause, upper-roman); position: absolute; left: -2.2rem; width: 1.7rem; text-align: right; font-style: italic; font-variant-caps: normal; letter-spacing: 0; color: var(--accent-glow); }
.fp-body h2::after { content: ""; flex: 1; min-width: var(--space-3); border-top: 1px solid var(--border); transform: translateY(-.3em); }
.fp-prose { display: grid; gap: var(--space-4); }
.fp-prose p { margin: 0; line-height: 1.62; }
.fp-body ul { list-style: none; margin: 0; padding: 0; }
.fp-body li { padding: var(--space-3) 0; border-top: 1px solid var(--border); }
.fp-body li:last-child { border-bottom: 1px solid var(--border); }
.fp-body li > strong:first-child { font-variant-caps: all-small-caps; letter-spacing: .06em; color: var(--accent-glow); }
.fp-body a { color: inherit; text-decoration-color: var(--accent-glow); text-underline-offset: 3px; }
/* the four panels at the foot of each one: the top bar's twin (his "in
   harmony with the top menu") — the bar's own link class, edge to edge like
   the bar, the page you are on in full ink */
.fp-panels { display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.fp-panels .landing-login-link:first-child { padding-inline-start: 0; }
.fp-panels .landing-login-link:last-child { padding-inline-end: 0; }
.fp-panels .landing-login-link[aria-current="page"] { color: var(--ink); }
/* the contact form inside its panel; Write to us fits one screen (his ask):
   tighter gaps here, the message box sized by fine_print.js */
.fp-article .contact-form { margin-top: var(--space-2); gap: var(--space-4); }
.fp-direct { margin: var(--space-4) 0 0; color: var(--ink-2); }
.fp-contact { gap: var(--space-4); }
.fp-contact .field-error:empty { margin: 0; }
.fp-contact .contact-form .form-actions { margin-top: 0; }
.fp-contact .contact-form .field-error:empty + .form-actions { margin-top: calc(-1 * var(--space-2)); }
.fp-contact textarea { resize: none; }
/* no tab bar on these public pages: drop the phone's reserved bar space
   (app.css `html:not(.is-preview):not(.is-landing) body`; same weight here,
   and this file loads after it) */
html body:has(.fp-page.fp-contact), html body:has(.fp-front[class]) { padding-bottom: var(--space-4); }
/* the ground is laid against the screen, not the document, on the strip and
   its panels: a theme's diagonal texture otherwise takes its phase from the
   page's length, so the strip (one screen) and a long panel disagree and the
   grow ends on a shifted texture */
html body:has(.fp-page), html body:has(.fp-front[class]) { background-attachment: fixed; }

/* "← The Fine Print": synthesized small caps squeeze the word spaces to
   nothing (the bar's other links are one word); theme-faces does the same
   for buttons. */
.blog-topbar .blog-home-link, .fp-panels .landing-login-link { word-spacing: .3em; }
/* the bar takes the panels' column (40rem, not the blog's 36rem), so bar,
   text and the foot's links share one left and one right edge — and the bar
   stays put while a panel grows out of the strip */
.blog-topbar { max-width: 40rem; }

@media (prefers-reduced-motion: reduce) { .fp-grow { transition: none; } }
