/* Eureka · what the home and the reading pages share: letters, colours, widths, the sky, the header with its chapters and search, the footer.
   The colours are direction C's: a pale sky by day, a blue and black night sky by night.
   The letters ship with the site: no request for them leaves it. tools/frame.mjs writes the header and the footer from header.html and footer.html. */
@font-face { font-family: 'Inter'; src: url('fonts/inter-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: block; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-latin-wght-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: block; }
@font-face { font-family: 'Allura'; src: url('fonts/allura-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: 'Sora'; src: url('fonts/sora-latin-wght-normal.woff2') format('woff2'); font-weight: 100 800; font-style: normal; font-display: block; }
@font-face { font-family: 'IBM Plex Mono'; src: url('fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: 'IBM Plex Mono'; src: url('fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: block; }

:root {
  --bg: #eef1f6; --bg-2: #f8f9fc;
  --nebula-1: rgba(120, 110, 240, 0.16); --nebula-2: rgba(60, 170, 220, 0.14); --nebula-3: rgba(240, 150, 120, 0.10);
  --ink: #0c1222; --ink-2: #3a455c; --ink-3: #6a7489;
  --line: rgba(12, 18, 34, 0.09); --line-2: rgba(12, 18, 34, 0.16);
  --glass: rgba(255, 255, 255, 0.55); --glass-2: rgba(255, 255, 255, 0.72); --glass-solid: rgba(250, 251, 254, 0.93); --glass-edge: rgba(255, 255, 255, 0.85); --solid: #fbfcfe;
  --accent: #1d5fd0; --accent-2: #a76a00; --accent-ink: #ffffff;
  --cta: #1d5fd0; --cta-ink: #ffffff;
  --accent-soft: rgba(29, 95, 208, 0.1); --tint: rgba(14, 124, 134, 0.08);
  --shadow: 0 30px 70px -34px rgba(20, 30, 60, 0.35);
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  color-scheme: light;

  /* one set of widths for every page: the header, the footer, the home's sections and the reading columns line up on them */
  --top-h: 56px; --pad: 16px; --gap: 28px;
  --w-left: 0px; --w-right: 0px; --w-main: 3000px;
  --site-w: calc(var(--w-left) + var(--w-right) + var(--w-main) + 2 * var(--gap) + 2 * var(--pad));
}
:root[data-theme="dark"] {
  --bg: #04060c; --bg-2: #0a1122;
  --nebula-1: rgba(90, 80, 220, 0.20); --nebula-2: rgba(30, 140, 200, 0.14); --nebula-3: rgba(240, 120, 160, 0.07);
  --ink: #edf1f8; --ink-2: #b2bccf; --ink-3: #7c879d;
  --line: rgba(255, 255, 255, 0.09); --line-2: rgba(255, 255, 255, 0.16);
  --glass: rgba(12, 18, 34, 0.52); --glass-2: rgba(16, 24, 44, 0.68); --glass-solid: rgba(7, 11, 22, 0.9); --glass-edge: rgba(255, 255, 255, 0.12); --solid: #0a0f1c;
  --accent: #8fd0ff; --accent-2: #f4c46a; --accent-ink: #04060c;
  --cta: #8fd0ff; --cta-ink: #04060c;
  --accent-soft: rgba(143, 208, 255, 0.12); --tint: rgba(126, 224, 212, 0.08);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.75);
  color-scheme: dark;
}
@media (min-width: 1100px) { :root { --top-h: 64px; --pad: 20px; --gap: 24px; --w-left: 210px; --w-right: 190px; } }
@media (min-width: 1280px) { :root { --pad: 24px; --gap: 28px; --w-left: 240px; --w-right: 220px; } }
@media (min-width: 1600px) { :root { --pad: 32px; --gap: 36px; --w-left: 264px; --w-right: 240px; --w-main: 900px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font-body); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.eyebrow { margin: 0 0 14px; font: 600 11px/1 var(--font-display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }

/* ---------- the sky: a nebula; the home draws its constellation on it ---------- */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 72% 30%, var(--nebula-1), transparent 70%), radial-gradient(50% 45% at 20% 75%, var(--nebula-2), transparent 70%),
    radial-gradient(40% 40% at 85% 85%, var(--nebula-3), transparent 70%), linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
.sky.is-on canvas { opacity: 1; }
/* the night's far stars, much dimmer than the graph: three layers drift and breathe like the home's dust, which replaces them once it draws.
   Not by day: points on a pale sky read as dust. Only CSS, so nothing runs with the tab hidden. */
.sky::before, .glint { display: none; }
:root[data-theme="dark"] .sky::before, :root[data-theme="dark"] .glint { display: block; position: absolute; inset: -70px; background: center / cover no-repeat; }
:root[data-theme="dark"] .sky::before { content: ''; opacity: .8; transition: opacity 1.2s ease; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 1000' preserveAspectRatio='xMidYMid slice' fill='none' stroke='%23dfe9ff' stroke-linecap='round'%3E%3Cpath d='M294 964h0M1331 739h0M383 652h0M805 789h0M115 877h0M493 558h0M1418 540h0M614 757h0M921 646h0M155 135h0M864 282h0M989 369h0M1191 947h0M794 700h0M9 828h0M1230 912h0M1236 573h0M393 388h0M487 211h0M171 198h0M333 481h0M1594 459h0M1463 994h0M678 210h0M765 567h0M1301 10h0M1296 397h0M1406 916h0M183 756h0M1262 961h0M782 376h0M50 195h0M548 280h0M886 590h0M985 55h0M1178 180h0M1384 771h0M1464 372h0M841 677h0M453 323h0M542 208h0M1105 955h0M1565 595h0M1396 697h0M126 374h0M1250 728h0M637 179h0M596 610h0M1405 644h0M668 456h0M1462 13h0M847 457h0M1145 740h0M984 555h0M1586 542h0M420 885h0M278 357h0M1058 866h0M196 6h0M1521 477h0M1079 794h0' stroke-width='1.2' stroke-opacity='0.22'/%3E%3Cpath d='M799 451h0M196 884h0M1105 501h0M1531 79h0M675 568h0M1022 466h0M1240 27h0M277 848h0M968 291h0M30 627h0M1453 716h0M1223 165h0M644 25h0M1063 184h0M825 33h0M370 971h0M16 297h0M289 641h0M992 670h0M21 770h0M1135 615h0M338 848h0M658 345h0M1081 453h0M198 987h0M955 756h0M256 39h0M1363 245h0M129 923h0' stroke-width='1.6' stroke-opacity='0.32'/%3E%3C/svg%3E"); animation: drift 50s ease-in-out -20s infinite alternate; }
:root[data-theme="dark"] .glint:nth-of-type(1) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 1000' preserveAspectRatio='xMidYMid slice' fill='none' stroke='%23dfe9ff' stroke-linecap='round'%3E%3Cpath d='M1014 914h0M419 26h0M754 929h0M1240 374h0M29 13h0M1186 887h0M1234 800h0M114 105h0M184 73h0M379 205h0M610 856h0M386 777h0M1203 267h0M52 421h0M394 538h0M3 378h0M594 969h0M1499 585h0M502 324h0M1236 624h0M238 812h0M1477 427h0M92 321h0' stroke-width='2' stroke-opacity='0.44'/%3E%3Cpath d='M1180 120h0M1262 92h0M1338 138h0M1316 214h0M1228 226h0M1410 250h0M720 132h0M800 112h0M886 128h0M962 104h0M1030 126h0M1450 830h0M1522 772h0M1566 868h0M1494 912h0M1586 700h0M700 900h0M772 846h0M860 872h0M812 950h0M940 822h0' stroke-width='2' stroke-opacity='.44'/%3E%3C/svg%3E"); animation: drift2 40s ease-in-out -9s infinite alternate, breathe 11s ease-in-out -3s infinite alternate; }
:root[data-theme="dark"] .glint:nth-of-type(2) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 1000' preserveAspectRatio='xMidYMid slice' fill='none' stroke='%23dfe9ff' stroke-linecap='round'%3E%3Cpath d='M1370 480h0M309 204h0M529 104h0M76 526h0M813 532h0M653 93h0M440 817h0' stroke-width='2.5' stroke-opacity='0.58'/%3E%3C/svg%3E"); animation: drift 32s ease-in-out -25s infinite alternate-reverse, breathe 7s ease-in-out infinite alternate; }
:root[data-theme="dark"] .glint:nth-of-type(3) { animation: drift2 45s ease-in-out -30s infinite alternate-reverse; }
:root[data-theme="dark"] .sky.is-on::before { opacity: 0; animation-play-state: paused; }
:root[data-theme="dark"] .sky.is-on .glint { display: none; }
.glint::before, .glint::after { content: ''; position: absolute; left: var(--x); top: var(--y); width: 2px; height: 2px; border-radius: 50%; background: #dfe9ff;
  box-shadow: 0 0 4px 1px rgba(223, 233, 255, .35); opacity: .12; animation: glint var(--t) ease-in-out var(--d) infinite alternate; }
.glint::after { left: var(--x2); top: var(--y2); animation-duration: calc(var(--t) * 1.37); animation-delay: calc(var(--d) - 4s); }
.glint:nth-of-type(1) { --x: 34%; --y: 22%; --x2: 88%; --y2: 41%; --t: 7s; --d: -2s; }
.glint:nth-of-type(2) { --x: 12%; --y: 58%; --x2: 63%; --y2: 81%; --t: 9s; --d: -6s; }
.glint:nth-of-type(3) { --x: 52%; --y: 9%; --x2: 27%; --y2: 91%; --t: 11s; --d: -1s; }
@keyframes glint { to { opacity: .7; } }
@keyframes drift { from { transform: translate3d(-40px, -14px, 0); } to { transform: translate3d(40px, 14px, 0); } }
@keyframes drift2 { from { transform: translate3d(50px, -24px, 0); } to { transform: translate3d(-50px, 24px, 0); } }
@keyframes breathe { from { opacity: .4; } to { opacity: 1; } }
.sky-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.sky-label { position: absolute; left: 0; top: 0; font: 500 11px/1 var(--font-body); letter-spacing: 0.01em; color: var(--ink-2); white-space: nowrap; padding: 0 0 0 10px; margin: -5px 0 0 6px;
  visibility: hidden; opacity: 0; will-change: transform, opacity; text-shadow: 0 0 8px var(--bg), 0 0 2px var(--bg); }
.sky-label.is-facet { font: 600 10.5px/1 var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--c); }
.sky-label.is-center { color: var(--ink); font-weight: 600; font-size: 12.5px; }
.sky-label::before { content: ''; position: absolute; left: 0; top: 50%; width: 5px; height: 1px; background: var(--c); opacity: 0.8; }
.sky-tip { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; width: min(320px, calc(100vw - 24px)); padding: 14px 16px 12px; border-radius: 14px; background: var(--glass-solid);
  border: 1px solid var(--line-2); box-shadow: var(--shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transition: opacity 0.18s ease; }
.sky-tip.is-on { opacity: 1; }
.sky-tip p { margin: 0; }
.tip-facet { font: 600 10px/1 var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--c); display: flex; align-items: center; gap: 8px; }
.tip-facet i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.tip-name { font: 600 16px/1.25 var(--font-display); margin-top: 9px !important; letter-spacing: -0.01em; color: var(--ink); }
.tip-says { font-size: 13px; line-height: 1.5; color: var(--ink-2); margin-top: 6px !important; }
.tip-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px !important; font: 500 11px/1.3 var(--font-mono); color: var(--ink-3); }

/* ---------- the header: the same on every page, in the same place ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; background: var(--glass-2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.top-in { position: relative; display: flex; align-items: center; gap: 6px; height: var(--top-h); width: 100%; max-width: var(--site-w); margin: 0 auto; padding: 0 var(--pad); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 600 18px/1 var(--font-display); letter-spacing: -0.02em; flex: none; margin-right: 4px; }
.brand svg { width: 22px; height: 22px; }
.top-main { display: flex; align-items: center; gap: 2px; min-width: 0; flex: 1; }
.top-link { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 9px; border: 0; border-radius: 999px; background: none; cursor: pointer; text-decoration: none; font: 500 14.5px/1 var(--font-body); color: var(--ink-2); white-space: nowrap; }
.top-link:hover, .top-link[aria-current="page"] { color: var(--ink); background: var(--line); }
.top-link svg { width: 14px; height: 14px; transition: transform .2s; }
/* the bar keeps two of the home's parts whatever the home grows to; every part, these two included, is in the chapters panel («On the home») */
.chapters-open .chapters-btn { color: var(--ink); background: var(--line); }
.chapters-open .chapters-btn svg { transform: rotate(180deg); }
.top-tools { display: flex; gap: 6px; align-items: center; margin-left: auto; flex: none; }
.round { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--glass); color: var(--ink); cursor: pointer; display: grid; place-items: center; flex: none; padding: 0; }
.round:hover { border-color: var(--accent); }
.round svg { width: 17px; height: 17px; }
.lang { display: flex; align-items: center; gap: 2px; height: 38px; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass); flex: none; font: 500 12px/1 var(--font-mono); letter-spacing: 0.06em; }
.lang a, .lang span { display: grid; place-items: center; height: 30px; min-width: 32px; padding: 0 7px; border-radius: 999px; text-decoration: none; }
.lang a { color: var(--ink-3); }
.lang a:hover { color: var(--ink); background: var(--line); }
.lang span { color: var(--ink); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--line-2); }
/* a phone has no room for both: the switch shows only the other language */
@media (max-width: 559px) {
  .lang { width: 38px; padding: 0; justify-content: center; }
  .lang span { display: none; }
  .lang a { min-width: 0; width: 36px; height: 36px; padding: 0; }
}
:root[data-theme="dark"] #themeBtn .sun, :root:not([data-theme="dark"]) #themeBtn .moon { display: none; }

/* the chapters: one menu under the header, the same tree on every page; only the page you are on is marked. The home's parts come first:
   above the tree on a phone, beside it, held in view while the tree scrolls, from 720 px */
.chapters { position: fixed; top: calc(var(--top-h) + 6px); left: max(var(--pad), calc((100vw - var(--site-w)) / 2 + var(--pad))); z-index: 55; width: min(380px, calc(100vw - 2 * var(--pad)));
  max-height: calc(100vh - var(--top-h) - 24px); overflow: auto; padding: 18px 10px 14px; border-radius: 18px; background: var(--solid); border: 1px solid var(--line-2); box-shadow: var(--shadow); overscroll-behavior: contain; }
.chapters[hidden] { display: none; }
.chapters .eyebrow { padding-left: 12px; }
.home-secs { display: flex; flex-wrap: wrap; gap: 2px 4px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.home-secs .eyebrow { flex-basis: 100%; }
.home-secs a { padding: 0 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font: 500 15px/1.9 var(--font-body); }
.home-secs a:hover { color: var(--ink); background: var(--line); }
@media (min-width: 720px) {
  .chapters { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 14px; width: min(640px, calc(100vw - 2 * var(--pad))); padding: 20px 12px 16px; }
  .home-secs { flex-direction: column; flex-wrap: nowrap; gap: 0; align-self: start; position: sticky; top: 0; margin: 0; padding: 0 14px 0 0; border: 0; border-right: 1px solid var(--line); }
  .home-secs .eyebrow { flex-basis: auto; }
  .home-secs a { padding: 6px 12px; font-size: 14.5px; line-height: 1.35; }
}
.tree ol { list-style: none; margin: 0; padding: 0; }
/* the name of a part (a # heading of eureka.md) over its chapters */
.tree-part { margin: 14px 0 4px; padding: 0 12px; font: 600 10.5px/1.3 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.tree-part:first-child { margin-top: 4px; }
.tree .tree-end { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.tree ol ol { margin: 2px 0 6px 14px; padding-left: 8px; border-left: 1px solid var(--line); }
.tree a { display: block; padding: 7px 12px; border-radius: 10px; border-left: 2px solid transparent; font-size: 14.5px; line-height: 1.35; color: var(--ink-2); text-decoration: none; overflow-wrap: anywhere; }
.tree ol ol a { font-size: 14px; }
.tree a:hover { color: var(--ink); background: var(--line); }
.tree a[aria-current="page"] { color: var(--ink); background: var(--glass-2); border-left-color: var(--accent); font-weight: 600; }

/* ---------- search ---------- */
.search { position: relative; display: none; align-items: center; flex: 1; max-width: 460px; margin-left: 10px; }
.search > svg { position: absolute; left: 14px; width: 16px; height: 16px; color: var(--ink-3); pointer-events: none; }
.search input { width: 100%; height: 38px; padding: 0 40px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass); color: var(--ink); font: 400 14.5px/1 var(--font-body); outline: none; -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--ink-3); opacity: 1; }
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus { border-color: var(--accent); }
.search kbd { position: absolute; right: 12px; font: 500 11px/1 var(--font-mono); color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 5px; padding: 3px 6px; pointer-events: none; }
.search input:focus ~ kbd, .search.has-text kbd { display: none; }
.search-close { display: none; }
.results { position: absolute; top: 46px; left: 0; width: min(560px, 92vw); max-height: min(70vh, 560px); overflow: auto; background: var(--solid); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow); padding: 6px; z-index: 60; }
.results[hidden] { display: none; }
.results a { display: grid; gap: 4px; padding: 10px 12px; border-radius: 11px; text-decoration: none; }
.results a:hover, .results a[aria-selected="true"] { background: var(--accent-soft); }
.results .where { font: 500 11px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.results .what { font: 600 15px/1.3 var(--font-display); letter-spacing: -0.01em; }
.results .snip { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.results mark { background: var(--tint); color: inherit; border-radius: 3px; box-shadow: 0 0 0 1px var(--tint); }
.results .none { margin: 0; padding: 14px 12px; color: var(--ink-3); font-size: 14px; }

@media (min-width: 1100px) {
  .top-in { display: grid; grid-template-columns: var(--w-left) minmax(0, 1fr) var(--w-right); column-gap: var(--gap); }
  .brand { padding-left: 14px; }
  .top-main { margin-left: -9px; }
  .search { display: flex; }
  .search-btn { display: none; }
  .top-tools { justify-self: end; }
}
/* the motto as a handwritten signature between the search and the language, only where the bar has room for it */
.top-sign { display: none; }
@media (min-width: 1340px) {
  .top-sign { display: block; margin-left: auto; padding: 0 6px 0 18px; white-space: nowrap; font: 400 26px/1 'Allura', cursive; color: var(--ink); transform: rotate(-1.5deg) translateY(1px); pointer-events: none; user-select: none; }
}
@media (max-width: 1099px) {
  .searching .search { display: flex; position: absolute; inset: 0; max-width: none; margin: 0; padding: 9px var(--pad); background: var(--solid); z-index: 2; gap: 10px; }
  .searching .search > svg { left: calc(var(--pad) + 14px); top: 20px; }
  .searching .search input { flex: 1; }
  .searching .search kbd { display: none; }
  .searching .search-close { display: inline-flex; flex: none; align-items: center; height: 38px; padding: 0 10px; border: 0; background: none; font: 600 14px/1 var(--font-body); color: var(--accent); cursor: pointer; }
  .searching .results { position: fixed; top: var(--top-h); left: 0; right: 0; width: auto; max-height: calc(100vh - var(--top-h) - 8px); border-radius: 0 0 16px 16px; border-width: 0 0 1px; }
}
@media (max-width: 380px) {
  .brand { font-size: 16px; } .top-link { padding: 0 7px; font-size: 14px; }
  .top-tools { gap: 4px; } .round, .lang { width: 34px; height: 34px; } .lang a { width: 32px; height: 32px; }
}
/* phones keep the logo without its word, so Contents, Pitch Deck and the round buttons fit in one row (measured: the row needs 454 px with it);
   the narrowest also drop the chevron and some padding */
@media (max-width: 459px) { .brand { font-size: 0; gap: 0; } .top-link { padding: 0 7px; font-size: 14px; } }
@media (max-width: 359px) { .brand { margin-right: 0; } .top-link { padding: 0 5px; font-size: 13px; } .chapters-btn svg { display: none; } }

/* ---------- buttons and the little equaliser of every Listen ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; font: 650 16px/1 var(--font-body); background: var(--cta); color: var(--cta-ink); transition: transform .2s ease, filter .2s ease; }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
/* the contact form (tools/frame.mjs), on the home and on the Contact page */
.join-form { display: grid; gap: 14px; padding: 24px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-edge); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.jf-title { margin: 0; font: 600 18px/1.3 var(--font-display); letter-spacing: -0.01em; color: var(--ink); }
.jf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.jf-field { display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.jf-field small { color: var(--ink-3); font-size: 12.5px; }
.jf-field input, .jf-field textarea { width: 100%; box-sizing: border-box; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--glass-2); color: var(--ink); font: 400 16px/1.4 var(--font-body); resize: vertical; }
.jf-field input:focus, .jf-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.jf-end { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; }
.jf-end .btn:disabled { opacity: .6; cursor: default; }
.jf-note { margin: 0; font-size: 13px; color: var(--ink-3); }
.jf-status { margin: 0; font-size: 15px; color: var(--ink-2); }
.jf-status:empty { display: none; }
.jf-status.ok { color: var(--accent); }
.jf-status.bad { color: #d4573b; }
@media (max-width: 600px) { .jf-row { grid-template-columns: 1fr; } .join-form { padding: 18px; } }
/* a drawing drawn once per theme (build.mjs, home.mjs): the page shows the one that matches */
:root[data-theme="dark"] .for-day, :root:not([data-theme="dark"]) .for-night { display: none; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; color: currentColor; }
.eq i { width: 3px; height: 100%; border-radius: 2px; background: currentColor; transform-origin: bottom; transform: scaleY(.25); }
.playing .eq i { animation: eq 320ms ease-in-out infinite alternate; }
.muted-sound.playing .eq i { animation-name: eqQuiet; }
.eq i:nth-child(2) { animation-delay: -.11s !important; animation-duration: 240ms !important; }
.eq i:nth-child(3) { animation-delay: -.23s !important; animation-duration: 400ms !important; }
.eq i:nth-child(4) { animation-delay: -.05s !important; animation-duration: 280ms !important; }
.eq i:nth-child(5) { animation-delay: -.31s !important; animation-duration: 350ms !important; }
@keyframes eq { 0% { transform: scaleY(.2); } 100% { transform: scaleY(1); } }
@keyframes eqQuiet { 0% { transform: scaleY(.12); } 100% { transform: scaleY(.38); } }

/* ---------- the footer ---------- */
.foot { position: relative; z-index: 2; border-top: 1px solid var(--line); background: var(--glass-solid); }
.foot-in { display: grid; grid-template-columns: 1fr; gap: 26px; width: 100%; max-width: var(--site-w); margin: 0 auto; padding: 36px var(--pad) 40px; }
.foot nav { display: grid; gap: 9px; align-content: start; font-size: 14.5px; }
.foot nav b { font: 600 11px/1 var(--font-display); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.foot nav a, .foot .to-top { color: var(--ink-2); text-decoration: none; }
.foot nav a:hover, .foot .to-top:hover { color: var(--accent); }
.foot .to-top { font-size: 14px; align-self: end; }
@media (min-width: 720px) { .foot-in { grid-template-columns: 1.2fr 1fr 1.4fr auto; align-items: start; } }
@media (min-width: 1100px) { .foot-in { padding-left: calc(var(--pad) + 14px); padding-right: calc(var(--pad) + 14px); } }
/* the question about cookies (tools/frame.mjs, site.js): one thin strip along the foot of the window, under every view that fills it; the footer opens it again */
.foot nav button { justify-self: start; padding: 0; border: 0; background: none; font: inherit; color: var(--ink-2); cursor: pointer; }
.foot nav button:hover { color: var(--accent); }
.measure { position: fixed; inset: auto 0 0 0; z-index: 70; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 22px; padding: 10px var(--pad); background: var(--solid); border-top: 1px solid var(--line-2); font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.measure[hidden] { display: none; }
.measure p { margin: 0; }
.measure a { color: var(--accent); }
.measure-end { display: flex; gap: 10px; }
.measure-end button { height: 34px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: none; font: 600 14px/1 var(--font-body); color: var(--ink); cursor: pointer; }
.measure-end button:hover { border-color: var(--accent); color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .eq i { animation: none !important; }
  .sky::before, .glint, .glint::before, .glint::after { animation: none !important; }
  .glint::before, .glint::after { opacity: .4; }
}
