:root {
  --bg: #0a0e17; --bg2: #0f1522; --panel: #121a2a; --line: #233049; --ink: #efe6d2; --ink2: #c9c2b3; --muted: #8d96a8;
  --flesh: #e2a08f; --tissue: #5a2f33; --hot: #f2c46d; --blue: #7fb2e5; --nasal: #9fd3c7;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration-color: rgba(239, 230, 210, .35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--hot); }
:focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; border-radius: 4px; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.prose { max-width: 680px; }
.prose p + p { margin-top: 1em; }
.prose p { color: var(--ink2); }
.prose strong { color: var(--ink); font-weight: 600; }

/* top bar */
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-size: 13px; color: var(--muted); }
.top a { color: var(--muted); text-decoration: none; }
.top a:hover { color: var(--ink); }
.badge { display: inline-flex; gap: 8px; align-items: center; font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--hot); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 12px var(--hot); }

/* hero */
.hero { padding: 48px 0 28px; }
.hero h1 { font: 400 clamp(44px, 7.4vw, 92px)/.98 var(--serif); letter-spacing: -.035em; margin: 22px 0 22px; max-width: 12ch; }
.hero h1 em { font-style: italic; color: var(--flesh); }
.dek { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--ink2); max-width: 760px; }
.byline { margin-top: 22px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.byline b { color: var(--ink2); font-weight: 600; }
.film { margin: 40px 0 0; border-radius: 14px; overflow: hidden; background: #000; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.film-cap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 24px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.rule { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 44px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.rule div { background: var(--bg2); padding: 18px 18px 16px; }
.rule .n { font: 400 34px/1 var(--serif); color: var(--ink); }
.rule .l { margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--muted); }

/* sections */
section { padding: 84px 0 0; }
.kicker { font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--flesh); margin-bottom: 14px; }
h2 { font: 400 clamp(32px, 4.2vw, 50px)/1.05 var(--serif); letter-spacing: -.025em; margin-bottom: 22px; max-width: 20ch; }
h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }

