
/* ---------------------------------------------------------------------------------------------
   LoreLeaf and LearnHub Studio: website draft.  Values come from DESIGN.md.
   Layout idea: a botanical folio. A 12-column frame with two left edges (the frame and the seventh
   column); every section opens with a plate header; the product's own pictures are the only art.
   --------------------------------------------------------------------------------------------- */
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-roman.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  color-scheme: light;
  --background: #f4f2e9; --on-background: #2e3d32; --surface: #fffef8; --on-surface: #193a2b; --muted: #536251;
  --primary: #285c42; --on-primary: #fffef8; --accent: #b8860b; --border: #d9ddcf; --ink-strong: #193a2b; --pencil: #8d9a84;
  --night: #12241d; --on-night: #eef2e2; --night-muted: #a8b8a4; --night-border: #2b4034; --night-gold: #f0c040;
  --font-read: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-ui: system-ui, -apple-system, "Segoe UI", sans-serif;
  --size-display: clamp(60px, 9.2vw, 116px); --size-headline: clamp(38px, 4.6vw, 60px); --size-statement: clamp(26px, 3vw, 36px);
  --size-lead: clamp(21px, 1.9vw, 24px); --size-body: 19px; --size-small: 16px; --size-label: 13px;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px;
  --s-xs: 8px; --s-sm: 12px; --s-md: 16px; --s-lg: 24px; --s-xl: 32px; --s-2xl: 48px; --s-3xl: 64px; --s-4xl: 96px; --s-section: 144px;
  --frame: 1200px; --gutter: clamp(20px, 5vw, 64px); --gap: clamp(16px, 2.2vw, 32px);
  --sheet-shadow: 0 1px 2px rgb(25 58 43 / .06), 0 22px 48px -24px rgb(25 58 43 / .32);
  /* what a section sets for its own ground */
  --ground: var(--background); --ink: var(--on-background); --ink-head: var(--ink-strong); --ink-soft: var(--muted); --hair: var(--border); --rule: var(--pencil); --edge: #6b7a68; --focus: var(--primary);
}
@media (max-width: 600px) { :root { --size-body: 18px; --s-section: 80px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--background); color: var(--on-background); font: 400 var(--size-body)/1.55 var(--font-read); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, picture, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink-head); font-family: var(--font-read); font-weight: 500; text-wrap: balance; }
h1 { font-size: var(--size-display); line-height: .94; letter-spacing: -.03em; }
h2 { font-size: var(--size-headline); line-height: 1.02; letter-spacing: -.022em; }
h3 { font-size: var(--size-lead); line-height: 1.25; letter-spacing: -.008em; }
p { max-width: 62ch; text-wrap: pretty; }
.lead { font-size: var(--size-lead); line-height: 1.36; letter-spacing: -.006em; max-width: 34em; }
.label { font: 600 var(--size-label)/1.3 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.fact { font: 500 var(--size-label)/1.3 var(--font-ui); letter-spacing: .01em; color: var(--ink-soft); }
.eyebrow { font: 600 var(--size-small)/1.3 var(--font-ui); letter-spacing: .005em; color: var(--muted); }
.small { font-size: var(--size-small); line-height: 1.5; }
[data-placeholder] { font-style: normal; color: inherit; background: linear-gradient(transparent 62%, rgb(184 134 11 / .28) 0); border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 16px; background: var(--surface); color: var(--on-surface); border-radius: var(--r-md); font: 600 var(--size-small)/1 var(--font-ui); }
.skip:focus { top: 12px; }

.frame { width: min(var(--frame), 100% - 2 * var(--gutter)); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
section { padding-block: var(--s-section); background: var(--ground); color: var(--ink); }
section:not(.night) + section:not(.night) { padding-top: 0; }                 /* two sections on the same ground share one gap */
.night { --ground: var(--night); --ink: var(--on-night); --ink-head: var(--on-night); --ink-soft: var(--night-muted); --hair: var(--night-border); --rule: #5c7566; --edge: #7d9585; --focus: var(--on-night); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--r-md); font: 600 var(--size-small)/1 var(--font-ui); letter-spacing: .005em; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.night .btn-primary { background: var(--on-night); color: var(--night); }
.btn-quiet { min-height: 44px; padding: 0 16px; background: transparent; color: var(--ink-head); border-color: var(--edge); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: default; }
@media (hover: hover) {
  .btn-primary:hover { background: #1f4a35; }
  .night .btn-primary:hover { background: #fffef8; }
  .btn-quiet:not([disabled]):hover { border-color: var(--ink-head); background: rgb(40 92 66 / .06); }
  .night .btn-quiet:hover { background: rgb(238 242 226 / .08); }
}
.textlink { font: 600 var(--size-small)/1.3 var(--font-ui); color: var(--ink-head); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; padding: 10px 0; display: inline-block; }
@media (hover: hover) { .textlink:hover { text-decoration-color: currentColor; } }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--ground); color: var(--ink); transition: background-color .2s ease, color .2s ease; }
.site-head.on-night { --ground: var(--night); --ink: var(--on-night); --ink-head: var(--on-night); --ink-soft: var(--night-muted); --hair: var(--night-border); --rule: #5c7566; --edge: #7d9585; --focus: var(--on-night); }
.site-head .frame { display: flex; align-items: center; gap: var(--s-xl); height: 72px; border-bottom: 1px solid var(--hair); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 500 var(--size-body)/1 var(--font-read); letter-spacing: -.01em; color: var(--ink-head); text-decoration: none; padding: 12px 0; }
.brand svg { width: 22px; height: 22px; flex: none; }
.nav { display: flex; gap: clamp(16px, 2.2vw, 30px); margin-left: auto; }
.nav a { font: 500 var(--size-small)/1 var(--font-ui); text-decoration: none; padding: 14px 0; color: var(--ink); }
@media (hover: hover) { .nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--rule); } }
.burger { display: none; position: relative; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 0; background: none; color: var(--ink-head); cursor: pointer; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform var(--lp-t-ui) var(--lp-ease-out); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu { position: fixed; inset: 72px 0 0 0; z-index: 40; background: var(--background); padding: var(--s-xl) var(--gutter); overflow-y: auto; }
.menu[hidden] { display: none; }
.menu nav { display: grid; gap: 4px; margin-bottom: var(--s-xl); }
.menu nav a { font: 500 var(--size-statement)/1.2 var(--font-read); letter-spacing: -.015em; color: var(--ink-strong); text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--border); }
@media (max-width: 900px) { .nav, .head-cta { display: none; } .burger { display: block; } .site-head .frame { height: 64px; } .menu { inset-block-start: 64px; } }
html:not(.js) .burger { display: none; }                                        /* without script the menu cannot open; the footer carries the links */

/* ---------- hero ---------- */
.hero { padding-block: clamp(28px, 4.4vw, 64px) clamp(72px, 9vw, 128px); }
.hero-grid { align-items: center; row-gap: var(--s-2xl); }
.hero-copy { grid-column: 1 / span 6; display: grid; gap: var(--s-lg); justify-items: start; }
.hero-copy { padding-bottom: 4vh; }
.hero-copy h1 { margin-top: -4px; }
.fruit { color: var(--accent); }
.hero-copy .lead { max-width: 25em; }
.hero-actions { display: grid; gap: var(--s-sm); justify-items: start; margin-top: var(--s-xs); }
.assure { font: 500 var(--size-small)/1.4 var(--font-ui); color: var(--muted); }
.plate-fig { grid-column: 8 / span 5; justify-self: end; width: 100%; width: min(100%, (100svh - 268px) * .8); min-width: min(100%, 300px); }
.plate { position: relative; aspect-ratio: 4 / 5; background: #f7f1e2; }
.plate img, .plate > canvas, .plate-grain { position: absolute; inset: 0; width: 100%; height: 100%; }
.plate-grain { pointer-events: none; }
html:not(.js) .plate-start, html:not(.js) .plate > canvas, html:not(.js) .plate-ctl { display: none; }
.plate-cap { display: grid; gap: var(--s-sm); margin-top: var(--s-md); }
.plate-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; max-width: none; font-style: italic; font-size: var(--size-small); line-height: 1.4; color: var(--muted); }
.plate-title .label { font-style: normal; }
.plate-count { margin-left: auto; font: 500 var(--size-label)/1.3 var(--font-ui); font-variant-numeric: tabular-nums; }
.plate-say { font-size: var(--size-small); line-height: 1.45; min-height: 2.9em; max-width: none; color: var(--on-background); }
.plate-ctl { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) {
  .hero-copy { grid-column: 1 / -1; }
  .plate-fig { grid-column: 1 / -1; justify-self: start; width: min(100%, 520px); }
}

/* ---------- the statement ---------- */
.statement { padding-block: 0 var(--s-section); }
.statement-text { grid-column: 1 / span 10; font-size: var(--size-statement); line-height: 1.2; letter-spacing: -.016em; color: var(--ink-strong); max-width: 28em; text-wrap: balance; }
@media (max-width: 900px) { .statement-text { grid-column: 1 / -1; } }

/* ---------- plate header: what a section shows, on a rule, with one fact ---------- */
.plate-head { display: flex; align-items: baseline; gap: var(--s-md); margin-bottom: var(--s-2xl); }
.plate-head .rule { flex: 1; align-self: center; height: 0; border-top: 3px double var(--rule); opacity: .7; }
@media (max-width: 600px) { .plate-head { flex-wrap: wrap; row-gap: 6px; } .plate-head .rule { order: 3; flex-basis: 100%; } .plate-head .fact { margin-left: auto; } }

/* ---------- figures ---------- */
.sheet { display: block; width: 100%; border-radius: var(--r-lg); border: 1px solid var(--hair); background: var(--surface); box-shadow: var(--sheet-shadow); }
.night .sheet { box-shadow: 0 1px 0 rgb(238 242 226 / .05) inset, 0 30px 60px -30px rgb(0 0 0 / .7); }
.cap { margin-top: var(--s-md); font-style: italic; font-size: var(--size-small); line-height: 1.45; color: var(--ink-soft); max-width: 68ch; }
.cap .label { font-style: normal; margin-right: 10px; }

/* ---------- LoreLeaf ---------- */
.split-head { align-items: end; row-gap: var(--s-lg); margin-bottom: var(--s-3xl); }
.split-head h2 { grid-column: 1 / span 6; }
.split-head .lead { grid-column: 7 / span 6; color: var(--ink); }
.views { row-gap: var(--s-xl); }
.views-top { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-md) var(--s-xl); }
.views-bar { display: inline-flex; padding: 4px; border: 1px solid var(--edge); border-radius: var(--r-md); background: rgb(238 242 226 / .05); }
.seg { position: relative; display: inline-flex; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border-radius: var(--r-sm); font: 600 var(--size-small)/1 var(--font-ui); color: var(--ink-soft); transition: background-color var(--lp-t-hover) ease, color var(--lp-t-hover) ease; }
.seg input:checked + span { background: var(--on-night); color: var(--night); }
.seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (hover: hover) { .seg input:not(:checked):hover + span { color: var(--ink); } }
.views-stage { grid-column: 1 / span 9; display: grid; }
.view { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity var(--lp-t-ui) ease, visibility 0s linear var(--lp-t-ui); }
.views:has(.v-plate:checked) .view[data-view="plate"], .views:has(.v-skill:checked) .view[data-view="skill"], .views:has(.v-ink:checked) .view[data-view="ink"] { opacity: 1; visibility: visible; transition-delay: 0s; }
@supports not selector(:has(*)) { .view[data-view="plate"] { opacity: 1; visibility: visible; } .views-bar { display: none; } }   /* without :has() the plate is shown and the switch is not offered */
.view img { aspect-ratio: 2400 / 1278; }
.legend { grid-column: 10 / span 3; display: grid; gap: var(--s-md); align-content: start; }
.legend li { display: grid; grid-template-columns: 28px 1fr; gap: 2px 12px; font-size: var(--size-small); line-height: 1.4; color: var(--ink-soft); }
.legend svg { width: 28px; height: 20px; margin-top: 1px; }
.legend b { display: block; font-weight: 500; color: var(--ink); }
.strip { margin-top: var(--s-4xl); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s-xl); }
.strip > div { border-top: 1px solid var(--hair); padding-top: var(--s-md); }
.strip dt { font-size: var(--size-lead); line-height: 1.2; letter-spacing: -.008em; color: var(--ink-head); margin-bottom: var(--s-xs); text-wrap: balance; }
.strip dd { font-size: var(--size-small); line-height: 1.5; color: var(--ink-soft); }
.wide { margin-top: var(--s-4xl); }
.wide img { aspect-ratio: 2352 / 1236; }
@media (max-width: 1000px) {
  .views-stage, .legend { grid-column: 1 / -1; }
  .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .split-head h2, .split-head .lead { grid-column: 1 / -1; }
  .view img { aspect-ratio: 1200 / 775; }
  .wide img { aspect-ratio: 1672 / 1242; }
}
@media (max-width: 600px) { .legend, .strip { grid-template-columns: 1fr; } .views-bar { display: flex; width: 100%; } .seg { flex: 1; } .seg span { flex: 1; padding: 0 8px; } }

