/* Bounded content adaptation over the original layout and type system. */
html[data-theme="dark"] {
  --void: #080808; --text: #c9c9c6; --dim: #878783; --faint: #575754;
  --hair: rgba(201,201,198,.17); --hair-2: rgba(201,201,198,.085);
  --green: #d7d7d1; --blue: #d7d7d1; --amber: #d7d7d1; --violet: #d7d7d1;
  --field-rgb: 158,158,153; --hero-tint: #2c2c2a; color-scheme: dark;
}
html:not([data-theme="dark"]) { color-scheme:light; }
#site-nav a[href$="#sec-home"] { text-transform:none; }
.definition-actions { display:flex;align-items:center;gap:.85rem; }
/* Reserve the old label's exact width, preserving the original pill dimensions. */
.hero-ca .copy-llms-label { display:inline-grid; }
.hero-ca .copy-llms-label::before { content:'COPY CONTEXT FOR LLMS';visibility:hidden;grid-area:1/1; }
.hero-ca [data-home-ca-value] { grid-area:1/1;align-self:center;justify-self:center;white-space:nowrap;text-transform:none; }
.hero-ca:disabled { cursor:default; }
.x-link { display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:2rem;height:2rem;color:var(--dim);text-decoration:none;pointer-events:auto;transition:color .16s var(--ease),opacity .16s var(--ease); }
.x-link svg { width:.85rem;height:.85rem;fill:currentColor; }
.x-link:hover { color:var(--text); }
.nav-x { margin-left:.2rem; }
body:has(#sec-home) .site-hero:not(.is-revealed) .nav-x { opacity:0;pointer-events:none; }
.page-foot .x-link { vertical-align:middle; }
#sec-meme { justify-content:flex-start; }
#sec-meme .mh-sub { font-weight:400;margin:0; }
.meme-art { display:flex;align-items:center;justify-content:center;color:var(--dim); }
.meme-face { font:clamp(3rem,7vw,6.5rem)/1 var(--mono);letter-spacing:-.08em; }
.meme-proof { font:clamp(4rem,8vw,8rem)/1 var(--mono);color:var(--faint); }
.meme-rewards { flex-direction:column;gap:1.5rem;aspect-ratio:auto;min-height:100%;padding:1.5rem 0; }
.meme-share { display:flex;flex-direction:column;align-items:center;gap:.65rem;text-align:center; }
.meme-share strong { color:var(--text);font:700 clamp(2.5rem,5vw,4.5rem)/1 var(--grotesk);letter-spacing:-.04em; }
.meme-share em { font:italic var(--fs-small)/1.6 var(--mono); }
.meme-flow { font:.75rem/1.8 var(--mono);white-space:pre;margin:0;max-width:100%; }
.meme-note { font:var(--fs-small)/1.8 var(--mono);color:var(--dim);max-width:82ch;margin:1.5rem 0; }
@media(max-width:760px) {
 #sec-meme .meme-face,#sec-meme .meme-proof { aspect-ratio:auto;min-height:9rem; }
 #sec-meme .meme-rewards { min-height:0;order:4;width:100%;margin-top:1.5rem; }
 .meme-flow { font-size:clamp(.65rem,2.7vw,.8rem); }
}
@media(max-width:640px) {
 .nav-x { position:fixed;z-index:6;right:4rem;top:calc(var(--hero-h) / 2);transform:translateY(-50%);margin:0; }
 .theme-toggle { right:6.6rem; }
 .hero-title { max-width:calc(100% - 10rem);overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
}
.hero-source { font-family:var(--mono);font-size:var(--fs-mono);line-height:1.6;margin-top:.7rem; }
.hero-source a { color:var(--dim);text-decoration:underline;text-underline-offset:3px; }
.hero-prize { font-size:.68rem !important;line-height:1.6 !important;margin-top:.4rem !important; }
#sec-home .etymology p { display:block; }
.source-status { display:block;margin-top:.7em;color:var(--dim);font-family:var(--mono);font-size:.68rem;line-height:1.7; }
.col-media--type { display:flex;align-items:center;justify-content:center;aspect-ratio:16/10;border:1px solid var(--hair-2);background:color-mix(in srgb,var(--text) 3%,transparent);color:var(--dim); }
.col-media--type > span { font:clamp(1.8rem,4vw,3.6rem)/1 var(--mono);letter-spacing:-.06em; }
#sec-writings .col .meta { overflow-wrap:anywhere; }
#sec-writings .term { overflow-wrap:anywhere; }
#sec-symbients .portrait-link::after { mix-blend-mode:normal;opacity:.08; }
#sec-symbients .portrait-link img { object-fit:contain; }
#sec-events .term { min-height:2.1em; }
.reg-tools { flex-wrap:wrap; }
.reg-search { min-width:min(100%,280px); }
.reg-filter { white-space:nowrap; }
.k-equal,.k-unequal,.k-undecidable,.k-other,.k-historical,.k-paper,.k-meme,.k-researcher { --node:var(--text); }
.col-top .kinds { overflow-wrap:anywhere; }
.credits-copy code { overflow-wrap:anywhere; }
.credits-copy section { scroll-margin-top:calc(var(--hero-h) + 2rem);border-top:1px solid var(--hair-2);padding:.8rem 0; }
.credits-copy h3 { font-family:var(--grotesk);letter-spacing:-.02em; }
.ca-title [data-token-ticker] { font: .4em var(--mono);margin-left:.6em;vertical-align:middle; }
/* A small, self-contained mathematical ornament. The rabbit remains the hero. */
.ascii-donut { position:relative;margin:5rem 0 2rem;padding:2.5rem clamp(.9rem,2.5vw,2rem);border-top:1px solid var(--hair);border-bottom:1px solid var(--hair);background:#080808;color:#bdbdb6; }
.donut-heading { display:flex;gap:1rem;align-items:baseline;justify-content:space-between;font: .65rem var(--mono);color:#747470; }
.donut-heading h2 { font: .85rem var(--mono);color:#bdbdb6;margin:0; }
#donut-output { margin:2rem auto;max-width:100%;width:80ch;overflow:hidden;min-height:26em;font:clamp(5px,1.1vw,11px)/1 var(--mono);white-space:pre;letter-spacing:0;color:#bdbdb6;user-select:text; }
.donut-caption { text-align:center;font:.68rem var(--mono);color:#858580; }
.donut-caption a { color:inherit;text-underline-offset:3px; }
#donut-toggle { font:inherit;color:inherit;background:none;border:1px solid #383836;padding:.3rem .7rem;margin-right:1rem;cursor:pointer; }
.page-foot .foot-social { flex-wrap:wrap; }
@media(max-width:640px) {
 .donut-heading { align-items:flex-start;flex-direction:column;gap:.5rem; }
 #donut-output { font-size:clamp(4px,1.08vw,7px);min-height:30em; }
 .hero-source { font-size:.56rem; }
 .hero-prize { font-size:.55rem !important; }
 .col-media--type > span { font-size:2.3rem; }
}
@media(prefers-reduced-motion:reduce) { html {scroll-behavior:auto;} }
@media(max-width:520px) {
 /* The new metadata contains citations, rather than the upstream hostname ornament. */
 .port-section .col .meta { display:flex;overflow-wrap:anywhere; }
 .port-section .col .col-xtra { display:none; }
}
