/* v17 generated pages (stories, hubs, contact): built ON the site layer (vendor tokens + site.css + system.css), so they
   read as the home page and the app: the art is the colour, the paper around it is quiet (warm night ground, hairline
   edges, line marks, one gold action per view, numbers in Fraunces that glow on night). Phone rules live under 819.98 px.
   Tokens only. Round 3 (2026-10-05, founder: "The stories and story page structures are ALL over the place... do an UX
   UI pass"): one heading per idea, nothing said twice, the content as the picture, every element with one job. */

#app-frame.pg { --dz-k: 1; --pg-max: 76rem; --pg-gutter: var(--site-gutter); background: var(--l0); }
.pg-wrap { width: 100%; max-width: calc(var(--site-max) + 2 * var(--site-gutter)); margin: 0 auto; padding: 0 var(--pg-gutter, var(--site-gutter)); }   /* the home's column (site.css .hero-copy) */
#main { display: block; }

/* ---- header: the home's (site.css .site-head, v16 nav links): full width, the site gutter, 14 px / 800 links ---- */
.pg-head { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: var(--sp-6);
  padding: calc(var(--sp-3) + env(safe-area-inset-top)) var(--site-gutter) var(--sp-3); color: var(--ink-title);
  background: rgba(var(--feature-bg-rgb), 0.86); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 1px 0 rgba(var(--pure-white-rgb), 0.06); }
.pg-head .brand { color: var(--ink-title); margin-right: auto; }
.pg-head .wordmark { width: clamp(7.25rem, 6rem + 4vw, 9.5rem); }
.pg-nav { display: flex; gap: clamp(16px, 1.6vw, 24px); }
.pg-nav a { font-weight: 800; font-size: 14px; color: var(--ink-title); min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.pg-nav a:hover { color: var(--cta); }
.pg-nav a[aria-current="page"] { color: var(--cta); }
.pg-lang { display: inline-flex; padding: 3px; border-radius: var(--radius-pill, 999px); box-shadow: inset 0 0 0 1px var(--hairline); }
.pg-lang a { min-height: 32px; min-width: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 var(--sp-3);
  border-radius: var(--radius-pill, 999px); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-meta, 0.8125rem);
  color: var(--ink-meta); text-decoration: none; }
.pg-lang a[aria-current="true"] { background: var(--l3); color: var(--ink-title); }
.pg-join { white-space: nowrap; color: var(--ink-title); }   /* ghost, like the home header's Join while another gold is in view:
   on these pages the page's own action is the one gold (Play, Read free, Send, Join in the band) */
.pg-join .hc-short { display: none; }

/* ---- the opening of a page ---- */
.pg-crumbs ol { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; margin: var(--sp-4) 0 var(--sp-8); padding: 0;
  font-size: var(--fs-meta, 0.8125rem); color: var(--ink-meta); }
.pg-crumbs li + li::before { content: "/"; margin-right: var(--sp-2); color: var(--hairline-strong); }
.pg-crumbs a { color: var(--ink-body); text-decoration: none; }
.pg-crumbs a:hover { color: var(--ink-title); text-decoration: underline; text-underline-offset: 3px; }
.pg-crumbs [aria-current] { color: var(--ink-meta); }
.pg-page-hero { padding-bottom: var(--sp-4); }
.pg-intro { max-width: 46rem; }
.pg-eyebrow { margin: 0 0 var(--sp-3); font-family: var(--font-display); font-weight: 600; color: var(--ink-meta); }
.pg-h1 { font-size: var(--site-h1); }
.pg-h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); margin: 0 0 var(--sp-5); }
.pg-lead { margin: var(--sp-5) 0 0; max-width: 38rem; }
.pg-sub { margin: calc(-1 * var(--sp-3)) 0 var(--sp-6); color: var(--ink-meta); }
.pg-k { margin: 0 0 var(--sp-1); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-meta, 0.8125rem); color: var(--ink-meta); }
.pg-prose { max-width: 42rem; margin-top: var(--sp-6); color: var(--ink-body); font-size: 1.05rem; line-height: 1.6; }
.pg-prose p { margin: 0 0 var(--sp-3); }
/* plain facts as one line between hairlines (DS-012) */
.pg-labels { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); list-style: none; margin: var(--sp-6) 0 0; padding: var(--sp-3) 0;
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); color: var(--ink-body); font-size: 0.95rem; }
.pg-labels .num, .pg-chap-m .num, .pg-ch-k .num { color: var(--cta); }
.pg-voice { margin: var(--sp-4) 0 0; }
.pg-voice a { color: var(--ink-body); text-underline-offset: 3px; }
.pg-voice a:hover { color: var(--ink-title); }
.pg-up { margin-top: var(--sp-8); color: var(--ink-meta); font-size: 0.95rem; }
.pg-up a { color: var(--ink-body); }

/* a section's heading with its "more" link on the same line (the one opens-more mark) */
.pg-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4) var(--sp-8); flex-wrap: wrap; margin-bottom: var(--sp-6); }
.pg-sec-head .pg-h2 { margin: 0; }
.pg-more { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 44px; font-family: var(--font-display); font-weight: 700;
  color: var(--ink-title); text-decoration: none; }
.pg-more::after { content: ""; width: 0.45em; height: 0.45em; border-top: 2px solid currentColor; border-right: 2px solid currentColor;
  transform: rotate(45deg); transition: transform calc(var(--dur-small, 160ms) * var(--dz-k)) var(--ease-out); }
.pg-more:hover { color: var(--cta); }
.pg-more:hover::after { transform: translateX(3px) rotate(45deg); }

/* ---- round 4 (2026-10-05): the adventure is one book. An info row (the cover, the title and its facts, the note for
   grown-ups), then the chapters as picture tabs over one player (story-player.js); without scripts the tabs are links down
   to every chapter. One gold Play per view, nothing said twice. ---- */
.pg-story-head { padding-bottom: var(--sp-4); }
.pg-story-top { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) minmax(0, 21rem); gap: clamp(1.5rem, 1rem + 2.5vw, 3.5rem); align-items: start; }
.pg-cover { margin: 0; }
.pg-cover img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-card, 20px);
  box-shadow: var(--sh-material, 0 18px 40px rgba(0,0,0,0.4)), inset 0 0 0 1px var(--hairline); }
.pg-story-top .pg-intro { max-width: none; padding-top: var(--sp-2); }
.pg-story-top .pg-h1 { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); }
.pg-story-top .pg-lead { max-width: 34rem; }
.pg-parent { align-self: stretch; display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-6); border-radius: var(--radius-card, 20px);
  background: var(--l1); box-shadow: inset 0 0 0 1px var(--hairline); }
.pg-parent-k { margin: 0; font-weight: 700; font-size: var(--fs-label, 0.9375rem); color: var(--cta); }
.pg-parent-t { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--ink-title); }
.pg-parent .pg-voice { margin: auto 0 0; padding-top: var(--sp-3); border-top: 1px solid var(--hairline); font-size: var(--fs-meta, 0.8125rem); color: var(--ink-meta); }

.pg-book { margin-top: var(--rhythm-compact); scroll-margin-top: 5rem; }
.pg-chaps-k { margin: 0 0 var(--sp-4); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-label, 0.9375rem); color: var(--ink-meta); }
.pg-chaps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: var(--sp-4); }
.pg-chap { position: relative; display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); align-items: center; height: 100%; padding: var(--sp-2);
  gap: var(--sp-3); border-radius: var(--radius-card, 20px); background: var(--l1); color: var(--ink-body); text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--hairline); transition: background-color calc(var(--dur-small, 160ms) * var(--dz-k)) var(--ease-light),
  box-shadow calc(var(--dur-small, 160ms) * var(--dz-k)) var(--ease-light); }
.pg-chap-pic { display: block; aspect-ratio: 4 / 3; border-radius: calc(var(--radius-card, 20px) - 6px); overflow: hidden; }
.pg-chap-pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity calc(var(--dur-small, 160ms) * var(--dz-k)) var(--ease-light); }
.pg-chap-b { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 2px var(--sp-2); padding-right: var(--sp-2); }
.pg-chap-n { grid-row: span 2; font-size: 1.4rem; line-height: 1; color: var(--cta); }
.pg-chap-b b { font-family: var(--font-display); font-size: 1rem; line-height: 1.25; color: var(--ink-title); }
.pg-chap-m { color: var(--ink-meta); font-size: var(--fs-meta, 0.8125rem); }
@media (hover: hover) and (pointer: fine) { .pg-chap:hover { background: var(--l2); } }
.is-book .pg-chap[aria-selected="false"] .pg-chap-pic img { opacity: 0.62; }
.is-book .pg-chap[aria-selected="true"] { background: var(--l2); box-shadow: inset 0 0 0 1.5px var(--cta), 0 10px 28px rgba(0, 0, 0, 0.28); }
.is-book .pg-chap[aria-selected="true"] .pg-chap-n { text-shadow: var(--glow-numeral); }
.pg-chap:focus-visible { outline: 2px solid var(--cta); outline-offset: 3px; }

/* a chapter: in the book, its tab already names it, so the head is one quiet line (where it sits, its length, what happens);
   without scripts (every chapter down the page) the numeral and the title show */