/* ---------- LearnHub Studio ---------- */
.hub-grid { align-items: start; row-gap: var(--s-lg); }
.hub-copy { grid-column: 1 / span 5; grid-row: 1; display: grid; gap: var(--s-lg); }
.hub-list { grid-column: 1 / span 5; grid-row: 2; display: grid; }
.hub-list > div { padding-block: var(--s-md); border-top: 1px solid var(--hair); }
.hub-list dt { font: 600 var(--size-small)/1.3 var(--font-ui); color: var(--ink-head); margin-bottom: 4px; }
.hub-list dd { font-size: var(--size-small); line-height: 1.5; color: var(--ink-soft); max-width: 46ch; }
.collage { grid-column: 7 / span 6; grid-row: 1 / span 2; }
.collage-stack { position: relative; padding-bottom: 46%; }
.collage-stack .phone { position: absolute; bottom: 0; width: 31%; border-radius: clamp(14px, 1.8vw, 22px); }
.collage-stack .phone img { border-radius: inherit; width: 100%; }
.collage-stack .phone-a { left: 5%; } .collage-stack .phone-b { left: 40%; bottom: -4%; }
.collage .desk img { aspect-ratio: 2480 / 1760; }
.collage .cap { margin-top: var(--s-2xl); }
@media (max-width: 900px) {
  .hub-grid { row-gap: var(--s-2xl); }
  .hub-copy, .collage, .hub-list { grid-column: 1 / -1; grid-row: auto; }
}

