@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/site/fonts/bricolage-grotesque-latin.woff2) format("woff2"); }
@font-face { font-family: Figtree; font-style: normal; font-weight: 300 900; font-display: swap; src: url(/site/fonts/figtree-latin.woff2) format("woff2"); }
.bc-top, .bc-foot { --bc-bg: #0b0e0c; --bc-ink: #f1f3ea; --bc-sub: #adb8a7; --bc-lime: #d8f697; --bc-coral: #ff8b6a; --bc-display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif; --bc-body: Figtree, "Avenir Next", system-ui, sans-serif; background: var(--bc-bg); color: var(--bc-ink); text-align: left; }
.bc-top *, .bc-foot * { box-sizing: border-box; }
.bc-top { position: relative; z-index: 40; border-bottom: 3px solid var(--bc-lime); margin: 0; }
.bc-in { max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.bc-top .bc-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; }
.bc-top .bc-mark { font: 800 24px/1 var(--bc-display); letter-spacing: -0.04em; text-decoration: none; color: var(--bc-ink); display: flex; align-items: baseline; gap: 2px; flex: none; }
.bc-top .bc-mark small { font: 700 12px/1 var(--bc-body); letter-spacing: .1em; text-transform: uppercase; color: var(--bc-lime); }
.bc-top .bc-nav { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; }
.bc-top .bc-link { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0; margin: 0; border: 0; background: none; color: var(--bc-sub); font: 700 13px/1 var(--bc-display); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; cursor: pointer; white-space: nowrap; }
.bc-top .bc-link:hover, .bc-top .bc-menu[open] > .bc-link { color: var(--bc-ink); }
.bc-top .bc-link.is-here { color: var(--bc-lime); }
.bc-top .bc-menu { position: static; margin: 0; padding: 0; }
.bc-top .bc-menu > summary { list-style: none; }
.bc-top .bc-menu > summary::-webkit-details-marker { display: none; }
.bc-top .bc-menu > summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.bc-top .bc-menu[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.bc-top .bc-drop { position: absolute; top: calc(100% + 3px); right: max(16px, env(safe-area-inset-right, 0px)); width: min(360px, calc(100% - 32px)); display: grid; background: var(--bc-bg); border: 3px solid var(--bc-lime); box-shadow: 6px 6px 0 var(--bc-coral); }
.bc-top .bc-drop a { display: grid; gap: 3px; padding: 14px 16px; text-decoration: none; color: var(--bc-ink); }
.bc-top .bc-drop a + a { border-top: 1px solid #34413a; }
.bc-top .bc-drop b { font: 800 19px/1.1 var(--bc-display); color: var(--bc-lime); letter-spacing: -0.01em; text-transform: uppercase; }
.bc-top .bc-drop span { font: 500 14px/1.4 var(--bc-body); color: var(--bc-sub); }
.bc-top .bc-drop a:hover, .bc-top .bc-drop a[aria-current] { background: #161e18; }
.bc-top a:focus-visible, .bc-top summary:focus-visible, .bc-foot a:focus-visible { outline: 3px solid var(--bc-lime); outline-offset: 3px; }
.bc-foot { border-top: 3px solid var(--bc-lime); margin: 64px 0 0; padding-block: 26px 44px; }
.bc-foot .bc-in { display: grid; gap: 16px; }
.bc-foot p { margin: 0; }
.bc-foot .bc-by { font: 500 15px/1.5 var(--bc-body); color: var(--bc-ink); max-width: 46em; }
.bc-foot .bc-by a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.bc-foot .bc-foot-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; font: 700 13px/1 var(--bc-display); text-transform: uppercase; letter-spacing: .05em; }
.bc-foot .bc-foot-nav a { color: var(--bc-ink); text-decoration: none; padding-block: 10px; }
.bc-foot .bc-foot-nav a:hover { color: var(--bc-lime); }
.bc-foot .bc-fine { font: 500 13px/1.6 var(--bc-body); color: var(--bc-sub); }
.bc-foot .bc-fine a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 599px) { .bc-foot .bc-foot-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) {
  .bc-top .bc-in { gap: 8px; }
  .bc-top .bc-mark { font-size: 21px; }
  .bc-top .bc-mark small { font-size: 10.5px; letter-spacing: .08em; }
  .bc-top .bc-nav { gap: 13px; }
  .bc-top .bc-link { font-size: 12px; letter-spacing: .02em; }
}
@media (max-width: 350px) {
  .bc-top .bc-mark { font-size: 18px; }
  .bc-top .bc-mark small { font-size: 9px; letter-spacing: .05em; }
  .bc-top .bc-nav { gap: 9px; }
  .bc-top .bc-link { font-size: 11px; letter-spacing: 0; }
}
@media (prefers-reduced-motion: reduce) { .bc-top .bc-menu > summary::after { transition: none; } }
/* /learn/riemann-hypothesis-explained (toolbox/_pages/riemann-explained.mjs). Look "B+" (Daniel, 27 Nov, after the design
   review: docs/specs/2026-11-27-riemann-explained.md): a sibling of brumm.club's Learn pages that stays calm to read.
   From the Learn pages (toolbox/_pages/learn.css): the lime line under the header, the uppercase poster title, one
   sticker, square doors and cards with a hard coloured shadow, Mika's light square bubble with its coral shadow, the
   count tile for the step numbers, and the paper band (an open layer is one, full width, dark ink on #f1f3ea). Calm:
   no graph paper behind the page (only inside the charts), the title in one colour so the zeros' picture is the bright
   thing on top, Mika's bubbles straight with his line in Figtree, text at 19 px about 65 characters a line, and the
   small notes beside the maths without a shadow. One accent per job: lime the smooth curve and the way in, coral (deep
   pink on paper: the captions call it pink) the waves and the zeros, ice the maths that opens, amber the deep end. */
@font-face { font-family: "Bricolage Grotesque"; src: url(/site/fonts/bricolage-grotesque-latin.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: Figtree; src: url(/site/fonts/figtree-latin.woff2) format("woff2"); font-weight: 300 900; font-display: swap; }
:root {
  --blk: #0b0e0c; --lime: #d8f697; --coral: #ff8b6a; --ice: #9cc8ff; --amber: #ffd23f; --paper-band: #f1f3ea;
  /* the club's black */
  --bg: #0b0e0c; --panel: #1b241c; --card: #121914; --card2: #18201b; --plate: var(--card);
  --ink: #e9ede4; --ink2: #a3ae9f; --text-ink: #d6dcd1; --rule: #252e28; --line: #3a463e; --go: var(--lime); --go-ice: var(--ice); --link: var(--lime);
  --grid2: rgba(216, 246, 151, 0.09);
  --pencil: var(--ice); --pencil-bg: #1a2a36; --wave: var(--coral); --smooth: var(--lime); --stair: var(--ink); --ghost: #6f7f6d;
  --deep-bg: #050706; --deep-card: #141c17; --deep-ink: #e9ede4; --deep-ink2: #a3ae9f; --hazard: var(--amber);
  /* Mika's bubble */
  --bub-bg: #f1f3ea; --bub-ink: #0b0e0c; --bub-line: #0b0e0c; --bub-name: #8a2a12;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --text: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Noto Serif", Georgia, serif;
  --ui: Figtree, "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.7 var(--ui); -webkit-font-smoothing: antialiased; overflow-x: clip; }
@media (min-width: 720px) { body { font-size: 19px; } }
[hidden] { display: none !important; }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; }
.rx-in { max-width: 40rem; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* the sticker, as on the Learn pages: one, above the title */
.rx-stk { display: inline-block; padding: 6px 10px; border: 3px solid var(--blk); background: var(--lime); color: var(--blk); font: 800 12px/1 var(--display); text-transform: uppercase; letter-spacing: .05em; transform: rotate(var(--r, -3deg)); box-shadow: 3px 3px 0 var(--blk); white-space: nowrap; }

/* the answer: the poster, in one colour, beside the zeros' picture */
.rx-hero .rx-in { padding-block: 26px 40px; }
.rx-hero-grid { display: grid; gap: 22px; }
.rx-hero-grid > * { min-width: 0; }
/* the text column is a container: the title is sized to it (its widest word, HYPOTHESIS?, is 6.5 em), so no word can
   set the column's width and push the words under the picture (it did between 760 and 1,100 px) */
.rx-hero-text { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; justify-items: start; container-type: inline-size; }
.rx-crumb { margin: 0; font: 700 13px/1.3 var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--ink2); }
.rx-crumb a { color: var(--ink2); text-decoration: none; }
.rx-crumb a:hover { color: var(--ink); text-decoration: underline; }
h1 { margin: 0; font: 800 clamp(2.6rem, 11.4vw, 5.3rem)/0.92 var(--display); font-size: min(15cqi, clamp(2.6rem, 11.4vw, 5.3rem)); letter-spacing: -0.045em; text-transform: uppercase; text-wrap: balance; }
h1 span, h1 em { display: block; font-style: normal; }
.rx-lead { margin: 0; font: 500 clamp(19px, 2.2vw, 21px)/1.5 var(--ui); max-width: 36em; }
.rx-lead b { font-weight: 700; }
.rx-hero-rest > p { margin: 0 0 0.85em; color: var(--text-ink); }
.rx-jumps { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.rx-jumps a { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 16px; background: var(--lime); color: var(--blk); border: 3px solid var(--blk); font: 800 15px/1 var(--display); text-transform: uppercase; letter-spacing: .03em; text-decoration: none; }
.rx-jumps a + a { background: none; color: var(--ink); border-color: var(--ink); }
.rx-jumps a::after { content: " →"; white-space: pre; }
.rx-jumps a:hover { transform: translate(-1px, -1px); }
/* the opening picture: zeta's phase as a mask in lime, the line and the zeros in coral, on a black plate */
.rx-art { margin: 0; position: relative; z-index: 1; }
/* the picture's own width (on one column it shrinks to 78% of the screen's height), so Mika over it peeks from behind it at every width */
.rx-artway { width: min(100%, calc(78vh * 360 / 560)); margin-inline: auto; }
.rx-art-box { position: relative; aspect-ratio: 360 / 560; max-width: 100%; border: 3px solid var(--ink); overflow: hidden; background: var(--blk); }
.rx-art-img { position: absolute; inset: 0; background: var(--lime); opacity: 0.88; -webkit-mask-image: var(--art); mask-image: var(--art); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.rx-art-box svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rx-art-dot { fill: var(--coral); stroke: var(--blk); stroke-width: 2; }
.rx-art figcaption { margin-top: 16px; }
@media (min-width: 760px) {
  .rx-hero .rx-in { max-width: 1080px; padding-block: 40px 52px; }
  .rx-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); column-gap: 56px; align-items: start; }
  .rx-hero-text { grid-column: 1; grid-row: 1; }
  .rx-hero-rest { grid-column: 1; grid-row: 2; }
  .rx-artway { grid-column: 2; grid-row: 1 / span 2; width: auto; margin-inline: 0; }
}

/* Mika: the guide. His cut-out sits behind an edge so its cut never shows; his lines are his, in the club's bubble:
   square, light, straight, his line in Figtree (tilted Bricolage at small sizes rendered soft) */
.rx-bubble { position: relative; background: var(--bub-bg); color: var(--bub-ink); border: 3px solid var(--bub-line); box-shadow: 4px 4px 0 var(--coral); padding: 10px 14px 12px; font: 500 15.5px/1.45 var(--ui); }
.rx-bubble b { display: block; font: 800 11px/1 var(--display); text-transform: uppercase; letter-spacing: .12em; color: var(--bub-name); margin-bottom: 6px; }
.rx-doorway { position: relative; margin-top: 46px; }
.rx-doorway:first-child { margin-top: 34px; }
.rx-peek { position: relative; z-index: 0; display: flex; align-items: flex-end; gap: 12px; margin: 0 0 calc(-1 * var(--sink, 14px)); padding-left: 8px; }
/* he bobs behind his edge, down and back up, two bars at the app's 123 BPM (the landing page's peek): down, so the cut never shows */
.rx-peek img { flex: none; height: 118px; width: auto; animation: rx-bob 3.9024s ease-in-out infinite; }
@keyframes rx-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(9px); } }
.rx-peek.is-small img { height: 84px; }
.rx-peek figcaption { margin-bottom: 30px; max-width: 30ch; }
.rx-peek figcaption::before { content: ""; position: absolute; left: -15px; bottom: 12px; border: 8px solid transparent; border-right: 12px solid var(--bub-bg); border-left: 0; }
@media (min-width: 640px) { .rx-peek img { height: 140px; } .rx-peek.is-small img { height: 96px; } .rx-peek figcaption { font-size: 16px; } }
/* beside the maths: a short line from him, out of the way (in the margin on a wide screen), plain, no shadow */
.rx-says { display: flex; align-items: flex-start; gap: 10px; max-width: 30em; margin-left: auto; }
.rx-says img { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 3px solid var(--bub-bg); background: var(--card2); }
.rx-says .rx-bubble { font-size: 15px; box-shadow: none; }
.rx-says .rx-bubble, .rx-asked .rx-bubble { color: var(--bub-ink); }
.rx-step > .rx-says, .rx-lb > .rx-says, .rx-sec > .rx-says { margin-top: 1.4em; }
@media (min-width: 1180px) {
  .rx-step > .rx-says, .rx-lb > .rx-says, .rx-sec > .rx-says { float: right; clear: right; width: 220px; margin: 0.3em -260px 0.6em 0; flex-direction: column; align-items: flex-start; gap: 0; }
  .rx-says img { position: relative; z-index: 1; margin: 0 0 -14px 12px; }
  .rx-says .rx-bubble { padding-top: 20px; }
}
/* a side story: a photo of him and what he has to say about it */
.rx-side { display: grid; grid-template-columns: minmax(96px, 120px) minmax(0, 1fr); gap: 16px; align-items: center; margin: 1.6em 0 0; }
.rx-side img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }

