/* Cortooms · Van Otterdijk: the rebuilt site.
   Night (peat) for the rings, paper (sand) for reading. Amber for the father's side, heather for the mother's
   side, always together with a second cue (left/right, round/diamond, hatched/dotted).
   CSP: same origin only, no inline styles; every style lives here. */

@font-face { font-family: "Fraunces"; src: url("fonts/Fraunces-Roman-latin.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/Fraunces-Italic-latin.woff2") format("woff2"); font-weight: 300 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/SourceSerif4-Roman-latin.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/SourceSerif4-Italic-latin.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Proza Libre"; src: url("fonts/ProzaLibre-Regular-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Proza Libre"; src: url("fonts/ProzaLibre-SemiBold-latin.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #f5f0e6; --paper-2: #ece5d6; --paper-3: #e2d8c4;
  --ink: #1c1713; --ink-2: #554a40; --ink-3: #8a7d70; --rule: #d6cbb7;
  --night: #110d0a; --night-2: #1b1511; --night-3: #2a211a; --glow: #fff1d6; --on-night: #efe6d6; --on-night-2: #b9ab98;
  --amber: #9b5a12; --amber-l: #f0b860; --heather: #7a4a92; --heather-l: #cda0e2;
  --accent: #b2451f;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Proza Libre", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px; --text: 40rem;
  --r: 14px;
  --shadow: 0 1px 2px rgba(40, 28, 16, .06), 0 8px 30px -12px rgba(40, 28, 16, .25);
  /* fixed fallbacks for colour mixes (browsers older than Chrome 111 / Safari 16.2 / Firefox 113 drop color-mix();
     each declaration that mixes is preceded by one with the matching token below, precomputed from the same inputs) */
  --fb-paper-86: rgba(245, 240, 230, .86); --fb-paper-70: rgba(245, 240, 230, .7); --fb-rule-60: rgba(214, 203, 183, .6);
  --fb-ink-7: rgba(28, 23, 19, .07); --fb-ink-12: rgba(28, 23, 19, .12);
  --fb-accent-25: rgba(178, 69, 31, .25); --fb-accent-45: rgba(178, 69, 31, .45);
  --fb-amber-86: #a86f30; --fb-amber-66: #ba8d5a; --fb-amber-46: #ccab84; --fb-amber-32: #d8c0a2; --fb-amber-16: #e7d8c4; --fb-amber-12: #eadecd;
  --fb-heather-86: #8b619e; --fb-heather-66: #a482af; --fb-heather-46: #bca4bf; --fb-heather-32: #cebbcb; --fb-heather-16: #e1d5d9; --fb-heather-12: #e6dcdc;
  /* currentColor mixed with transparent cannot be precomputed: one neutral grey that gives the same tint over the
     paper (dark ink) and over the night (light text); its alpha is about 1.9 x the share of currentColor */
  --fb-cur-9: rgba(132, 126, 118, .17); --fb-cur-12: rgba(132, 126, 118, .23); --fb-cur-13: rgba(132, 126, 118, .25); --fb-cur-35: rgba(132, 126, 118, .67);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #16120e; --paper-2: #1e1813; --paper-3: #2a221b;
    --ink: #ede4d4; --ink-2: #c0b3a1; --ink-3: #8e8273; --rule: #3a3028;
    --amber: #f0b860; --heather: #cda0e2; --accent: #ef8a5d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .6);
    --fb-paper-86: rgba(22, 18, 14, .86); --fb-paper-70: rgba(22, 18, 14, .7); --fb-rule-60: rgba(58, 48, 40, .6);
    --fb-ink-7: rgba(237, 228, 212, .07); --fb-ink-12: rgba(237, 228, 212, .12);
    --fb-accent-25: rgba(239, 138, 93, .25); --fb-accent-45: rgba(239, 138, 93, .45);
    --fb-amber-86: #d1a155; --fb-amber-66: #a68044; --fb-amber-46: #7a5e34; --fb-amber-32: #5c4728; --fb-amber-16: #392d1b; --fb-amber-12: #302618;
    --fb-heather-86: #b38cc4; --fb-heather-66: #8f709a; --fb-heather-46: #6a5370; --fb-heather-32: #513f52; --fb-heather-16: #332930; --fb-heather-12: #2c2327;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #16120e; --paper-2: #1e1813; --paper-3: #2a221b;
  --ink: #ede4d4; --ink-2: #c0b3a1; --ink-3: #8e8273; --rule: #3a3028;
  --amber: #f0b860; --heather: #cda0e2; --accent: #ef8a5d;
  --fb-paper-86: rgba(22, 18, 14, .86); --fb-paper-70: rgba(22, 18, 14, .7); --fb-rule-60: rgba(58, 48, 40, .6);
  --fb-ink-7: rgba(237, 228, 212, .07); --fb-ink-12: rgba(237, 228, 212, .12);
  --fb-accent-25: rgba(239, 138, 93, .25); --fb-accent-45: rgba(239, 138, 93, .45);
  --fb-amber-86: #d1a155; --fb-amber-66: #a68044; --fb-amber-46: #7a5e34; --fb-amber-32: #5c4728; --fb-amber-16: #392d1b; --fb-amber-12: #302618;
  --fb-heather-86: #b38cc4; --fb-heather-66: #8f709a; --fb-heather-46: #6a5370; --fb-heather-32: #513f52; --fb-heather-16: #332930; --fb-heather-12: #2c2327;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--serif); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.on-dark { background: var(--night); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
main:focus, main:focus-visible, section[tabindex]:focus, li[tabindex]:focus, h1[tabindex="-1"]:focus { outline: none; }   /* h1: the heading takes the focus after a link (app.ts focusHeading) */
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; margin: 0; font-variation-settings: "SOFT" 40; }
p { margin: 0 0 1em; }
.noscript { padding: 2rem; font-family: var(--sans); }
.boot { position: fixed; inset: 0; background: var(--night); display: grid; place-items: center; }
.boot span { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 241, 214, .35); animation: breathe 1.8s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.5); opacity: .3; } }
/* when something fails (src/site/app.ts failed(), src/site/session.ts): said in words, with what to do */
.failed { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1.25rem; box-sizing: border-box; }
.failed-in { max-width: 34rem; text-align: center; }
.failed-t.old-other { margin-top: 1.2rem; color: var(--ink-2); }   /* a browser too old: the same sentence in the other languages (src/site/old-browser.ts) */
.failed-t { font: 400 1.25rem/1.5 var(--serif); color: var(--ink); margin: 0 0 1.4rem; }
.failed-act { margin: 0; }
.failed .pill { min-height: 2.75rem; padding-left: 1.4em; padding-right: 1.4em; font-size: 1rem; }
.lo-a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; white-space: nowrap; }
.lo-band .lo-a, .failed-t .lo-a { display: inline-block; padding: .35rem .2rem; }
.lo-band { position: fixed; z-index: 39; left: 0; right: 0; top: 0; padding: .85rem 3.25rem; background: var(--paper); color: var(--ink); border-bottom: 2px solid var(--accent); box-shadow: 0 2px 12px rgba(0, 0, 0, .18); text-align: center; }
.lo-band-t { margin: 0; font: 500 1rem/1.5 var(--sans); }
.lo-band .lo-again { margin-top: .5rem; }
/* under the masthead (z-index 40, src/site/app/failure.ts places it), never over it; its close button, 44 px */
.lo-x { position: absolute; right: .3rem; top: .3rem; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-2); font: 400 1.6rem/1 var(--sans); cursor: pointer; }
.lo-x:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (hover: hover) { .lo-x:hover { color: var(--ink); background: var(--rule); } }
@media (forced-colors: active) { .lo-band { border-bottom-color: CanvasText; } .lo-x { color: ButtonText; } }
/* the page pushed down by the band's height; behind the masthead the strip is the page's own ground (dark where the
   page opens dark), so that the masthead's words keep their contrast */