/* ---------- on your machine ---------- */
.ledger { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ledger th, .ledger td { text-align: left; vertical-align: top; padding: var(--s-md) var(--gap) var(--s-md) 0; border-top: 1px solid var(--hair); }
.ledger th:last-child, .ledger td:last-child { padding-right: 0; }
.ledger thead th { border-top: 0; padding-top: 0; }
.ledger tbody th { font: 500 var(--size-lead)/1.25 var(--font-read); letter-spacing: -.008em; color: var(--ink-head); }
.ledger tbody td { font-size: var(--size-small); line-height: 1.5; color: var(--ink); }
.ledger tbody tr:last-child td, .ledger tbody tr:last-child th { border-bottom: 1px solid var(--hair); }
.ai { margin-top: var(--s-4xl); padding: clamp(24px, 3.4vw, 48px); background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); row-gap: var(--s-xl); }
.ai-head { grid-column: 1 / span 4; display: grid; gap: var(--s-sm); align-content: start; }
.ai-head h3 { font-size: var(--size-statement); line-height: 1.1; letter-spacing: -.016em; }
.ai-ways { grid-column: 5 / span 8; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s-lg); }
.ai-ways li { border-top: 3px double var(--rule); padding-top: var(--s-md); }
.ai-ways b { display: block; font: 500 var(--size-lead)/1.2 var(--font-read); letter-spacing: -.008em; color: var(--ink-head); margin-bottom: var(--s-xs); }
.ai-ways span { font-size: var(--size-small); line-height: 1.5; color: var(--ink-soft); }
.ai-note { grid-column: 5 / span 8; font-size: var(--size-small); line-height: 1.5; color: var(--ink-soft); max-width: none; }
@media (max-width: 900px) { .ai-head, .ai-ways, .ai-note { grid-column: 1 / -1; } }
@media (max-width: 700px) {
  .ai-ways { grid-template-columns: 1fr; }
  .ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ledger, .ledger tbody, .ledger tr, .ledger th, .ledger td { display: block; width: auto; }
  .ledger tbody th { border-top: 1px solid var(--hair); padding: var(--s-md) 0 6px; } .ledger tbody td { border-top: 0; padding: 0 0 var(--s-sm); }
  .ledger tbody td:last-child { padding-bottom: var(--s-md); }
  .ledger td[data-label]::before { content: attr(data-label); display: block; font: 600 var(--size-label)/1.3 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 2px; }
}

/* ---------- pricing: a price list set like a nursery catalogue ---------- */
.price-head { align-items: end; row-gap: var(--s-lg); margin-bottom: var(--s-2xl); }
.price-head h2 { grid-column: 1 / span 6; }
.price-head .lead { grid-column: 7 / span 6; }
.prices { border-bottom: 3px double var(--rule); }
.price { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s-sm); padding-block: var(--s-xl); border-top: 3px double var(--rule); align-items: start; }
.price-line { grid-column: 1 / -1; display: flex; align-items: baseline; }
.price-line h3, .amount { font-size: var(--size-statement); line-height: 1.1; letter-spacing: -.016em; font-weight: 500; color: var(--ink-head); }
.amount { font-variant-numeric: lining-nums tabular-nums; }
.leader { flex: 1; min-width: 24px; margin: 0 14px; border-bottom: 2px dotted var(--rule); transform-origin: left center; translate: 0 -5px; }
.price-what { grid-column: 1 / span 6; font-size: var(--size-body); color: var(--ink); }
.price-launch { grid-column: 1 / span 6; font: 500 var(--size-small)/1.45 var(--font-ui); color: var(--ink-head); }
.price-do { grid-column: 7 / span 6; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--s-sm) var(--s-lg); }
.draft-note { flex-basis: 100%; text-align: right; font: 500 var(--size-label)/1.4 var(--font-ui); color: var(--ink-soft); min-height: 1.4em; }
.price-notes { margin-top: var(--s-xl); display: grid; gap: var(--s-xs); font-size: var(--size-small); line-height: 1.5; color: var(--ink-soft); }
.price-notes p { max-width: 80ch; }
@media (max-width: 760px) {
  .price-head h2, .price-head .lead, .price-what, .price-launch, .price-do { grid-column: 1 / -1; }
  .price-do { justify-content: flex-start; } .draft-note { text-align: left; }
}