/* the layers: shut, each is a door, the Learn pages' card; open, it is the Learn pages' paper band, full width, and
   complete on its own */
details.rx-layer { position: relative; z-index: 1; }
details.rx-layer > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; padding: 20px 22px 22px; background: var(--panel); color: var(--ink); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--lime); }
details.rx-layer.rx-ice > summary { box-shadow: 8px 8px 0 var(--ice); }
details.rx-layer > summary::-webkit-details-marker { display: none; }
details.rx-layer > summary::after { content: "Open +"; grid-column: 2; grid-row: 1 / span 3; font: 800 14px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--blk); background: var(--lime); border: 3px solid var(--blk); padding: 10px 12px; }
details.rx-layer[open] > summary::after { content: "Close ×"; color: var(--paper-band); background: var(--blk); }
details.rx-layer:not([open]) > summary:hover { transform: translate(-1px, -1px); }
.rx-ask { grid-column: 1; justify-self: start; font: 700 12px/1.2 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--go); }
details.rx-layer.rx-ice .rx-ask { color: var(--go-ice); }
details.rx-layer > summary h2 { grid-column: 1; margin: 2px 0 0; font: 800 clamp(1.9rem, 6.4vw, 2.8rem)/0.95 var(--display); letter-spacing: -0.035em; text-transform: uppercase; }
.rx-meta { grid-column: 1; font: 400 15.5px/1.45 var(--ui); color: var(--ink2); }
details.rx-layer:not(.rx-abyss)[open] {
  --ink: #1b201c; --ink2: #5a6358; --text-ink: #252b26; --rule: #d6dacf; --line: #c3c9bc; --card: #e7eae2; --card2: #dde1d8; --plate: #fafbf7;
  --go: #3a7a16; --go-ice: #2451ad; --link: #2e6511;
  --grid2: rgba(58, 90, 30, 0.085); --pencil: #2451ad; --pencil-bg: #dfe6f4; --wave: #c22f68; --smooth: #3a7a16; --stair: #1b201c; --ghost: #a2a89d; --deep-card: #dde1d8;
  --bub-bg: #ffffff;
  margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); background: var(--paper-band); color: var(--ink); color-scheme: light;
}
details.rx-layer:not(.rx-abyss)[open] > summary { padding: 34px 0 22px; background: none; border: 0; border-bottom: 3px solid var(--blk); box-shadow: none; }
.rx-lb { padding-top: 26px; }
details.rx-layer:not(.rx-abyss)[open] > .rx-lb { padding: 10px 0 52px; }
.rx-lb > * { margin-block: 0; }
.rx-lb > * + * { margin-top: 1.05em; }
.rx-lb > h3 { padding-top: 0.9em; }
.rx-lb > p { color: var(--text-ink); }
.rx-more { padding-top: 1.6em; }
.rx-more a { display: block; text-align: center; text-decoration: none; padding: 16px; font-size: 16px; line-height: 1.3; }
.rx-more a b { font-weight: 800; }
/* the last layer: the deep end, a dark slab behind hazard tape, open or shut */
details.rx-abyss { background: var(--deep-bg); color: var(--deep-ink); border: 3px solid var(--amber); box-shadow: 8px 8px 0 var(--amber); overflow: hidden; }
details.rx-abyss::before { content: ""; display: block; height: 10px; background: repeating-linear-gradient(135deg, var(--hazard) 0 10px, var(--deep-bg) 10px 20px); }
details.rx-abyss > summary { background: none; color: var(--deep-ink); border: 0; box-shadow: none; }
details.rx-abyss .rx-ask { color: var(--amber); }
details.rx-abyss .rx-meta { color: var(--deep-ink2); }
details.rx-abyss > summary::after { color: var(--blk); background: var(--amber); }
details.rx-abyss[open] > summary::after { color: var(--amber); background: none; border-color: var(--amber); }
details.rx-abyss > .rx-lb { padding: 6px 22px 24px; font-size: 0.94em; line-height: 1.6; }
details.rx-abyss a { color: var(--deep-ink); }
details.rx-abyss :focus-visible { outline-color: var(--hazard); }
details.rx-abyss .rx-back { color: var(--blk); background: var(--hazard); border-color: var(--hazard); }
.rx-asked { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px 14px; }
.rx-asked img { flex: none; width: 150px; height: auto; }
.rx-asked .rx-bubble { flex: 1 1 15em; max-width: 32em; box-shadow: 4px 4px 0 var(--amber); }
.rx-asked .rx-back { margin-top: 8px; }
.rx-part { padding-top: 1.1em; border-top: 1px solid var(--deep-card); }
.rx-part > * { margin-block: 0; }
.rx-part > * + * { margin-top: 0.8em; }
.rx-part h3 { color: var(--deep-ink); }
.rx-part ul, .rx-part ol { padding-left: 1.2em; display: grid; gap: 0.4em; }
.rx-part pre { margin: 0; padding: 12px; overflow-x: auto; background: var(--deep-card); font: 13px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

/* the story */
main { display: block; }
.rx-step { padding-top: 44px; }
.rx-sec { padding-top: 64px; }
.rx-step > * { margin-block: 0; }
.rx-step > * + * { margin-top: 1.05em; }
.rx-step p, .rx-sec > p { color: var(--text-ink); }
h2 { font: 800 clamp(2rem, 6.4vw, 3rem)/0.96 var(--display); letter-spacing: -0.035em; text-transform: uppercase; text-wrap: balance; }
h3 { font: 750 clamp(1.4rem, 4.8vw, 1.8rem)/1.1 var(--display); letter-spacing: -0.025em; text-wrap: balance; }
.rx-step > h3 { display: flex; align-items: baseline; gap: 0.55em; }
/* the step's number on the Learn pages' count tile */
h3 .rx-no { flex: none; width: 1.75em; height: 1.75em; display: inline-grid; place-items: center; font: 800 0.62em/1 var(--display); color: var(--blk); background: var(--lime); border: 3px solid var(--blk); transform: translateY(-0.16em); }
h4 { font: 800 1.25rem/1.2 var(--display); letter-spacing: -0.01em; padding-top: 0.6em; }
.rx-step p { text-wrap: pretty; }
.rx-eq { font-size: 1.08em; line-height: 1.7; text-align: center; padding: 6px 0; font-style: normal; }
.nb { white-space: nowrap; }
.rx-eq i, .rx-step i.v, .rx-x i.v { font-family: var(--text); font-style: italic; }
.rx-eq sup, .rx-step sup { font-size: 0.68em; line-height: 0; }
.rx-big { font: 800 clamp(1.4rem, 5vw, 1.9rem)/1.18 var(--display); letter-spacing: -0.02em; padding: 4px 0; text-wrap: balance; }
.rx-big mark { background: none; color: var(--go); padding: 0; }
.rx-say { font: 700 1.15em/1.4 var(--display); text-align: center; text-wrap: balance; padding: 12px 10px; border: 1px solid var(--rule); }
.rx-say span { white-space: nowrap; color: var(--go); }
.rx-say span:first-child { color: var(--ink); } .rx-say span:last-child { color: var(--wave); }
.rx-note { padding: 14px 16px; border: 1px solid var(--rule); background: var(--card); font: 400 16px/1.5 var(--ui); }
.rx-note b:first-child { display: block; font: 800 12px/1.2 var(--ui); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; color: var(--ink2); }
.rx-note dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; }
.rx-note dt { font: italic 1.15em/1.3 var(--text); }
.rx-note dd { margin: 0; }
.rx-how { padding: 14px 16px; background: var(--card); border: 1px solid var(--rule); font: 400 16px/1.5 var(--ui); display: grid; gap: 12px; justify-items: start; }
.rx-how p { margin: 0; }
.rx-how .rx-key { border-bottom: 2px dotted var(--pencil); }

