/* Bounded Learn 2 (28 Oct 2026). Built on the Bounded Uncertainty design system: tokens, Lora italic for the voice,
   Figtree for everything you operate, frosted bars, a floating tab bar, the Settings-style menu from the avatar. */

:root, [data-theme="light"] {
  --bg: #f2f4f8; --bg-top: #e4eefb; --page-2: #eef1f6; --card: #ffffff; --row: #ffffff; --field: #e9edf3;
  --fill: rgba(118,128,150,.15); --ink: #0e1116; --ink-2: #3f4651; --muted: #5d6571; --line: #e3e7ee; --sep: rgba(60,67,80,.14);
  --btn: #0e1116; --on-btn: #ffffff; --tint: #2f74c9; --sky: #8bb7e9; --aqua: #7ce8e2; --peach: #ffb090; --rose: #d0503c;
  --pen: #1b2433; --mark-dot: #e8875f; --snip: rgba(255,176,144,.42); --snip-line: #e8875f;
  --safety-title: #8a4b00; --safety-num: #a35400; --safety-line: rgba(229,134,47,.30);
  --shadow-1: 0 0 0 .5px rgba(14,17,22,.06), 0 1px 2px rgba(14,17,22,.05), 0 10px 30px -14px rgba(23,60,130,.24);
  --shadow-2: 0 2px 6px rgba(14,17,22,.06), 0 24px 50px -24px rgba(23,60,130,.35);
  --shadow-tabbar: 0 0 0 .5px rgba(20,40,90,.08), 0 14px 34px -12px rgba(20,45,100,.32), 0 3px 8px rgba(20,45,100,.08);
  --frost: rgba(242,244,248,.86); --frost-card: rgba(255,255,255,.86); --scrim: rgba(10,14,22,.32);
  --g-how: #2f74c9; --g-practice: #1f958d; --g-myths: #cf5f53; --g-minds: #d9774f; --g-world: #3f7d62; --g-living: #b8892e; --g-science: #4f6fa3; --g-systems: #a4583c;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #10151f; --bg-top: #142036; --page-2: #0c1119; --card: #212a3b; --row: #212a3b; --field: #2a3447;
  --fill: rgba(160,175,205,.18); --ink: #f3f5f9; --ink-2: rgba(243,245,249,.82); --muted: rgba(243,245,249,.64); --line: rgba(255,255,255,.1); --sep: rgba(255,255,255,.1);
  --btn: #4cc2ff; --on-btn: #04121d; --tint: #4cc2ff; --sky: #8bb7e9; --aqua: #5fd3cc; --peach: #ffab8a; --rose: #ff99a4;
  --pen: #e9eef7; --mark-dot: #ffab8a; --snip: rgba(255,171,138,.26); --snip-line: #ffab8a;
  --safety-title: #ffcf8a; --safety-num: #ffc06a; --safety-line: rgba(255,190,110,.24);
  --shadow-1: 0 0 0 1px rgba(255,255,255,.06), 0 16px 36px -22px rgba(0,0,0,.7);
  --shadow-2: 0 0 0 1px rgba(255,255,255,.07), 0 30px 60px -28px rgba(0,0,0,.8);
  --shadow-tabbar: 0 16px 36px -12px rgba(0,0,0,.7);
  --frost: rgba(16,21,31,.86); --frost-card: rgba(33,42,59,.9); --scrim: rgba(0,0,0,.5);
  --g-how: #6ccbff; --g-practice: #5fd3cc; --g-myths: #ff9c8c; --g-minds: #ffab8a; --g-world: #7fc79a; --g-living: #f2c661; --g-science: #9fbcf0; --g-systems: #ffb39a;
  color-scheme: dark;
}
:root {
  --ease-ios: cubic-bezier(.32,.72,0,1); --ease-ios-in: cubic-bezier(.4,0,.9,.4); --spring: cubic-bezier(.3,1.25,.4,1);
  --dur-sheet-in: .52s; --dur-sheet-out: .34s; --dur-menu-in: .46s; --dur-menu-out: .3s; --dur-push: .46s;
  --serif: Lora, Georgia, "Times New Roman", serif; --sans: Figtree, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-card: 24px; --r-button: 14px; --r-field: 12px; --measure: 40rem;
  --safe-t: env(safe-area-inset-top); --safe-b: env(safe-area-inset-bottom);
}
@supports (font: -apple-system-body) { html { font: -apple-system-body; } }

/* group accents */
[data-g="how"]{--ac:var(--g-how)} [data-g="practice"]{--ac:var(--g-practice)} [data-g="myths"]{--ac:var(--g-myths)} [data-g="minds"]{--ac:var(--g-minds)}
[data-g="world"]{--ac:var(--g-world)} [data-g="living"]{--ac:var(--g-living)} [data-g="science"]{--ac:var(--g-science)} [data-g="systems"]{--ac:var(--g-systems)}
[data-g]{--ac-soft:color-mix(in srgb,var(--ac) 14%,var(--card)); --ac-wash:color-mix(in srgb,var(--ac) 9%,transparent)}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.5; color: var(--ink); -webkit-font-smoothing: antialiased;
  background: linear-gradient(180deg, var(--bg-top) 0, var(--bg) 340px) no-repeat, var(--bg); -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--tint); }
img, svg { display: block; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--tint) 60%, transparent); outline-offset: 2px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--card); padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* press feedback */
.press { transition: transform .18s var(--spring); }
.press:active { transform: scale(.97); }

/* ---------- layout ---------- */
.app { min-height: 100vh; }
.views { outline: none; }
.view { min-height: 100vh; padding: 0 16px calc(110px + var(--safe-b)); max-width: 1160px; margin: 0 auto; }
.view[hidden] { display: none; }
.rail { display: none; }

/* ---------- top bars ---------- */
.homehead { display: flex; align-items: center; gap: 14px; padding: calc(16px + var(--safe-t)) 0 22px; }
.wm { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.mark { width: 48px; height: 48px; flex: none; overflow: visible; }
.mark .pg { fill: none; stroke: var(--pen); stroke-width: 5.2; stroke-linecap: round; stroke-linejoin: round; }
.mark .sp { fill: none; stroke: var(--pen); stroke-width: 5.2; stroke-linecap: round; }
.mark .dot { fill: var(--mark-dot); transform-box: fill-box; transform-origin: center; }
.wm__t { display: flex; flex-direction: column; min-width: 0; }
.wm__n { font-size: 1.25rem; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.wm__n i { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--tint); }
.wm__d { font-size: .6875rem; line-height: 1.3; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.avatar { margin-left: auto; flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 50%; padding: 0; }
.avatar span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--card); box-shadow: var(--shadow-1); color: var(--ink-2); font-weight: 700; font-size: .9375rem; }
.avatar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.avatar.is-in span { background: var(--tint); color: var(--on-btn); }

.ltitle { display: flex; align-items: center; gap: 12px; padding: calc(18px + var(--safe-t)) 0 6px; }
.ltitle h1 { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 2.25rem; line-height: 1.08; letter-spacing: -.01em; }
.lsub { margin: 0 0 20px; color: var(--muted); font-size: .9375rem; max-width: 34rem; }