.pg-ch { margin-top: var(--rhythm-standard); scroll-margin-top: 5rem; }
.pg-ch[hidden] { display: none; }
.pg-ch-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-6); align-items: end; max-width: 54rem; margin-bottom: var(--sp-8); }
.pg-ch-n { font-size: clamp(3.75rem, 2.5rem + 4vw, 6.25rem); line-height: 0.82; color: var(--cta); text-shadow: var(--glow-numeral); }
.pg-ch-k { margin: 0 0 var(--sp-2); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-label, 0.9375rem); color: var(--ink-meta); }
.pg-ch-h { font-size: clamp(1.75rem, 1.25rem + 1.8vw, 2.75rem); }
.pg-ch-blurb { margin: var(--sp-3) 0 0; font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem); line-height: 1.5; color: var(--ink-body); max-width: 40rem; }
.pg-ch-head--one { grid-template-columns: minmax(0, 1fr); }
.is-book .pg-ch { margin-top: var(--sp-8); }
.is-book .pg-ch-head { display: block; margin-bottom: var(--sp-5); }
.is-book .pg-ch-n { display: none; }
.is-book .pg-ch-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.is-book .pg-ch-head .pg-ch-k { display: inline; margin: 0; }
.is-book .pg-ch-head .pg-ch-k::after { content: " · "; color: var(--ink-meta); }
.is-book .pg-ch-blurb { display: inline; margin: 0; font-size: 1.0625rem; color: var(--ink-title); }
.pg-talk { margin-top: var(--sp-8); max-width: 44rem; padding: var(--sp-5) var(--sp-6); border-radius: var(--radius-card, 20px); background: var(--l1);
  box-shadow: inset 0 0 0 1px var(--hairline); }
.pg-talk-k { margin: 0 0 var(--sp-3); font-weight: 700; font-size: var(--fs-label, 0.9375rem); color: var(--cta); }
.pg-talk ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--sp-3); }
.pg-talk li { position: relative; padding-left: var(--sp-5); font-size: 1.05rem; line-height: 1.5; color: var(--ink-title); }
.pg-talk li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--cta); }
/* the questions sit under the verse column, beside nothing else: the same width as the verse, where the reading ends */
.is-book .pg-talk { max-width: none; display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: var(--sp-3) var(--sp-6); align-items: start; }
.is-book .pg-talk-k { margin: 2px 0 0; }
.is-book .pg-talk ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3) var(--sp-8); }
@media (max-width: 819.98px) { .is-book .pg-talk { grid-template-columns: 1fr; } }

/* the plain pages (what a phone without scripts or a crawler gets); story-player.js hides them behind the player */
.pg-pages { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-12); }
.pg-pages[hidden] { display: none; }
.pg-page { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--sp-8); align-items: center; }
.pg-art { margin: 0; }
.pg-art img { width: 100%; height: auto; border-radius: var(--radius-card, 20px); box-shadow: var(--sh-md, 0 8px 24px rgba(0,0,0,0.25)); }
.pg-n { display: block; margin-bottom: var(--sp-3); font-size: 1.1rem; color: var(--cta); }
.pg-stanza { margin: 0 0 var(--sp-5); font-size: var(--site-verse); line-height: 1.6; color: var(--ink-title); }
.pg-verse audio { width: 100%; max-width: 22rem; height: 40px; color-scheme: dark; }

/* the home page's player on a chapter (site.css .player/.stage/.progress/.verse-wrap). The page count moves under the
   picture beside the progress, and back / next sit with it, so every control is in one place under the picture */
.pg-player { grid-template-areas: "stage verse" "progress verse"; }
.pg-player .verse-head { display: none; }
.pg-player .progress { align-items: center; gap: var(--sp-3); }
.pg-player .pg-ctl { display: flex; align-items: center; gap: var(--sp-2); flex: none; }
.pg-player .pg-ctl .pager { font-size: 0.9375rem; color: var(--ink-meta); margin: 0 var(--sp-2) 0 0; }
.pg-player .pg-ctl .pager .num:first-child { color: var(--cta); }
.pg-player .pg-ctl .icon-btn { width: 40px; height: 40px; }
.pg-player .pg-bars { display: flex; flex: 1; gap: 4px; }
.pg-player .pg-bars button { flex: 1; height: 28px; border: 0; padding: 0; background: transparent; cursor: pointer; display: grid; align-items: center; }
.pg-player .pg-bars button::before, .pg-player .pg-bars button > i { grid-area: 1 / 1; margin-top: 0; }
.pg-player .pg-bars button::before { content: ""; display: block; height: 4px; border-radius: var(--radius-pill); background: rgba(var(--text-title-rgb), 0.16); }
.pg-player .pg-bars button > i { display: block; height: 4px; border-radius: var(--radius-pill); background: var(--cta); transform-origin: 0 50%; transform: scaleX(0);
  box-shadow: 0 0 10px rgba(var(--cta-rgb), 0.45); }
.pg-player .verse-nav { display: none; }
.pg-player .stage-pics picture[hidden] { display: none; }
.pg-player .stage-pics picture img { border-radius: 0; box-shadow: none; }
.pg-player .stage-end { background: rgba(var(--feature-bg-rgb, 29, 24, 19), 0.78); }
.pg-player .end-line { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--onart-ink, #f2efe8); max-width: 24rem; }
.pg-player .actions--end { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; align-items: center; }
.pg-player .ico svg { width: 100%; height: 100%; fill: currentColor; display: block; }

/* ---- hubs: the doors to every age, the free shelf; age pages: stories first, the app's shelf as one row ---- */
.pg-hub { padding-bottom: var(--sp-4); }
.pg-page-hero--top { padding-top: var(--sp-10, 40px); }
.pg-free-line { margin: var(--sp-5) 0 0; max-width: 38rem; padding-left: var(--sp-4); border-left: 2px solid var(--cta); color: var(--ink-title); font-size: 1.0625rem; }
.pg-free-line .num { color: var(--cta); }
.pg-group { margin-top: var(--rhythm-compact); }
.pg-group--first { margin-top: var(--sp-10, 40px); }
.pg-group--doors { margin-top: var(--sp-10, 40px); }
.pg-doors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--sp-5); }
.pg-door { position: relative; display: grid; grid-template-rows: auto 1fr; min-height: 100%; overflow: hidden; border-radius: var(--radius-card, 20px);
  background: radial-gradient(120% 90% at 50% 0%, var(--l2), var(--l1) 70%); color: var(--ink-body); text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--hairline); transition: transform calc(var(--dur-small, 160ms) * var(--dz-k)) var(--ease-out),
  box-shadow calc(var(--dur-small, 160ms) * var(--dz-k)) var(--ease-light); }
.pg-door-fan { position: relative; display: block; height: 12.5rem; }
.pg-door-fan img { position: absolute; bottom: -2.25rem; left: 50%; width: 8.4rem; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45), inset 0 0 0 1px var(--hairline); transition: transform calc(var(--dur-medium, 260ms) * var(--dz-k)) var(--ease-out); }
.pg-door-fan img:nth-child(1) { transform: translateX(-120%) rotate(-11deg); z-index: 1; }
.pg-door-fan img:nth-child(2) { transform: translateX(-50%) translateY(-0.7rem); z-index: 3; }
.pg-door-fan img:nth-child(3) { transform: translateX(20%) rotate(11deg); z-index: 2; }
.pg-door.is-0-3 .pg-door-fan img { width: 9.75rem; aspect-ratio: 4 / 3; bottom: -0.75rem; }
.pg-door.is-0-3 .pg-door-fan img:nth-child(1) { transform: translateX(-112%) rotate(-9deg); }
.pg-door.is-0-3 .pg-door-fan img:nth-child(3) { transform: translateX(12%) rotate(9deg); }
.pg-door-b { position: relative; z-index: 4; display: grid; gap: 2px; padding: var(--sp-5) var(--sp-6) var(--sp-6); background: var(--l1);
  box-shadow: 0 -1px 0 var(--hairline); }
.pg-door-age { font-size: 2rem; line-height: 1; color: var(--cta); text-shadow: var(--glow-numeral); }
.pg-door-t { margin-top: var(--sp-2); font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.25; color: var(--ink-title); }
.pg-door-m { font-size: var(--fs-meta, 0.8125rem); color: var(--ink-meta); }
.pg-door-m .num { color: var(--ink-body); }
@media (hover: hover) and (pointer: fine) {
  .pg-door:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--hairline-strong), 0 18px 36px rgba(0, 0, 0, 0.3); }
  .pg-door:hover .pg-door-fan img:nth-child(1) { transform: translateX(-130%) rotate(-15deg); }
  .pg-door:hover .pg-door-fan img:nth-child(2) { transform: translateX(-50%) translateY(-1.3rem); }
  .pg-door:hover .pg-door-fan img:nth-child(3) { transform: translateX(30%) rotate(15deg); }
}
.pg-door[aria-current="page"] { box-shadow: inset 0 0 0 1.5px var(--cta); }

.pg-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-10, 40px) var(--sp-6); }
.pg-cards--feature { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-10, 40px) var(--sp-8); }
.pg-card a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; transition: transform calc(var(--dur-small, 160ms) * var(--dz-k)) var(--ease-out); }
.pg-card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-card, 20px);
  box-shadow: var(--sh-card, 0 6px 18px rgba(0,0,0,0.3)), inset 0 0 0 1px var(--hairline); }
