/* The static pages' stylesheet: the blog (blog.mjs) and the reading pages
   (readings.mjs). These pages ship no app bundle, and since the homepage redesign
   they no longer ship the app's Tailwind stylesheet either: this file is all they
   load. It is the homepage's design (HomepageTrial.vue) carried over by hand, so
   when the homepage's palette or its building blocks change, change them here too:
   night bands with a still starfield and the faint grid, paper sheets that meet
   them on a straight, lit horizon, Inter set bold and tight, the violet-to-amber
   light on the words that matter, mono eyebrow tags, the violet CTA, bubbles with
   one tucked corner. A fixed design in light and dark alike, like the homepage.

   Every loop animates opacity or transform alone (iOS flickers on repaints). */

:root {
  --night: #0c0920;
  --night-2: #17113a;
  --night-deep: #08061a;
  --night-line: rgba(196, 180, 255, 0.12);
  --violet: #5730d9;
  --violet-hi: #7a4ef0;
  --coral: #ff6b4a;
  --spark: linear-gradient(100deg, #a98bff 0%, #e07ad8 38%, #ff8a66 70%, #ffc06b 100%);
  --spark-ink: linear-gradient(100deg, #5730d9 0%, #b03fa8 52%, #e5603f 100%);
  --cta: linear-gradient(120deg, #5f37e6 0%, #7a4ef0 55%, #9a5cff 100%);
  --on-night: #f5f2ff;
  --on-night-soft: rgba(235, 230, 255, 0.76);
  --on-night-faint: rgba(235, 230, 255, 0.52);
  --paper: #f6f4fb;
  --card: #ffffff;
  --ink: #1a1630;
  --ink-soft: #55516c;
  --ink-faint: #7f7a96;
  --rule: rgba(26, 22, 48, 0.08);
  --signal: #8de9ff;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --sec-y: 3.5rem;
  --bub: 22px 22px 22px 6px;
  --bub-me: 22px 22px 6px 22px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --card-shadow: 0 1px 1px rgba(26, 22, 48, 0.04), 0 2px 6px -2px rgba(60, 30, 160, 0.08), 0 24px 48px -26px rgba(60, 30, 160, 0.34);
  --grid: linear-gradient(rgba(196, 180, 255, 0.06) 1px, transparent 1px) 0 0 / 44px 44px,
          linear-gradient(90deg, rgba(196, 180, 255, 0.06) 1px, transparent 1px) 0 0 / 44px 44px;
  --const: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Cg fill='none' stroke='rgba(255,185,138,.16)' stroke-width='.8'%3E%3Cpath d='M40 120L130 70L210 110L290 40L380 90M210 110L240 200L330 230L420 180L520 220M330 230L360 330M60 420L150 380L230 440L320 410L360 330L460 360L560 300M150 380L120 520L220 560M460 360L500 480L580 520'/%3E%3C/g%3E%3Cg fill='rgba(255,236,220,.55)'%3E%3Ccircle cx='40' cy='120' r='2'/%3E%3Ccircle cx='130' cy='70' r='2.6'/%3E%3Ccircle cx='210' cy='110' r='2'/%3E%3Ccircle cx='290' cy='40' r='3'/%3E%3Ccircle cx='380' cy='90' r='2'/%3E%3Ccircle cx='240' cy='200' r='1.6'/%3E%3Ccircle cx='330' cy='230' r='2.6'/%3E%3Ccircle cx='420' cy='180' r='2'/%3E%3Ccircle cx='520' cy='220' r='2.4'/%3E%3Ccircle cx='360' cy='330' r='3'/%3E%3Ccircle cx='60' cy='420' r='2'/%3E%3Ccircle cx='150' cy='380' r='2.6'/%3E%3Ccircle cx='230' cy='440' r='1.8'/%3E%3Ccircle cx='320' cy='410' r='2'/%3E%3Ccircle cx='460' cy='360' r='2.4'/%3E%3Ccircle cx='560' cy='300' r='2'/%3E%3Ccircle cx='120' cy='520' r='1.8'/%3E%3Ccircle cx='220' cy='560' r='2.2'/%3E%3Ccircle cx='500' cy='480' r='2'/%3E%3Ccircle cx='580' cy='520' r='1.8'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}
@media (min-width: 960px) { :root { --sec-y: 5rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--night); color: var(--ink);
  font-family: var(--sans); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
::selection { background: rgba(122, 78, 240, 0.35); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #b9a2ff; outline-offset: 3px; border-radius: 6px; }
.sp-paper a:focus-visible, .sp-paper summary:focus-visible { outline-color: var(--violet); }
.sp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ————— Night and paper ————— */
.sp-night, .sp-paper { position: relative; display: flow-root; }
.sp-night {
  isolation: isolate; color: var(--on-night);
  background:
    radial-gradient(55% 40% at 85% 0%, rgba(122, 78, 240, 0.24), transparent 70%),
    radial-gradient(45% 35% at 0% 100%, rgba(255, 107, 74, 0.08), transparent 70%),
    var(--night);
}
.sp-night--const {
  background:
    var(--const) no-repeat 50% 40% / min(52rem, 170%) auto,
    radial-gradient(60% 45% at 50% 55%, rgba(95, 55, 230, 0.26), transparent 70%),
    radial-gradient(45% 35% at 100% 100%, rgba(255, 107, 74, 0.1), transparent 70%),
    var(--night);
}
.sp-night::before, .sp-night::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit; }
.sp-night::before {
  background-image:
    radial-gradient(1px 1px at 23px 41px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 141px 97px, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 79px 171px, rgba(255, 240, 230, 0.85), transparent),
    radial-gradient(1px 1px at 197px 13px, rgba(196, 180, 255, 0.7), transparent),
    radial-gradient(1px 1px at 112px 203px, rgba(255, 255, 255, 0.5), transparent);
  background-size: 223px 211px; opacity: 0.5;
}
.sp-night::after {
  background-image:
    radial-gradient(1.5px 1.5px at 61px 23px, #fff, transparent),
    radial-gradient(1px 1px at 233px 157px, rgba(255, 138, 102, 0.95), transparent),
    radial-gradient(2px 2px at 151px 271px, rgba(255, 240, 230, 0.95), transparent),
    radial-gradient(1px 1px at 291px 61px, rgba(169, 139, 255, 0.95), transparent);
  background-size: 307px 331px; opacity: 0.6;
  will-change: opacity; animation: sp-twinkle 3.8s ease-in-out infinite alternate;
}
@keyframes sp-twinkle { from { opacity: 0.75; } to { opacity: 0.2; } }
/* The machine's coordinate grid, faded out toward the edges. */
.sp-grid { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--grid);
  -webkit-mask-image: radial-gradient(70% 75% at 50% 35%, #000, transparent 85%); mask-image: radial-gradient(70% 75% at 50% 35%, #000, transparent 85%); }

.sp-paper {
  color: var(--ink);
  background:
    radial-gradient(65% 20rem at 50% 0%, rgba(122, 78, 240, 0.1), transparent 75%),
    radial-gradient(40% 16rem at 100% 0%, rgba(255, 107, 74, 0.06), transparent 75%),
    var(--paper);
}
/* Where night turns to paper (or back), the two meet on a straight horizon: a
   hairline of the page's light, and on the sky's side of it the dial's scale
   laid flat (a tick every 12px, every fifth one long) under a low glow, all
   fading out toward the edges. The paper section draws it, over its night
   neighbour. The homepage's seam (HomepageTrial.vue): keep the two in step. */
.sp-night + .sp-paper::before, .sp-paper:has(+ .sp-night)::after {
  --tick: rgba(196, 180, 255, 0.34); --tick-major: rgba(141, 233, 255, 0.7);
  content: ''; position: absolute; left: 0; right: 0; bottom: 100%; z-index: 2; height: 3.5rem; pointer-events: none;
  background:
    linear-gradient(90deg, #a98bff, #e07ad8 38%, #ff8a66 70%, #ffc06b) 50% 100% / 100% 1px no-repeat,
    linear-gradient(90deg, var(--tick-major) 1px, transparent 1px) calc(50% + 30px) 100% / 60px 11px repeat-x,
    linear-gradient(90deg, var(--tick) 1px, transparent 1px) calc(50% + 6px) 100% / 12px 5px repeat-x,
    radial-gradient(50% 100% at 50% 100%, rgba(122, 78, 240, 0.42), rgba(224, 122, 216, 0.1) 55%, transparent 75%);
  -webkit-mask-image: linear-gradient(90deg, transparent 4%, #000 34%, #000 66%, transparent 96%);
  mask-image: linear-gradient(90deg, transparent 4%, #000 34%, #000 66%, transparent 96%);
}
.sp-paper:has(+ .sp-night)::after { bottom: auto; top: 100%; transform: scaleY(-1); }
/* Two paper sections in a row read as one sheet. */
.sp-paper + .sp-paper { background: var(--paper); }
.sp-paper + .sp-paper > .sp-wrap { padding-top: 0; }

.sp-wrap { max-width: 46rem; margin: 0 auto; padding: var(--sec-y) 1.25rem; }
.sp-wrap--prose { max-width: 42rem; }
.sp-wrap--wide { max-width: 64rem; }
.sp-center { text-align: center; }

/* ————— Header ————— */
.sp-top { position: relative; z-index: 20; padding-top: env(safe-area-inset-top); background: var(--night); color: var(--on-night); }
.sp-top::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(122, 78, 240, 0.55) 25%, rgba(224, 122, 216, 0.45) 55%, rgba(255, 138, 102, 0.4) 80%, transparent);
}
.sp-top-inner { max-width: 72rem; margin: 0 auto; height: 3.75rem; padding: 0 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.sp-mark { display: inline-flex; align-items: center; gap: 9px; min-width: 0; color: inherit; text-decoration: none; }
.sp-wordmark { font-family: 'Chakra Petch', var(--sans); font-weight: 600; font-size: 1.12rem; line-height: 1; letter-spacing: 0.1em; color: var(--on-night); white-space: nowrap; }
.sp-wordmark > span { font-size: 0.94em; }
.sp-wordmark > span:last-child { margin-right: -0.1em; color: var(--on-night); text-shadow: 0 0 0.05em rgb(154 92 255), 0 0 0.10em rgb(154 92 255), 0 0 0.24em rgb(154 92 255 / 0.5); }
.sp-nav { display: flex; align-items: center; gap: 0.15rem; }
.sp-nav a:not(.sp-btn) { display: none; font-size: 0.88rem; font-weight: 500; color: var(--on-night-soft); text-decoration: none; padding: 0.45rem 0.8rem; border-radius: 999px; transition: color 0.2s, background-color 0.2s; }
.sp-nav a:not(.sp-btn):hover { color: var(--on-night); background: rgba(196, 180, 255, 0.08); }
.sp-nav .sp-btn { margin-left: 0.35rem; }
@media (min-width: 720px) { .sp-nav a:not(.sp-btn) { display: inline-block; } }
@media (max-width: 360px) { .sp-wordmark { font-size: 1rem; } .sp-top-inner { padding: 0 1rem; } }

/* ————— Type ————— */
.sp-h1, .sp-h2 { font-family: var(--sans); font-weight: 700; text-wrap: balance; margin: 0; }
.sp-h1 { font-size: clamp(2rem, 7vw, 3.6rem); line-height: 1.06; letter-spacing: -0.042em; color: var(--on-night); }
.sp-h2 { font-size: clamp(1.6rem, 5vw, 2.5rem); line-height: 1.12; letter-spacing: -0.038em; margin-bottom: 1rem; }
.sp-night .sp-h2 { color: var(--on-night); }
.sp-glow { background: var(--spark); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; padding-right: 0.06em; }
.sp-paper .sp-glow { background-image: var(--spark-ink); }
.sp-sub { margin: 1.1rem auto 0; max-width: 36rem; font-size: 1.06rem; color: var(--ink-soft); text-wrap: pretty; }
.sp-night .sp-sub { color: var(--on-night-soft); }
@media (min-width: 960px) { .sp-sub { font-size: 1.14rem; } }
.sp-fine { margin: 0.9rem auto 0; font-size: 0.82rem; color: var(--ink-faint); }
.sp-night .sp-fine { color: var(--on-night-faint); }

/* A section's label: the machine's index tag, in mono. */
.sp-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem; margin: 0 0 1.1rem; padding: 0.3rem 0.75rem 0.3rem 0.3rem;
  border-radius: 6px; font-family: var(--mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--violet); background: rgba(87, 48, 217, 0.06); box-shadow: inset 0 0 0 1px rgba(87, 48, 217, 0.18); text-decoration: none;
}
.sp-eyebrow[data-n]::before { content: attr(data-n); padding: 0.1rem 0.4rem; border-radius: 3px; font-size: 0.62rem; letter-spacing: 0.04em; color: #fff; background: var(--violet); }
.sp-eyebrow:not([data-n]) { padding-left: 0.75rem; }
.sp-night .sp-eyebrow { color: var(--signal); background: rgba(141, 233, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(141, 233, 255, 0.24); }
.sp-night .sp-eyebrow[data-n]::before { color: var(--night); background: var(--signal); box-shadow: 0 0 12px rgba(141, 233, 255, 0.55); }

.sp-crumbs { margin: 0 0 1.6rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-night-faint); }
.sp-crumbs a { color: var(--on-night-soft); text-decoration: none; }
.sp-crumbs a:hover { color: var(--on-night); }
.sp-crumbs span[aria-hidden] { margin: 0 0.45rem; opacity: 0.6; }
.sp-meta { margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-night-faint); }

/* ————— Buttons ————— */
.sp-btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 650; font-size: 1.04rem; letter-spacing: -0.012em; text-decoration: none;
  color: #fff; background: var(--cta); border: 0; border-radius: 16px; padding: 1rem 1.7rem; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -3px 10px -3px rgba(255, 107, 74, 0.45),
    0 2px 4px -1px rgba(12, 9, 32, 0.4), 0 16px 36px -12px rgba(122, 78, 240, 0.85);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.sp-btn::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.35) 48%, transparent 62%); transform: translateX(-110%); }
@media (hover: hover) {
  .sp-btn:hover { transform: translateY(-2px); }
  .sp-btn:hover::before { transform: translateX(110%); transition: transform 0.85s var(--ease); }
  .sp-btn:hover .sp-arrow { transform: translateX(4px); }
}
.sp-btn:active { transform: scale(0.98); }
.sp-btn--sm { font-size: 0.88rem; padding: 0.55rem 1rem; border-radius: 12px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 10px 24px -10px rgba(122, 78, 240, 0.95); }
.sp-arrow { width: 1.1em; height: 1.1em; flex: none; margin-right: -0.2em; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease); }
.sp-cta { display: flex; flex-direction: column; align-items: center; margin-top: 1.9rem; }
.sp-ticks { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem 1rem; font-size: 0.82rem; color: var(--on-night-faint); }
.sp-ticks li::before { content: '✓'; margin-right: 0.4rem; color: var(--signal); }

/* ————— The article ————— */
.sp-prose { font-size: 1.06rem; line-height: 1.75; color: #3a3653; text-wrap: pretty; overflow-wrap: break-word; }
.sp-prose > :first-child { margin-top: 0; }
.sp-prose p, .sp-prose ul, .sp-prose ol, .sp-prose table, .sp-prose blockquote { margin: 0 0 1.25em; }
.sp-prose h2 { margin: 2.4em 0 0.7em; font-size: clamp(1.45rem, 4.2vw, 1.85rem); line-height: 1.18; letter-spacing: -0.032em; font-weight: 700; color: var(--ink); text-wrap: balance; }
.sp-prose h3 { margin: 1.9em 0 0.5em; font-size: 1.18rem; line-height: 1.3; letter-spacing: -0.02em; font-weight: 650; color: var(--ink); }
.sp-prose strong { color: var(--ink); font-weight: 650; }
.sp-prose a { color: var(--violet); text-decoration: underline; text-decoration-color: rgba(87, 48, 217, 0.3); text-underline-offset: 3px; text-decoration-thickness: 1.5px; transition: text-decoration-color 0.2s; }
.sp-prose a:hover { text-decoration-color: var(--violet); }
.sp-prose ul, .sp-prose ol { padding-left: 1.3em; }
.sp-prose li { margin: 0.4em 0; padding-left: 0.2em; }
.sp-prose ul li::marker { color: var(--violet-hi); }
.sp-prose ol li::marker { font-family: var(--mono); font-size: 0.85em; color: var(--violet); }
.sp-prose blockquote { padding: 1.1rem 1.3rem; border-radius: var(--bub); background: var(--card); box-shadow: var(--card-shadow), inset 3px 0 0 var(--violet-hi); color: var(--ink); }
.sp-prose blockquote > :last-child { margin-bottom: 0; }
.sp-prose hr { border: 0; height: 1px; margin: 2.5em 0; background: var(--rule); }
.sp-prose code { font-family: var(--mono); font-size: 0.88em; padding: 0.1em 0.35em; border-radius: 4px; background: rgba(87, 48, 217, 0.07); color: var(--violet); }
/* Tables scroll inside their own box on a phone rather than widening the page. */
.sp-table { margin: 0 0 1.5em; overflow-x: auto; border-radius: 16px; background: var(--card); box-shadow: var(--card-shadow), inset 0 0 0 1px var(--rule); }
.sp-prose table { margin: 0; width: 100%; border-collapse: collapse; font-size: 0.93rem; line-height: 1.5; }
.sp-prose th { text-align: left; padding: 0.8rem 1rem; font-family: var(--mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet); background: rgba(87, 48, 217, 0.04); white-space: nowrap; }
.sp-prose td { padding: 0.75rem 1rem; border-top: 1px solid var(--rule); vertical-align: top; }
/* The answer up top: what a search snippet should quote. */
.sp-answer { margin: 0 0 2.2rem; padding: 1.3rem 1.4rem; border-radius: var(--bub); background: var(--card); box-shadow: var(--card-shadow), inset 0 0 0 1px rgba(87, 48, 217, 0.14); }
.sp-answer-k { display: block; margin-bottom: 0.45rem; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet); }
.sp-answer p { margin: 0; font-size: 1.08rem; line-height: 1.65; color: var(--ink); }

/* ————— Cards ————— */
.sp-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; text-align: left; }
@media (min-width: 640px) { .sp-cards--2 { grid-template-columns: 1fr 1fr; } .sp-cards--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .sp-cards--3 { grid-template-columns: repeat(3, 1fr); } }
.sp-card { display: block; height: 100%; padding: 1.25rem 1.3rem; border-radius: 20px; background: var(--card); color: var(--ink); text-decoration: none;
  box-shadow: 0 1px 2px rgba(26, 22, 48, 0.04), inset 0 0 0 1px rgba(26, 22, 48, 0.06); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
a.sp-card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow), inset 0 0 0 1px rgba(87, 48, 217, 0.2); }
.sp-card-k { display: block; margin-bottom: 0.55rem; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet); }
.sp-card h2, .sp-card h3 { margin: 0 0 0.35rem; font-size: 1.08rem; line-height: 1.3; letter-spacing: -0.02em; font-weight: 650; text-wrap: balance; }
.sp-card p { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--ink-soft); }
.sp-card-go { display: inline-block; margin-top: 0.8rem; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet); }