/* ---------- questions ---------- */
.faq-grid { row-gap: var(--s-2xl); }
.faq-copy { grid-column: 1 / span 5; display: grid; gap: var(--s-lg); height: 100%; align-content: space-between; }
.faq-list { grid-column: 7 / span 6; border-bottom: 1px solid var(--hair); }
.faq-list details { border-top: 1px solid var(--hair); }
.faq-list summary { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-md); padding: 18px 0; min-height: 44px; cursor: pointer; list-style: none; font-size: var(--size-lead); line-height: 1.25; letter-spacing: -.008em; color: var(--ink-head); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--rule); border-bottom: 2px solid var(--rule); transform: translateY(-3px) rotate(45deg); transition: transform var(--lp-t-ui) var(--lp-ease-out); }
.faq-list details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq-a { display: grid; grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 var(--s-xl) var(--s-lg) 0; font-size: var(--size-body); color: var(--ink); max-width: 58ch; }
@media (max-width: 900px) { .faq-copy, .faq-list { grid-column: 1 / -1; } }

/* ---------- closing and footer ---------- */
.close { padding-block: var(--s-section) var(--s-4xl); }
.close-grid { align-items: center; row-gap: var(--s-2xl); }
.close-plate { grid-column: 1 / span 4; }
.close-plate img { aspect-ratio: 4 / 5; width: 100%; }
.close-copy { grid-column: 7 / span 6; display: grid; gap: var(--s-lg); justify-items: start; }
.close-copy .assure { color: var(--night-muted); }
@media (max-width: 900px) { .close-plate { grid-column: 1 / -1; width: min(100%, 360px); } .close-copy { grid-column: 1 / -1; } }
footer { background: var(--night); color: var(--night-muted); --ink: var(--on-night); --ink-head: var(--on-night); --ink-soft: var(--night-muted); --hair: var(--night-border); --rule: #5c7566; --focus: var(--on-night); padding-block: 0 var(--s-3xl); font-size: var(--size-small); line-height: 1.5; }
.foot-grid { border-top: 3px double var(--rule); padding-top: var(--s-2xl); row-gap: var(--s-xl); }
.foot-brand { grid-column: 1 / span 5; display: grid; gap: var(--s-sm); align-content: start; }
.foot-brand .brand { padding: 0; }
.foot-col { grid-column: span 3; display: grid; gap: 2px; align-content: start; }
.foot-col:first-of-type { grid-column: 7 / span 3; }
.foot-col .label { margin-bottom: var(--s-xs); }
.foot-col a { text-decoration: none; padding: 5px 0; color: var(--on-night); }
.foot-col span { padding: 5px 0; }
.foot-col [data-placeholder] { justify-self: start; margin-block: 3px; padding-block: 2px; }
@media (hover: hover) { .foot-col a:hover { text-decoration: underline; text-underline-offset: 4px; } }
.foot-fine { grid-column: 1 / -1; max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-xs) var(--s-xl); padding-top: var(--s-lg); border-top: 1px solid var(--hair); font: 500 var(--size-label)/1.5 var(--font-ui); }
@media (max-width: 900px) { .foot-brand { grid-column: 1 / -1; } .foot-col, .foot-col:first-of-type { grid-column: span 6; } }

/* ---------- motion: complete at rest; where scroll timelines exist, things arrive as they enter ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  details[open] > .faq-a { animation: faq-open 320ms var(--lp-ease-out); }
  @supports (animation-timeline: view()) {
    .ink-in { animation: ink-in linear forwards; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    .opens { animation: opens linear forwards; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .leader { animation: leader linear forwards; animation-timeline: view(); animation-range: entry 0% cover 28%; }
  }
}
@keyframes faq-open { from { grid-template-rows: 0fr; opacity: .3; } to { grid-template-rows: 1fr; opacity: 1; } }
@keyframes ink-in { from { opacity: .22; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }
@keyframes opens { from { clip-path: inset(10% -80px -80px -80px); transform: translate3d(0, 28px, 0); } to { clip-path: inset(-80px); transform: none; } }   /* the clip stays clear of the sheet's shadow */
@keyframes leader { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* landing-page-studio · motion-core.css · v1
 *
 * Motion tokens, reveal states and texture overlays for marketing pages.
 * Timing tokens and the line, ink-fill, rolling-figure and shutter recipes are adapted from
 * taste-skill by Leon Lin (MIT). See NOTICE.md.
 *
 * Contract
 *  - Content is visible without JavaScript and under prefers-reduced-motion: every hidden state lives
 *    under html.js (set by a one-line inline <head> script) AND @media (prefers-reduced-motion: no-preference).
 *  - Only transform, opacity, filter and clip-path animate.
 *  - Nothing loops forever without a pause control; loops stop under reduced motion.
 *
 * Required in <head>, before any stylesheet:
 *   <script>document.documentElement.classList.add('js')</script>
 */

:root {
  /* Curves: strong ease-outs for arrivals, in-out for travel, linear for scroll-linked motion. */
  --lp-ease-out: cubic-bezier(0.22, 1, 0.36, 1);       /* UI under 600ms, entrances */
  --lp-ease-expo: cubic-bezier(0.16, 1, 0.3, 1);       /* reveals of 800ms and longer, line rises */
  --lp-ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);    /* wipes, shutters, panels */
  --lp-ease-soft: cubic-bezier(0.33, 1, 0.68, 1);      /* slow scale and drift on pictures */
  --lp-ease-exit: cubic-bezier(0.55, 0.055, 0.675, 0.19); /* things leaving for good, short */

  /* Durations */
  --lp-t-press: 140ms;
  --lp-t-hover: 180ms;
  --lp-t-ui: 240ms;
  --lp-t-reveal: 800ms;
  --lp-t-open: 1200ms;

  /* Staggers and distances */
  --lp-stagger-line: 90ms;
  --lp-stagger-item: 70ms;
  --lp-rise: 24px;
  --lp-blur: 8px;           /* blur-in never exceeds 8px and is gone once settled */

  /* Textures (0 turns a texture off) */
  --lp-grain: 0.07;
  --lp-halftone: 0.28;
  --lp-hatch: 0.1;
}