.fbar { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: calc(50px + var(--safe-t)); padding: var(--safe-t) 8px 0; background: var(--frost);
  -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px); box-shadow: 0 .5px 0 var(--sep);
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .28s var(--ease-ios), transform .28s var(--ease-ios); }
.fbar.on { opacity: 1; transform: none; pointer-events: auto; }
.fbar__t { font-weight: 700; font-size: 1.0625rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
.fbar .avatar { position: absolute; right: 8px; bottom: 3px; margin: 0; }

/* ---------- tab bar ---------- */
.tabbar { position: fixed; left: 50%; bottom: calc(10px + var(--safe-b)); transform: translateX(-50%); z-index: 50; width: min(100% - 24px, 440px);
  transition: transform .34s var(--ease-ios), opacity .3s; }
.tabbar__in { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 5px; border-radius: 999px; background: var(--frost);
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); box-shadow: var(--shadow-tabbar); }
.tind { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / var(--n, 4)); border-radius: 999px; background: var(--card);
  box-shadow: 0 1px 3px rgba(14,17,22,.1); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .5s var(--spring); }
[data-theme="dark"] .tind { background: rgba(255,255,255,.12); box-shadow: none; }
.tab { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border: 0; background: transparent;
  color: var(--muted); font-size: .6875rem; font-weight: 650; text-decoration: none; border-radius: 999px; }
.tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab[aria-current="page"] { color: var(--tint); }
.tab[aria-current="page"] svg .f { fill: currentColor; }
.tab.bounce svg { animation: tabpop .5s var(--spring); }
.tab .cnt { position: absolute; top: 6px; left: calc(50% + 8px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--peach); color: #3a1c10; font-size: .625rem; font-weight: 700; line-height: 16px; text-align: center; }
@keyframes tabpop { 40% { transform: translateY(-3px) scale(1.16); } }
body.layered .tabbar, body.reading .tabbar { transform: translate(-50%, 24px); opacity: 0; pointer-events: none; }

/* ---------- home ---------- */
.lead { font-family: var(--serif); font-style: italic; font-size: 1.625rem; line-height: 1.2; margin: 0 0 18px; max-width: 30rem; letter-spacing: -.005em; }
.askcard { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 8px 8px 18px; border: 0; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-1);
  color: var(--muted); text-align: left; font-size: 1rem; margin-bottom: 26px; }
.askcard svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.askcard span { flex: 1; }
.askcard b { flex: none; display: grid; place-items: center; height: 40px; padding: 0 16px; border-radius: 12px; background: var(--btn); color: var(--on-btn); font-weight: 600; font-size: .9375rem; }

.circles { display: flex; gap: 16px; overflow-x: auto; padding: 4px 16px 6px; margin: 0 -16px 18px; scroll-snap-type: x proximity; scrollbar-width: none; }
.circles::-webkit-scrollbar { display: none; }
.circ { flex: none; width: 70px; display: flex; flex-direction: column; align-items: center; gap: 7px; border: 0; background: transparent; padding: 0; scroll-snap-align: start; color: var(--muted); text-decoration: none; }
.circ__r { width: 62px; height: 62px; border-radius: 50%; padding: 2px; display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--line); transition: box-shadow .35s var(--ease-ios); }
.circ__i { width: 54px; height: 54px; border-radius: 50%; background: var(--ac-soft); display: grid; place-items: center; overflow: hidden; }
.circ__i svg { width: 46px; }
.circ b { font-size: .75rem; line-height: 1.2; font-weight: 600; text-align: center; }
.circ.on .circ__r { box-shadow: inset 0 0 0 2.5px var(--ac); }
.circ.on b { color: var(--ac); font-weight: 700; }
.where { margin: 4px 0 16px; }
.where small { display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.where h2 { margin: 2px 0 6px; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.75rem; line-height: 1.15; color: var(--ink); }
.where p { margin: 0; color: var(--ink-2); font-size: .9375rem; max-width: 38rem; }

/* idea rows (phone) and cards (wider) */
.ideas { display: grid; gap: 10px; }
.irow { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 10px 14px 10px 10px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow-1); color: var(--ink); text-decoration: none; }
.irow__a { flex: none; width: 92px; height: 60px; border-radius: 14px; background: var(--ac-soft); display: grid; place-items: center; overflow: hidden; }
.irow__a svg { width: 88px; }
.irow__b { min-width: 0; flex: 1; }
.irow__t { display: block; font-weight: 700; font-size: 1rem; line-height: 1.3; }
.irow__s { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 2px; font-size: .8125rem; line-height: 1.4; color: var(--muted); }
.irow__m { display: flex; gap: 6px; margin-top: 6px; }
.pill { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--fill); color: var(--ink-2); font-size: .6875rem; font-weight: 700; }
.pill--peach { background: color-mix(in srgb, var(--peach) 34%, transparent); color: color-mix(in srgb, var(--ink) 80%, var(--peach)); }
.feedend { margin: 22px 0 0; padding: 22px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow-1); text-align: center; color: var(--ink-2); }
.feedend p { margin: 0 0 12px; font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--ink); }
.feedend .tbtns { justify-content: center; }

/* art */
.art .a1 { fill: var(--ac); } .art .a2 { fill: color-mix(in srgb, var(--ac) 38%, var(--card)); }
.art .ln { fill: none; stroke: var(--pen); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.art .lnw { fill: none; stroke: var(--card); stroke-width: 2.4; stroke-linecap: round; }
.art .lnx { fill: none; stroke: var(--ac); stroke-width: 4; stroke-linecap: round; }
.art .dash { fill: none; stroke: var(--ac); stroke-width: 1.8; stroke-dasharray: 3 3; }
.art .dashf { fill: none; stroke: var(--pen); stroke-width: 1.6; stroke-dasharray: 2 2; }
.drawon .ln, .drawon .lnx, .drawon .lnw { stroke-dasharray: 160; animation: draw 1.2s var(--ease-ios) both .15s; }
.drawon .a1, .drawon .a2 { transform-box: fill-box; transform-origin: center; animation: pop .7s var(--spring) both .1s; }
@keyframes draw { from { stroke-dashoffset: 160; } to { stroke-dashoffset: 0; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.4); } 70% { opacity: 1; transform: scale(1.06); } 100% { transform: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 0; border-radius: var(--r-button); background: var(--btn); color: var(--on-btn);
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap; transition: transform .18s var(--spring), opacity .2s; }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn--soft { background: color-mix(in srgb, var(--ink) 9%, transparent); color: var(--ink); }
[data-theme="dark"] .btn--soft { background: rgba(255,255,255,.12); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 6px; border: 0; background: transparent; color: var(--tint); font-weight: 600; font-size: .9375rem; text-decoration: none; }
.tbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tbtns { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.tbtn--danger { color: var(--rose); }

/* ---------- reading (idea page) ---------- */
.read { position: fixed; inset: 0; z-index: 60; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, var(--ac-wash) 0, transparent 420px) no-repeat, var(--bg); }
.read.in { animation: pushin var(--dur-push) var(--ease-ios) both; }
.read.out { animation: pushout .3s var(--ease-ios-in) both; }
@keyframes pushin { from { transform: translateX(100%); } to { transform: none; } }
@keyframes pushout { to { transform: translateX(100%); } }
.read__bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 6px; min-height: calc(52px + var(--safe-t)); padding: var(--safe-t) 6px 0;
  transition: background .25s, box-shadow .25s; }
.read__bar.on { background: var(--frost); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px); box-shadow: 0 .5px 0 var(--sep); }
.read__bar .fbar__t { flex: 1; text-align: center; opacity: 0; transition: opacity .25s; }
.read__bar.on .fbar__t { opacity: 1; }
.back { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; min-width: 44px; padding: 0 10px 0 4px; border: 0; background: transparent; color: var(--tint); font-weight: 600; font-size: 1.0625rem; border-radius: 12px; }
.back svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ibtn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--tint); border-radius: 50%; flex: none; }
.ibtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ibtn.on svg { fill: currentColor; }
.ibtn.pop svg { animation: pop .5s var(--spring); }
.prog { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--ac); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