/* ————— The guide: questions as the chat's own bubbles ————— */
.sp-guide { max-width: 34rem; margin: 2rem auto 0; padding: 1rem; border-radius: 26px; text-align: left;
  background: linear-gradient(180deg, rgba(23, 17, 58, 0.92), rgba(12, 9, 32, 0.92)); box-shadow: inset 0 0 0 1px rgba(196, 180, 255, 0.16), 0 30px 60px -30px rgba(95, 55, 230, 0.6); }
.sp-guide-top { display: flex; align-items: center; gap: 0.55rem; padding: 0.15rem 0.3rem 0.85rem; font-size: 0.84rem; font-weight: 600; color: var(--on-night); }
.sp-guide-top svg { width: 22px; height: 22px; }
.sp-guide-top small { margin-left: auto; font-family: var(--mono); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-night-faint); }
.sp-guide-top small::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 0.4rem; border-radius: 50%; background: #5ee39a; box-shadow: 0 0 8px #5ee39a; vertical-align: 1px; }
.sp-bubbles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.sp-bubbles li { max-width: 88%; align-self: flex-end; padding: 0.7rem 1rem; border-radius: var(--bub-me); font-size: 0.95rem; line-height: 1.45; color: #fff;
  background: linear-gradient(135deg, #6a43ee, #8b5cf6); box-shadow: 0 8px 20px -12px rgba(122, 78, 240, 0.9); }
.sp-bubbles li:nth-child(even) { align-self: flex-start; border-radius: var(--bub); color: var(--on-night); background: rgba(196, 180, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(196, 180, 255, 0.14); }
/* On paper, the questions sit as a loose cloud of bubbles. */
.sp-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.55rem; }
.sp-chips li { padding: 0.65rem 1rem; border-radius: var(--bub); font-size: 0.94rem; line-height: 1.4; color: var(--ink); background: var(--card); box-shadow: 0 1px 2px rgba(26, 22, 48, 0.04), inset 0 0 0 1px rgba(87, 48, 217, 0.14); }
.sp-chips li:nth-child(even) { border-radius: var(--bub-me); }

/* ————— FAQ ————— */
.sp-faq { text-align: left; }
.sp-faq details { margin-bottom: 0.6rem; border-radius: 18px; background: var(--card); box-shadow: 0 1px 2px rgba(26, 22, 48, 0.04), inset 0 0 0 1px rgba(26, 22, 48, 0.06); transition: box-shadow 0.25s var(--ease), border-radius 0.25s var(--ease); }
.sp-faq details[open] { border-radius: var(--bub); box-shadow: var(--card-shadow), inset 0 0 0 1px rgba(87, 48, 217, 0.22); }
.sp-faq summary { cursor: pointer; list-style: none; padding: 1.1rem 3.25rem 1.1rem 1.25rem; position: relative; border-radius: 18px; font-weight: 600; font-size: 1.02rem; line-height: 1.4; letter-spacing: -0.015em; }
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq summary::after { content: ''; position: absolute; right: 1rem; top: 50%; margin-top: -0.875rem; width: 1.75rem; height: 1.75rem; border-radius: 50%; color: var(--violet);
  background: linear-gradient(currentColor, currentColor) center / 0.75rem 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 0.75rem no-repeat, rgba(87, 48, 217, 0.08);
  transition: rotate 0.3s var(--ease), background-color 0.3s; }
.sp-faq details[open] summary::after { rotate: 45deg; color: #fff; background-color: var(--violet); }
.sp-faq-a { padding: 0 1.25rem 1.2rem; color: var(--ink-soft); line-height: 1.65; }
.sp-faq-a p { margin: 0; }

/* ————— Lists of links ————— */
.sp-links { display: grid; gap: 2rem; }
@media (min-width: 640px) { .sp-links { grid-template-columns: 1fr 1fr; } }
.sp-links h2 { margin: 0 0 0.8rem; font-family: var(--mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.sp-links ul { list-style: none; margin: 0; padding: 0; }
.sp-links li + li { border-top: 1px solid var(--rule); }
.sp-links a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; color: var(--ink); text-decoration: none; font-weight: 500; line-height: 1.4; }
.sp-links a::after { content: '→'; color: var(--violet); transition: transform 0.25s var(--ease); }
.sp-links a:hover::after { transform: translateX(4px); }

.sp-links--after { margin-top: 2.75rem; }

/* ————— Blog index ————— */
.sp-topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; margin-top: 1.8rem; }
.sp-topics a { padding: 0.45rem 0.9rem; border-radius: 999px; font-size: 0.86rem; font-weight: 500; color: var(--on-night-soft); text-decoration: none; background: rgba(196, 180, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(196, 180, 255, 0.16); transition: color 0.2s, background-color 0.2s; }
.sp-topics a:hover { color: var(--on-night); background: rgba(196, 180, 255, 0.14); }
.sp-section + .sp-section { margin-top: 3.25rem; }
.sp-section-h { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 1.1rem; scroll-margin-top: 1rem; }
.sp-section-h h2 { margin: 0; font-size: clamp(1.4rem, 4vw, 1.8rem); letter-spacing: -0.035em; line-height: 1.15; }
.sp-section-h span { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }

/* ————— Footer ————— */
.sp-footer { background: var(--night-deep); color: var(--on-night-faint); border-top: 1px solid var(--night-line); padding: 2.5rem 1.25rem calc(2.5rem + env(safe-area-inset-bottom)); text-align: center; font-size: 0.84rem; }
.sp-footer .sp-mark { margin-bottom: 1.2rem; }
.sp-footer nav { margin: 0 auto 0.8rem; max-width: 40rem; }
.sp-footer p { margin: 0 0 0.45rem; }
.sp-footer a { display: inline-block; padding: 0.5rem 0.3rem; color: var(--on-night-soft); text-decoration: none; transition: color 0.2s; }
.sp-footer a:hover { color: var(--on-night); }
.sp-footer-note { margin-top: 1rem !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