/* a word that opens */
a.t { color: inherit; text-decoration: none; border-bottom: 2px dotted var(--pencil); cursor: pointer; padding-bottom: 1px; }
a.t::after { content: "+"; font: 800 0.72em/1 var(--ui); color: var(--pencil); margin-left: 2px; vertical-align: 0.3em; }
a.t:hover, a.t[aria-expanded="true"] { background: var(--pencil-bg); border-bottom-style: solid; }
a.t[aria-expanded="true"]::after { content: "−"; }

/* the maths, opened under its sentence */
details.rx-x { border-left: 2px solid var(--pencil); background: var(--card); padding: 0 16px; font-size: 0.94em; line-height: 1.6; }
.js details.rx-x:not([open]) { display: none; }
details.rx-x > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; font: 700 15px/1.3 var(--ui); color: var(--pencil); }
details.rx-x > summary::-webkit-details-marker { display: none; }
details.rx-x > summary::after { content: "Open +"; flex: none; font-weight: 700; font-size: 13px; }
details.rx-x[open] > summary::after { content: "Close ×"; }
details.rx-x > .rx-xb { padding-bottom: 16px; }
.rx-xb > * { margin-block: 0; }
.rx-xb > * + * { margin-top: 0.8em; }
.rx-back { font: 600 14px/1 var(--ui); color: var(--pencil); background: none; border: 1px solid currentColor; border-radius: 999px; padding: 9px 14px; cursor: pointer; }
.rx-fx { overflow-x: auto; padding: 4px 0; text-align: center; }
.rx-fx math { font-size: 1.1em; }
math { font-family: "STIX Two Math", "Cambria Math", "Latin Modern Math", "Noto Sans Math", math, serif; }
.rx-x ul, .rx-x ol { padding-left: 1.2em; display: grid; gap: 0.4em; }
.rx-x code { font: 0.86em/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.rx-x pre { margin: 0; padding: 12px; overflow-x: auto; background: var(--deep-card); font: 13px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

/* the door to the deep end from a panel */
a.rx-door { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 10px 12px; border: 1px dashed #b99a2a; font: 700 15px/1.3 var(--ui); color: var(--ink); cursor: pointer; }
a.rx-door::before { content: ""; flex: none; width: 18px; height: 18px; background: repeating-linear-gradient(135deg, #e0b300 0 4px, #1b201c 4px 8px); }
a.rx-door small { display: block; font-weight: 400; color: var(--ink2); }
a.rx-door[aria-expanded="true"] { border-style: solid; }

/* pictures: a plate of graph paper (the only graph paper on the page), its controls, its caption */
figure.rx-fig { margin-inline: 0; }
.rx-plate { position: relative; border: 1px solid var(--rule); overflow: hidden; background-color: var(--plate); background-image: linear-gradient(var(--grid2) 1px, transparent 1px), linear-gradient(90deg, var(--grid2) 1px, transparent 1px); background-size: 16px 16px; }
.rx-plate svg { display: block; width: 100%; height: auto; }
.rx-plate + .rx-plate { margin-top: 8px; }
@media (min-width: 620px) { .rx-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .rx-pair .rx-plate + .rx-plate { margin-top: 0; } .rx-pair figcaption { grid-column: 1 / -1; } }
.c-lit { fill: var(--wave); stroke: var(--card); stroke-width: 1.5; }
.c-unlit { fill: var(--card); stroke: var(--ghost); stroke-width: 1.5; }
.rx-chart { min-height: 120px; }
.rx-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; font: 600 15px/1.2 var(--ui); }
.rx-ctl label { display: flex; align-items: center; gap: 10px; flex: 1 1 220px; min-width: 0; }
.rx-ctl input[type="range"] { flex: 1; min-width: 0; accent-color: var(--wave); height: 28px; }
.rx-btn { font: 600 14px/1 var(--ui); color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px; cursor: pointer; }
details.rx-layer[open] .rx-btn { background: #fff; }
.rx-btn:hover { border-color: var(--ink2); }
.rx-btn[aria-pressed="true"], .rx-btn.rx-go, details.rx-layer[open] .rx-btn[aria-pressed="true"], details.rx-layer[open] .rx-btn.rx-go { background: var(--lime); color: var(--blk); border-color: #a9c96a; }
.rx-btn:disabled { opacity: 0.4; cursor: default; }
/* the way one layer deeper: the Learn pages' black button on the paper */
.rx-more .rx-btn, details.rx-layer[open] .rx-more .rx-btn { background: var(--blk); color: var(--lime); border: 3px solid var(--blk); border-radius: 0; box-shadow: 5px 5px 0 var(--coral); font: 800 15px/1.3 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.rx-read { margin-top: 10px; font: 500 15px/1.45 var(--ui); min-height: 2.9em; }
.rx-read:empty { display: none; }
.rx-gap { flex: 1 1 0; }
.rx-ctl label.rx-wide { flex: 1 1 100%; }
.rx-read b { font-weight: 700; }
.rx-read .w { color: var(--wave); font-weight: 700; }
.rx-read .s { color: var(--smooth); font-weight: 700; }
figcaption { margin-top: 8px; font: 400 14px/1.45 var(--ui); color: var(--ink2); }
.rx-peek figcaption, .rx-side figcaption { color: var(--bub-ink); }
/* what the pictures are drawn with */
.c-axis { stroke: var(--ink2); stroke-width: 1; fill: none; }
.c-tick { fill: var(--ink2); font: 500 11px var(--ui); }
.c-lab { fill: var(--ink); font: 600 12px var(--ui); }
.c-stair { stroke: var(--stair); stroke-width: 1.6; fill: none; stroke-linejoin: round; }
.c-ghost { stroke: var(--ghost); stroke-width: 1.4; fill: none; }
.c-smooth { stroke: var(--smooth); stroke-width: 2.2; fill: none; stroke-linejoin: round; }
.c-wave { stroke: var(--wave); stroke-width: 2; fill: none; stroke-linejoin: round; }
.c-thin { stroke-width: 1.3; }
.c-band { fill: var(--pencil-bg); stroke: none; }
.c-dot { fill: var(--wave); stroke: var(--card); stroke-width: 1.5; }
.c-hollow { fill: var(--card); stroke: var(--ink2); stroke-width: 1.5; }
.c-ink { fill: var(--ink); }
.c-wavefill { fill: var(--wave); opacity: 0.16; stroke: none; }
.c-dash { stroke-dasharray: 5 4; }
.c-east { fill: var(--smooth); opacity: 0.1; }
.c-wavetext { fill: var(--wave); font: 700 12px var(--ui); }
.c-smoothtext { fill: var(--smooth); font: 700 12px var(--ui); }
.rx-map { max-width: 380px; margin-inline: auto; }

/* the sieve */
.rx-sieve { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 5px; padding: 12px; }
.rx-sieve span { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--ink2); background: var(--card); font: 700 15px/1 var(--ui); font-variant-numeric: tabular-nums; transition: opacity 0.35s, transform 0.35s, background 0.2s; }
.rx-sieve span.hit { background: var(--wave); color: var(--blk); border-color: var(--wave); }
details.rx-layer[open] .rx-sieve span.hit { color: #fff; }
.rx-sieve span.out { opacity: 0.16; transform: scale(0.82); border-style: dashed; }
.rx-sieve span.last { background: var(--lime); color: var(--blk); border-color: var(--lime); }
@media (prefers-reduced-motion: reduce) { .rx-sieve span { transition: none; } }

/* the digits: the count, and how far the smooth curve is off */
.rx-half { list-style: none; padding: 0; display: grid; border: 1px solid var(--rule); background: var(--plate); font: 400 15px/1.35 var(--ui); font-variant-numeric: tabular-nums; }
.rx-half li { display: grid; grid-template-columns: 7.5em 1fr; gap: 2px 12px; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.rx-half li:last-child { border-bottom: 0; }
.rx-half b { font-weight: 800; grid-row: span 2; }
.rx-half span { text-align: right; overflow-wrap: anywhere; }
.rx-half .off { color: var(--wave); font-weight: 700; }
.rx-half small { display: inline-block; min-width: 5.2em; margin-left: 8px; color: var(--ink2); font-weight: 400; font-size: 0.86em; }
@media (max-width: 480px) { .rx-half li { grid-template-columns: 1fr; } .rx-half b { grid-row: auto; } }

/* the news, the doors next door, the sources: the Learn pages' list and cards */
.rx-dates { display: grid; padding: 0; list-style: none; border-top: 3px solid var(--ink); }
.rx-dates li { display: grid; grid-template-columns: 7.4em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); font: 400 16px/1.5 var(--ui); }
.rx-dates b { font-weight: 800; }
@media (max-width: 480px) { .rx-dates li { grid-template-columns: 1fr; gap: 2px; } }
.rx-next { display: grid; gap: 14px; }
a.rx-card { display: block; text-decoration: none; padding: 16px 18px; background: var(--panel); color: var(--ink); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--coral); }
a.rx-card.rx-quiet { box-shadow: 6px 6px 0 var(--ice); }
a.rx-card b { display: block; font: 800 1.35em/1.05 var(--display); letter-spacing: -0.015em; text-transform: uppercase; }
a.rx-card span { display: block; margin-top: 6px; font: 400 15px/1.45 var(--ui); color: var(--ink2); }
a.rx-card:hover { transform: translate(-1px, -1px); }
.rx-src { font: 400 14.5px/1.5 var(--ui); color: var(--ink2); }
.rx-src > p:not(.rx-by) { color: var(--ink2); }
.rx-src ul { padding-left: 1.2em; display: grid; gap: 5px; margin: 0; }
.rx-src a { color: var(--ink); }
.rx-by { font: 400 15px/1.5 var(--ui); padding: 14px 0 0; border-top: 1px solid var(--rule); }
@media (prefers-reduced-motion: reduce) { .rx-peek img { animation: none; } }

/* the door to the synth after the answer (Daniel 2026-11-27: every Riemann page leads to it, near the top and at the end) */
.rx-hero-rest .sd-door { margin-top: 26px; }
/* on two columns the door sits under the picture, in the column it leaves empty; on one, after the answer */
.rx-art-door { display: none; }
@media (min-width: 760px) { .rx-art-door { display: block; margin-top: 30px; } .rx-art-door .sd-door { grid-template-columns: 96px minmax(0, 1fr); } .rx-hero-rest .sd-door { display: none; } }
#hear .sd-end { margin-block: 28px 0; grid-template-columns: minmax(0, 1fr); }

.sd-door, .sd-end { --sd-bg: #0b0e0c; --sd-ink: #f1f3ea; --sd-sub: #adb8a7; --sd-lime: #d8f697; --sd-coral: #ff8b6a; --sd-display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif; --sd-body: Figtree, "Avenir Next", system-ui, sans-serif; }
.sd-door { display: grid; grid-template-columns: clamp(96px, 28%, 132px) minmax(0, 1fr); align-items: center; gap: 14px; padding: 10px 14px 10px 10px; background: var(--sd-bg); color: var(--sd-ink); border: 3px solid var(--sd-lime); box-shadow: 6px 6px 0 var(--sd-coral); text-decoration: none; max-width: 34rem; }
.sd-door:hover { transform: translate(-1px, -1px); box-shadow: 7px 7px 0 var(--sd-coral); }
.sd-face { display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 2px solid var(--sd-bg); background: var(--sd-lime); }
.sd-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block; }
.sd-big img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; display: block; }
.sd-words { display: grid; gap: 4px; min-width: 0; justify-items: start; }
.sd-words b { font: 800 18px/1.1 var(--sd-display); text-transform: uppercase; letter-spacing: -0.01em; color: var(--sd-lime); }
.sd-words span { font: 500 14px/1.4 var(--sd-body); color: var(--sd-sub); }
.sd-words .sd-go { margin-top: 6px; display: inline-flex; align-items: center; gap: .4em; min-height: 40px; font: 800 15px/1 var(--sd-display); text-transform: uppercase; letter-spacing: .04em; background: var(--sd-lime); color: var(--sd-bg); border: 2px solid var(--sd-bg); box-shadow: 3px 3px 0 var(--sd-coral); padding: 8px 13px; white-space: nowrap; }
.sd-go::after { content: "→"; }
.sd-end { display: grid; gap: 22px; align-items: center; background: var(--sd-bg); color: var(--sd-ink); border: 3px solid var(--sd-lime); box-shadow: 8px 8px 0 var(--sd-coral); padding: 18px; margin-block: 40px; }
.sd-big { display: block; line-height: 0; border-radius: 10px; overflow: hidden; border: 2px solid var(--sd-lime); aspect-ratio: 1225 / 843; }
.sd-end-words { display: grid; gap: 12px; justify-items: start; }
.sd-end .sd-kick { margin: 0; font: 800 12px/1 var(--sd-display); text-transform: uppercase; letter-spacing: .1em; color: var(--sd-coral); }
.sd-end .sd-h { margin: 0; font: 800 clamp(26px, 5vw, 38px)/1 var(--sd-display); text-transform: uppercase; letter-spacing: -0.02em; color: var(--sd-ink); }
.sd-end p { margin: 0; font: 500 17px/1.5 var(--sd-body); color: var(--sd-ink); max-width: 34em; }
.sd-btn { display: inline-flex; align-items: center; white-space: nowrap; min-height: 50px; padding: 12px 20px; background: var(--sd-lime); color: var(--sd-bg); border: 3px solid var(--sd-bg); box-shadow: 5px 5px 0 var(--sd-coral); font: 800 16px/1 var(--sd-display); text-transform: uppercase; letter-spacing: .03em; text-decoration: none; }
.sd-btn:hover { transform: translate(-1px, -1px); }
.sd-door:focus-visible, .sd-btn:focus-visible { outline: 3px solid var(--sd-lime); outline-offset: 4px; }
@media (min-width: 760px) { .sd-end { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); padding: 22px; gap: 30px; } .sd-big { align-self: center; } }