.read__in { max-width: 1100px; margin: 0 auto; padding: 0 20px calc(120px + var(--safe-b)); display: grid; gap: 28px; }
.read__col { max-width: var(--measure); width: 100%; margin: 0 auto; }
.ihead { padding: 6px 0 4px; }
.eyebrow { display: inline-block; font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ac); }
.ititle { margin: 8px 0 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 2.25rem; line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
.iart { margin: 18px 0 6px; border-radius: var(--r-card); background: var(--ac-soft); display: grid; place-items: center; padding: 14px; aspect-ratio: 16 / 7; }
.iart svg { width: min(72%, 360px); }
.gist { margin: 18px 0 0; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--ac, var(--tint)) 10%, var(--card)); font-size: 1.02rem; line-height: 1.5; color: var(--ink); }
.gist b { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ac, var(--tint)); margin-bottom: 4px; font-weight: 700; }
.idea { font-family: var(--serif); font-size: 1.25rem; line-height: 1.55; color: var(--ink); margin: 18px 0 0; }
.idea p { margin: 0 0 .7em; }
.sec { margin-top: 30px; }
.sec h2 { margin: 0 0 10px; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sec p, .sec li { font-size: 1.0625rem; line-height: 1.65; color: var(--ink); }
.sec p { margin: 0 0 .7em; }
.sec ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sec li { position: relative; padding: 14px 16px 14px 44px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-1); }
.sec li::before { content: ""; position: absolute; left: 18px; top: 23px; width: 10px; height: 10px; border-radius: 50%; background: var(--ac); }
.sec--mistake .box { position: relative; padding: 16px 18px 16px 22px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-1); overflow: hidden; }
.sec--mistake .box::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--rose); }
.sec--mistake .box p:last-child { margin: 0; }
mark.snip { background: linear-gradient(transparent 52%, var(--snip) 52%); color: inherit; border-radius: 2px; padding: 0 1px; cursor: pointer; }
mark.snip.new { animation: snipin .6s var(--ease-ios); }
@keyframes snipin { from { background-size: 0 100%; } }
mark.snip { background-repeat: no-repeat; background-size: 100% 100%; }

.complink { display: flex; align-items: center; gap: 14px; margin-top: 30px; min-height: 64px; padding: 12px 16px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-1); color: var(--ink); text-decoration: none; }
.complink span { flex: 1; color: var(--ink-2); font-size: .9375rem; }
.complink b { color: var(--tint); font-weight: 600; white-space: nowrap; }