body.with-band { padding-top: var(--lo-h, 0px); }
body.with-band::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: var(--lo-h, 0px); }
body.with-band.dark-top::before, body.with-band.on-dark::before { background: var(--night); }
@media print {
  .lo-band { display: none; }
  body.with-band { padding-top: 0; }
  body.with-band::before { display: none; }
  /* the masthead prints as the site's name and whose ancestors these are (step 12), at the top of the first sheet */
  .mast { position: static; padding: 0 0 1rem; background: none !important; box-shadow: none !important; color: #000 !important; }
  .menu, .lang, .acct, .menu-btn, .ctr-ico, .ctr-pop, .skip { display: none !important; }
  .ctr-btn { border: 0 !important; padding: 0 !important; }
}
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; }
.skip:focus { left: 8px; background: var(--paper); color: var(--ink); padding: .5em 1em; border: 0; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- small parts ---------- */
.kicker { font: 600 .74rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .9rem; }
.dark .kicker, .ink .kicker { color: var(--on-night-2); }
.kicker a { text-decoration: none; }
.lede { font-size: 1.18rem; line-height: 1.55; color: var(--ink-2); max-width: 38rem; }
.pill { display: inline-flex; align-items: center; gap: .45em; padding: .62em 1.1em; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 .9rem/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s, background .2s; }
.pill:hover { transform: translateY(-1px); }
.pill.ghost { background: transparent; color: inherit; border-color: currentColor; }
.pill .ico { width: 1em; height: 1em; }
.ico { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico path[d^="M7 4.5v15"] { fill: currentColor; stroke: none; }
.conf { display: inline-block; font: 600 .68rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: .32em .55em; border-radius: 4px; border: 1px solid currentColor; vertical-align: .15em; color: var(--ink-2); }
.conf.inferred { border-style: dashed; }
.conf.lead { border-style: dotted; border-width: 2px; }
.conf.family { border-color: var(--accent); color: var(--accent); }
.tag { font: 600 .68rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: .3em .5em; border-radius: 4px; background: rgba(255, 241, 214, .12); }
.side-mark { width: .95em; height: .95em; vertical-align: -.12em; margin-right: .4em; flex: none; }
.side-mark .sm-bg { fill: none; stroke: currentColor; stroke-width: 1.2; }
.side-mark .sm-tex { stroke: currentColor; fill: currentColor; stroke-width: 1.1; }
.side-mark.pat { color: var(--amber); }
.side-mark.mat { color: var(--heather); }
.dark .side-mark.pat, .ink .side-mark.pat { color: var(--amber-l); }
.dark .side-mark.mat, .ink .side-mark.mat { color: var(--heather-l); }
.side-tag { display: inline-flex; align-items: center; }

.rv { opacity: 0; transform: translateY(22px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ---------- masthead ---------- */
.mast { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.5rem); padding: .9rem clamp(16px, 3vw, 36px); color: var(--ink); transition: background .35s, box-shadow .35s, color .35s; }
.on-dark .mast, .dark-top:not(.scrolled) .mast { color: var(--on-night); }
.dark-top:not(.scrolled) .lang button[aria-pressed="true"] { color: var(--night); background: var(--on-night); }
.scrolled .mast { background: var(--fb-paper-86); background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--rule); color: var(--ink); }   /* floor-ok: a fixed colour before it */
.on-dark.scrolled .mast { background: rgba(17, 13, 10, .94); box-shadow: 0 1px 0 rgba(255, 241, 214, .08); color: var(--on-night); }
/* the map runs under the header from the first pixel, labels and all: there the header always has its dark ground */
.view-kaart .mast { background: rgba(17, 13, 10, .94); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 rgba(255, 241, 214, .08); color: var(--on-night); }
/* a browser without any backdrop blur (Firefox before 103) would show the text scrolling under the header through it:
   there the header's ground is solid */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .scrolled .mast { background: var(--paper); } }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font: 600 1.02rem/1 var(--display); letter-spacing: 0; white-space: nowrap; }
/* the centre line under the site's name (step 12): whose ancestors are on screen, and the switch to another centre.
   It sits under the name, aligned with it, so that the row of pages keeps its width; on a phone it is the second
   line of the masthead's left corner. The button is small to look at, with a finger-sized invisible area. */