@media (hover: hover) and (pointer: fine) { .pg-card.is-free a:hover { transform: translateY(-4px); } }
.pg-cards--feature .pg-card img { aspect-ratio: 4 / 5; }
/* related adventures: the cover beside its words, two or three across */
.pg-related { margin-top: var(--rhythm-standard); }
.pg-cards--wide { grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr)); gap: var(--sp-6); }
.pg-cards--wide .pg-card a { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: var(--sp-5); align-items: start; padding: var(--sp-3);
  border-radius: var(--radius-card, 20px); background: var(--l1); box-shadow: inset 0 0 0 1px var(--hairline); }
.pg-cards--wide .pg-card img { border-radius: calc(var(--radius-card, 20px) - 6px); }
.pg-cards--wide .pg-card h3 { margin-top: var(--sp-2); }
.pg-cards--wide .pg-chip { top: var(--sp-2); left: var(--sp-2); }
/* the app's shelf for this age: one row of covers that scrolls, nothing to tap (they open in the app) */
.pg-rail { list-style: none; margin: 0; padding: var(--sp-2) 0 var(--sp-4); display: flex; gap: var(--sp-5);
  -webkit-mask-image: linear-gradient(to right, #000 88%, transparent); mask-image: linear-gradient(to right, #000 88%, transparent);
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--l3) transparent; }
.pg-rail > li { flex: 0 0 10.5rem; scroll-snap-align: start; }
.pg-card--shelf img { opacity: 0.9; }
.pg-card--shelf h3 { margin: var(--sp-3) 0 2px; font-family: var(--font-display); font-size: 1rem; line-height: 1.25; color: var(--ink-title); }
.pg-card--shelf .pg-card-m { margin: 0; font-size: var(--fs-meta, 0.8125rem); }
.pg-about .pg-prose { columns: 2 22rem; column-gap: var(--sp-10, 40px); max-width: none; }

/* ---- the band every story page ends on: the night meadow under the moon, the app's Home in a phone ---- */
.pg-app { position: relative; isolation: isolate; overflow: hidden; margin-top: var(--rhythm-standard); color: var(--onart-ink, #f2efe8);
  min-height: clamp(36rem, 26rem + 18vw, 46rem); display: flex; align-items: stretch; }
.pg-app-sky { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 26%); mask-image: linear-gradient(to bottom, transparent 0, #000 26%); }
.pg-app-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 21rem); gap: clamp(2rem, 1rem + 5vw, 7rem); align-items: center;
  padding-top: clamp(7rem, 5rem + 6vw, 11rem); }
.pg-app-copy { align-self: center; padding-bottom: clamp(3rem, 2rem + 4vw, 6rem);
  text-shadow: 0 1px 2px rgba(var(--feature-bg-rgb, 29, 24, 19), 0.7), 0 2px 22px rgba(var(--feature-bg-rgb, 29, 24, 19), 0.65); }
.pg-app-h { max-width: 13ch; font-size: var(--site-h2); color: var(--onart-ink, #f2efe8); }
.pg-app .lead { margin-top: var(--sp-5); max-width: 30rem; color: rgba(242, 239, 232, 0.88); }
.pg-app-go { margin: var(--sp-8) 0 0; }
.pg-app-go .btn { text-shadow: none; }
.pg-app .note { color: rgba(242, 239, 232, 0.74); }

/* ---- contact: the form in an app card with Lark signalling over its edge; the other ways beside it ---- */
.pg-contact { padding-bottom: var(--rhythm-standard); }
.pg-contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: start; margin-top: var(--sp-4); }
.pg-form-wrap { position: relative; padding-top: 7.25rem; }
.pg-form-lark { position: absolute; top: 0; right: clamp(1.5rem, 4vw, 3rem); width: 11.5rem; height: auto; z-index: 0; pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35)); }
.pg-form-card { position: relative; z-index: 1; margin: 0; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius-card, 20px);
  background: var(--l1); box-shadow: var(--sh-material, 0 18px 40px rgba(0,0,0,0.4)), inset 0 0 0 1px var(--hairline); display: grid; gap: var(--sp-5); }
.pg-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.pg-field { margin: 0; display: grid; gap: var(--sp-2); }
.pg-field label { font-family: var(--font-display); font-weight: 700; color: var(--ink-title); }
.pg-opt { font-family: var(--font-body, inherit); font-weight: 400; color: var(--ink-meta); }
.pg-field input, .pg-field textarea, .pg-field select { width: 100%; font: inherit; font-size: 1rem; color: var(--ink-title); background: var(--l0);
  border: 0; border-radius: var(--radius-control, 14px); padding: var(--sp-3) var(--sp-4); box-shadow: inset 0 0 0 1px var(--hairline-strong);
  transition: box-shadow calc(var(--dur-small, 160ms) * var(--dz-k)) var(--ease-light); }
.pg-field input, .pg-field select { min-height: 48px; }
.pg-field select { appearance: none; -webkit-appearance: none; padding-right: var(--sp-10, 40px); cursor: pointer; }
.pg-select { position: relative; display: block; }
.pg-select::after { content: ""; position: absolute; right: var(--sp-4); top: 50%; width: 0.5em; height: 0.5em; margin-top: -0.35em; pointer-events: none;
  border-right: 2px solid var(--ink-meta); border-bottom: 2px solid var(--ink-meta); transform: rotate(45deg); }
.pg-field textarea { resize: vertical; min-height: 10rem; line-height: 1.5; }
.pg-field input:hover, .pg-field textarea:hover, .pg-field select:hover { box-shadow: inset 0 0 0 1px var(--ink-meta); }
.pg-field input:focus-visible, .pg-field textarea:focus-visible, .pg-field select:focus-visible { outline: 2px solid var(--cta); outline-offset: 2px; }
.pg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pg-form-go { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); }
.pg-form-go .btn { margin: 0; }
.pg-form-note { margin: 0; flex: 1 1 14rem; font-size: var(--fs-meta, 0.8125rem); color: var(--ink-meta); }
.pg-form-status { margin: 0; min-height: 1.5em; color: var(--ink-body); }
.pg-form-status:empty { display: none; }
.pg-form-status.is-ok { color: var(--ink-title); }
.pg-form-status.is-err { color: var(--cta); }
.pg-ways { padding-top: 7.25rem; }
.pg-ways-h { margin: 0 0 var(--sp-4); font-family: var(--font-display); font-size: 1.25rem; color: var(--ink-title); }
.pg-ways ul { list-style: none; margin: 0 0 var(--sp-6); padding: 0; border-top: 1px solid var(--hairline); }
.pg-ways li { display: grid; gap: var(--sp-1); padding: var(--sp-4) 0; border-bottom: 1px solid var(--hairline); }
.pg-ways li a { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--ink-title); text-decoration: none; }
.pg-ways li a:hover { color: var(--cta); }

/* ---- footer: the home's own (build.py copies the home footer onto every page; these are its rules, v13.css + v17.css) ---- */
.wrap { max-width: calc(var(--site-max) + 2 * var(--site-gutter)); margin: 0 auto; padding: 0 var(--site-gutter); }
.site-foot13 { padding: clamp(3rem, 2rem + 3vw, 5rem) 0 calc(var(--sp-6) + env(safe-area-inset-bottom)); box-shadow: inset 0 1px 0 rgba(var(--pure-white-rgb), 0.1);
  background: var(--l0); }
.f13 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr) minmax(0, 0.8fr) minmax(0, 0.8fr); gap: var(--sp-8); align-items: start; }
.f13-brand .wordmark--foot { width: 9rem; color: var(--onart-ink); margin-bottom: var(--sp-4); display: block; }
.f13-made { margin: 0; max-width: 22rem; font-size: 0.97rem; line-height: 1.55; color: rgba(242, 239, 232, 0.78); }
.f13-col { display: grid; gap: 4px; justify-items: start; }
.f13-k { margin: var(--sp-3) 0 0; font-size: var(--fs-meta); font-weight: 700; color: rgba(242, 239, 232, 0.6); }
.f13-k:first-child { margin-top: 0; }
.f13-mail, .f13-links a { color: var(--onart-ink); font-weight: 700; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center;
  background: linear-gradient(currentColor, currentColor) 0 88% / 0 1px no-repeat; transition: background-size calc(260ms * var(--dz-k)) var(--ease-out); }
