/* The reading pages (S41): Support, Privacy, Contact, Press and the 404 page, on the family's ground (orbilla by day,
   night by night). Flat and typographic: type, hairlines and the ground; Orbilla only where it has a reason (the 404
   page, Contact's close), in its pool of light. Tokens only, no new colours; every class starts with pg-.
   Loaded after site.css from each page's <!--head--> block (support.css and press.css after this file). Without
   JavaScript, or with Reduce Motion, every page is complete and still. Spec: docs/DESIGN-SYSTEM.md, docs/S41-FINISH.md */

/* ---------- 1. The first screen: the title large and left, one line under it, the way into the page ---------- */
/* <section class="page-head pg-head"><div class="wrap pg-head-in"><div class="pg-head-copy">breadcrumb, h1, lede,
   actions, fine</div>(<div class="pg-head-way">the page's own index</div>)</div></section>. With a way beside it the
   title takes five columns and the way seven; without one the title runs the full measure. */
.pg-head { padding: calc(var(--nav-h) + clamp(32px, 6vw, 96px)) 0 clamp(48px, 6vw, 96px); }
.pg-head-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px clamp(40px, 6vw, 104px); align-items: start; }
.pg-head-in:has(> .pg-head-way) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.pg-head-copy { display: grid; justify-items: start; }
.pg-head .breadcrumb { margin: -10px 0 10px; }   /* the crumbs' 44 px targets, the words where the eye expects them */
.pg-head h1 { max-width: 11ch; font-size: clamp(44px, 5.6vw, 80px); }
.pg-head .lede { max-width: 40ch; margin-top: clamp(14px, 1.4vw, 20px); }
.pg-head .lede a { color: var(--accent); }
.pg-head .actions { margin-top: 28px; }
.pg-head .fine { max-width: 44ch; margin-top: 16px; }
/* The way in starts on the title's first line, so the two read as one screen. */
.pg-head-way { display: grid; gap: 12px; padding-top: 44px; }
.pg-head-way .label { display: flex; align-items: center; gap: 10px; }
/* Privacy's way in: the two policies, each a row with its app's icon. */
.pg-policies a { min-height: 84px; font-size: 22px; }
.pg-policies span { display: inline-flex; align-items: center; gap: 16px; }
.pg-policies img { flex: none; width: 44px; height: 44px; border-radius: 10px; outline: 1px solid var(--rule); outline-offset: -1px; }
@media (max-width: 699px) { .pg-policies a { min-height: 68px; font-size: 19px; } .pg-policies img { width: 36px; height: 36px; border-radius: 8px; } }
@media (max-width: 900px) {
  .pg-head-in:has(> .pg-head-way) { grid-template-columns: minmax(0, 1fr); }
  .pg-head-way { padding-top: 0; }
}
@media (max-width: 699px) {
  .pg-head { padding-top: calc(var(--nav-h) + 20px); padding-bottom: 40px; }
  .pg-head-in { gap: 40px; }
  .pg-head h1 { font-size: 42px; max-width: 12ch; }   /* h1's smallest step; the lede keeps its own, 19 px */
  .pg-head .actions { margin-top: 24px; }
}

/* ---------- 2. A page's own index under the header (Privacy): flat, one hairline, the current part marked ---------- */
/* On .jumpbar (site.css). pages.js marks the part in view with aria-current; it is ink with a 2 px line under it,
   the others are muted. No glass: the header above it is the only bar of glass. */
.pg-index { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid var(--rule); }
.pg-index a { position: relative; display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; font-size: 15px; transition: color .3s var(--ease); }
.pg-index a:hover, .pg-index a[aria-current="true"] { background: none; color: var(--text); }
.pg-index a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; border-radius: 1px; background: var(--text); opacity: 0; }
.pg-index a[aria-current="true"]::after { opacity: 1; }
.pg-index li:first-child a { margin-left: -14px; }
.pg-index + .pg-head { padding-top: calc(var(--nav-h) + clamp(28px, 4.4vw, 72px)); }
.pg-jumped { scroll-margin-top: 56px; }   /* an anchor lands under the header and this bar */