/* lists inside reading */
.glist { border-radius: var(--r-button); background: var(--row); box-shadow: var(--shadow-1); overflow: hidden; }
.grow { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 16px; color: var(--ink); text-decoration: none; background: transparent; border: 0; width: 100%; text-align: left; }
.grow + .grow::before { content: ""; position: absolute; top: 0; left: 62px; right: 0; height: .5px; background: var(--sep); }
.grow__b { flex: 1; min-width: 0; }
.grow__t { display: block; font-size: 1rem; font-weight: 500; line-height: 1.3; }
.grow__s { display: block; font-size: .8125rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.grow__x { flex: none; color: var(--muted); }
.grow__x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg, var(--t1), var(--t2)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 2px 6px -2px var(--t2); }
.tile svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile .s { fill: rgba(255,255,255,.55); stroke: none; }
.tile .w { fill: #fff; stroke: none; }
.t-blue { --t1: #6db8ff; --t2: #2f6fd6; } .t-amber { --t1: #ffd06b; --t2: #f08a24; } .t-teal { --t1: #5fe6d2; --t2: #119486; } .t-coral { --t1: #ffab95; --t2: #e2604c; }
.t-peach { --t1: #ffd3a8; --t2: #ff8a6a; } .t-slate { --t1: #7d8ba6; --t2: #38435c; } .t-navy { --t1: #5f8ee6; --t2: #22429a; } .t-red { --t1: #ff9584; --t2: #de3f35; } .t-white { --t1: #ffffff; --t2: #e9eef5; }
.gsec { margin: 0 0 24px; }
.gsec > h3 { margin: 0; padding: 0 16px 7px; font-size: .8125rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.gsec > .gnote { margin: 0; padding: 7px 16px 0; font-size: .8125rem; line-height: 1.45; color: var(--muted); }

/* books */
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 12px; }
.book { display: flex; gap: 14px; padding: 14px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow-1); color: var(--ink); text-decoration: none; }
.book__c { flex: none; width: 72px; height: 104px; padding: 8px 7px; border-radius: 3px 8px 8px 3px; background: var(--bc, #345); color: #fff; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; box-shadow: inset 4px 0 0 rgba(0,0,0,.2), 0 8px 18px -8px rgba(0,0,0,.4); transform: rotate(-2deg); }
.book__c b { font-family: var(--serif); font-size: .625rem; line-height: 1.18; font-weight: 500; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; overflow-wrap: anywhere; }
.book__c i { font-style: normal; font-size: .5625rem; opacity: .85; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.book__b { min-width: 0; }
.book__t { display: block; font-weight: 700; font-size: .9375rem; line-height: 1.3; overflow-wrap: anywhere; }
.book__a { display: block; font-size: .8125rem; color: var(--muted); margin-top: 2px; }
.book__w { margin: 6px 0 0; font-size: .875rem; color: var(--ink-2); line-height: 1.45; }
.book__l { display: inline-flex; margin-top: 6px; min-height: 32px; align-items: center; font-weight: 600; font-size: .875rem; color: var(--tint); }
.note-s { margin: 10px 0 0; font-size: .8125rem; color: var(--muted); line-height: 1.45; }

/* science fold */
.fold { margin-top: 30px; border-radius: var(--r-button); background: var(--card); box-shadow: var(--shadow-1); overflow: hidden; }
.fold > summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 16px; cursor: pointer; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary .grow__b { flex: 1; }
.fold > summary .chev { transition: transform .3s var(--ease-ios); color: var(--muted); }
.fold[open] > summary .chev { transform: rotate(90deg); }
.fold__b { padding: 0 18px 18px; }
.fold__b h3 { margin: 18px 0 6px; font-size: .9375rem; }
.fold__b p, .fold__b li { font-size: .9375rem; line-height: 1.6; color: var(--ink-2); }
.fold__b ul { padding-left: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: color-mix(in srgb, #d69628 16%, transparent); color: #8a5a05; }
.chip--solid { background: color-mix(in srgb, #1e8c5a 15%, transparent); color: #17704a; }
.chip--lens { background: color-mix(in srgb, #4278c8 15%, transparent); color: #2a5ea8; }
[data-theme="dark"] .chip { color: #f2c46b; } [data-theme="dark"] .chip--solid { color: #7fd6ac; } [data-theme="dark"] .chip--lens { color: #a9cdf6; }

.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 34px; }
.pn a { display: flex; flex-direction: column; justify-content: center; min-height: 68px; padding: 12px 16px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-1); color: var(--ink); text-decoration: none; }
.pn small { font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pn b { font-size: .9375rem; line-height: 1.3; margin-top: 2px; }
.pn .nx { text-align: right; grid-column: 2; }
.kofi { margin: 26px 0 0; font-size: .9375rem; color: var(--muted); }
.kofi a { font-weight: 600; }

/* notes on the idea page */
.mynotes { margin-top: 30px; }
.mynotes__h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.mynotes__h h2 { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.5rem; }
.nlist { display: grid; gap: 10px; }
.ncard { position: relative; padding: 14px 16px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-1); }
.ncard.new { animation: noteIn .5s var(--ease-ios); }
@keyframes noteIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.ncard q { display: block; quotes: none; font-family: var(--serif); font-style: italic; font-size: 1.0625rem; line-height: 1.5; padding-left: 14px; border-left: 3px solid var(--snip-line); color: var(--ink); }
.ncard q + p { margin-top: 10px; }
.ncard p { margin: 0; font-size: 1rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.ncard__m { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .75rem; color: var(--muted); }
.ncard__m .tbtns { margin-left: auto; }
.ncard__m .tbtn { min-height: 36px; font-size: .8125rem; }
.addnote { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 16px; border: 1.5px dashed var(--sep); border-radius: 18px; background: transparent; color: var(--muted); font-size: .9375rem; text-align: left; }
.addnote svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }

/* reading bar (phone) and snip bar */
.rbar { position: fixed; left: 50%; bottom: calc(12px + var(--safe-b)); transform: translateX(-50%); z-index: 70; display: flex; gap: 4px; padding: 5px; border-radius: 999px;
  background: var(--frost); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); box-shadow: var(--shadow-tabbar); animation: rise .4s var(--ease-ios) both; }
.rbar button { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font-weight: 600; font-size: .9375rem; white-space: nowrap; }
.rbar button.main { background: var(--btn); color: var(--on-btn); }
.rbar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.rbar .cnt { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: color-mix(in srgb, var(--peach) 45%, transparent); font-size: .75rem; line-height: 20px; text-align: center; }
.snipbar { position: fixed; z-index: 80; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-2); animation: pop .35s var(--spring); }
.snipbar button { display: flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: inherit; font-weight: 600; font-size: .875rem; white-space: nowrap; }
.snipbar button + button { box-shadow: inset 1px 0 0 color-mix(in srgb, var(--bg) 25%, transparent); border-radius: 0 999px 999px 0; }
.snipbar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 16px); } }

/* ---------- ask ---------- */
.askbox { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow-1); }
.askbox textarea { width: 100%; min-height: 64px; max-height: 40vh; resize: none; border: 0; outline: 0; background: transparent; font-size: 1.125rem; line-height: 1.45; padding: 6px 6px 0; }
.askbox textarea::placeholder { color: var(--muted); }
.askbox__f { display: flex; align-items: center; gap: 8px; }
.askbox__f small { flex: 1; color: var(--muted); font-size: .75rem; padding-left: 6px; }
.sugg { margin-top: 24px; }
.res { margin-top: 24px; display: grid; gap: 10px; }
.res__h { margin: 6px 0 2px; font-size: .8125rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); padding: 0 4px; }
.why { display: block; margin-top: 4px; font-size: .875rem; line-height: 1.45; color: var(--ink-2); }
.thinking { display: flex; align-items: center; gap: 10px; padding: 16px 6px; color: var(--muted); font-size: .9375rem; }
.thinking i { width: 7px; height: 7px; border-radius: 50%; background: var(--tint); animation: blink 1.2s infinite both; }
.thinking i:nth-child(2) { animation-delay: .2s; } .thinking i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.safety { position: relative; padding: 16px 18px 16px 22px; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--safety-line), var(--shadow-1); overflow: hidden; }
.safety::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #e5862f; }
.safety b { display: block; color: var(--safety-title); margin-bottom: 4px; }
.safety p { margin: 0; color: var(--ink-2); font-size: .9375rem; line-height: 1.55; }
.safety a { color: var(--safety-num); font-weight: 700; }

/* ---------- notebook ---------- */
.nbtop { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 20px; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--fill); }
.seg button { min-height: 38px; min-width: 64px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font-weight: 600; font-size: .875rem; transition: background .25s, color .25s, box-shadow .25s; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
[data-theme="dark"] .seg button[aria-pressed="true"] { background: rgba(255,255,255,.16); }
.nbgroup { margin-bottom: 28px; }
.nbhead { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; color: var(--ink); text-decoration: none; }
.nbhead__a { flex: none; width: 64px; height: 42px; border-radius: 12px; background: var(--ac-soft); display: grid; place-items: center; overflow: hidden; }
.nbhead__a svg { width: 60px; }
.nbhead small { display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ac); }
.nbhead b { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.3125rem; line-height: 1.2; }
.nbgroup .ncard q { border-left-color: var(--ac); }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 40px 18px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow-1); }
.empty svg { width: 120px; }
.empty h2 { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.5rem; }
.empty p { margin: 0; color: var(--ink-2); max-width: 26rem; }
.syncline { display: flex; align-items: center; gap: 8px; margin: 24px 4px 0; font-size: .8125rem; color: var(--muted); }
.syncline svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- layers: sheet, menu, alert ---------- */
.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,0); transition: background var(--dur-sheet-in) var(--ease-ios); }
.scrim.on { background: var(--scrim); }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 91; max-height: calc(100% - 44px - var(--safe-t)); display: flex; flex-direction: column; border-radius: 22px 22px 0 0; background: var(--bg);
  box-shadow: 0 -10px 40px -10px rgba(0,0,0,.25); transform: translateY(100%); transition: transform var(--dur-sheet-in) var(--ease-ios); margin: 0 auto; max-width: 720px; }
.sheet.on { transform: none; }
.sheet.leave { transition: transform var(--dur-sheet-out) var(--ease-ios-in); transform: translateY(100%); }
.sheet--full { height: calc(100% - 44px - var(--safe-t)); }
.grab { width: 38px; height: 5px; border-radius: 3px; background: var(--sep); margin: 8px auto 0; flex: none; }
.sheet__h { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 18px; flex: none; }
.sheet__h h2 { flex: 1; margin: 0; font-weight: 700; font-size: 1.0625rem; }
.sheet__b { overflow-y: auto; overscroll-behavior: contain; padding: 6px 18px calc(24px + var(--safe-b)); }
.xbtn { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; }
.xbtn span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); color: var(--ink-2); }
.xbtn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.done { min-height: 44px; padding: 0 10px; border: 0; background: transparent; color: var(--tint); font-weight: 700; font-size: 1.0625rem; }

.menu { position: fixed; top: 0; right: 0; bottom: 0; z-index: 91; width: 100%; max-width: 430px; display: flex; flex-direction: column; background: var(--page-2); box-shadow: -10px 0 40px -10px rgba(0,0,0,.3);
  transform: translateX(100%); transition: transform var(--dur-menu-in) var(--ease-ios); }