/* ---------- Screen-reader helper used by rolling figures ---------- */
.lp-sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Press and hover feedback ---------- */
:where([data-press]) {
  transition: transform var(--lp-t-press) var(--lp-ease-out),
              background-color var(--lp-t-hover) ease, color var(--lp-t-hover) ease,
              border-color var(--lp-t-hover) ease, box-shadow var(--lp-t-hover) ease;
}
:where([data-press]):active { transform: scale(0.97); }

/* ---------- Line masks (structure applies with or without motion) ---------- */
.lp-line { display: block; overflow: clip; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.lp-line > span { display: block; }

/* ---------- Rolling figures (structure) ---------- */
.lp-roll__digits { display: inline-flex; font-variant-numeric: tabular-nums; line-height: 1; }
.lp-roll__col { display: inline-block; height: 1em; overflow: clip; }
.lp-roll__strip { display: flex; flex-direction: column; transform: translateY(calc(var(--n) * -1em)); }
.lp-roll__strip > span { height: 1em; }

/* ---------- Marquee (structure) ---------- */
.lp-marquee { position: relative; overflow: clip; }
.lp-marquee__track { display: flex; width: max-content; gap: var(--lp-marquee-gap, 3rem); }
.lp-marquee__group { display: flex; flex: none; gap: var(--lp-marquee-gap, 3rem); align-items: center; }

/* ---------- Media loop control (WCAG 2.2.2: anything moving over 5s can be paused) ---------- */
.lp-media-host { position: relative; }
.lp-media-toggle {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid rgb(255 255 255 / 0.35); border-radius: 999px;
  background: rgb(0 0 0 / 0.45); color: #fff; cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lp-media-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.lp-media-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- Motion states: only when JS runs AND the visitor allows motion ---------- */
@media (prefers-reduced-motion: no-preference) {

  /* Hero load sequence: starts on the first frame, settled by ~1.2s, no waiting for the load event.
     data-load       : secondary hero elements (badge, subhead, buttons). Set --d for the delay.
     data-load="lcp" : the hero headline or hero picture. Starts at 20% opacity so the first frame
                       still paints it (Chrome ignores opacity-0 paints for LCP). */
  .js :where([data-load]) {
    opacity: 0; transform: translate3d(0, 12px, 0);
    animation: lp-load 560ms var(--lp-ease-out) forwards;
    animation-delay: var(--d, 120ms);
  }
  .js :where([data-load="lcp"]) {
    opacity: 0.2; transform: translate3d(0, 8px, 0); filter: blur(6px);
    animation: lp-load-lcp 900ms var(--lp-ease-expo) forwards;
    animation-delay: var(--d, 0ms);
  }

  /* Reveal once on scroll. Variants: (default) rise · blur · mask · scale · fade */
  .js :where([data-reveal]) {
    opacity: 0; transform: translate3d(0, var(--lp-rise), 0);
    transition: opacity 700ms var(--lp-ease-out), transform var(--lp-t-reveal) var(--lp-ease-expo),
                filter 600ms var(--lp-ease-out);
    transition-delay: calc(var(--i, 0) * var(--lp-stagger-item) + var(--d, 0ms));
  }
  .js :where([data-reveal="blur"]) { transform: translate3d(0, 12px, 0); filter: blur(var(--lp-blur)); }
  .js :where([data-reveal="scale"]) { transform: scale(0.96); }
  .js :where([data-reveal="fade"]) { transform: none; }
  .js :where([data-reveal="mask"]) {
    opacity: 1; transform: none; clip-path: inset(0 0 100% 0);
    transition: clip-path var(--lp-t-open) var(--lp-ease-in-out);
    transition-delay: calc(var(--i, 0) * var(--lp-stagger-item) + var(--d, 0ms));
  }
  .js :where([data-reveal="mask"]) > img,
  .js :where([data-reveal="mask"]) > video { transform: scale(1.12); transition: transform 1500ms var(--lp-ease-soft); }
  .js :where([data-reveal].is-in) { opacity: 1; transform: none; filter: none; }
  .js :where([data-reveal="mask"].is-in) { clip-path: inset(0 0 0 0); }
  .js :where([data-reveal="mask"].is-in) > img,
  .js :where([data-reveal="mask"].is-in) > video { transform: none; }

  /* Lines that rise (headings below the fold). Script splits after fonts load, then restores text. */
  .js .is-split .lp-line > span { transform: translateY(110%); }
  .js .is-split.is-in .lp-line > span {
    transform: none;
    transition: transform 900ms var(--lp-ease-expo) calc(var(--li, 0) * var(--lp-stagger-line));
  }

  /* Rolling figures: digits roll from 0 to their value once. */
  .js .lp-roll:not(.is-in) .lp-roll__strip { transform: none; }
  .js .lp-roll.is-in .lp-roll__strip {
    transition: transform 1100ms var(--lp-ease-expo) calc(var(--ci, 0) * var(--lp-stagger-item));
  }

  /* Marquee: linear loop, pausable (hover, focus, button). */
  .lp-marquee__track { animation: lp-marquee var(--lp-marquee-dur, 40s) linear infinite; }
  .lp-marquee:hover .lp-marquee__track,
  .lp-marquee:focus-within .lp-marquee__track,
  .lp-marquee.is-paused .lp-marquee__track { animation-play-state: paused; }

  /* Scroll-linked drift for pictures (CSS scroll timelines; static where unsupported). */
  @supports (animation-timeline: view()) {
    :where([data-drift]) {
      animation: lp-drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%;
    }
    /* Ink fill: one statement fills from 45% to full ink as it rises (the "tagline reveal"). */
    .lp-filling > span {
      color: color-mix(in oklab, var(--lp-fill, currentColor) 45%, transparent);
      animation: lp-ink linear both; animation-timeline: view(); animation-range: cover 20% cover 45%;
    }
  }

  /* Live grain (optional): stepped, so it reads as film rather than flicker. */
  .lp-grain--live::after { animation: lp-grain 1s steps(6) infinite; }
}

@keyframes lp-load { to { opacity: 1; transform: none; } }
@keyframes lp-load-lcp { to { opacity: 1; transform: none; filter: none; } }
@keyframes lp-marquee { to { transform: translateX(calc(-50% - var(--lp-marquee-gap, 3rem) / 2)); } }
@keyframes lp-drift { from { transform: translateY(var(--lp-drift-from, -4%)); } to { transform: translateY(var(--lp-drift-to, 4%)); } }
@keyframes lp-ink { to { color: var(--lp-fill, currentColor); } }
@keyframes lp-grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- Textures ----------
 * Apply to a positioned container; the overlay never intercepts the pointer and sits under content
 * that has position:relative + z-index:2. Set the strength with the custom property; 0 disables it.
 */
.lp-grain, .lp-halftone, .lp-stipple, .lp-hatch { position: relative; isolation: isolate; }
.lp-grain::after, .lp-halftone::after, .lp-stipple::after, .lp-hatch::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
}
/* Film grain: grey fractal noise, blended so it shows on light and dark grounds. */
.lp-grain::after {
  inset: -10%;
  opacity: var(--lp-grain);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='.33 .33 .33 0 0 .33 .33 .33 0 0 .33 .33 .33 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
/* Halftone screen: a regular dot grid in the ink colour (set color: on the container to tint it). */
.lp-halftone::after {
  opacity: var(--lp-halftone);
  mix-blend-mode: multiply;
  background-image: radial-gradient(circle, currentColor 0.9px, transparent 1.35px);
  background-size: var(--lp-halftone-size, 5px) var(--lp-halftone-size, 5px);
}
/* Stipple: sparse random ink dots from thresholded noise, the "printed" look of the showcase art. */
.lp-stipple::after {
  opacity: var(--lp-stipple, 0.5);
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='s' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='1' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.25 0 0 0 -.38'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='0 0 0 0 0 1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}
/* Engraving hatch: fine diagonal lines. */
.lp-hatch::after {
  opacity: var(--lp-hatch);
  background-image: repeating-linear-gradient(-45deg, currentColor 0 1px, transparent 1px 7px);
}
/* Duotone for photographs: grey-scale the picture, then tint it with two brand colours. */
.lp-duotone { position: relative; isolation: isolate; background: var(--lp-duo-dark, #0b1a6b); }
.lp-duotone > img, .lp-duotone > video {
  display: block; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(var(--lp-duo-contrast, 1.25));
  mix-blend-mode: screen; opacity: 0.92;
}
.lp-duotone::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--lp-duo-light, #f3ead8); mix-blend-mode: multiply;
}

/* Reduced motion: loops stop, scroll-linked travel is off, everything sits at its finished state. */
@media (prefers-reduced-motion: reduce) {
  .lp-marquee__track { animation: none; }
  .lp-marquee { overflow-x: auto; }
}

/* Additions to the folio for the full site: several pages, two languages, the tools. base.css is the first draft's sheet. */

/* names in the book's own hand, not in capitals */
.label { font: italic 500 16px/1.35 var(--font-read); letter-spacing: 0; text-transform: none; }
.cap .label, .plate-title .label { font-style: italic; }
.ledger thead th.label { font: italic 500 17px/1.3 var(--font-read); }
.foot-col .label { font: italic 500 17px/1.3 var(--font-read); color: var(--night-muted); }
.fact { letter-spacing: 0; text-transform: none; font: 500 var(--size-small)/1.3 var(--font-ui); }

/* pages of the preview document */
.route { display: none; }
.route.is-on { display: block; }
[hidden] { display: none !important; }

/* header: more places to go, and the other language */
.site-head .frame { gap: clamp(16px, 2vw, 32px); }
.nav { display: flex; gap: clamp(14px, 1.8vw, 28px); margin-left: auto; }
.nav a[aria-current] { text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
.lang { font: 500 var(--size-small)/1 var(--font-ui); color: var(--ink-soft); text-decoration: none; padding: 14px 2px; }
@media (hover: hover) { .lang:hover { color: var(--ink-head); text-decoration: underline; text-underline-offset: 6px; } }
.menu .lang { display: inline-block; margin-top: var(--s-lg); font-size: var(--size-body); }
@media (max-width: 1040px) { .nav, .head-cta, .site-head .lang { display: none; } .burger { display: block; } .site-head .frame { height: 64px; } .menu { inset-block-start: 64px; } }
html:not(.js) .burger { display: none; }

/* the head of an inner page */
.page-head { padding-block: clamp(56px, 8vw, 112px) clamp(40px, 5vw, 72px); }
.page-head h1 { font-size: clamp(46px, 6.4vw, 84px); line-height: .98; letter-spacing: -.026em; max-width: 14em; }
.page-head .lead { margin-top: var(--s-lg); max-width: 34em; color: var(--ink); }
.page-head + section { padding-top: 0; }
.page-head.night { padding-bottom: clamp(56px, 7vw, 96px); }

/* text to read */
.prose { max-width: 66ch; }
.prose h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; margin: var(--s-3xl) 0 var(--s-md); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: var(--s-xl) 0 var(--s-xs); }
.prose p, .prose li { font-size: var(--size-body); line-height: 1.6; }
.prose p + p, .prose ul, .prose ol { margin-top: var(--s-md); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--primary); text-underline-offset: 3px; }
.note { margin: 0 0 var(--s-2xl); padding: var(--s-md) var(--s-lg); border: 1px dashed var(--accent); border-radius: var(--r-md); font: 500 var(--size-small)/1.5 var(--font-ui); color: var(--ink); max-width: 66ch; }

/* a sequence: steps with numerals in the margin */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: var(--s-xl); }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 2.6em 1fr; column-gap: var(--s-md); }
.steps > li::before { content: counter(step); font: italic 400 clamp(34px, 3.4vw, 46px)/.9 var(--font-read); color: var(--accent); }
.steps h3 { font-size: var(--size-lead); margin: 0 0 6px; }
.steps p { color: var(--ink); max-width: 44em; }
.two { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: var(--s-2xl); }
.two > :first-child { grid-column: 1 / span 5; }
.two > :last-child { grid-column: 7 / span 6; }
@media (max-width: 900px) { .two > :first-child, .two > :last-child { grid-column: 1 / -1; } }