.brand-g { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; min-width: 0; flex: 0 1 auto; }
.ctr { position: relative; margin: 0 0 0 calc(26px + .6rem - .7em - 1px); max-width: 100%; font: 500 .8rem/1.25 var(--sans); }
.ctr-only { padding-left: calc(.7em + 1px); opacity: .9; }
.ctr-btn { position: relative; display: inline-flex; align-items: center; gap: .35em; max-width: 100%; padding: .26em .6em .26em .7em; border: 1px solid rgba(132, 126, 118, .9); border: 1px solid color-mix(in srgb, currentColor 55%, transparent); border-radius: 999px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }   /* floor-ok: a fixed colour before it */
.ctr-btn::before { content: ""; position: absolute; inset: -6px -6px -16px; }   /* a finger-sized target (44 px high) */
.ctr-t { min-width: 0; }
.ctr-ico { flex: none; width: .8rem; height: .8rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.ctr.open .ctr-ico { transform: rotate(180deg); }
.ctr.open .ctr-btn { background: var(--fb-cur-12); background: color-mix(in srgb, currentColor 12%, transparent); }   /* floor-ok: a fixed colour before it */
@media (hover: hover) { .ctr-btn:hover { background: var(--fb-cur-12); background: color-mix(in srgb, currentColor 12%, transparent); } }   /* floor-ok: a fixed colour before it */
@media (prefers-contrast: more) { .ctr-btn { border-color: currentColor; } }
.ctr-pop { position: absolute; z-index: 2; top: calc(100% + 12px); left: -.6rem; min-width: 17rem; max-width: min(22rem, calc(100vw - 28px)); padding: .35rem; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); animation: acct-in .18s ease-out; }
.ctr-pop[hidden] { display: none; }
.on-dark .ctr-pop, .dark-top:not(.scrolled) .ctr-pop { background: var(--night-2); color: var(--on-night); border-color: rgba(255, 241, 214, .14); box-shadow: 0 12px 34px -10px rgba(0, 0, 0, .7); }
.ctr-h { margin: .45rem .85rem .35rem; font: 600 .7rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.ctr-pop ul { list-style: none; margin: 0; padding: 0; }
.ctr-a { display: block; min-height: 44px; box-sizing: border-box; padding: .8em .85em; border-radius: 8px; font: 500 .93rem/1.3 var(--sans); text-decoration: none; color: inherit; }
.ctr-a[aria-current="true"] { font-weight: 700; background: var(--fb-cur-9); background: color-mix(in srgb, currentColor 9%, transparent); }   /* floor-ok: a fixed colour before it */
@media (hover: hover) { .ctr-a:hover { background: var(--fb-cur-9); background: color-mix(in srgb, currentColor 9%, transparent); } }   /* floor-ok: a fixed colour before it */
.ctr-a:focus-visible { outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) { .ctr-pop { animation: none; } .ctr-ico { transition: none; } }
@media (forced-colors: active) { .ctr-a[aria-current="true"] { outline: 2px solid CanvasText; outline-offset: -2px; } .ctr-pop { border-color: CanvasText; } }
.ring-mark { width: 26px; height: 26px; fill: none; stroke: currentColor; }
.ring-mark .rm0 { stroke-opacity: .3; } .ring-mark .rm1 { stroke-opacity: .5; } .ring-mark .rm2 { stroke-opacity: .75; }
.ring-mark .rmc { fill: var(--amber-l); stroke: none; }
.menu { margin-left: auto; display: flex; align-items: center; gap: 1.2rem; }
.menu ul { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: .5em .75em; border-radius: 999px; font: 500 .93rem/1 var(--sans); text-decoration: none; opacity: .82; transition: opacity .2s, background .2s; }
.menu a:hover { opacity: 1; background: var(--fb-cur-9); background: color-mix(in srgb, currentColor 9%, transparent); }   /* floor-ok: a fixed colour before it */
.menu a[aria-current="page"] { opacity: 1; background: var(--fb-cur-13); background: color-mix(in srgb, currentColor 13%, transparent); }   /* floor-ok: a fixed colour before it */
.menu-src { display: none !important; }
/* the reader's own links (back to their tree, invite, account): in the phone menu under the pages; on a wide
   screen behind one quiet round button at the far right, which opens a small card */
.menu-acct-g { display: none; }
.acct { position: relative; flex: none; }
.acct-btn { position: relative; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--fb-cur-35); border: 1px solid color-mix(in srgb, currentColor 35%, transparent); border-radius: 50%; background: none; color: inherit; cursor: pointer; opacity: .8; transition: opacity .2s, background .2s; }   /* floor-ok: a fixed colour before it */
.acct-btn::before { content: ""; position: absolute; inset: -4px; }   /* a finger-sized target on a tablet */
.acct-btn:hover, .acct.open .acct-btn { opacity: 1; background: var(--fb-cur-12); background: color-mix(in srgb, currentColor 12%, transparent); }   /* floor-ok: a fixed colour before it */
.acct-ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.acct-pop { position: absolute; top: calc(100% + 10px); right: 0; min-width: 14rem; padding: .35rem; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); animation: acct-in .18s ease-out; }
.acct-pop[hidden] { display: none; }
.on-dark .acct-pop, .dark-top:not(.scrolled) .acct-pop { background: var(--night-2); color: var(--on-night); border-color: rgba(255, 241, 214, .14); box-shadow: 0 12px 34px -10px rgba(0, 0, 0, .7); }
.acct-a { display: block; padding: .72em .85em; border-radius: 8px; font: 500 .93rem/1.2 var(--sans); white-space: nowrap; text-decoration: none; color: inherit; }
.acct-a:hover { background: var(--fb-cur-9); background: color-mix(in srgb, currentColor 9%, transparent); }   /* floor-ok: a fixed colour before it */
.acct-a:focus-visible { outline-offset: -2px; }
@keyframes acct-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .acct-pop { animation: none; } }
.lang { display: flex; border: 1px solid var(--fb-cur-35); border: 1px solid color-mix(in srgb, currentColor 35%, transparent); border-radius: 999px; padding: 2px; }   /* floor-ok: a fixed colour before it */
.lang button { border: 0; background: none; padding: .38em .62em; font: 600 .74rem/1 var(--sans); letter-spacing: .05em; border-radius: 999px; cursor: pointer; opacity: .7; }
.lang button[aria-pressed="true"] { background: currentColor; opacity: 1; }
.lang button[aria-pressed="true"] { color: var(--paper); background: var(--ink); }
.on-dark .lang button[aria-pressed="true"] { color: var(--night); background: var(--on-night); }
/* a language whose texts are on their way (src/site/parts/LangSwitch.tsx): a dotted line under it, and a slow pulse
   only where the reader has not asked for less motion; it ends when the file is there or has failed */