[data-theme="light"] .menu { background: #f2f4f8; }
.menu.on { transform: none; }
.menu.leave { transition: transform var(--dur-menu-out) var(--ease-ios-in); transform: translateX(100%); }
.mtop { flex: none; display: flex; align-items: center; justify-content: space-between; padding: calc(6px + var(--safe-t)) 8px 4px; min-height: calc(54px + var(--safe-t)); }
.mtop .xbtn span { background: var(--frost-card); box-shadow: var(--shadow-1); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.mpages { position: relative; flex: 1; overflow: hidden; }
.mpage { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 0 calc(30px + var(--safe-b)); transition: transform .42s var(--ease-ios); background: inherit; }
.mpage.off-r { transform: translateX(100%); } .mpage.off-l { transform: translateX(-30%); }
.mtitle { padding: 4px 20px 18px; }
.mtitle .wm__n { font-size: 2rem; }
.mtitle p { margin: 4px 0 0; color: var(--ink-2); font-size: .9375rem; }
.menu .gsec { margin: 0 16px 24px; }
.menu .gsec > h3 { padding: 0 16px 7px; }
.rowctl { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px; }
.rowctl + .rowctl, .grow + .rowctl, .rowctl + .grow { box-shadow: inset 62px .5px 0 -62px var(--sep); }
.rowctl label, .rowctl .grow__b { flex: 1; font-size: 1rem; font-weight: 500; }
.stepper { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 12px; background: var(--fill); }
.stepper button { width: 44px; height: 36px; border: 0; border-radius: 9px; background: transparent; font-size: 1.125rem; font-weight: 700; color: var(--ink); }
.stepper span { min-width: 48px; text-align: center; font-weight: 600; font-size: .875rem; }
.switch { position: relative; width: 51px; height: 31px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--fill); transition: background .25s; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .3s var(--spring); }
.switch input:checked + i { background: #34c759; }
.switch input:checked + i::after { transform: translateX(20px); }
.mpad { padding: 0 20px; }
.mpad h2 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.75rem; margin: 0 0 10px; }
.mpad p { color: var(--ink-2); line-height: 1.6; margin: 0 0 12px; }
.field { display: block; width: 100%; min-height: 52px; padding: 12px 14px; border: 0; border-radius: var(--r-field); background: var(--card); box-shadow: var(--shadow-1); font-size: 1.0625rem; outline: 0; }
.field:focus { box-shadow: 0 0 0 2px color-mix(in srgb, var(--tint) 55%, transparent); }
textarea.field { min-height: 120px; resize: vertical; line-height: 1.5; }
.flabel { display: block; margin: 16px 0 6px; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.ferr { margin: 8px 0 0; color: var(--rose); font-size: .875rem; font-weight: 600; }
.code { letter-spacing: .4em; text-align: center; font-size: 1.5rem; font-weight: 700; }
.alertbox { position: fixed; left: 50%; top: 50%; z-index: 95; width: min(300px, calc(100% - 48px)); transform: translate(-50%, -50%) scale(1.08); opacity: 0; border-radius: 16px; overflow: hidden;
  background: var(--frost-card); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); box-shadow: var(--shadow-2); text-align: center;
  transition: transform .4s var(--spring), opacity .25s; }
.alertbox.on { transform: translate(-50%, -50%); opacity: 1; }
.alertbox h3 { margin: 18px 16px 4px; font-size: 1.0625rem; }
.alertbox p { margin: 0 16px 16px; font-size: .875rem; color: var(--ink-2); }
.alertbox .ab { display: grid; grid-template-columns: 1fr 1fr; box-shadow: inset 0 .5px 0 var(--sep); }
.alertbox .ab button { min-height: 46px; border: 0; background: transparent; color: var(--tint); font-size: 1.0625rem; }
.alertbox .ab button + button { box-shadow: inset .5px 0 0 var(--sep); font-weight: 700; }
.alertbox .ab button.danger { color: var(--rose); }

/* compose sheet */
.compose q { display: block; quotes: none; margin: 4px 0 14px; padding-left: 14px; border-left: 3px solid var(--snip-line); font-family: var(--serif); font-style: italic; font-size: 1.125rem; line-height: 1.5; }
.compose .field { min-height: 140px; }
.compose__f { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }

/* share sheet */
.picklist .grow { align-items: flex-start; }
.check { flex: none; width: 26px; height: 26px; margin-top: 2px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--sep); display: grid; place-items: center; transition: background .2s, box-shadow .2s; }
.check svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .2s; }
[aria-checked="true"] .check { background: var(--tint); box-shadow: none; }
[aria-checked="true"] .check svg { opacity: 1; }
.sharebtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.sharebtns .btn:first-child { grid-column: 1 / -1; }