.f13-links { gap: var(--sp-2); }
@media (hover: hover) and (pointer: fine) { .f13-mail:hover, .f13-links a:hover { background-size: 100% 1px; } }
.f13-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3) var(--sp-6); margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  padding-top: var(--sp-5); border-top: 1px solid rgba(var(--pure-white-rgb), 0.1); }
.f13-copy { margin: 0; font-size: var(--fs-meta); color: rgba(242, 239, 232, 0.6); }
.f13-lang { display: flex; gap: var(--sp-5); }
.f13-lang a { font-size: var(--fs-meta); font-weight: 700; color: rgba(242, 239, 232, 0.72); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.f13-lang a[aria-current="true"] { color: var(--onart-ink); }
.pg-404 { padding: var(--rhythm-standard) var(--pg-gutter); }

/* ---- pillar and checklist (English drafts): hairline rows and one plain table ---- */
.pg-how { padding-bottom: var(--rhythm-standard); }
.pg-how-steps { list-style: none; margin: var(--sp-12) 0 0; padding: 0; border-top: 1px solid var(--hairline); max-width: 46rem; }
.pg-how-steps li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: var(--sp-5); padding: var(--sp-6) 0; border-bottom: 1px solid var(--hairline); }
.pg-how-steps .pg-chap-n { grid-row: auto; text-shadow: none; }
.pg-step-h { margin: 0 0 var(--sp-2); font-family: var(--font-display); font-size: 1.25rem; color: var(--ink-title); }
.pg-how-steps p, .pg-how-more p { margin: 0; color: var(--ink-body); }
.pg-how-more { margin-top: var(--rhythm-compact); max-width: 46rem; display: grid; gap: var(--sp-4); }
.pg-why-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.pg-why-list li { padding: var(--sp-5) 0; border-bottom: 1px solid var(--hairline); }
.pg-why-list p { margin: 0; color: var(--ink-body); }
.pg-src { margin-top: var(--sp-2) !important; font-size: var(--fs-meta, 0.8125rem); }
.pg-src a { color: var(--ink-meta); }
.pg-answers { margin-top: var(--rhythm-compact); max-width: 56rem; }
.pg-table { overflow-x: auto; }
.pg-table table { width: 100%; border-collapse: collapse; }
.pg-table th, .pg-table td { text-align: left; vertical-align: top; padding: var(--sp-4) var(--sp-4) var(--sp-4) 0; border-bottom: 1px solid var(--hairline); }
.pg-table th { width: 38%; font-family: var(--font-display); font-weight: 600; color: var(--ink-title); }
.pg-table td { color: var(--ink-body); }
.pg-table td a { color: var(--cta); }

/* ---- phones: a layout of their own (WS-052), not a squeezed desktop ---- */
@media (max-width: 819.98px) {
  .pg-head { gap: var(--sp-3); }
  .pg-nav { display: none; }   /* phones: wordmark, EN/RO and Join (founder 2026-10-03) */
  .pg-head .pg-join { padding-inline: var(--sp-4); }
  .pg-crumbs ol { margin: var(--sp-2) 0 var(--sp-6); }
  .pg-story-top { grid-template-columns: 1fr; gap: var(--sp-8); }
  .pg-cover { width: min(68%, 15rem); }
  .pg-chaps { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--sp-3); margin: 0 calc(-1 * var(--pg-gutter));
    padding: 2px var(--pg-gutter) var(--sp-2); scrollbar-width: none; }
  .pg-chaps li { flex: 0 0 76%; scroll-snap-align: start; }
  .pg-chap { grid-template-columns: 5.25rem minmax(0, 1fr); }
  .pg-cards.pg-cards--wide { grid-template-columns: 1fr; }
  .pg-cards--wide .pg-card a { grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--sp-4); }
  .pg-story-top { grid-template-columns: 1fr; }
  .pg-cover { width: min(56%, 13rem); }
  .pg-ch-head { gap: var(--sp-4); }
  .pg-player { grid-template-areas: "stage" "progress" "verse"; }
  .pg-page { grid-template-columns: 1fr; gap: var(--sp-4); }
  .pg-pages { gap: var(--sp-10, 40px); }
  .pg-talk { padding: var(--sp-4) var(--sp-5); }
  .pg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-8) var(--sp-4); }
  .pg-cards.pg-cards--feature { grid-template-columns: 1fr; }
  .pg-cards--feature .pg-card img { aspect-ratio: 16 / 11; }
  .pg-rail > li { flex-basis: 8.5rem; }
  .pg-doors { grid-template-columns: 1fr; }
  .is-book .pg-talk ul { grid-template-columns: 1fr; }
  .pg-app { min-height: 0; }
  .pg-app-in { grid-template-columns: 1fr; gap: var(--sp-8); padding-top: 6rem; }
  .pg-app-copy { padding-bottom: 0; }
  .pg-contact-grid { grid-template-columns: 1fr; }
  .pg-form-wrap { padding-top: 5.25rem; }
  .pg-form-lark { width: 8.25rem; right: var(--sp-5); }
  .pg-form-row { grid-template-columns: 1fr; }
  .pg-ways { padding-top: 0; }
  .f13 { grid-template-columns: 1fr; gap: var(--sp-6); }
  .f13-mail, .f13-links a, .f13-lang a { min-height: 44px; }
  .f13-lang a { min-width: 44px; justify-content: center; }
  .f13-copy, .f13-lang a, .f13-k { font-size: 12px; }
  .pg-table tr { display: grid; padding: var(--sp-4) 0; border-bottom: 1px solid var(--hairline); }
  .pg-table th, .pg-table td { width: auto; padding: 0; border: 0; }
  .pg-table td { margin-top: var(--sp-2); }
}
@media (max-width: 559.98px) { .pg-join .hc-long { display: none; } .pg-join .hc-short { display: inline; } }
@media (prefers-reduced-motion: reduce) { .pg-card a, .pg-chap, .pg-cover, .pg-more::after { transition: none; } }
.pg-ch-head--one { grid-template-columns: minmax(0, 1fr); }
.pg-shelf-note { margin: var(--sp-8) 0 0; padding-top: var(--sp-4); border-top: 1px solid var(--hairline); color: var(--ink-body); }
.pg-shelf-note .num { color: var(--cta); }

/* round 4: where a contact form post without scripts lands, on the band's night meadow */
.pg-answer { margin-top: 0; min-height: calc(100vh - 4.5rem); align-items: center; }
.pg-answer .pg-app-sky { -webkit-mask-image: none; mask-image: none; }
.pg-answer-in { padding-block: var(--rhythm-compact); text-shadow: 0 1px 2px rgba(var(--feature-bg-rgb, 29, 24, 19), 0.7), 0 2px 22px rgba(var(--feature-bg-rgb, 29, 24, 19), 0.65); }
.pg-answer-h { color: var(--onart-ink, #f2efe8); }
.pg-answer .lead { margin-top: var(--sp-5); color: rgba(242, 239, 232, 0.9); }
.pg-answer .note { color: rgba(242, 239, 232, 0.74); }
.pg-answer-go { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: var(--sp-8) 0 0; }
.pg-answer-go .btn { text-shadow: none; }


/* ===== round 6 (2026-10-05, founder: "Stories: Too much text and bad UI") ===== */
/* story cards: the cover with the app's cover chip (shared.jsx CoverChip: 22 px pill, body type, translucent dark ground,
   4 px blur) and the title, nothing else */
.pg-card-pic { position: relative; display: block; }
.pg-chip { position: absolute; top: var(--sp-3); left: var(--sp-3); z-index: 2; display: inline-flex; align-items: center; height: 22px;
  padding: 0 8px; border-radius: var(--radius-pill, 999px); background: var(--thumb-chip-bg, rgba(29, 24, 19, 0.58));
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); color: var(--ink-title); font-family: var(--font-body, inherit);
  font-weight: 600; font-size: var(--fs-meta, 0.8125rem); line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pg-card h3 { margin: var(--sp-3) 0 0; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.25; color: var(--ink-title); }
.pg-cards--feature .pg-card h3 { font-size: 1.35rem; }
.pg-card--shelf h3 { font-size: 1rem; }
/* the last card of a free shelf: how many more wait in the app, over a fan of their covers */
.pg-more-pic { aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius-card, 20px);
  background: radial-gradient(120% 90% at 50% 100%, rgba(var(--cta-rgb), 0.16), var(--l1) 65%); box-shadow: inset 0 0 0 1px var(--hairline); }
.pg-more-fan img { position: absolute; bottom: 14%; left: 50%; width: 46%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45); opacity: 0.9; }
.pg-more-fan img:nth-child(1) { transform: translateX(-105%) rotate(-10deg); }
.pg-more-fan img:nth-child(2) { transform: translateX(-50%) translateY(-8%); z-index: 1; }
.pg-more-fan img:nth-child(3) { transform: translateX(5%) rotate(10deg); }
.pg-more-n { position: absolute; top: 12%; left: 0; right: 0; z-index: 2; text-align: center; font-size: clamp(2.75rem, 2rem + 2vw, 3.75rem);
  line-height: 1; color: var(--cta); text-shadow: var(--glow-numeral); }
.pg-more-n::before { content: "+"; }
.pg-more-tile a { color: inherit; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .pg-more-tile a:hover { transform: translateY(-4px); } }

/* the doors: no small print, the covers carry the door (larger, rising into the door) */
.pg-door { min-height: 19rem; }
.pg-door-fan { height: 14.5rem; }
.pg-door-fan img { width: 9.6rem; bottom: -2.75rem; }
.pg-door.is-0-3 .pg-door-fan img { width: 11.25rem; bottom: -1rem; }
.pg-door-b { padding: var(--sp-5) var(--sp-6) var(--sp-6); }
.pg-door-age { font-size: 2.5rem; }
.pg-door-t { font-size: 1.2rem; }

/* the Stories page (build.py SUBPAGES "stories", on the home's own .wrap and type) */
.pg-sub-hero { padding: clamp(8rem, 6rem + 4vw, 10rem) 0 var(--sp-4); }
.pg-sub-hero .lead { margin-top: var(--sp-5); }
.pg-sub-doors { padding: var(--sp-10, 40px) 0 0; }
.pg-sub-free { padding: var(--rhythm-standard) 0 var(--sp-6); }
.pg-sub-free .h2 { margin: 0 0 var(--sp-8); }
html[data-page="stories"] #shelf { padding-top: var(--rhythm-compact); }

/* ---- the phone: a device, not a frame (founder: "use a proper phone mockup"). A titanium band with its edge light, the
   side keys, a black bezel, the island over the app's own status bar, a glass sheen; it enters from the band's edge. ---- */