.lang button[aria-busy="true"] { opacity: 1; text-decoration: underline dotted; text-underline-offset: .3em; text-decoration-thickness: 2px; }
@keyframes lang-wait { 50% { opacity: .45; } }
@media (prefers-reduced-motion: no-preference) { .lang button[aria-busy="true"] { animation: lang-wait 1.6s ease-in-out infinite; } }
/* just above the phone menu the row is full (French is the longest): a little less air, never a wrapped item */
.menu ul a { white-space: nowrap; }
@media (min-width: 921px) and (max-width: 1120px) {
  .mast { gap: .7rem; padding-left: 20px; padding-right: 20px; }
  .menu ul { gap: 0; }
  .menu a { padding-left: .55em; padding-right: .55em; }
  .lang button { padding-left: .48em; padding-right: .48em; }
}
@media (min-width: 921px) and (max-width: 1000px) { .menu a { padding-left: .42em; padding-right: .42em; } }
.menu-btn { display: none; border: 0; background: none; width: 44px; height: 44px; cursor: pointer; margin-right: -8px; flex: none; }
.burger { display: grid; gap: 6px; width: 22px; margin: auto; }
.burger i { display: block; height: 1.5px; background: currentColor; transition: transform .3s; }
.menu-open .burger i:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-open .burger i:last-child { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 920px) {
  .menu-btn { display: block; }
  .lang { margin-left: auto; }
  .menu { position: fixed; inset: 0; z-index: -1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2rem; padding: 6rem 2rem 3rem; background: var(--night); color: var(--on-night); opacity: 0; pointer-events: none; transition: opacity .35s; }
  .menu-open .menu { opacity: 1; pointer-events: auto; }
  .menu ul { flex-direction: column; gap: .3rem; }
  .menu a { font: 400 clamp(2rem, 8vw, 2.8rem)/1.1 var(--display); padding: .15em 0; background: none !important; opacity: .85; }
  .menu a[aria-current="page"] { opacity: 1; text-decoration: underline; text-decoration-thickness: 1px; }
  .menu-src { display: block !important; font: 500 1rem/1 var(--sans) !important; opacity: .7; }
  .acct { display: none; }
  .menu-acct-g { display: flex; flex-direction: column; gap: 1.1rem; margin-top: -.6rem; }
  .menu .menu-acct-g a.menu-acct { font: 500 1rem/1 var(--sans); padding: .15em 0; opacity: .7; }
  .menu-open .mast { color: var(--on-night) !important; background: transparent !important; box-shadow: none !important; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu-open .lang button[aria-pressed="true"] { color: var(--night); background: var(--on-night); }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 440px) {
  .mast { padding-left: 14px; padding-right: 12px; }
  .brand { font-size: .9rem; gap: .45rem; }
  .ring-mark { width: 22px; height: 22px; }
  .ctr { margin-left: calc(22px + .45rem - .7em - 1px); font-size: .78rem; }
  .lang button { padding: .34em .5em; }
}

/* ---------- the stage: rings and controls ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; background: var(--night); color: var(--on-night); overflow: hidden; }
.stage { position: absolute; inset: 0; }
.stage-rings { position: absolute; inset: 64px 0 0 0; }
.stage-home .stage-rings { left: 34%; inset-block: 0; }
.rings { position: absolute; inset: 0; }
.rings-cv { display: block; touch-action: manipulation; }
.rings-tip { position: absolute; left: 0; top: 0; z-index: 5; width: max-content; max-width: 270px; padding: .8rem 1rem .75rem; border-radius: 12px; background: rgba(24, 19, 15, .86); border: 1px solid rgba(255, 241, 214, .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 18px 40px -16px #000; font: 400 .86rem/1.4 var(--sans); color: var(--on-night); cursor: pointer; transition: transform .12s ease-out; }
.rings-tip p { margin: 0; }
.rt-k { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-night-2); margin-bottom: .3rem !important; display: flex; align-items: center; }
.rt-n { font: 500 1.12rem/1.2 var(--display); }
.rt-c { font-style: italic; color: var(--on-night-2); }
.rt-v { list-style: none; margin: .4rem 0 0; padding: 0; color: var(--on-night-2); }
.rt-m { color: var(--on-night-2); margin-top: .3rem !important; font-size: .8rem; }
.rt-go { margin-top: .55rem !important; color: var(--amber-l); font-weight: 600; font-size: .8rem; }

.hero-col { position: absolute; z-index: 3; left: clamp(16px, 4vw, 56px); top: 0; bottom: 0; width: min(31%, 460px); display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; padding: clamp(92px, 13vh, 140px) 0 clamp(24px, 5vh, 44px); pointer-events: none; }
.hero-col > * { pointer-events: auto; }
.hero-title h1 { font: 340 clamp(2.8rem, 5.4vw, 5.6rem)/.92 var(--display); letter-spacing: -.035em; font-variation-settings: "SOFT" 100, "WONK" 1; display: flex; flex-direction: column; color: var(--glow); }
.hero-title h1 .amp { font-style: italic; font-weight: 300; color: var(--amber-l); font-size: .55em; margin: .08em 0 .04em .1em; line-height: 1; }
.hero-sub { margin: 1.2rem 0 0; font-size: 1.02rem; line-height: 1.55; color: var(--on-night-2); max-width: 27rem; }
.hero .kicker { color: var(--amber-l); }
@media (max-height: 760px) and (min-width: 861px) { .hero-sub { display: none; } .hero-title h1 { font-size: clamp(2.4rem, 4.6vw, 4.4rem); } }

.stage-side { display: grid; }
.stage-side > * { grid-area: 1 / 1; }
.stage-foot { display: grid; gap: .85rem; align-content: end; transition: opacity .8s; }
.stage-hint { font: 400 .88rem/1.45 var(--sans); color: var(--on-night-2); margin: 0; }
.stage-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 241, 214, .08); border: 1px solid rgba(255, 241, 214, .12); }
.seg-b { border: 0; background: none; color: var(--on-night-2); padding: .55em .95em; border-radius: 999px; font: 600 .82rem/1 var(--sans); cursor: pointer; transition: background .25s, color .25s; }
.seg-b[aria-pressed="true"] { background: var(--glow); color: var(--night); }
.yr-box { display: none; align-items: center; gap: .6rem; flex: 1 1 100%; font: 600 .72rem/1 var(--sans); color: var(--on-night-2); }
.m-year .yr-box { display: flex; }
.yr { flex: 1; accent-color: var(--amber-l); height: 28px; cursor: pointer; }
.hero .pill.ghost { color: var(--on-night); border-color: rgba(255, 241, 214, .3); padding: .55em .95em; font-size: .82rem; }
.alive { font: 400 .9rem/1.5 var(--sans); color: var(--on-night-2); min-height: 4.5em; }
.alive p { margin: 0 0 .35rem; }
.alive-h { color: var(--on-night); }
.alive-y { font: 500 1.6rem/1 var(--display); color: var(--glow); margin-right: .2rem; vertical-align: -.08em; }
.alive a { color: var(--on-night); text-decoration-color: rgba(255, 241, 214, .35); }
.alive-c { font-size: .84rem; }
.legend { font: 400 .84rem/1.4 var(--sans); color: var(--on-night-2); }
.legend summary { cursor: pointer; width: max-content; text-decoration: underline; text-decoration-color: rgba(255, 241, 214, .3); text-underline-offset: .2em; }
.legend[open] { background: rgba(24, 19, 15, .9); padding: .8rem 1rem; border-radius: 12px; border: 1px solid rgba(255, 241, 214, .1); }
.lg { list-style: none; padding: .7rem 0 0; margin: 0; display: grid; gap: .35rem; }
.lg li { display: flex; align-items: center; gap: .55rem; }
.lg-sw { width: 34px; height: 12px; flex: none; }
.lg-sw.pat circle { fill: var(--amber-l); }
.lg-sw.mat path { fill: var(--heather-l); }
.lg-sw.est circle { fill: none; stroke: var(--amber-l); stroke-width: 1.3; }
.lg-sw.empty circle { fill: none; stroke: var(--on-night-2); stroke-dasharray: 1.6 2.2; }
.lg-sw.ln line { stroke: var(--on-night); stroke-width: 1.4; }
.lg-sw.inf line { stroke-dasharray: 5 4; }
.lg-sw.lead line { stroke-dasharray: 1.2 3.2; stroke-linecap: round; }
.lg-p { display: block !important; margin-top: .3rem; }

.intro-box { align-self: end; opacity: 0; pointer-events: none; transition: opacity .8s; }
.intro-on .intro-box { opacity: 1; pointer-events: auto; }
.intro-on .stage-foot { opacity: 0; pointer-events: none; }
.clock { font: 250 clamp(4.5rem, 9vw, 8.5rem)/.9 var(--display); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.04em; color: var(--glow); margin: 0; font-variation-settings: "SOFT" 100; }
.clock-ctx { min-height: 3em; margin: .8rem 0 1rem; font: 400 1rem/1.4 var(--sans); color: var(--on-night-2); }
.clock-ctx.flash { animation: ctxIn 1.2s ease-out; }
@keyframes ctxIn { from { opacity: 0; transform: translateY(8px); } }
.skip-intro { font-size: .8rem !important; }
.scroll-cue { position: absolute; z-index: 3; right: clamp(16px, 4vw, 56px); bottom: clamp(24px, 5vh, 48px); display: flex; align-items: center; gap: .7rem; font: 600 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--on-night-2); transition: opacity .6s; }
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(var(--on-night-2), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--glow); animation: drip 2.4s ease-in-out infinite; }
@keyframes drip { to { top: 110%; } }
/* while the rings play their opening, the cue to scroll is hidden. .intro-on is set on the rings (.stage) and the side
   column at once; .stage comes before the cue in .hero, so a sibling selector does it without :has() */
.intro-on ~ .scroll-cue { opacity: 0; pointer-events: none; }

.tree-hero .stage-rings { inset: 56px 0 0 30%; }
.stage-title h1 { font: 340 clamp(2.4rem, 4.4vw, 4.2rem)/.98 var(--display); letter-spacing: -.03em; color: var(--glow); font-variation-settings: "SOFT" 100; }
.stage-title .kicker a { color: var(--amber-l); }

@media (max-width: 860px) {
  .hero { min-height: 0; display: flex; flex-direction: column; }
  .hero-col { display: contents; }
  .hero-title { order: 1; padding: 92px 18px 4px; }
  .stage { position: relative; inset: auto; order: 2; }
  .stage-home .stage-rings, .tree-hero .stage-rings, .stage-rings { position: relative; inset: auto; width: 100%; aspect-ratio: 1; }
  .stage-side { order: 3; padding: 4px 18px 32px; }
  .hero-title h1 { font-size: clamp(2.7rem, 12vw, 4.2rem); flex-direction: row; flex-wrap: wrap; gap: 0 .22em; align-items: baseline; }
  .hero-title h1 .amp { margin: 0; font-size: .7em; }
  .hero-sub { font-size: 1rem; margin-top: .9rem; }
  .clock { font-size: 3.6rem; }
  .clock-ctx { min-height: 2.8em; margin: .4rem 0 .6rem; font-size: .9rem; }
  .scroll-cue { display: none; }
  .rings-tip { max-width: 230px; }
}

/* ---------- bands ---------- */
.band { position: relative; padding: clamp(56px, 7.5vw, 104px) 0; }
.band.paper { background: var(--paper); color: var(--ink); }
.band.ink { background: var(--night); color: var(--on-night); }
.band.ink .lede { color: var(--on-night-2); }
.band-in { width: min(var(--wrap), calc(100% - 36px)); margin: 0 auto; }
.band-in.narrow { width: min(46rem, calc(100% - 36px)); }
.band-h { margin-bottom: clamp(36px, 5vw, 64px); max-width: 46rem; }
.band-h h2 { font: 360 clamp(2.4rem, 5vw, 4.2rem)/1 var(--display); letter-spacing: -.03em; margin-bottom: 1.2rem; font-variation-settings: "SOFT" 100; }
.band-more { margin-top: 2.5rem; }
.ink .pill { background: var(--glow); color: var(--night); }
.hero + .band::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 90px; background: linear-gradient(var(--night), transparent); pointer-events: none; opacity: 0; }