/* toasts */
.toasts { position: fixed; left: 0; right: 0; top: calc(10px + var(--safe-t)); z-index: 100; display: grid; justify-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--frost-card); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--shadow-2); font-weight: 600; font-size: .9375rem; animation: toastin .45s var(--ease-ios) both; }
.toast svg { width: 18px; height: 18px; fill: none; stroke: var(--tint); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.toast.out { animation: toastout .3s var(--ease-ios-in) both; }
@keyframes toastin { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
@keyframes toastout { to { opacity: 0; transform: translateY(-10px); } }

/* welcome */
.welcome { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; background: linear-gradient(180deg, var(--bg-top), var(--bg) 70%); overflow-y: auto; }
.welcome.out { animation: fadeout .4s var(--ease-ios-in) both; }
.welcome__in { width: min(100%, 420px); text-align: center; }
.welcome .mark { width: 120px; height: 120px; margin: 0 auto 18px; }
.welcome .mark .pg, .welcome .mark .sp { stroke-dasharray: 260; animation: draw2 1.2s var(--ease-ios) both .2s; }
.welcome .mark .dot { animation: pop .6s var(--spring) both 1.2s; }
@keyframes draw2 { from { stroke-dashoffset: 260; } to { stroke-dashoffset: 0; } }
.welcome small { display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.welcome h1 { margin: 6px 0 12px; font-weight: 600; font-size: 3rem; line-height: 1.05; letter-spacing: -.02em; }
.welcome h1 i { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--tint); }
.welcome p { color: var(--ink-2); margin: 0 auto 24px; max-width: 22rem; }
.welcome .btn { width: 100%; }
.welcome .credit { margin-top: 18px; font-size: .75rem; color: var(--muted); }
.who { display: grid; gap: 10px; margin: 18px 0; text-align: left; }
@keyframes fadeout { to { opacity: 0; } }

/* ---------- wider screens ---------- */
@media (min-width: 700px) {
  .ideas { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
  .irow { flex-direction: column; align-items: stretch; padding: 10px 10px 16px; }
  .irow__a { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .irow__a svg { width: 70%; }
  .irow__b { padding: 4px 6px 0; }
  .ititle { font-size: 2.75rem; }
}
@media (min-width: 1000px) {
  .app { display: grid; grid-template-columns: 248px 1fr; }
  .rail { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; padding: 22px 14px 18px; border-right: .5px solid var(--sep); background: color-mix(in srgb, var(--bg) 70%, transparent); }
  .rail .wm { padding: 4px 10px 22px; }
  .rail .mark { width: 40px; height: 40px; }
  .rail a, .rail button.rl { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; color: var(--ink-2); font-weight: 600; font-size: .9375rem; text-decoration: none; text-align: left; width: 100%; }
  .rail a svg, .rail button.rl svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .rail a[aria-current="page"] { background: var(--card); color: var(--tint); box-shadow: var(--shadow-1); }
  .rail a[aria-current="page"] svg .f { fill: currentColor; }
  .rail .grow-sp { flex: 1; }
  .rail .cnt { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: color-mix(in srgb, var(--peach) 45%, transparent); color: var(--ink); font-size: .75rem; line-height: 20px; text-align: center; }
  .tabbar, .fbar { display: none; }
  .view { padding: 0 40px 60px; }
  .homehead .wm { display: none; }
  .homehead { padding-top: 28px; }
  .read { left: 248px; }
  .read__in { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; padding: 0 40px 80px; }
  .read__col { margin: 0; justify-self: center; }
  .read__side { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow-y: auto; padding-bottom: 20px; }
  .read__side .mynotes { margin-top: 0; }
  .rbar { display: none; }
  .sheet { bottom: auto; top: 50%; left: 50%; right: auto; width: min(640px, calc(100% - 80px)); border-radius: 22px; transform: translate(-50%, -46%) scale(.98); opacity: 0; transition: transform .45s var(--ease-ios), opacity .3s; }
  .sheet.on { transform: translate(-50%, -50%); opacity: 1; }
  .sheet.leave { transform: translate(-50%, -46%) scale(.98); opacity: 0; }
  .sheet .grab { display: none; }
}
@media (max-width: 999px) { .read__side .mynotes { display: none; } }


/* ---------- reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .12s !important; }
}
html.rm *, html.rm *::before, html.rm *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .12s !important; }

/* fixes after the first look */
[hidden] { display: none !important; }
.rowctl label.switch { flex: none; }
.syncline { flex-wrap: wrap; }
.complink { flex-wrap: wrap; }
.complink span:not(.tile) { flex: 1 1 200px; }
.complink b { margin-left: auto; }
.snipbar { animation: sbpop .35s var(--spring); }
@keyframes sbpop { from { opacity: 0; scale: .9; } }
.rowctl { flex-wrap: wrap; }
.rowctl .seg, .rowctl .stepper { margin-left: auto; }
.mynotes .addnote { margin-top: 10px; }
/* Ask: results stay as readable rows at every width */
.view[data-v="ask"] { max-width: 820px; }
.res .irow { flex-direction: row; align-items: center; padding: 10px 14px 10px 10px; }
.res .irow__a { width: 112px; height: 72px; aspect-ratio: auto; flex: none; }
.res .irow__a svg { width: 100px; }
.res .irow__b { padding: 0; }

@media (min-width: 1000px) { .mynotes--col { display: none; } }


/* ================= Lumipedia chrome (28 Oct 2026) =================
   The same top bar, tab pill, cover art, page heads and search field as Lumipedia, so the two read as one family. */
.app { display: block !important; }
.rail, .fbar, .homehead { display: none !important; }
body { background: linear-gradient(180deg, #e6effb 0, var(--bg) 420px) no-repeat, var(--bg); }
[data-theme="dark"] body { background: linear-gradient(180deg, #142036 0, var(--bg) 420px) no-repeat, var(--bg); }

.bar { position: sticky; top: 0; z-index: 45; display: flex; align-items: center; gap: 4px; min-height: calc(56px + var(--safe-t)); padding: var(--safe-t) 8px 0 16px; }
.bar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--frost); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 .5px 0 var(--sep); opacity: 0; transition: opacity .25s; }
.bar.scrolled::before { opacity: 1; }
.brand { display: flex; align-items: center; gap: 8px; margin-right: auto; min-width: 0; text-decoration: none; color: var(--ink); }
.brand .mark { width: 32px; height: 32px; }
.brand span { font-family: var(--serif); font-weight: 600; font-size: 1.32rem; letter-spacing: -.015em; white-space: nowrap; }
.bar__end { display: flex; align-items: center; gap: 2px; }
.bar .avatar { margin: 0; }
.menuBtn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 50%; color: var(--ink); padding: 0; }
.menuBtn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.coffee { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; min-width: 44px; padding: 0 10px; border-radius: 999px; text-decoration: none;
  color: var(--ink-2); font-weight: 600; font-size: .875rem; }
.coffee svg { width: 22px; height: 22px; flex: none; fill: none; stroke: #c27a2c; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[data-theme="dark"] .coffee svg { stroke: #f2c661; }
.coffee span { display: none; }

/* tabs: floating pill at the bottom on phones, inside the bar on computers */
.tabbar { z-index: 50; }
.tab .tico { display: grid; place-items: center; }
.tab .tl { font-size: .625rem; font-weight: 600; letter-spacing: .01em; line-height: 1.1; white-space: nowrap; }

/* search, as in Lumipedia */
.lsearch { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 6px 6px 6px 18px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-1); }
.lsearch input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 1.0625rem; color: var(--ink); -webkit-appearance: none; appearance: none; }
.lsearch input::placeholder { color: var(--muted); }
.lsearch input::-webkit-search-cancel-button { display: none; }
.lsearch button { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--tint); color: #fff; }
[data-theme="dark"] .lsearch button { color: var(--on-btn); }
.lsearch button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lsearch:focus-within { box-shadow: var(--shadow-1), 0 0 0 3px color-mix(in srgb, var(--tint) 30%, transparent); }
.lhint { margin: 8px 4px 22px; color: var(--muted); font-size: .8125rem; }

@media (min-width: 1000px) {
  .bar { gap: 16px; min-height: 64px; padding: 10px 32px; }
  .bar::before { opacity: 1; }
  .brand { flex: 1 1 0; margin-right: 0; }
  .brand .mark { width: 34px; height: 34px; }
  .bar__end { flex: 1 1 0; justify-content: flex-end; gap: 6px; }
  .tabbar { display: block !important; position: static; transform: none; left: auto; bottom: auto; width: min(30rem, 46vw); flex: 0 0 auto; }
  .tabbar__in { padding: 4px; box-shadow: 0 0 0 .5px rgba(20,40,90,.06), 0 6px 18px -10px rgba(20,45,100,.3); }
  .tind { top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n, 4)); }
  .tab { flex-direction: row; gap: 8px; min-height: 40px; }
  .tab svg { width: 19px; height: 19px; }
  .tab .tl { font-size: .875rem; }
  .coffee { padding: 0 14px 0 12px; background: var(--card); box-shadow: var(--shadow-1); }
  .coffee svg { width: 19px; height: 19px; }
  .coffee span { display: inline; }
  .view { padding-top: 18px; }
  .read { left: 0; }
}
@media (min-width: 1000px) and (max-width: 1180px) { .coffee span { display: none; } .coffee { padding: 0; width: 40px; } }

/* ================= Bounded Learn 3: colour, the map of ideas, and motion (28 Oct 2026) =================
   Lumipedia's chrome (bar, tab pill, menu); Bounded Learn's own look: chapter colours, drawings that draw themselves,
   a living map of every idea, words that rise, sections that arrive as you read. Everything stops under Reduce Motion. */
body { background:
  radial-gradient(1100px 520px at 92% -8%, rgba(255,176,144,.20), transparent 62%),
  radial-gradient(900px 520px at -6% -6%, rgba(124,184,255,.26), transparent 62%),
  radial-gradient(700px 400px at 50% 30%, rgba(124,232,226,.10), transparent 70%), var(--bg) !important; background-attachment: fixed !important; }
[data-theme="dark"] body { background:
  radial-gradient(1100px 520px at 92% -8%, rgba(255,171,138,.10), transparent 62%),
  radial-gradient(900px 520px at -6% -6%, rgba(76,194,255,.14), transparent 62%), var(--bg) !important; background-attachment: fixed !important; }
.view { position: relative; isolation: isolate; }
.view.enter { animation: viewin .5s var(--ease-ios) both; }
@keyframes viewin { from { opacity: 0; transform: translateY(12px); } }

/* words that rise, once */
.w { display: inline-block; animation: wrise .9s var(--ease-ios) both; animation-delay: calc(var(--w) * 55ms + 60ms); }
@keyframes wrise { from { opacity: 0; transform: translateY(.5em); filter: blur(6px); } }

/* ---------- hero ---------- */
.hero { display: grid; gap: 22px; padding: 14px 0 6px; }
.hello { margin: 0 0 8px; color: var(--muted); font-size: .8125rem; font-weight: 600; letter-spacing: .01em; }
.hero__h { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 2.5rem; line-height: 1.06; letter-spacing: -.015em; text-wrap: balance; }
.stats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 16px 0 18px; color: var(--muted); font-size: .875rem; }
.stats b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.stats i { width: 4px; height: 4px; border-radius: 50%; background: var(--peach); }
.lsearch > svg { width: 20px; height: 20px; flex: none; margin-left: -4px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.lsearch { padding-left: 16px; }
.lsearch button { transition: transform .3s var(--spring), background .2s; }
.lsearch button:hover { transform: translateX(2px) scale(1.05); }

/* ---------- the map ---------- */
.map { position: relative; margin: 0; padding: 6px; border-radius: 30px; background: color-mix(in srgb, var(--card) 72%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow-1); }
.map svg { width: 100%; height: auto; overflow: visible; }
.mring { fill: none; stroke: var(--ink); stroke-opacity: .14; stroke-width: 1; stroke-dasharray: 1.5 6; stroke-linecap: round; }
.mg { animation: drift var(--d) ease-in-out var(--dl) infinite alternate; transition: opacity .6s var(--ease-ios); }
@keyframes drift { from { transform: translate(-3px, 2.5px); } to { transform: translate(3px, -3px); } }
.mgi { transform-box: view-box; transition: transform .7s var(--spring); }
.mg.on .mgi { transform: scale(1.13); }
.map[data-sel]:not([data-sel=""]) .mg:not(.on) { opacity: .62; }
.map.hov .mg:not(.on) { opacity: .3; }
.mhalo { fill: var(--ac); fill-opacity: .07; cursor: pointer; transition: fill-opacity .5s; }
.mg.on .mhalo { fill-opacity: .15; }
.mlk { fill: none; stroke: var(--ac); stroke-opacity: .4; stroke-width: 1.3; stroke-linecap: round; stroke-dasharray: 600; animation: mlink 2.2s var(--ease-ios) .35s both; pointer-events: none; }
@keyframes mlink { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }
.md { cursor: pointer; outline: none; }
.md circle { fill: var(--ac); transform-box: fill-box; transform-origin: center; animation: dotin .8s var(--spring) both; animation-delay: calc(var(--i) * 13ms + 150ms); transition: transform .35s var(--spring), fill .3s; }
.md:nth-of-type(3n) circle { fill: color-mix(in srgb, var(--ac) 55%, var(--card)); }
.md:nth-of-type(4n+1) circle { fill: color-mix(in srgb, var(--ac) 78%, var(--ink)); }
@keyframes dotin { from { opacity: 0; transform: scale(0); } }
.md:hover circle, .md.hi circle { transform: scale(1.8); }
.md:focus-visible circle { transform: scale(1.8); stroke: var(--ink); stroke-width: 1.5; }
.ml { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; fill: var(--ac); opacity: .8; cursor: pointer; transition: opacity .4s; }
.ml.on { opacity: 1; }
.map[data-sel]:not([data-sel=""]) .ml:not(.on) { opacity: .45; }
.maptip { position: absolute; z-index: 4; width: 260px; transform: translateY(-100%); padding: 12px 14px 13px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow-2); pointer-events: none; }
.maptip.on { animation: tipin .35s var(--spring) both; }
@keyframes tipin { from { opacity: 0; transform: translateY(calc(-100% + 8px)) scale(.96); } }
.maptip small { display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ac); }
.maptip b { display: block; margin: 2px 0 4px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.05rem; line-height: 1.25; }
.maptip span { display: block; font-size: .8125rem; line-height: 1.45; color: var(--ink-2); }