.pg-device { align-self: end; justify-self: center; width: clamp(15rem, 12rem + 7vw, 19rem); transform: rotate(-6deg) translateY(15%);
  transform-origin: 50% 100%; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.55)) drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35)); }
.pg-device-frame { position: relative; padding: 4px; border-radius: 56px;
  background: linear-gradient(135deg, #8c857c 0%, #4b4640 18%, #2b2724 42%, #403b36 64%, #8a837a 86%, #3a3631 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), inset 0 0 0 2.5px rgba(0, 0, 0, 0.55); }
.pg-device-screen { position: relative; overflow: hidden; padding: 9px; border-radius: 52px; background: #050505;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.pg-device-screen img { display: block; width: 100%; height: auto; border-radius: 43px; }
.pg-device-screen::after { content: ""; position: absolute; inset: 9px; border-radius: 43px; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 26%, transparent 42%); }
.pg-device-island { position: absolute; top: 20px; left: 50%; z-index: 2; width: 31%; height: 23px; transform: translateX(-50%);
  border-radius: 999px; background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04); }
/* the status bar, drawn by the device (render.DEVICE_STATUS): centred on the island's line, each half in its own ear */
.pg-device-screen { container-type: inline-size; --isl-c: 31.5px; }
.pg-device-time, .pg-device-icons { position: absolute; z-index: 2; top: var(--isl-c); transform: translate(-50%, -50%); pointer-events: none; }
.pg-device-time { left: 20%; color: #fff; font: 600 4.9cqw/1 -apple-system, "SF Pro Text", "Helvetica Neue", var(--font-body), sans-serif;
  letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.pg-device-icons { left: 79.5%; width: 21cqw; height: auto; }
.pg-device-key { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #2c2925, #7d766e 55%, #3a3632); }
.pg-device-key--power { right: -3px; top: 27%; height: 15%; }
.pg-device-key--action { left: -3px; top: 17%; height: 5%; }
.pg-device-key--vol-up { left: -3px; top: 25%; height: 9%; }
.pg-device-key--vol-down { left: -3px; top: 36%; height: 9%; }
.pg-app-sky { object-position: 50% 55%; }
@media (max-width: 819.98px) {
  .pg-device { width: 14rem; transform: rotate(-5deg) translateY(12%); }
  .pg-device-frame { border-radius: 44px; }
  .pg-device-screen { border-radius: 41px; padding: 7px; }
  .pg-device-screen img, .pg-device-screen::after { border-radius: 34px; }
  .pg-device-screen::after { inset: 7px; }
  .pg-device-island { top: 15px; height: 18px; }
  .pg-device-screen { --isl-c: 24px; }
  .pg-door { min-height: 0; }
  .pg-sub-hero { padding-top: 7rem; }
}
/* phones: the three doors as one swipe row (each was nearly a screen tall stacked) */
@media (max-width: 819.98px) {
  .pg-doors { display: flex; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--sp-3);
    margin: 0 calc(-1 * var(--site-gutter)); padding: 0 var(--site-gutter) var(--sp-2); scrollbar-width: none; }
  .pg-doors > li { flex: 0 0 64%; scroll-snap-align: start; }
  .pg-door-fan { height: 9.5rem; }
  .pg-door-fan img { width: 6.6rem; bottom: -1.75rem; }
  .pg-door.is-0-3 .pg-door-fan img { width: 7.75rem; bottom: -0.75rem; }
  .pg-door-age { font-size: 2rem; }
  .pg-door-t { font-size: 1rem; }
}

/* audit P2-5 (2026-10-05): on the story pages the verse around the lit stanza stays readable (contrast 4.5:1 on the night
   ground; it was 2.05 at the home's 0.26), and on phones the page bars span the player's width so each is a 24 px target */
.pg-player .stanza:not(.is-current) { opacity: 0.56; filter: none; }
@media (max-width: 819.98px) {
  .pg-player .progress { flex-wrap: wrap; row-gap: var(--sp-2); }
  .pg-player .pg-bars { flex: 1 1 100%; gap: 0; }
  .pg-player .pg-bars button { height: 32px; }
  .pg-player .pg-bars button::before, .pg-player .pg-bars button > i { margin-inline: 2px; }
  .pg-player .pg-ctl { margin-left: auto; }
}


/* ===== round 7 (2026-10-06, audit P1-4): the age pages. Each free adventure is a contents page (the cover, its line, its
   chapters as one line each between hairlines, numbers in Fraunces); what stories for this age are like sits beside a real
   page of verse (the content as the picture); the parents' questions are quiet disclosures. No new gold: the band below
   keeps the one gold action. ===== */
.pg-advs { list-style: none; margin: 0; padding: 0; }
.pg-adv { display: grid; grid-template-columns: minmax(0, 17.5rem) minmax(0, 1fr); gap: clamp(2rem, 1rem + 3vw, 4.5rem); align-items: start;
  padding: var(--sp-10, 40px) 0; border-top: 1px solid var(--hairline); }
.pg-adv:first-child { padding-top: var(--sp-2); border-top: 0; }
.pg-adv-cover { display: block; position: sticky; top: 6rem; border-radius: var(--radius-card, 20px);
  transition: transform calc(var(--dur-small, 160ms) * var(--dz-k)) var(--ease-out); }
.pg-adv-cover img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-card, 20px);
  box-shadow: var(--sh-card, 0 6px 18px rgba(0,0,0,0.3)), inset 0 0 0 1px var(--hairline); }
@media (hover: hover) and (pointer: fine) { .pg-adv-cover:hover { transform: translateY(-4px); } }
.pg-adv-b { max-width: 48rem; }
.pg-adv-go { margin: var(--sp-4) 0 0; }
.pg-adv-h { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 1.3rem + 0.9vw, 2.1rem); line-height: 1.15; }
.pg-adv-h a { color: var(--ink-title); text-decoration: none; }
.pg-adv-h a:hover { color: var(--cta); }
.pg-adv-meta { margin: var(--sp-2) 0 0; color: var(--ink-meta); font-size: 0.95rem; }
.pg-adv-meta .num { color: var(--ink-body); }
.pg-adv-d { margin: var(--sp-4) 0 0; max-width: 38rem; color: var(--ink-body); font-size: 1.05rem; line-height: 1.55; }
.pg-adv-chs { list-style: none; margin: var(--sp-6) 0 0; padding: 0; border-bottom: 1px solid var(--hairline); }
.pg-adv-chs li { border-top: 1px solid var(--hairline); }
.pg-adv-chs a { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; gap: var(--sp-4); align-items: baseline;
  padding: var(--sp-4) var(--sp-2) var(--sp-4) 0; color: var(--ink-body); text-decoration: none;
  transition: background-color calc(var(--dur-small, 160ms) * var(--dz-k)) var(--ease-light); }
.pg-adv-n { font-size: 1.6rem; line-height: 1; color: var(--cta); text-shadow: var(--glow-numeral); }
.pg-adv-t b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.3; color: var(--ink-title); }
.pg-adv-t span { display: block; margin-top: 2px; font-size: 0.975rem; line-height: 1.5; }
.pg-adv-m { color: var(--ink-meta); font-size: var(--fs-meta, 0.8125rem); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pg-adv-m .num { color: inherit; }
@media (hover: hover) and (pointer: fine) {
  .pg-adv-chs a:hover { background: linear-gradient(to right, transparent, var(--l1) 18%, var(--l1)); }
  .pg-adv-chs a:hover b { color: var(--cta); }
}

/* what stories for this age are like: a real page beside three points */
.pg-about-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: center; }
.pg-spec { margin: 0; overflow: hidden; border-radius: var(--radius-card, 20px); background: var(--l1); box-shadow: inset 0 0 0 1px var(--hairline); }
.pg-spec-art { display: block; }
.pg-spec-art img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.pg-spec-verse { margin: 0; padding: var(--sp-6) var(--sp-8) var(--sp-2); }
.pg-spec-verse p { margin: 0 0 var(--sp-4); font-size: var(--site-verse); line-height: 1.6; color: var(--ink-title); }
.pg-spec figcaption { padding: 0 var(--sp-8) var(--sp-4); border-top: 1px solid var(--hairline); }
.pg-spec figcaption .pg-more { font-size: 0.95rem; color: var(--ink-body); }
.pg-spec figcaption .pg-more:hover { color: var(--cta); }
.pg-points { list-style: none; margin: 0; padding: 0; }
.pg-points li { padding: var(--sp-6) 0; border-top: 1px solid var(--hairline); }
.pg-points li:first-child { border-top: 0; padding-top: 0; }
.pg-points h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.25; color: var(--ink-title); }
.pg-points p { margin: var(--sp-2) 0 0; max-width: 32rem; color: var(--ink-body); font-size: 1.05rem; line-height: 1.55; }

/* the parents' questions: one line each between hairlines, the answer opens beneath (a line chevron, no boxes) */
.pg-faq-list { max-width: 52rem; border-bottom: 1px solid var(--hairline); }
.pg-faq-q { border-top: 1px solid var(--hairline); }
.pg-faq-q summary { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); min-height: 44px;
  padding: var(--sp-5) 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  line-height: 1.3; color: var(--ink-title); }
.pg-faq-q summary::-webkit-details-marker { display: none; }
.pg-faq-q summary::after { content: ""; flex: none; width: 0.55em; height: 0.55em; margin-right: var(--sp-2); border-right: 2px solid var(--ink-meta);
  border-bottom: 2px solid var(--ink-meta); transform: translateY(-25%) rotate(45deg);
  transition: transform calc(var(--dur-small, 160ms) * var(--dz-k)) var(--ease-out); }