/* grandparents */
.gps .couple { margin-bottom: clamp(40px, 6vw, 80px); }
.couple-cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 40px); }
.couple-cards.one { grid-template-columns: minmax(0, 36rem); justify-content: center; }
.gp { display: grid; grid-template-rows: auto 1fr; background: var(--paper-2); border-radius: var(--r); overflow: hidden; }
.gp-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-3); }
.gp-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) sepia(.28) contrast(1.05); transition: transform 1.6s cubic-bezier(.2, .7, .2, 1), filter .6s; }
.gp:hover .gp-img img { transform: scale(1.04); filter: grayscale(.6) sepia(.4) contrast(1.05); }
.gp-b { padding: clamp(18px, 2.4vw, 30px); }
.gp-k { font: 600 .72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; margin-bottom: .9rem; }
.gp h3 { font: 400 clamp(1.9rem, 3.3vw, 2.8rem)/1 var(--display); letter-spacing: -.02em; font-variation-settings: "SOFT" 100; }
.gp h3 a { text-decoration: none; }
.gp-full { display: block; font: 400 1rem/1.35 var(--serif); letter-spacing: 0; color: var(--ink-2); margin-top: .5rem; }
.gp-y { font: 500 1rem/1 var(--sans); color: var(--ink-3); margin: .7rem 0 1rem; font-variant-numeric: lining-nums; }
.gp-t { color: var(--ink-2); font-size: 1rem; }
.gp-a { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 0; }
.gp.pat { border-top: 3px solid var(--amber); }
.gp.mat { border-top: 3px dotted var(--heather); }
.couple-wed { text-align: center; margin: 1.2rem 0 0; font: italic 400 1.05rem/1.4 var(--display); color: var(--ink-2); display: flex; align-items: center; justify-content: center; gap: .6rem; }
.ring-ico { width: 30px; height: 18px; position: relative; display: inline-block; }
.ring-ico::before, .ring-ico::after { content: ""; position: absolute; top: 1px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--ink-3); }
.ring-ico::before { left: 0; } .ring-ico::after { left: 10px; }
@media (max-width: 700px) { .couple-cards { grid-template-columns: 1fr; } }