/* ---------- today's idea ---------- */
.today { display: grid; margin: 30px 0 8px; border-radius: 30px; overflow: hidden; background: var(--card); box-shadow: var(--shadow-1); color: var(--ink); text-decoration: none; transition: transform .45s var(--spring), box-shadow .45s; }
.today__a { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 8; overflow: hidden;
  background: radial-gradient(90% 120% at 18% 0%, color-mix(in srgb, var(--ac) 34%, var(--card)) 0, transparent 62%),
              radial-gradient(80% 110% at 100% 100%, color-mix(in srgb, var(--peach) 30%, var(--card)) 0, transparent 60%),
              color-mix(in srgb, var(--ac) 10%, var(--card)); }
.today__a .art { position: relative; z-index: 1; width: min(66%, 340px); }
.today__a i, .iart i { position: absolute; border-radius: 50%; filter: blur(18px); opacity: .55; animation: blob 14s ease-in-out infinite alternate; }
.today__a i:nth-of-type(1), .iart i:nth-of-type(1) { width: 38%; aspect-ratio: 1; left: -8%; top: -16%; background: color-mix(in srgb, var(--ac) 45%, transparent); }
.today__a i:nth-of-type(2), .iart i:nth-of-type(2) { width: 30%; aspect-ratio: 1; right: -6%; bottom: -14%; background: color-mix(in srgb, var(--peach) 55%, transparent); animation-duration: 17s; animation-direction: alternate-reverse; }
.iart i:nth-of-type(3) { width: 22%; aspect-ratio: 1; right: 30%; top: -10%; background: color-mix(in srgb, var(--aqua) 40%, transparent); animation-duration: 20s; }
@keyframes blob { 50% { transform: translate(10%, 8%) scale(1.12); } 100% { transform: translate(-6%, 12%) scale(.94); } }
.today__b { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px; }
.today__b small { font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ac); }
.today__b b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.75rem; line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
.today__b > span { color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.today__b em { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-style: normal; font-weight: 700; color: var(--ac); }
.today__b em svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--spring); }
@media (hover: hover) { .today:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); } .today:hover em svg { transform: translateX(5px); } }

/* ---------- chapters ---------- */
.secth { margin: 34px 0 12px; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.75rem; letter-spacing: -.01em; }
.chaps { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 18px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.chaps::-webkit-scrollbar { display: none; }
.chap { flex: none; width: 172px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 10px 14px; border: 0; border-radius: 22px; text-align: left; scroll-snap-align: start; color: var(--ink);
  background: linear-gradient(165deg, color-mix(in srgb, var(--ac) 15%, var(--card)), color-mix(in srgb, var(--ac) 4%, var(--card)));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 16%, transparent);
  opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease-ios) calc(var(--n) * 50ms), transform .55s var(--spring), background .45s var(--ease-ios), box-shadow .45s, color .3s; }