/* LoreLeaf: a path grows while it is read */
.grow { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: start; }
.grow-plate { grid-column: 1 / span 5; position: sticky; top: 96px; margin: 0; }
.grow-plate .plate { aspect-ratio: 4 / 5; }
.grow-plate .cap { margin-top: var(--s-sm); }
.grow-steps { grid-column: 7 / span 6; list-style: none; margin: 0; padding: 12vh 0 18vh; display: grid; gap: clamp(72px, 16vh, 150px); counter-reset: step; }
.grow-steps li { counter-increment: step; max-width: 30em; transition: opacity .3s ease; }
.grow.is-live .grow-steps li { opacity: .42; }
.grow.is-live .grow-steps li.is-now { opacity: 1; }
.grow-steps li::before { content: counter(step); display: block; font: italic 400 46px/1 var(--font-read); color: var(--night-gold); margin-bottom: var(--s-sm); }
.grow-steps h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; margin-bottom: var(--s-sm); }
.grow-steps p { color: var(--ink); font-size: var(--size-lead); line-height: 1.45; }
@media (max-width: 900px) {
  .grow-plate { grid-column: 1 / -1; top: 64px; z-index: 2; background: var(--ground); padding-bottom: var(--s-sm); }
  .grow-plate .plate { aspect-ratio: 5 / 4; max-height: 44vh; margin-inline: auto; }
  .grow-plate .cap { display: none; }
  .grow-steps { grid-column: 1 / -1; padding: 4vh 0 30vh; gap: 30vh; }
}
@media (prefers-reduced-motion: reduce) { .grow.is-live .grow-steps li { opacity: 1; } }