/* around these days */
.days { padding-top: 0; }
.days-l { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.day { background: var(--paper-2); border-radius: var(--r); padding: 1.2rem 1.3rem 1.1rem 1.1rem; display: grid; grid-template-columns: 4.2rem 1fr; gap: 1rem; border: 1px solid transparent; }
.day.today { background: var(--paper); border-color: var(--accent); }
.day-d { display: grid; justify-items: center; align-content: start; margin: 0; text-align: center; }
.day-n { font: 300 2.6rem/1 var(--display); font-variant-numeric: lining-nums; }
.day-m { font: 600 .7rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-top: .35rem; }
.day-y { font: 400 .82rem/1 var(--display); color: var(--ink-3); margin-top: .55rem; font-variant-numeric: lining-nums; padding-top: .5rem; border-top: 1px solid var(--rule); width: 2.6rem; }
.day-w { font: 600 .7rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: .15rem 0 .45rem; }
.day-t { margin: 0 0 .5rem; font-size: 1rem; line-height: 1.45; }
.day-ev { font-style: italic; }
.day-ago { margin: 0; font: 400 .8rem/1.3 var(--sans); color: var(--ink-3); }
.more { margin-top: 1rem; color: var(--ink-3); font: 400 .9rem/1.4 var(--sans); }

/* stories strip */
.stories-b { overflow: hidden; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 340px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 0 18px; margin-right: calc(-1 * (100vw - min(var(--wrap), 100vw - 36px)) / 2); padding-right: 36px; scrollbar-width: thin; scrollbar-color: rgba(255, 241, 214, .25) transparent; }
.sc { scroll-snap-align: start; position: relative; display: flex; flex-direction: column; text-decoration: none; border-radius: var(--r); overflow: hidden; background: var(--night-2); min-height: 470px; isolation: isolate; }
.sc-img { position: absolute; inset: 0; z-index: -1; }
.sc-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) sepia(.3) brightness(.66) contrast(1.18); transition: transform 2s cubic-bezier(.2, .7, .2, 1), filter .6s; }
.sc:hover .sc-img img { transform: scale(1.06); filter: grayscale(.5) sepia(.45) brightness(.85); }
.sc::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17, 13, 10, .25) 0%, rgba(17, 13, 10, 0) 22%, rgba(17, 13, 10, .15) 40%, rgba(17, 13, 10, .94) 74%); }
.sc-b { margin-top: auto; padding: 1.4rem 1.3rem 1.3rem; display: grid; gap: .55rem; color: var(--on-night); }
.sc-k { font: 600 .68rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--on-night-2); display: flex; align-items: center; }
.sc-t { font: 400 1.6rem/1.05 var(--display); letter-spacing: -.015em; font-variation-settings: "SOFT" 100; }
.sc-l { font-size: .95rem; line-height: 1.45; color: #d9cdbb; }
.sc-m { font: 500 .78rem/1.3 var(--sans); color: var(--on-night-2); }
.sc.pat { border-bottom: 3px solid var(--amber-l); }
.sc.mat { border-bottom: 3px dotted var(--heather-l); }

/* themes */
.th-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 32px); }
.thc { display: grid; grid-template-rows: auto 1fr; text-decoration: none; }
.thc-img { aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--paper-3); display: block; }
.thc-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.9) sepia(.3) contrast(1.05); transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); }
.thc:hover .thc-img img { transform: scale(1.05); }
.thc-b { display: grid; gap: .5rem; padding-top: 1.1rem; align-content: start; }
.thc-n { font: 400 .85rem/1 var(--display); color: var(--accent); font-variant-numeric: lining-nums; }
.thc-t { font: 400 1.55rem/1.1 var(--display); letter-spacing: -.01em; }
.thc-l { color: var(--ink-2); font-size: .98rem; line-height: 1.5; }
.thc-p { font: 500 .78rem/1 var(--sans); color: var(--ink-3); }
.thc.first { grid-column: span 2; grid-row: span 2; }
.thc.first .thc-img { aspect-ratio: 16 / 10; }
.thc.first .thc-t { font-size: clamp(1.9rem, 3vw, 2.6rem); }
@media (max-width: 860px) { .th-grid { grid-template-columns: 1fr 1fr; } .thc.first { grid-column: span 2; grid-row: auto; } }
@media (max-width: 520px) { .th-grid { grid-template-columns: 1fr; } .thc.first { grid-column: auto; } }