/* station */
.station { margin-top: 34px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.station:focus-within { border-color: #33476a; }
.st-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 7px 14px; font-size: 14px; color: var(--ink2); }
.pill:hover { border-color: #3d5072; color: var(--ink); }
.pill.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.srcs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.src { text-align: left; border: 1px solid var(--line); background: var(--bg2); border-radius: 12px; padding: 12px 14px; transition: border-color .15s, background .15s; }
.src:hover { border-color: #3d5072; }
.src .k { font: 600 11px/1 var(--mono); color: var(--muted); letter-spacing: .08em; }
.src .t { display: block; font-weight: 600; margin-top: 6px; }
.src .d { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 3px; }
.src.on { border-color: var(--flesh); background: #1d1a22; }
.src.on .k { color: var(--flesh); }
.stage { display: grid; grid-template-columns: 1fr 230px; gap: 16px; margin-top: 16px; }
.tubebox { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; min-height: 290px; }
#tube { width: 100%; height: 290px; display: block; }
.tubebox .who { position: absolute; left: 14px; top: 12px; font: 600 11px/1.4 var(--mono); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.side { display: flex; flex-direction: column; gap: 12px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.card .k { font: 600 11px/1.3 var(--mono); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
#scope { width: 100%; height: 86px; display: block; margin-top: 8px; }
#meta { font: 12px/1.3 var(--mono); color: var(--hot); margin-top: 4px; }
#phoneme { font: 400 46px/1.05 var(--serif); margin-top: 6px; min-height: 52px; }
#phoneme small { display: block; font: 12px/1.4 var(--sans); color: var(--muted); margin-top: 4px; }
#phoneme .sil { color: var(--muted); }
.transport { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; margin-top: 16px; }
#play { min-width: 92px; border: 0; border-radius: 999px; padding: 11px 20px; background: var(--flesh); color: #1b1012; font-weight: 700; }
#play:hover { background: #ecb2a3; }
#wave { width: 100%; height: 46px; display: block; cursor: pointer; touch-action: none; }
#lyric { margin-top: 14px; font: 400 clamp(20px, 2.6vw, 28px)/1.3 var(--serif); color: #5e6880; min-height: 1.3em; }
#lyric span { transition: color .08s; }
#lyric span.now { color: var(--ink); }
.st-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
kbd { font: 11px var(--mono); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; color: var(--ink2); }

/* timeline: hear it learn */
.steps { margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.step.target { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 18px; background: transparent; border-style: dashed; }
.step.target p { flex: 1; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.step .when { font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--flesh); }
.step h3 { margin: 0; }
.step p { font-size: 14px; line-height: 1.5; color: var(--muted); flex: 1; }
.step button { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--bg2); border-radius: 999px; padding: 6px 13px 6px 10px; font-size: 13px; }
.step button::before { content: ""; width: 0; height: 0; border-left: 8px solid var(--flesh); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.step button.playing::before { width: 8px; height: 10px; border: 0; background: linear-gradient(90deg, var(--flesh) 0 3px, transparent 3px 5px, var(--flesh) 5px 8px); }
.step button:hover { border-color: var(--flesh); }


.lede { max-width: 700px; font-size: 18px; line-height: 1.6; color: var(--ink2); }

/* what's new */
.claim { margin: 30px 0 0; padding: 22px 24px; border: 1px solid #4a3a2e; background: linear-gradient(135deg, #1b1612, #121a2a); border-radius: 16px; font: 400 clamp(20px, 2.4vw, 26px)/1.4 var(--serif); color: var(--ink); max-width: 900px; }
.claim small { display: block; margin-top: 10px; font: 13px/1.5 var(--sans); color: var(--muted); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.tile svg { width: 100%; height: auto; display: block; margin-bottom: 12px; }
.tile h3 { margin-bottom: 6px; }
.tile p { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.pw { fill: none; stroke: #6b7590; stroke-width: 2; stroke-linejoin: round; }
.sw { fill: none; stroke: var(--hot); stroke-width: 2.2; stroke-linecap: round; }
.tc { font: 11px var(--mono); fill: var(--muted); }
.b1 { fill: #1d1a22; stroke: var(--hot); } .b2 { fill: #1d1a22; stroke: var(--flesh); }
.ar { fill: none; stroke: var(--muted); stroke-width: 1.5; marker-end: none; }
.sb { fill: var(--flesh); opacity: .85; }

/* prior art */
.prior { margin-top: 34px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 8px 0 4px; overflow-x: auto; }
.prior table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; }
.prior th, .prior td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.prior th { font: 600 10.5px/1.35 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.prior th:first-child, .prior td:first-child { text-align: left; }
.prior td:first-child { color: var(--ink); }
.prior td:first-child small { display: block; color: var(--muted); font-size: 12px; }
.prior td:first-child a { color: var(--ink); }
.prior tr.us td { background: #1d1a22; }
.prior tr.us td:first-child { box-shadow: inset 3px 0 var(--flesh); font-weight: 600; }
.prior tbody tr:last-child td { border-bottom: 0; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; }
.dot.y { background: var(--flesh); } .dot.n { border: 1.5px solid #3d4a66; } .dot.p { background: linear-gradient(90deg, var(--flesh) 50%, transparent 50%); border: 1.5px solid var(--flesh); }
.prior-key { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 14px 8px; font-size: 12px; color: var(--muted); }

/* model */
.modelbox { margin-top: 30px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.model { width: 100%; height: auto; display: block; }
.model text { font-family: var(--sans); }
.model .h { font: 600 11px var(--mono); letter-spacing: .1em; fill: var(--hot); }
.model .c { font-size: 12px; fill: var(--ink2); }
.model .lb { font-size: 14px; font-weight: 600; fill: var(--ink); }
.model .sm { font-size: 11.5px; fill: var(--muted); }
.model .lh { font: 600 11px var(--mono); letter-spacing: .12em; fill: var(--flesh); }
.model .ctl { fill: #171c2b; stroke: #3a3524; }
.model .arr { stroke: #5c5233; stroke-width: 1.4; stroke-dasharray: 3 4; fill: none; }
.model .lung { fill: #8e4a4f; stroke: var(--flesh); stroke-width: 1.5; } .model .lungline { fill: none; stroke: #c98778; stroke-width: 1; }
.model .air { fill: #13304f; } .model .wall { fill: none; stroke: var(--flesh); stroke-width: 2; }
.model .sleeve { fill: none; stroke: var(--tissue); stroke-width: 22; stroke-linejoin: round; }
.model .ring { stroke: #2c4a6e; stroke-width: 2; }
.model .mass { fill: #f1d6cc; } .model .body { fill: #b86a6a; } .model .bone { fill: #3a4360; }
.model .spring { fill: none; stroke: #e7c3b6; stroke-width: 1.3; stroke-linejoin: round; }
.model .jet { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; } .model .hit { fill: transparent; }
.model .stub { stroke: #7a4a4e; stroke-width: 9; stroke-linecap: round; }
.model .tri { fill: var(--hot); }
.model .tooth { fill: #f4ecdc; }
.model .nasal { fill: none; stroke: #2a6461; stroke-width: 16; stroke-linejoin: round; stroke-linecap: round; }
.model .sinus { fill: #2a6461; } .model .neck { stroke: #2a6461; stroke-width: 6; }
.model .velum { fill: var(--nasal); }
.model .wave { fill: none; stroke: var(--blue); stroke-width: 2; opacity: .8; }
.model .roombox { fill: none; stroke: #3d4a66; stroke-dasharray: 4 4; } .model .mic { fill: #3d4a66; } .model .micl { stroke: #3d4a66; stroke-width: 2; }
.model .star { fill: #fff3c8; }
.model .sep { stroke: var(--line); }
.model .part { cursor: pointer; outline: none; transition: opacity .15s; }
.model:hover .part:not(.on):not(:hover) { opacity: .55; }
.model .part.on, .model .part:hover { opacity: 1; filter: drop-shadow(0 0 6px rgba(242, 196, 109, .35)); }
.model .part:focus-visible { filter: drop-shadow(0 0 4px var(--hot)); }
.info { display: grid; grid-template-columns: 200px 1fr; gap: 6px 20px; margin-top: 10px; padding: 14px 16px; border-top: 1px solid var(--line); min-height: 76px; font-size: 15px; line-height: 1.55; color: var(--ink2); }
.info b { color: var(--hot); font-weight: 600; }

/* approach */
.pipe { margin-top: 30px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 12px; overflow-x: auto; }
.pipesvg { width: 100%; min-width: 760px; height: auto; display: block; }
.pipesvg text { font-family: var(--sans); }
.pipesvg .box { fill: var(--bg2); stroke: var(--line); } .pipesvg .box.hi { stroke: var(--flesh); fill: #1d1a22; }
.pipesvg .ic { fill: none; stroke: var(--hot); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pipesvg .icl { stroke: #5c5233; stroke-width: 1; } .pipesvg .icf { fill: var(--hot); }
.pipesvg .bt { font-size: 15px; font-weight: 700; fill: var(--ink); } .pipesvg .bl { font-size: 13px; fill: var(--muted); }
.pipesvg .pa { fill: none; stroke: var(--muted); stroke-width: 1.6; marker-end: url(#pa); }
.pipesvg .dn { font: 11px var(--mono); fill: var(--muted); }
.pipesvg .da { stroke: #6b3a3a; stroke-width: 1.5; stroke-dasharray: 3 4; }
.pipesvg .dead { fill: #1a1416; stroke: #6b3a3a; stroke-dasharray: 4 4; }
.pipesvg .dt { font-size: 11.5px; font-weight: 600; fill: #e8a3a3; } .pipesvg .dl { font-size: 11.5px; fill: var(--muted); }
.eqrow { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; margin-top: 18px; }
.eqrow .eq { margin: 0; }
.eqrow p { font-size: 14.5px; color: var(--muted); max-width: 520px; }
.eq { font: 15px/1.5 var(--mono); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto; white-space: nowrap; }
@media (max-width: 900px) { .info { grid-template-columns: 1fr; } }

/* limits */
.limits { margin-top: 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.limit { border: 1px dashed #34425e; border-radius: 14px; padding: 16px; font-size: 14.5px; line-height: 1.5; color: var(--ink2); }
.limit b { display: block; color: var(--ink); margin-bottom: 4px; }

footer { margin-top: 100px; border-top: 1px solid var(--line); padding: 30px 0 60px; font-size: 13.5px; color: var(--muted); }
footer .cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
footer p + p { margin-top: .8em; }
footer h3 { color: var(--ink2); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-family: var(--mono); }

@media (max-width: 900px) {
  .stage { grid-template-columns: 1fr; }
  .side { flex-direction: row; } .side .card { flex: 1; }
  footer .cols, .trio, .eqrow { grid-template-columns: 1fr; gap: 24px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .rule { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .station { padding: 14px; }
  .pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px; }
  .pill { white-space: nowrap; font-size: 13px; padding: 6px 12px; }
  .srcs { gap: 6px; }
  .src { padding: 10px; }
  .src .k { font-size: 10px; letter-spacing: .04em; }
  .src .d, .src .kx { display: none; }
  .src .t { font-size: 14.5px; margin-top: 4px; }
  .tubebox .who { display: none; }
  .side .card { min-width: 0; padding: 10px 12px; }
  #phoneme { font-size: 34px; min-height: 40px; }
  #scope { height: 60px; }
  #tube { height: 230px; } .tubebox { min-height: 230px; }
  .steps { grid-template-columns: 1fr; }
  .step.target { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.prior .yr { font: 12px var(--mono); color: var(--muted); margin-right: 6px; }
.prior td:first-child small { margin-left: 44px; }
.model-scroll { overflow-x: auto; }
@media (max-width: 700px) {
  .model { min-width: 780px; }
  .model-scroll::after { content: "← swipe to see the whole body →"; display: block; text-align: center; font: 11px var(--mono); color: var(--muted); padding-top: 6px; position: sticky; left: 0; }
}
.model .hitp { fill: none; stroke: transparent; stroke-width: 30; pointer-events: stroke; }

/* under the hood */
.deep { margin-top: 34px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.deep-head { display: flex; align-items: baseline; gap: 14px; }
.deep-n { font: 600 12px var(--mono); color: var(--bg); background: var(--flesh); border-radius: 6px; padding: 3px 8px; }
.deep h3 { font: 400 26px/1.2 var(--serif); margin: 0; }
.deep-body { display: grid; grid-template-columns: 1fr 260px; gap: 28px; margin-top: 14px; }
.deep-text p { font-size: 15.5px; line-height: 1.65; color: var(--ink2); }
.deep-text p + p { margin-top: .8em; }
.deep-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.deep-nums div { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.deep-nums b { display: block; font: 400 22px/1.1 var(--serif); color: var(--ink); }
.deep-nums span { display: block; margin-top: 4px; font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.deep-art { margin-top: 20px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; overflow-x: auto; }
.fig { width: 100%; min-width: 760px; height: auto; display: block; }
.fig text { font-family: var(--sans); }
.fig .t { font-size: 14px; fill: var(--ink); } .fig .ts { font-size: 12px; fill: var(--muted); } .fig .tm { font-size: 15px; fill: #1b1012; }
.fig .ti { font: 600 11.5px var(--mono); fill: var(--hot); letter-spacing: .04em; } .fig .cap { font: 12px var(--mono); fill: var(--ink2); }
.fig .it { font-family: var(--serif); font-style: italic; } .fig .su { font-size: 75%; } .fig .tm tspan { fill: #1b1012; } .fig .sp2 { font-size: 75%; }
.fig .bx { fill: #121a2a; stroke: #3a4864; stroke-width: 1.2; } .fig .bx.hl { stroke: var(--flesh); stroke-width: 1.8; fill: #1d1a22; }
.fig .dsh2 { stroke-dasharray: 5 4; } .fig .bus { fill: #171c2b; stroke: #5c5233; }
.fig .ln { stroke: #8d96a8; stroke-width: 1.4; fill: none; } .fig .dsh { stroke-dasharray: 4 4; }
.fig .sp { stroke: #e7c3b6; stroke-width: 1.4; fill: none; stroke-linejoin: round; }
.fig .el { stroke: #c9c2b3; stroke-width: 1.5; fill: none; stroke-linejoin: round; }
.fig .mass { fill: #b86a6a; stroke: #e2a08f; } .fig .mass.c { fill: #f1d6cc; stroke: #e2a08f; }
.fig .flow { stroke: var(--blue); stroke-width: 2.5; fill: none; } .fig .pr { stroke: var(--flesh); stroke-width: 1.8; fill: none; }
.fig .dim { stroke: #5d6680; stroke-width: 1; fill: none; } .fig .tube { fill: #13304f; stroke: var(--flesh); stroke-width: 1.2; }
.fig .trk { stroke: #5d6680; stroke-width: 1.5; fill: none; } .fig .trk.a { stroke: var(--hot); }
.fig .cell.s { fill: #3a2a30; } .fig .cell.r { fill: var(--hot); opacity: .8; }
.eqs { margin-top: 14px; display: grid; gap: 8px; }
.eq-l { font: 15px/1.6 var(--serif); color: var(--ink); background: var(--bg); border-left: 2px solid var(--flesh); border-radius: 0 8px 8px 0; padding: 8px 14px; overflow-x: auto; white-space: nowrap; }
.eq-l i { font-style: italic; } .eq-l sub, .eq-l sup { font-size: 70%; }
@media (max-width: 900px) { .deep-body { grid-template-columns: 1fr; } .deep-nums { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .deep { padding: 16px; } .deep-nums { grid-template-columns: 1fr 1fr; } }

/* slow-motion folds */
.folds { margin-top: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.folds-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.folds-head .k { font: 600 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.folds-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 14px; margin-top: 12px; }
#folds-cs, #folds-tr { width: 100%; height: 240px; display: block; }
.folds-info { margin-top: 8px; font-size: 14px; color: var(--ink2); }
.folds-info b { color: var(--hot); font-weight: 600; }
.folds-note { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 820px; }
@media (max-width: 700px) { .folds-grid { grid-template-columns: 1fr; } #folds-cs, #folds-tr { height: 210px; } }
.folds-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.folds-legend span::before { content: ""; display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 7px; vertical-align: 3px; }
.folds-legend .l1::before { background: #e2a08f; } .folds-legend .l2::before { background: #f2c46d; } .folds-legend .l3::before { background: #7fb2e5; }
@media (max-width: 560px) { .folds .pills { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.srcdl { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; color: var(--muted); }
.srcdl a { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--flesh); border-radius: 999px; padding: 7px 15px; text-decoration: none; color: var(--ink); font-weight: 600; }
.srcdl a::before { content: "</>"; font: 600 12px var(--mono); color: var(--flesh); }
.srcdl a:hover { background: #1d1a22; }

/* code excerpts */
.code { margin-top: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.code summary { cursor: pointer; padding: 10px 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; list-style: none; }
.code summary::-webkit-details-marker { display: none; }
.code summary::before { content: "▸"; color: var(--flesh); font-size: 12px; }
.code[open] summary::before { content: "▾"; }
.code .cf { font: 600 12.5px var(--mono); color: var(--ink); }
.code .cl { font: 12px var(--mono); color: var(--muted); }
.code .cc { flex-basis: 100%; font-size: 13.5px; color: var(--muted); padding-left: 18px; }
.code pre { margin: 0; padding: 12px 16px 14px; border-top: 1px solid var(--line); overflow-x: auto; font: 12.5px/1.6 var(--mono); color: #d8d2c4; tab-size: 4; }
.code .c { color: #7f8aa3; font-style: italic; } .code .k { color: #e2a08f; } .code .n { color: #f2c46d; } .code .s { color: #9fd3c7; }
.code .cfull { display: inline-block; margin: 0 16px 12px; font-size: 13px; color: var(--muted); }
.srcdl a.plain { display: inline; border: 0; padding: 0; font-weight: 400; color: var(--ink2); text-decoration: underline; }
.srcdl a.plain::before { content: none; }