/* ---------- 3. Privacy: the family promise, then each policy set to be read ---------- */
.pg-promise h2 { max-width: 16ch; }
.pg-creed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 56px); margin-top: clamp(32px, 4vw, 56px); }
.pg-creed > div { padding-top: 20px; border-top: 1px solid var(--rule); }
.pg-creed dt { margin-bottom: 10px; font: 500 clamp(22px, 2vw, 28px)/1.14 var(--serif); letter-spacing: -.022em; font-variation-settings: var(--serif-set); text-wrap: balance; }
.pg-creed dd { max-width: 34ch; color: var(--muted); }
.pg-promise-note { max-width: 66ch; margin-top: clamp(32px, 4vw, 48px); color: var(--muted); }
@media (max-width: 760px) { .pg-creed { grid-template-columns: minmax(0, 1fr); gap: 24px; } .pg-creed > div { padding-top: 16px; } }

/* A policy: its name beside it, staying in view while the words scroll; each policy starts on its own hairline. */
.pg-cols { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(32px, 5vw, 80px); align-items: start; padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--rule); }
.pg-aside { position: sticky; top: calc(var(--nav-h) + 49px + 32px); display: grid; gap: 20px; justify-items: start; }
.pg-aside h2 { max-width: 10ch; font-size: clamp(32px, 3.2vw, 44px); }
.pg-appicon { width: 56px; height: 56px; border-radius: 13px; outline: 1px solid var(--rule); outline-offset: -1px; }
@media (max-width: 860px) {
  .pg-cols { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pg-aside { position: static; gap: 14px; }
  .pg-aside h2 { max-width: 14ch; font-size: clamp(32px, 8.2vw, 36px); }
  .pg-appicon { width: 48px; height: 48px; border-radius: 11px; }
}
/* Legal text is read closely: a measure of about 66 characters, nearly the full ink, clear steps from h2 to h3 to the
   words. The words never change here; only the markup round them. */
.pg-legal.prose { max-width: 31em; }   /* 527 px: a median of 68 characters a line at 17 px, measured on the built page (brief: 62 to 70) */
.pg-legal :is(p, li, dd) { color: color-mix(in srgb, var(--text) 82%, var(--muted)); }
.pg-legal > .fine { margin-bottom: 1.6em; color: var(--muted); }
.pg-legal .fine a { color: var(--accent); }
.pg-legal h3 { font-size: clamp(22px, 1.8vw, 24px); line-height: 1.2; }

/* A policy section as a fold: open in the HTML, so the page is complete without pages.js. Wide screens: the summary is
   a plain heading and the fold stays open. A phone or tablet: pages.js closes all but the first two, the heading is
   the summary, and a chevron says it opens. */
.pg-fold { width: 100%; }
.pg-fold > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; }
.pg-fold > summary::-webkit-details-marker { display: none; }
.pg-fold > summary > * { margin: 0; }
@media (min-width: 861px) {
  .prose .pg-fold { margin-top: 0; }
  .prose .pg-fold > summary { display: block; min-height: 0; padding: 0; cursor: text; pointer-events: none; }
  .prose .pg-fold > summary > h3 { margin-top: 2.1em; }
  .prose .pg-fold > p { margin-top: .55em; }
  .prose .pg-fold > p + p { margin-top: 1em; }
}
@media (max-width: 860px) {
  .prose .pg-fold { margin-top: 1.6em; }
  .prose .pg-fold + .pg-fold { margin-top: 0; }
  .prose .pg-fold > summary { padding: 12px 0; border-top: 1px solid var(--rule); }
  .prose .pg-fold > summary > h3 { font-size: 22px; }
  .prose .pg-fold > p { margin-top: .2em; }
  .prose .pg-fold > p:last-child { padding-bottom: 20px; }
  .prose .pg-fold:last-child { border-bottom: 1px solid var(--rule); }
  .pg-fold > summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); rotate: 45deg; translate: -4px -3px; transition: rotate .4s var(--ease), translate .4s var(--ease), border-color .3s var(--ease); }
  .pg-fold > summary:hover::after { border-color: var(--text); }
  .pg-fold[open] > summary::after { rotate: -135deg; translate: -4px 3px; }
}