.pg-faq-q[open] summary::after { transform: translateY(15%) rotate(225deg); }
.pg-faq-q summary:hover { color: var(--cta); }
.pg-faq-q summary:focus-visible { outline: 2px solid var(--cta); outline-offset: 4px; border-radius: 4px; }
.pg-faq-a { padding: 0 var(--sp-10, 40px) var(--sp-6) 0; }
.pg-faq-a p { margin: 0; max-width: 44rem; color: var(--ink-body); font-size: 1.05rem; line-height: 1.6; }
.pg-faq-a p + p { margin-top: var(--sp-2); }
@media (prefers-reduced-motion: reduce) { .pg-adv-cover, .pg-adv-chs a, .pg-faq-q summary::after { transition: none; } }

@media (max-width: 819.98px) {
  /* the cover beside the title and its facts; the line and the chapters full width beneath */
  .pg-adv { grid-template-columns: 6.75rem minmax(0, 1fr); gap: var(--sp-2) var(--sp-5); padding: var(--sp-8) 0; }
  .pg-adv-b { display: contents; }
  .pg-adv-cover { position: static; grid-row: 1 / span 2; align-self: start; }
  .pg-adv-cover img { border-radius: 14px; }
  .pg-adv-h { grid-column: 2; align-self: end; font-size: 1.4rem; }
  .pg-adv-meta { grid-column: 2; align-self: start; margin: 0; }
  .pg-adv-d, .pg-adv-chs, .pg-adv-go { grid-column: 1 / -1; }
  .pg-adv-go { margin-top: var(--sp-2); }
  .pg-adv-d { margin-top: var(--sp-4); font-size: 1rem; }
  .pg-adv-chs { margin-top: var(--sp-4); }
  .pg-adv-chs a { grid-template-columns: 2rem minmax(0, 1fr) auto; gap: var(--sp-3); padding-right: 0; }
  .pg-adv-n { font-size: 1.35rem; }
  .pg-about-grid { grid-template-columns: 1fr; }
  .pg-spec-verse { padding: var(--sp-5) var(--sp-5) var(--sp-1); }
  .pg-spec figcaption { padding: 0 var(--sp-5) var(--sp-3); }
  .pg-points li { padding: var(--sp-5) 0; }
  .pg-faq-a { padding-right: 0; }
  .pg-faq-q summary { font-size: 1.05rem; padding: var(--sp-4) 0; }
}


/* ===== round 8 (2026-10-06, founder: "cut the 0-3 covers in the same ratio as the other covers and improve the cards design -
   also add a background card illustration for each ... the first 3 cards load the UI first") =====
   The age door: its world from the app fills the card's top (sleepy house, hollow wood, hill farm), dissolving into the
   label band; a fan of that age's covers, every one 3:4, enters from the band's edge on the left third so the world's own
   character stays in view on the right; the age in Fraunces and the page's name, with the one opens-more mark. On the
   Stories page the pictures load with the page (render.age_doors eager). */
.pg-doors { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: var(--sp-6); }
/* round 9 (founder 2026-10-06: "move the copy of the cards inside them, remove the 3 story covers in each card, and make sure
   the copy can be properly read"): the world is the whole card; the words sit on its foot, which darkens towards the
   bottom edge (the picture's own night, as on the app's illustrated banners), with a letter shadow; contrast measured on
   the real pixels behind each line (v17/ITERATION.md round 9) */
.pg-door { position: relative; display: block; aspect-ratio: 4 / 3; min-height: 0; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-card, 20px); background: var(--l2); color: var(--onart-ink, #f2efe8);
  box-shadow: inset 0 0 0 1px var(--hairline), 0 10px 26px rgba(0, 0, 0, 0.22); }
.pg-door-world { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 62% 38%;
  transition: transform calc(var(--dur-large, 520ms) * var(--dz-k)) var(--ease-out); }
.pg-door::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(to top, rgba(var(--feature-bg-rgb, 29, 24, 19), 0.94) 0%, rgba(var(--feature-bg-rgb, 29, 24, 19), 0.78) 26%,
    rgba(var(--feature-bg-rgb, 29, 24, 19), 0.32) 48%, rgba(var(--feature-bg-rgb, 29, 24, 19), 0) 64%);
  box-shadow: inset 0 0 0 1px var(--hairline); }
.pg-door-b { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 4px; padding: var(--sp-6) calc(var(--sp-6) + 1.75rem) var(--sp-6) var(--sp-6);
  background: none; box-shadow: none; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 2px 16px rgba(0, 0, 0, 0.5); }
.pg-door-b::after { content: ""; position: absolute; right: var(--sp-6); bottom: calc(var(--sp-6) + 0.45rem); width: 0.55rem; height: 0.55rem;
  border-top: 2px solid var(--onart-ink, #f2efe8); border-right: 2px solid var(--onart-ink, #f2efe8); transform: rotate(45deg);
  transition: transform calc(var(--dur-small, 160ms) * var(--dz-k)) var(--ease-out), border-color calc(var(--dur-small, 160ms) * var(--dz-k)) var(--ease-light); }
.pg-door-age { font-size: 2.4rem; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6), 0 0 20px rgba(var(--feature-bg-rgb, 29, 24, 19), 0.95), 0 0 6px rgba(0, 0, 0, 0.5); }
.pg-door-t { margin-top: 0; font-size: 1.15rem; color: var(--onart-ink, #f2efe8); }
@media (hover: hover) and (pointer: fine) {
  .pg-door:hover .pg-door-world { transform: scale(1.05); }
  .pg-door:hover .pg-door-b::after { transform: translateX(3px) rotate(45deg); border-color: var(--cta); }
}
.pg-door[aria-current="page"] { box-shadow: inset 0 0 0 1.5px var(--cta), 0 10px 26px rgba(0, 0, 0, 0.22); }

/* the last free card: "More in / the app" in Fraunces, six covers from the app round its edges, mostly out of frame */
.pg-more-pic { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius-card, 20px); isolation: isolate;
  background: radial-gradient(90% 70% at 50% 50%, var(--l2), var(--l1) 75%); box-shadow: inset 0 0 0 1px var(--hairline); }
.pg-more-pic::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(44% 26% at 50% 50%, rgba(var(--feature-bg-rgb, 29, 24, 19), 0.88), rgba(var(--feature-bg-rgb, 29, 24, 19), 0.4) 62%, transparent 100%); }
.pg-more-scatter { position: absolute; inset: 0; z-index: 1; display: block; }
.pg-more-scatter img { position: absolute; width: 54%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; opacity: 0.92;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5); transition: transform calc(var(--dur-medium, 260ms) * var(--dz-k)) var(--ease-out); }
.pg-more-scatter img:nth-child(1) { top: -24%; left: -18%; transform: rotate(-12deg); }
.pg-more-scatter img:nth-child(2) { top: -28%; right: -16%; transform: rotate(10deg); }
.pg-more-scatter img:nth-child(3) { top: 27%; left: -40%; transform: rotate(8deg); }
.pg-more-scatter img:nth-child(4) { top: 31%; right: -41%; transform: rotate(-9deg); }
.pg-more-scatter img:nth-child(5) { bottom: -32%; left: -10%; transform: rotate(7deg); }
.pg-more-scatter img:nth-child(6) { bottom: -35%; right: -8%; transform: rotate(-11deg); }
.pg-more-tile .pg-more-t { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; margin: 0; text-align: center;
  font-family: var(--font-numeral); font-weight: 600; font-size: clamp(1.9rem, 1.3rem + 1.4vw, 2.6rem); line-height: 1.06; letter-spacing: -0.01em;
  color: var(--ink-title); text-shadow: 0 2px 18px rgba(var(--feature-bg-rgb, 29, 24, 19), 0.9); }
.pg-more-tile a { display: block; color: inherit; text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .pg-more-tile a:hover .pg-more-scatter img:nth-child(odd) { transform: translate(-4%, -3%) rotate(-14deg); }
  .pg-more-tile a:hover .pg-more-scatter img:nth-child(even) { transform: translate(4%, -3%) rotate(13deg); }
}
@media (prefers-reduced-motion: reduce) { .pg-door-world, .pg-door-fan img, .pg-more-scatter img, .pg-door-b::after { transition: none; } }

@media (max-width: 819.98px) {
  .pg-doors { display: flex; grid-template-columns: none; gap: var(--sp-3); scroll-padding-inline: var(--site-gutter); }   /* snap to the gutter, not the screen edge */
  .pg-doors > li { flex: 0 0 76%; }
  .pg-door { aspect-ratio: 1 / 1; }   /* taller: a two-line Romanian name keeps the age inside the dark foot */
  /* the card is shorter, so the age sits higher: the foot darkens further up (age measured 3.5-4.3:1 before, 2026-10-06) */
  .pg-door::after { background: linear-gradient(to top, rgba(var(--feature-bg-rgb, 29, 24, 19), 0.95) 0%, rgba(var(--feature-bg-rgb, 29, 24, 19), 0.84) 34%,
    rgba(var(--feature-bg-rgb, 29, 24, 19), 0.42) 58%, rgba(var(--feature-bg-rgb, 29, 24, 19), 0) 76%); }
  .pg-door-age { font-size: 2rem; }
  .pg-door-t { font-size: 1rem; }
  .pg-door-b { padding: var(--sp-5) calc(var(--sp-5) + 1.5rem) var(--sp-5) var(--sp-5); }
  .pg-door-b::after { right: var(--sp-5); bottom: calc(var(--sp-5) + 0.35rem); }
}