/* pricing: what a licence is, in a ledger */
.terms { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: var(--s-lg); margin-top: var(--s-3xl); }
.terms > div { grid-column: span 4; border-top: 1px solid var(--hair); padding-top: var(--s-md); }
.terms dt { font: 500 var(--size-lead)/1.25 var(--font-read); color: var(--ink-head); margin-bottom: 6px; }
.terms dd { margin: 0; font-size: var(--size-small); line-height: 1.55; color: var(--ink); }
@media (max-width: 900px) { .terms > div { grid-column: span 6; } }
@media (max-width: 600px) { .terms > div { grid-column: 1 / -1; } }

/* downloads */
.dl { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--hair); }
.dl > li { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: var(--s-md); align-items: start; padding-block: var(--s-xl); border-top: 1px solid var(--hair); }
.dl h2 { grid-column: 1 / span 4; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; }
.dl .dl-what { grid-column: 5 / span 4; font-size: var(--size-small); line-height: 1.55; color: var(--ink); }
.dl .dl-version { display: block; margin-top: 6px; color: var(--ink-soft); }
.dl .dl-do { grid-column: 9 / span 4; display: flex; flex-wrap: wrap; gap: var(--s-sm); justify-content: flex-end; }
.dl .draft-note { text-align: right; }
@media (max-width: 900px) { .dl h2, .dl .dl-what, .dl .dl-do { grid-column: 1 / -1; justify-content: flex-start; } .dl .draft-note { text-align: left; } }