.chap.in { opacity: 1; transform: none; }
.chap__a { width: 100%; aspect-ratio: 16 / 9; display: grid; place-items: center; margin-bottom: 6px; border-radius: 14px; background: color-mix(in srgb, var(--ac) 12%, var(--card)); transition: background .45s; }
.chap__a .art { width: 70%; }
.chap__t { padding: 0 4px; font-family: var(--serif); font-style: italic; font-size: 1.125rem; line-height: 1.2; }
.chap__n { padding: 0 4px; font-size: .75rem; font-weight: 600; color: var(--muted); transition: color .3s; }
.chap.on { background: var(--ac); color: #fff; box-shadow: 0 18px 34px -16px color-mix(in srgb, var(--ac) 80%, transparent); transform: translateY(-3px); }
.chap.on .chap__a { background: rgba(255,255,255,.16); }
.chap.on .chap__n { color: rgba(255,255,255,.86); }
.chap.on .art .a1 { fill: #fff; } .chap.on .art .a2 { fill: rgba(255,255,255,.5); }
.chap.on .art .ln, .chap.on .art .dashf { stroke: #fff; } .chap.on .art .dash, .chap.on .art .lnx { stroke: rgba(255,255,255,.85); } .chap.on .art .lnw { stroke: var(--ac); }
[data-theme="dark"] .chap.on { color: #0b1220; }
[data-theme="dark"] .chap.on .chap__n { color: rgba(11,18,32,.75); }
[data-theme="dark"] .chap.on .art .a1 { fill: #0b1220; } [data-theme="dark"] .chap.on .art .a2 { fill: rgba(11,18,32,.4); }
[data-theme="dark"] .chap.on .art .ln, [data-theme="dark"] .chap.on .art .dashf { stroke: #0b1220; }
@media (hover: hover) { .chap:not(.on):hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 30%, transparent), var(--shadow-1); } }

.where { margin: 18px 0 16px; }
.where small { color: var(--ac); }
.where h2 { font-size: 2rem; }

/* ---------- idea cards ---------- */
.irow__a { background: radial-gradient(130% 110% at 12% 0%, color-mix(in srgb, var(--ac) 26%, var(--card)) 0, color-mix(in srgb, var(--ac) 8%, var(--card)) 72%); }
.irow { transition: transform .45s var(--spring), box-shadow .45s var(--ease-ios); }
.irow .art { transition: transform .6s var(--spring); }
@media (hover: hover) { .irow:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); } .irow:hover .art { transform: scale(1.07) rotate(-1.5deg); } }
.ideas.swap .irow { animation: cardin .65s var(--ease-ios) both; animation-delay: calc(var(--n, 0) * 45ms); }
@keyframes cardin { from { opacity: 0; transform: translateY(20px) scale(.98); } }
/* drawings wait, then draw themselves */
.irow__a .art:not(.drawon) .ln, .irow__a .art:not(.drawon) .lnx, .irow__a .art:not(.drawon) .lnw,
.today .art:not(.drawon) .ln, .today .art:not(.drawon) .lnx, .today .art:not(.drawon) .lnw { stroke-dasharray: 160; stroke-dashoffset: 160; }
.irow__a .art:not(.drawon) .a1, .irow__a .art:not(.drawon) .a2, .today .art:not(.drawon) .a1, .today .art:not(.drawon) .a2,
.irow__a .art:not(.drawon) .dash, .irow__a .art:not(.drawon) .dashf, .today .art:not(.drawon) .dash, .today .art:not(.drawon) .dashf { opacity: 0; }
.drawon .dash, .drawon .dashf { animation: fadein .8s var(--ease-ios) .55s both; }
@keyframes fadein { from { opacity: 0; } }
.today .drawon .ln, .today .drawon .lnx { animation-duration: 1.6s; }

/* ---------- page heads on Ask, Notebook and Books ---------- */
.pghead { position: relative; padding: 26px 0 6px; }
.pghead h1 { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 2.75rem; line-height: 1.05; letter-spacing: -.015em; }
.pghead__f { position: absolute; z-index: -1; left: -16px; right: -16px; top: -60px; height: 260px; overflow: hidden; pointer-events: none; }
.pghead__f i { position: absolute; border-radius: 50%; filter: blur(30px); opacity: .5; animation: blob 16s ease-in-out infinite alternate; }
.pghead__f i:nth-child(1) { width: 260px; height: 260px; left: -40px; top: -60px; }
.pghead__f i:nth-child(2) { width: 200px; height: 200px; right: 8%; top: 10px; animation-duration: 19s; animation-direction: alternate-reverse; }
.pghead__f i:nth-child(3) { width: 140px; height: 140px; left: 40%; top: 80px; animation-duration: 23s; }
[data-tone="ask"] .pghead__f i:nth-child(1) { background: #7cb8ff; } [data-tone="ask"] .pghead__f i:nth-child(2) { background: #7ce8e2; } [data-tone="ask"] .pghead__f i:nth-child(3) { background: #ffd0b8; }
[data-tone="notebook"] .pghead__f i:nth-child(1) { background: #ffb090; } [data-tone="notebook"] .pghead__f i:nth-child(2) { background: #ffd98a; } [data-tone="notebook"] .pghead__f i:nth-child(3) { background: #9fd0ff; }
[data-tone="books"] .pghead__f i:nth-child(1) { background: #8ad6c4; } [data-tone="books"] .pghead__f i:nth-child(2) { background: #f2c661; } [data-tone="books"] .pghead__f i:nth-child(3) { background: #ffb090; }
[data-theme="dark"] .pghead__f i { opacity: .22; }

/* ---------- idea page ---------- */
.iart { position: relative; overflow: hidden; margin: 6px 0 22px; aspect-ratio: 16 / 9; border-radius: 30px;
  background: radial-gradient(90% 120% at 15% 0%, color-mix(in srgb, var(--ac) 36%, var(--card)) 0, transparent 62%),
              radial-gradient(80% 110% at 100% 100%, color-mix(in srgb, var(--peach) 30%, var(--card)) 0, transparent 60%),
              color-mix(in srgb, var(--ac) 12%, var(--card)); box-shadow: var(--shadow-1); }
.iart .art { position: relative; z-index: 1; width: min(66%, 380px); animation: floaty 7s ease-in-out 1.4s infinite alternate; }
@keyframes floaty { to { transform: translateY(-6px) rotate(-1deg); } }
.ititle { font-size: 2.5rem; }
.gist { font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; background: none; padding: 0 0 0 18px; border-radius: 0; box-shadow: inset 3px 0 0 var(--ac); }
.gist b { font-family: var(--sans); }
.rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-ios), transform .8s var(--ease-ios); }
.rv.in { opacity: 1; transform: none; }
.rv li { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease-ios), transform .6s var(--ease-ios); }
.rv.in li { opacity: 1; transform: none; }
.rv.in li:nth-child(2) { transition-delay: .08s; } .rv.in li:nth-child(3) { transition-delay: .16s; } .rv.in li:nth-child(4) { transition-delay: .24s; } .rv.in li:nth-child(5) { transition-delay: .32s; }
.sec li::before { box-shadow: 0 0 0 5px color-mix(in srgb, var(--ac) 16%, transparent); }

@media (min-width: 700px) {
  .hero__h { font-size: 3.1rem; }
  .today { grid-template-columns: 1.15fr 1fr; align-items: stretch; }
  .today__a { aspect-ratio: auto; min-height: 260px; }
  .today__b { justify-content: center; padding: 30px 34px; }
  .today__b b { font-size: 2.2rem; }
  .ititle { font-size: 3rem; }
  .pghead h1 { font-size: 3.25rem; }
}
@media (min-width: 1000px) {
  .hero { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: 44px; padding-top: 30px; }
  .hero__h { font-size: 3.5rem; }
  .chaps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 4px 0 18px; }
  .chap { width: auto; }
}
@media (max-width: 699px) { .ml { display: none; } .maptip { width: 220px; } }

/* Reduce Motion: no drifting, rising or drawing; everything is simply there */
@media (prefers-reduced-motion: reduce) {
  .w, .mg, .md circle, .mlk, .today__a i, .iart i, .pghead__f i, .iart .art, .view.enter, .ideas.swap .irow { animation: none !important; }
  .chap, .rv, .rv li { opacity: 1 !important; transform: none !important; }
}
html.rm .w, html.rm .mg, html.rm .md circle, html.rm .mlk, html.rm .today__a i, html.rm .iart i, html.rm .pghead__f i, html.rm .iart .art, html.rm .view.enter, html.rm .ideas.swap .irow { animation: none !important; }
html.rm .chap, html.rm .rv, html.rm .rv li { opacity: 1 !important; transform: none !important; }

.map figcaption { position: absolute; left: 22px; top: 16px; font-size: .75rem; font-weight: 600; color: var(--muted); pointer-events: none; }