/* legal documents (2026-10-19): the founder's texts, word for word, at reading measure */
.pg-legal { padding-bottom: var(--rhythm-standard); }
.pg-legal-ver { margin: var(--sp-4) 0 0; color: var(--ink-meta); font-size: 0.95rem; }
.pg-legal-nav { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); margin: var(--sp-6) 0 0; padding: var(--sp-4) 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.pg-legal-nav a { color: var(--ink-body); text-decoration: none; }
.pg-legal-nav a:hover { color: var(--ink-title); text-decoration: underline; text-underline-offset: 3px; }
.pg-legal-nav a[aria-current] { color: var(--ink-title); font-weight: 600; }
.pg-legal-doc { max-width: 46rem; margin-top: var(--sp-8); color: var(--ink-body); font-size: 1.02rem; line-height: 1.65; overflow-wrap: anywhere; }
.pg-legal-doc h2 { font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.7rem); color: var(--ink-title); margin: var(--sp-10, 40px) 0 var(--sp-4); }
.pg-legal-doc h3 { font-size: 1.12rem; color: var(--ink-title); margin: var(--sp-6) 0 var(--sp-3); }
.pg-legal-doc p { margin: 0 0 var(--sp-4); }
.pg-legal-doc strong { color: var(--ink-title); font-weight: 600; }
.pg-legal-list { margin: 0 0 var(--sp-5); padding-left: 1.2rem; }
.pg-legal-list li { margin: 0 0 var(--sp-3); }
.pg-legal-doc a { color: var(--ink-title); text-underline-offset: 3px; }

/* the checklist, reworked (starwink-team critique 2026-10-19): one list, each question with what to check in any app and
   Starwink's own answer in the app's card material beside it (the contact form's card); Tuk, yawning, breaks the hero's
   edge as Lark does on the contact page. The old page printed the ten questions twice and filled one column. */
.pg-check { padding-bottom: var(--rhythm-standard); }
.pg-check-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
.pg-check-intro .pg-lead { max-width: 40rem; }
.pg-check-tuk { width: clamp(9rem, 5rem + 9vw, 14.5rem); height: auto; margin-bottom: calc(-1 * var(--sp-8)); position: relative; z-index: 1; pointer-events: none; }
.pg-check-list { list-style: none; margin: var(--sp-8) 0 0; padding: 0; border-top: 1px solid var(--hairline); }
.pg-check-row { display: grid; grid-template-columns: 3rem minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--sp-4) clamp(1.5rem, 3vw, 3.5rem);
  padding: var(--sp-8) 0; border-bottom: 1px solid var(--hairline); align-items: start; }
.pg-check-row .pg-chap-n { grid-row: auto; text-shadow: none; padding-top: 0.15rem; }
.pg-check-q p { margin: var(--sp-2) 0 0; color: var(--ink-body); }
.pg-check-a { margin: 0; padding: var(--sp-5); border-radius: var(--radius-card, 20px); background: var(--l1);
  box-shadow: var(--sh-material, 0 18px 40px rgba(0,0,0,0.4)), inset 0 0 0 1px var(--hairline); }
.pg-check-k { margin: 0 0 var(--sp-2); font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--cta); }
.pg-check-a p:not(.pg-check-k) { margin: 0; color: var(--ink-title); }
.pg-check-more { display: inline-block; margin-top: var(--sp-3); color: var(--ink-body); text-underline-offset: 3px; }
.pg-check-more:hover { color: var(--ink-title); }
@media (max-width: 760px) {
  .pg-check-intro { grid-template-columns: minmax(0, 1fr); }
  .pg-check-tuk { width: 7.5rem; justify-self: end; margin: calc(-1 * var(--sp-4)) 0 calc(-1 * var(--sp-6)); }
  .pg-check-row { grid-template-columns: 1.75rem minmax(0, 1fr); padding: var(--sp-6) 0; }
  .pg-check-a { grid-column: 2; }
}

/* Secondary-page review, 20 October 2026. The home is the reference: every rule below requires
   data-page, which build.py adds only to secondary pages. Keep the phone close and the three plans. */
html[data-page] .pg-head { gap: var(--sp-6); }
html[data-page] .pg-head .pg-join { background: var(--gold-grad); color: var(--gold-ink); border-color: transparent; box-shadow: var(--sh-gold); }
html[data-page] :is(.pg-head, .site-head).cta-quiet :is(.pg-join, .head-cta) {
  background: transparent; color: var(--ink-title); border-color: var(--hairline-strong); box-shadow: none;
}
html[data-page] .pg-head .read-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none; }
html[data-page] .pg-head #read-progress { display: block; width: 100%; height: 100%; background: var(--cta); transform: scaleX(0); transform-origin: left; }
html[data-page] :is(.pg-lang a, .seg--sm a)[aria-current="true"] { color: var(--ink-title); background: var(--l3); }

/* One cover card, with no empty material box around its title. */
html[data-page] .pg-related .pg-cards--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 44rem; gap: var(--sp-8); }
html[data-page] .pg-related .pg-card a { display: flex; flex-direction: column; gap: 0; padding: 0; background: none; box-shadow: none; }
html[data-page] .pg-related .pg-card img { aspect-ratio: 3 / 4; border-radius: var(--radius-card, 20px); }
html[data-page] .pg-related .pg-card h3 { margin-top: var(--sp-4); }
html[data-page] :is(.pg-related, .pg-age) .pg-chip { display: none; }
html[data-page] .pg-parent--after { max-width: 52rem; margin-top: var(--sp-8); }
html[data-page] .pg-parent--after .pg-voice { margin-top: var(--sp-3); }
html[data-page] .pg-faq-list { max-width: 48rem; }
html[data-page] .pg-faq-q summary::after { transform: rotate(-45deg); }
html[data-page] .pg-faq-q[open] summary::after { transform: translateY(-25%) rotate(45deg); }
html[data-page] .pg-group--first > .pg-h2,
html[data-page] .pg-sub-free > .wrap > h2 { font-size: var(--site-h2); }

/* The phone is kept whole. The picture fades at both edges and the text occupies its own clear
   ground on a phone, before the scenic part and the real app screen. No footer edge cuts the device. */
html[data-page] .pg-app:not(.pg-answer) { min-height: 0; background: var(--l0); }
html[data-page] .pg-app:not(.pg-answer) .pg-app-sky {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 65%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 65%, transparent 100%);
}
html[data-page] .pg-app-in { align-items: center; padding-block: clamp(6rem, 4rem + 5vw, 9rem); }
html[data-page] .pg-app-copy { padding-block: 0; }
html[data-page] .pg-app .note { font-size: 0.9375rem; line-height: 1.6; max-width: 30rem; }
html[data-page] .pg-device { align-self: center; justify-self: center; transform: rotate(-4deg); margin-block: var(--sp-6); }
html[data-page] .pg-app + .site-foot13 { box-shadow: none; }
html[data-page] .site-foot13 { background: var(--l0); }
html[data-page] .f13-copy .num { font: inherit; color: inherit; text-shadow: none; }
html[data-page] .stat-plus { opacity: 1; transform: none; }
html[data-page] .stats[data-secondary-counts] { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Legal words remain the founder's text. Structure supplies reading measure, a visible contents
   list, and quiet field rows; references and headings are real links/anchors in the rendered HTML. */
html[data-page] .pg-legal-layout { display: grid; grid-template-columns: minmax(0, 43rem) minmax(13rem, 1fr);
  gap: clamp(2.5rem, 5vw, 6rem); align-items: start; margin-top: var(--sp-8); }
html[data-page] .pg-legal-layout .pg-legal-doc { max-width: none; min-width: 0; margin-top: 0; overflow-wrap: break-word; }
html[data-page] .pg-legal-doc [id] { scroll-margin-top: 7rem; }
html[data-page] .pg-legal-toc { position: sticky; top: 7rem; padding-block: var(--sp-4); border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline); color: var(--ink-body); }
html[data-page] .pg-legal-toc > :is(h2, h3, p) { margin: 0 0 var(--sp-3); font: 700 1rem/1.4 var(--font-display); color: var(--ink-title); }
html[data-page] .pg-legal-toc > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  min-height: 44px; list-style: none; cursor: pointer; font: 700 1rem/1.4 var(--font-display); color: var(--ink-title); }
html[data-page] .pg-legal-toc > summary::-webkit-details-marker { display: none; }
html[data-page] .pg-legal-toc > summary::after { content: ""; width: 0.5em; height: 0.5em; border-top: 2px solid currentColor;
  border-right: 2px solid currentColor; transform: rotate(45deg); margin-right: var(--sp-2); }
html[data-page] .pg-legal-toc[open] > summary::after { transform: translateY(-25%) rotate(135deg); }
html[data-page] .pg-legal-toc[open] > summary { margin-bottom: var(--sp-3); }
html[data-page] .pg-legal-toc :is(ol, ul) { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-1); }
html[data-page] .pg-legal-toc a { display: block; padding-block: 6px; color: var(--ink-body); font-size: 0.9375rem; line-height: 1.45;
  text-decoration: none; text-underline-offset: 3px; }