/* how it was made */
.how { padding-top: 0; }
.how h2 { font: 400 2rem/1.1 var(--display); margin-bottom: 1rem; }
.how p { color: var(--ink-2); }
.how-k { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .7rem; color: var(--ink-2); }
.how-k li { display: flex; gap: .8rem; align-items: baseline; }
.how-k i { width: 40px; flex: none; border-top: 2px solid var(--ink); transform: translateY(-.3em); }
.how-k .inferred i { border-top-style: dashed; }
.how-k .lead i { border-top-style: dotted; border-top-width: 3px; }
.how-k b { font-family: var(--sans); font-weight: 600; font-size: .92rem; }
.pill.dark-ink { color: var(--ink); }

/* connected families: the other trees on this site joined to this one (home.js), quiet, like the days above */
.linked { padding-top: 0; }
.linked .band-h { margin-bottom: 1.5rem; }
.linked .band-h h2 { font: 400 2rem/1.1 var(--display); letter-spacing: -.01em; margin-bottom: .6rem; font-variation-settings: "SOFT" 40; }
.linked .lede { font-size: 1.05rem; margin: 0; }
.lk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 12px; }
.lk { display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; align-items: baseline; align-content: start; background: var(--paper-2); border-radius: var(--r); padding: 1.2rem 1.3rem 1.25rem; text-decoration: none; border: 1px solid transparent; transition: border-color .2s; }
.lk:hover { border-color: var(--rule); }
.lk-t { grid-column: 1; grid-row: 1; font: 400 1.45rem/1.15 var(--display); letter-spacing: -.01em; }
.lk-l { grid-column: 1; grid-row: 2; color: var(--ink-2); font-size: 1rem; line-height: 1.45; }
.lk-go { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 400 1.3rem/1 var(--display); color: var(--ink-3); transition: transform .2s, color .2s; }
.lk:hover .lk-go { transform: translateX(3px); color: var(--accent); }