/* the licence page */
.lt form { display: flex; flex-wrap: wrap; gap: var(--s-sm); align-items: end; max-width: 46em; }
.lt label { flex: 1 1 280px; display: grid; gap: 6px; font: 500 var(--size-small)/1.3 var(--font-ui); color: var(--ink-head); }
.lt input { font: 500 18px/1.2 ui-monospace, "SF Mono", Menlo, monospace; padding: 13px 14px; min-height: 48px; border: 1px solid var(--edge); border-radius: var(--r-sm); background: var(--surface); color: var(--on-surface); width: 100%; }
.lt input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.lt-msg { min-height: 1.6em; margin-top: var(--s-sm); font: 500 var(--size-small)/1.5 var(--font-ui); color: var(--ink-soft); }
.lt-msg.is-bad { color: #8f2f1f; }
.lt-demo { margin-top: var(--s-xs); background: none; border: 0; padding: 10px 0; font: 500 var(--size-small)/1.3 var(--font-ui); color: var(--primary); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.lt-out { margin-top: var(--s-2xl); max-width: 60em; }
.lt-head { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.15; }
.lt-facts { margin-top: 6px; font-size: var(--size-small); color: var(--ink); }
.lt-example { display: inline-block; margin-top: var(--s-sm); padding: 2px 8px; border: 1px dashed var(--accent); border-radius: var(--r-sm); font: 500 var(--size-label)/1.5 var(--font-ui); }
.lt-list { list-style: none; margin: var(--s-lg) 0 0; padding: 0; border-bottom: 1px solid var(--hair); }
.lt-list li { display: grid; grid-template-columns: 1fr auto; column-gap: var(--s-lg); row-gap: 4px; align-items: center; padding-block: var(--s-md); border-top: 1px solid var(--hair); }
.lt-list b { font: 500 var(--size-lead)/1.25 var(--font-read); color: var(--ink-head); }
.lt-meta { grid-column: 1; font: 400 var(--size-small)/1.4 var(--font-ui); color: var(--ink-soft); }
.lt-list .btn, .lt-ask { grid-column: 2; grid-row: 1 / span 2; }
.lt-ask { display: flex; flex-wrap: wrap; gap: var(--s-xs); justify-content: flex-end; max-width: 26em; }
.lt-ask p { flex-basis: 100%; font: 400 var(--size-small)/1.45 var(--font-ui); text-align: right; }
@media (max-width: 700px) { .lt-list li { grid-template-columns: 1fr; } .lt-list .btn, .lt-ask { grid-column: 1; grid-row: auto; justify-content: flex-start; } .lt-ask p { text-align: left; } }

/* the two apps side by side on the start page */
.pair { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: var(--s-3xl); }
.pair > article { grid-column: span 6; display: grid; gap: var(--s-md); align-content: start; }
.pair h2 { font-size: clamp(34px, 3.8vw, 50px); }
.pair p { color: var(--ink); max-width: 30em; }
.pair figure { margin: 0 0 var(--s-sm); }
.pair figure { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-md); box-shadow: var(--sheet-shadow); }
.pair img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
@media (max-width: 900px) { .pair > article { grid-column: 1 / -1; } }
.more { font: 500 var(--size-body)/1.3 var(--font-read); color: var(--primary); text-underline-offset: 4px; justify-self: start; }
.night .more { color: var(--night-gold); }
.btn[aria-disabled="true"] { opacity: .75; }
.plate-count { margin-left: auto; font: 500 var(--size-label)/1.3 var(--font-ui); font-variant-numeric: tabular-nums; }

/* the ledger on a phone names its third column in the book's hand too */
.ledger td[data-label]::before { text-transform: none; letter-spacing: 0; font: italic 500 15px/1.3 var(--font-read); }

/* "What comes next": the public list with votes, and the message form */
.fbb-bar { display: flex; flex-wrap: wrap; gap: var(--s-md) var(--s-xl); align-items: center; justify-content: space-between; }
.fbb-filter { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.fbb-filter button { min-height: 44px; padding: 0 16px; border: 1px solid var(--edge); border-radius: 999px; background: transparent; color: var(--ink-head); font: 600 var(--size-small)/1 var(--font-ui); cursor: pointer; }
.fbb-filter button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.fbb-filter button:focus-visible, .fbb-vote:focus-visible, .fbb-key summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.fbb-pass, .fbb-msg, .fbf-msg { font: 500 var(--size-small)/1.5 var(--font-ui); color: var(--ink-soft); }
.fbb-msg, .fbf-msg { min-height: 1.6em; margin-top: var(--s-sm); }
.fbb-msg.is-bad, .fbf-msg.is-bad { color: #8f2f1f; }
.fbb-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2xl) var(--gap); margin-top: var(--s-xl); align-items: start; }
.fbb-example { grid-column: 1 / -1; justify-self: start; margin: 0; max-width: none; }
.fbb-col h2 { font: italic 500 clamp(24px, 2.2vw, 30px)/1.15 var(--font-read); letter-spacing: -.01em; padding-bottom: var(--s-sm); border-bottom: 2px solid var(--ink-head); }
.fbb-none { margin-top: var(--s-md); font-size: var(--size-small); color: var(--ink-soft); }
.fbb-list li { padding-block: var(--s-md); border-bottom: 1px solid var(--hair); }
.fbb-item { display: flex; gap: var(--s-sm); align-items: flex-start; justify-content: space-between; }
.fbb-item h3 { font-size: 20px; line-height: 1.25; }
.fbb-app { display: block; margin-top: 2px; font: 500 var(--size-label)/1.4 var(--font-ui); color: var(--ink-soft); }
.fbb-sum, .fbb-reply { margin-top: 6px; font-size: var(--size-small); line-height: 1.45; }
.fbb-reply { color: var(--ink-soft); }
.fbb-reply b { font: 600 var(--size-label)/1.4 var(--font-ui); color: var(--ink-head); }
.fbb-vote { flex: none; display: grid; justify-items: center; gap: 2px; min-width: 48px; min-height: 48px; padding: 6px 8px; border: 1px solid var(--edge); border-radius: var(--r-sm); background: transparent; color: var(--ink-head); font: 600 15px/1 var(--font-ui); cursor: pointer; }
.fbb-vote .fbb-up { font-size: 11px; }
.fbb-vote[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.fbb-vote[disabled] { opacity: .5; cursor: default; }
.fbb-key { margin-top: var(--s-2xl); max-width: 46em; }
.fbb-key summary { cursor: pointer; font: 600 var(--size-small)/1.3 var(--font-ui); color: var(--ink-head); padding: 10px 0; }
.fbb-key form { display: flex; flex-wrap: wrap; gap: var(--s-sm); align-items: end; margin-top: var(--s-sm); }
.fbb-key label, .fbf-form label { display: grid; gap: 6px; font: 500 var(--size-small)/1.3 var(--font-ui); color: var(--ink-head); }
.fbb-key label { flex: 1 1 280px; }
.fbb-key input { font: 500 18px/1.2 ui-monospace, "SF Mono", Menlo, monospace; }
.fbb-key input, .fbf-form input, .fbf-form select, .fbf-form textarea { padding: 13px 14px; min-height: 48px; border: 1px solid var(--edge); border-radius: var(--r-sm); background: var(--surface); color: var(--on-surface); width: 100%; }
.fbf-form input, .fbf-form select, .fbf-form textarea { font: 400 17px/1.45 var(--font-ui); }
.fbf-form textarea { resize: vertical; min-height: 140px; }
.fbb-key input:focus-visible, .fbf-form input:focus-visible, .fbf-form select:focus-visible, .fbf-form textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.fbb-key .small { margin-top: var(--s-sm); }
.fbf-form { display: grid; gap: var(--s-md); align-content: start; }
.fbf-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-md); }
.fbf-form .btn { justify-self: start; }
@media (max-width: 1000px) { .fbb-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .fbb-cols, .fbf-row { grid-template-columns: 1fr; } }