/* ---------- 4. Questions (Support): a calm open and closed state ---------- */
/* On .faq (site.css, whose chevron turn is kept as it was): the chevron is muted at rest and ink under the pointer and
   while open. No new motion here (rule 9: motion is its own pass, docs/S41-MOTION.md). */
.faq summary:hover::after, .faq details[open] > summary::after { border-color: var(--text); }
.faq summary:focus-visible { outline-offset: 2px; }

/* ---------- 5. Contact: the ways to write as a ledger, beside the title ---------- */
.pg-ways > div { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 6px clamp(24px, 3vw, 40px); padding: clamp(14px, 1.5vw, 22px) 0; }   /* at 1024 x 768 all four addresses show above the fold */
.pg-ways dt { font-size: clamp(22px, 1.7vw, 24px); line-height: 1.2; letter-spacing: -.016em; }
.pg-ways dd { display: grid; gap: 4px; justify-items: start; }
.pg-ways dd p { color: var(--muted); }
.pg-ways dd p a { color: var(--accent); }
.pg-ways .link-arrow { overflow-wrap: anywhere; }
.pg-before { display: grid; gap: 10px; max-width: 62ch; margin-top: 28px; }
.pg-before p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.pg-before a { color: var(--accent); }
@media (max-width: 620px) { .pg-ways > div { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 18px 0; } }

/* ---------- 6. A family closing: one line, the way onward, centred on the ground ---------- */
.pg-close { padding-block: var(--space); }
.pg-close-in, .pg-close-words { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.pg-close h2 { max-width: 18ch; }
.pg-close .lede { max-width: 44ch; margin-top: 16px; }
.pg-close .actions { justify-content: center; margin-top: 32px; }
.pg-close .related { justify-content: center; margin-top: 36px; }
/* Orbilla closes Contact: small, in its own pool of light, above the line. */
.pg-close-orbi { width: clamp(132px, 13vw, 176px); margin-bottom: clamp(20px, 2.4vw, 32px); }
.pg-close-orbi .orbi { cursor: pointer; }
@media (max-width: 699px) { .pg-close { padding-block: 72px 80px; } .pg-close .related { margin-top: 28px; } }

/* ---------- 7. The 404 page: one screen. Orbilla looks about; the lost page rests on its orbit ---------- */
.pg-lost { display: grid; align-items: center; min-height: min(100svh, 920px); padding: calc(var(--nav-h) + 32px) 0 64px; }
.pg-lost-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(32px, 5vw, 80px); align-items: center; }
.pg-lost-copy { display: grid; justify-items: start; }
.pg-lost h1 { max-width: 11ch; margin-top: 12px; font-size: clamp(44px, 5.6vw, 80px); }
.pg-lost .lede { max-width: 40ch; margin-top: 16px; }
.pg-lost .index { max-width: 600px; margin-top: 36px; }
.pg-lost .index-main img { box-shadow: none; outline: 1px solid var(--rule); outline-offset: -1px; }   /* an icon is a flat file on the ground */
.pg-lost .related { margin-top: 20px; }
.pg-lost-fig { position: relative; width: min(440px, 100%); aspect-ratio: 1; margin-inline: auto; }
.pg-lost-fig > .lit { position: absolute; inset: 12%; }
.pg-lost-fig .orbi { cursor: pointer; }
.pg-lost-fig > .orbit-path { left: -8%; right: -8%; top: 30%; height: 44%; }
.pg-page { position: absolute; right: -2%; top: 58%; width: 17%; rotate: 24deg; pointer-events: none; }
.pg-page img { width: 100%; height: auto; }
@media (max-width: 900px) {
  .pg-lost { min-height: 0; padding-bottom: 72px; }
  .pg-lost-in { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pg-lost-fig { order: -1; width: min(240px, 62%); margin-inline: 0; }
}
@media (max-width: 699px) {
  .pg-lost { padding-top: calc(var(--nav-h) + 12px); }
  .pg-lost h1 { font-size: 42px; }
  .pg-lost .index { margin-top: 22px; }
  .pg-lost-in { gap: 12px; }
  .pg-lost-fig { width: min(156px, 42%); }   /* small enough that the line and the ways onward come with it on a phone */
}

/* ---------- Reduce Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .pg-index a, .pg-fold > summary::after, .faq summary::after { transition: none; }
}