/* the tree: generations */
.gens .band-h { margin-bottom: 2rem; }
.gen { border-top: 1px solid var(--rule); padding: 2rem 0 2.4rem; display: grid; grid-template-columns: 15rem 1fr; gap: 2rem; }
.gen-h h2 { font: 400 1.7rem/1.1 var(--display); margin-bottom: .4rem; }
.gen-h p { font: 400 .88rem/1.4 var(--sans); color: var(--ink-3); margin: 0 0 .2rem; }
.gen-dna { font-style: italic; }
.gen-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.gen-side { font: 600 .72rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; margin-bottom: .8rem; }
.gen-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.pp a { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: baseline; padding: .45rem .6rem; margin: 0 -.6rem; border-radius: 8px; text-decoration: none; transition: background .2s; }
.pp a:hover { background: var(--paper-2); }
.pp-n { font-size: 1.02rem; }
.pp-s { color: var(--accent); font-size: .8em; margin-left: .35em; }
.pp-y { font: 400 .85rem/1 var(--sans); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pp .conf { grid-column: 1; justify-self: start; }
.gen-col.pat { border-left: 2px solid var(--amber); padding-left: 1.2rem; }
.gen-col.mat { border-left: 2px dotted var(--heather); padding-left: 1.2rem; }
.dna { margin-top: 3rem; padding: 1.8rem 2rem; background: var(--paper-2); border-radius: var(--r); max-width: 46rem; color: var(--ink-2); }
.dna h3 { font: 400 1.4rem/1.2 var(--display); color: var(--ink); margin-bottom: .8rem; }
@media (max-width: 860px) { .gen { grid-template-columns: 1fr; gap: 1rem; } }
@media (max-width: 560px) { .gen-cols { grid-template-columns: 1fr; } }

/* stories page */
.page { width: min(var(--wrap), calc(100% - 36px)); margin: 0 auto; padding: clamp(110px, 14vw, 170px) 0 clamp(60px, 8vw, 120px); }
.page-h { max-width: 46rem; margin-bottom: clamp(40px, 6vw, 72px); }
.page-h h1 { font: 340 clamp(2.8rem, 6vw, 5rem)/1 var(--display); letter-spacing: -.035em; margin-bottom: 1.2rem; font-variation-settings: "SOFT" 100; }
.st-side { margin-bottom: 4rem; }
.st-side-h { font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; margin-bottom: 1.4rem; padding-bottom: .8rem; border-bottom: 1px solid var(--rule); }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.st-grid .sc { min-height: 400px; height: 100%; }
.st-grid > div:first-child { grid-column: span 2; }
.st-grid .sc.big .sc-t { font-size: 2.2rem; }
@media (max-width: 600px) { .st-grid > div:first-child { grid-column: auto; } }

/* ---------- footer ---------- */
.foot { background: var(--night); color: var(--on-night-2); padding: 64px 0 calc(48px + env(safe-area-inset-bottom)); font: 400 .9rem/1.6 var(--sans); }
.foot-in { width: min(var(--wrap), calc(100% - 36px)); margin: 0 auto; max-width: 40rem; margin-left: max(18px, (100% - var(--wrap)) / 2); }
.foot-t { display: flex; align-items: center; gap: .6rem; font: 500 1.1rem/1 var(--display); color: var(--on-night); }
.foot a { color: var(--on-night); }

/* ---------- source pop-over (from core.js) ---------- */
/* the numbered sources after a sentence: they wrap like words (a long row once pushed the text off a phone screen) */
.srcs { white-space: normal; overflow-wrap: anywhere; }
.src { display: inline-grid; place-items: center; min-width: 1.35em; height: 1.35em; padding: 0 .25em; margin-left: .15em; border-radius: 999px; background: var(--paper-3); color: var(--ink-2); font: 600 .62em/1 var(--sans); text-decoration: none; vertical-align: .35em; transition: background .2s, color .2s; }
.src:hover { background: var(--ink); color: var(--paper); }
/* A stack of sources. Closed: one disc with the number of sources on it, lying on two more whose edges show below
   and to the right (the layers are shadows). Open: the sources are dealt out from the stack, one after the other;
   the button moves to the end and gathers them again. */
.srcs.pile { white-space: normal; }
.srcs.pile:not(.open) .src.more { display: none; }
.src-more { position: relative; border: 0; cursor: pointer; font-family: var(--sans); background: var(--ink-2); color: var(--paper); padding: 0 .5em; transition: box-shadow .2s ease, margin .2s ease, background .15s ease, transform .2s ease; }
.srcs.pile:not(.open) .src-more { margin-right: .6em;
  box-shadow: 0 0 0 1.5px var(--paper), .22em .16em 0 0 var(--ink-3), .22em .16em 0 1.5px var(--paper), .44em .32em 0 0 var(--paper-3), .44em .32em 0 1.5px var(--paper); }
.srcs.pile:not(.open) .src-more:hover, .srcs.pile:not(.open) .src-more:focus-visible { background: var(--ink); transform: translate(-.06em, -.06em);
  box-shadow: 0 0 0 1.5px var(--paper), .3em .22em 0 0 var(--ink-3), .3em .22em 0 1.5px var(--paper), .6em .44em 0 0 var(--paper-3), .6em .44em 0 1.5px var(--paper); }
.srcs.pile.open .src-more { background: var(--paper-3); color: var(--ink-2); }
.srcs.pile.open .src-more:hover, .srcs.pile.open .src-more:focus-visible { background: var(--ink); color: var(--paper); }
.srcs.pile.open .src.more { animation: src-deal .32s cubic-bezier(.2, .9, .25, 1) both; }
@keyframes src-deal { from { opacity: 0; transform: translate(-1.4em, .25em) rotate(-16deg) scale(.7); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .srcs.pile.open .src.more { animation: none; } .src-more { transition: none; } }
.srcpop { position: absolute; z-index: 60; background: var(--paper); color: var(--ink); border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--shadow); padding: 1rem 1.1rem; font: 400 .9rem/1.45 var(--sans); }
.srcpop p { margin: 0 0 .5rem; }
.pop-h { font-weight: 600; }
.pop-a { color: var(--ink-3); font-size: .82rem; }
.pop-l { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin: .7rem 0 0 !important; }
.pop-x { position: absolute; right: .4rem; top: .3rem; border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: var(--ink-3); width: 2rem; height: 2rem; }
.btn.small { display: inline-block; padding: .45em .8em; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font: 600 .8rem/1 var(--sans); }
.flash { animation: flashbg 1.8s; }
@keyframes flashbg { from { background: var(--fb-accent-25); background: color-mix(in srgb, var(--accent) 25%, transparent); } }   /* floor-ok: a fixed colour before it */

/* who can see this (site/readers.js): a thin ring for a person with a login, the block beside the tree, the line in the form */
.pp-acc { display: inline-block; width: .58em; height: .58em; margin-left: .45em; border: 1.5px solid var(--accent); border-radius: 50%; vertical-align: .06em; opacity: .9; }
.rd-ring { display: inline-block; flex: none; width: .66em; height: .66em; border: 1.5px solid var(--accent); border-radius: 50%; margin-right: .45em; vertical-align: -.02em; }
.rt-acc { display: flex; align-items: center; }
.rt-acc .rd-ring { border-color: var(--glow); }
.rd-band .band-h { margin-bottom: 1.2rem; }
.rd-chips { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem .6rem; }
.rd-chips li { background: var(--paper-2); border-radius: 999px; padding: .38rem .9rem .42rem; font: 400 .92rem/1.35 var(--sans); }
.rd-a { color: var(--ink-3); }
.rd-line { appearance: none; background: none; border: 0; padding: .25rem 0; margin: 0; display: inline-flex; gap: .5rem; align-items: baseline; font: 400 .88rem/1.4 var(--sans); color: var(--ink-2); cursor: pointer; text-align: left; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.rd-line:hover { color: var(--accent); text-decoration-color: currentColor; }
.rd-eye { display: inline-block; flex: none; width: .72em; height: .72em; border: 1.5px solid var(--accent); border-radius: 50%; transform: translateY(.06em); }
.stmt-who { margin: .9rem 0 0; padding-top: .7rem; border-top: 1px solid var(--rule); }
.rd-g { display: flex; align-items: center; font: 600 .72rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 1.1rem 0 .2rem; }
.rd-list { list-style: none; padding: 0; margin: 0 0 .6rem; }
.rd-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .05rem .7rem; padding: .5rem 0; border-bottom: 1px solid var(--rule); font: 400 .96rem/1.4 var(--sans); }
.rd-list li.me .rd-n { font-weight: 600; }
.rd-list .rd-a { font-size: .86rem; }
.rd-me { color: var(--ink-3); font-weight: 400; margin-left: .35em; }
.rd-word { flex-basis: 100%; font: 400 .86rem/1.45 var(--sans); color: var(--ink-3); }
.rd-word-l { margin: .2rem 0 0; }
.rd-word-l strong { font-weight: 500; color: var(--ink-2); }
.rd-word-ch { appearance: none; background: none; border: 0; padding: 0; margin: 0 0 0 .2em; font: inherit; color: var(--ink-3); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; cursor: pointer; }
.rd-word-ch:hover { color: var(--accent); text-decoration-color: currentColor; }
.rd-word-opts { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 .1rem; }
.rd-word-o.on { border-color: var(--ink-2); color: var(--ink); }


/* THE DEMO'S QUIET LINE (demo/PLAN.md; src/site/parts/DemoLine.tsx): only the demo draws it. In the footer it is
   one more line of the footer; on the home page a line under the title; in the form, once something is saved. */
.demo-line { margin: .9rem 0 0; }
.demo-home { font: 400 1rem/1.5 var(--sans); }
.demo-line a { text-decoration: underline; text-underline-offset: .15em; }