html[data-page] .pg-legal-toc a:hover { color: var(--ink-title); text-decoration: underline; }
html[data-page] .pg-legal-nav a { min-height: 44px; display: inline-flex; align-items: center; }
html[data-page] .pg-legal-nav a[aria-current] { color: var(--cta); text-decoration: underline; text-underline-offset: 5px; }
html[data-page] .pg-legal-fields { list-style: none; padding: 0; margin: 0 0 var(--sp-6); border-top: 1px solid var(--hairline); }
html[data-page] .pg-legal-fields > :is(li, div) { padding: var(--sp-4) 0; margin: 0; border-bottom: 1px solid var(--hairline); }
html[data-page] .pg-legal-list > .pg-legal-row { list-style: none; margin-left: -1.2rem; }
html[data-page] .pg-legal-fields > div { display: grid; grid-template-columns: minmax(7rem, 0.4fr) minmax(0, 1fr);
  gap: var(--sp-4); padding-block: var(--sp-3); }
html[data-page] .pg-legal-field-label { color: var(--ink-title); font-weight: 600; }
html[data-page] .pg-legal-fields :is(p, dl) { margin-block: var(--sp-2) 0; }
html[data-page] .pg-legal-fields :is(dt, dd) { margin: 0; }
html[data-page] .pg-legal-fields dt { color: var(--ink-title); font-weight: 600; }
html[data-page] .pg-404-stories { margin-top: var(--sp-8); max-width: 44rem; }
html[data-page] .pg-404-stories .pg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Contact outcomes explain their state on calm paper, rather than over a lit cottage. */
html[data-page] .pg-answer { margin-top: 0; min-height: 0; background: var(--l0); }
html[data-page] .pg-answer > .pg-app-sky { display: none; }
html[data-page] .pg-answer-in { padding-block: var(--rhythm-compact); text-shadow: none; }
html[data-page] .pg-answer :is(.pg-answer-h, .lead) { color: var(--ink-title); }
html[data-page] .pg-answer .note { color: var(--ink-body); font-size: 1rem; }
/* The waitlist confirmation (2026-10-30, founder: "Check out the successful screen after you confirm your email"). It was a
   heading in the top-left corner of an empty band. Still calm paper (the rule above), now centred in the space between the
   header and the footer; the "on the list" states carry the join sheet's three real covers, fanned. */
html[data-page="waitlist-confirm"] #main { display: flex; flex-direction: column; }
html[data-page] .pg-answer--wl { flex: 1 0 auto; display: grid; place-items: center; }
html[data-page] .pg-answer--wl .pg-answer-in { width: 100%; max-width: 38rem; margin-inline: auto; text-align: center; padding-block: clamp(3rem, 2rem + 6vh, 6rem); }
html[data-page] .pg-answer--wl .lead { max-width: 32rem; margin-inline: auto; text-wrap: pretty; }
html[data-page] .pg-answer--wl .pg-answer-go { justify-content: center; }
.wl-covers { display: flex; justify-content: center; align-items: flex-end; height: 132px; margin: 0 0 var(--sp-7); }
.wl-covers img { width: 84px; height: 112px; object-fit: cover; border-radius: 12px; opacity: 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(242, 239, 232, 0.16); }
.wl-covers img + img { margin-left: -20px; }
.wl-covers img:nth-child(1) { rotate: -8deg; translate: 0 4px; }
.wl-covers img:nth-child(2) { position: relative; z-index: 1; translate: 0 -8px; }
.wl-covers img:nth-child(3) { rotate: 8deg; translate: 0 4px; }
.wl-covers img.is-in { opacity: 1; animation: wl-deal calc(var(--dur-large, 420ms) * var(--dz-k, 1)) var(--ease-out) backwards; }
.wl-covers img.is-in:nth-child(2) { animation-delay: calc(80ms * var(--dz-k, 1)); }
.wl-covers img.is-in:nth-child(3) { animation-delay: calc(160ms * var(--dz-k, 1)); }
@keyframes wl-deal { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .wl-covers img.is-in { animation: none; } }
html[data-page] .pg-contact .pg-page-hero > .eyebrow { display: none; }
html[data-page="plans"] .plans-foot .note { font-size: 1rem; line-height: 1.6; color: var(--ink-title); }

@media (min-width: 820px) {
  html[data-page] .pg-legal-toc { grid-column: 2; grid-row: 1; max-height: calc(100svh - 8rem); overflow-y: auto; }
}
@media (max-width: 819.98px) {
  html[data-page] .pg-head { gap: var(--sp-3); }
  html[data-page] .stats[data-secondary-counts] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-page] .pg-lang a { min-height: 44px; min-width: 44px; }
  html[data-page] .pg-story-top { grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--sp-4); }
  html[data-page] .pg-story-top .pg-intro { display: contents; }
  html[data-page] .pg-story-top .pg-cover { width: 100%; grid-column: 1; grid-row: 1; }
  html[data-page] .pg-story-top .pg-h1 { grid-column: 2; grid-row: 1; align-self: center; font-size: clamp(1.75rem, 1.2rem + 3vw, 2.25rem); }
  html[data-page] .pg-story-top :is(.pg-lead, .pg-labels) { grid-column: 1 / -1; margin-top: 0; }
  html[data-page] .pg-book { margin-top: var(--sp-6); }
  html[data-page] .pg-chaps { margin-inline: 0; padding-inline: 2px; scroll-padding-inline: 2px; }
  html[data-page] .pg-related .pg-cards--wide { gap: var(--sp-4); }
  html[data-page] .pg-spec-verse { padding-inline: var(--sp-3); }
  html[data-page] .pg-spec-verse p { font-size: clamp(0.9375rem, 3.85vw, 1.0625rem); line-height: 1.65; }
  html[data-page] .pg-spec-verse .ln { display: block; padding-left: 1em; text-indent: -1em; }
  html[data-page] .pg-app-in { gap: var(--sp-8); padding-top: 5rem; padding-bottom: 6rem; }
  html[data-page] .pg-app:not(.pg-answer) .pg-app-sky { inset: auto 0 0; height: 50%; object-position: 60% 70%; }
  html[data-page] .pg-app-h { max-width: 16ch; }
  html[data-page] .pg-app .lead { max-width: 32ch; }
  html[data-page] .pg-device { width: 13rem; transform: rotate(-4deg); margin-block: var(--sp-4) 0; }
  html[data-page] .f13 { grid-template-columns: 1fr; gap: var(--sp-6); }   /* founder 2026-10-25: one column on a phone */
  html[data-page] .f13-brand { grid-column: 1 / -1; }
  html[data-page] .f13-col { min-width: 0; align-content: start; gap: 0; }
  html[data-page] :is(.f13-mail, .f13-links a) { min-height: 44px; font-size: 0.9375rem; font-weight: 500;
    color: var(--ink-body); line-height: 1.4; overflow-wrap: anywhere; }
  html[data-page] .f13-mail { font-size: 0.875rem; }
  html[data-page] .f13-k { font-size: 0.8125rem; color: var(--ink-meta); }
  html[data-page] .f13-bar { margin-top: var(--sp-6); }
  html[data-page] .pg-legal-layout { display: flex; flex-direction: column; gap: var(--sp-6); }
  html[data-page] .pg-legal-toc { position: static; order: -1; width: 100%; }
  html[data-page] .pg-legal-toc a { min-height: 44px; display: flex; align-items: center; }
  html[data-page] .pg-legal-nav { display: grid; grid-template-columns: 1fr; gap: 0; padding-block: var(--sp-2); }
  html[data-page] .pg-legal-doc { font-size: 1rem; line-height: 1.7; }
  html[data-page] .pg-legal-fields > div { grid-template-columns: 1fr; gap: var(--sp-1); }
  html[data-page="plans"] .p4-scene { margin-inline: 0; transform: none; }
  html[data-page="plans"] .p4-scene--free { height: 12rem; }
  html[data-page="plans"] .p4-c { width: 7.125rem; height: 9.5rem; top: 1rem; bottom: auto; border-radius: 12px; }
  html[data-page="plans"] .p4-made { object-fit: contain; object-position: center; }
  html[data-page="craft"] #app-frame .m4-step { opacity: 1; }
  html[data-page="craft"] #app-frame .m4-step .step-d { display: block; opacity: 1; max-height: none; height: auto; visibility: visible; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-page="craft"] #app-frame .m4-step { opacity: 1; }
  html[data-page="craft"] #app-frame .m4-step .step-d { display: block; opacity: 1; max-height: none; height: auto; visibility: visible; }
}

/* Other adventures for this age (founder 2026-10-25: the two-column grid with an orphan card read as broken): one row of
   full covers with title and length; a phone swipes the row, the next cover peeking in. */
html[data-page] .pg-rel-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); }
html[data-page] .pg-rel a { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
html[data-page] .pg-rel img { aspect-ratio: 3 / 4; border-radius: var(--radius-card, 20px); }
html[data-page] .pg-rel h3 { margin-top: var(--sp-4); }
html[data-page] .pg-rel-m { margin: var(--sp-1) 0 0; font-size: var(--fs-meta, 0.8125rem); color: var(--ink-meta); }
@media (max-width: 819.98px) {
  html[data-page] .pg-rel-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--sp-4); padding-bottom: var(--sp-2); }
  html[data-page] .pg-rel-row > li { flex: 0 0 58%; scroll-snap-align: start; }
}
