/* hebbiancorpus.com — one stylesheet.
   Palette sampled from the artwork (art/BRAND.md): amber is what fires, blue is
   what connects, never the reverse. Self-contained: no third-party fonts.
   Free of charge under the nosource agreement (https://nosource.ai). Not open source. */

:root {
  --ground: #f6f1e8; --ground-2: #eee6d8; --panel: #fffaf1; --panel-2: #f3ecdf;
  --ink: #1b1712; --ink-soft: #3b342b; --ink-mute: #5c5347;
  --rule: rgba(27, 23, 18, .14); --rule-strong: rgba(27, 23, 18, .28);
  --amber: #8f4f22; --amber-soft: #b86f3b; --node: #2b5688; --gold: #6f5212;
  --glow-amber: rgba(184, 111, 59, .18); --glow-node: rgba(43, 86, 136, .14);
  --shade: rgba(246, 241, 232, .86);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px; --wrap: 72rem; --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #050609; --ground-2: #0a0d13; --panel: #0f131b; --panel-2: #141a24;
    --ink: #f3ead9; --ink-soft: #d2c8b6; --ink-mute: #a39884;
    --rule: rgba(243, 234, 217, .12); --rule-strong: rgba(243, 234, 217, .26);
    --amber: #e3a56f; --amber-soft: #cc9165; --node: #86acdb; --gold: #e2c684;
    --glow-amber: rgba(227, 165, 111, .20); --glow-node: rgba(96, 137, 184, .22);
    --shade: rgba(5, 6, 9, .82);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #050609; --ground-2: #0a0d13; --panel: #0f131b; --panel-2: #141a24;
  --ink: #f3ead9; --ink-soft: #d2c8b6; --ink-mute: #a39884;
  --rule: rgba(243, 234, 217, .12); --rule-strong: rgba(243, 234, 217, .26);
  --amber: #e3a56f; --amber-soft: #cc9165; --node: #86acdb; --gold: #e2c684;
  --glow-amber: rgba(227, 165, 111, .20); --glow-node: rgba(96, 137, 184, .22);
  --shade: rgba(5, 6, 9, .82);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
/* An author display rule (e.g. .ask form { display: flex }) beats the browser's own
   [hidden] style, so a hidden element went on painting. hidden means hidden. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--serif); overflow-x: hidden;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--node); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; }
.skip { min-height: 44px; display: inline-flex; align-items: center; padding: 0 1rem; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--panel); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.prose { max-width: 40rem; }
.prose p, .prose li { color: var(--ink-soft); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 1.3rem + 4.4vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); }
p { margin: 0 0 1em; }
.eyebrow {
  font: 600 .74rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 1rem;
}
.lede { font-size: clamp(1.12rem, 1rem + .5vw, 1.34rem); color: var(--ink-soft); max-width: 42rem; }
em.fire { font-style: normal; color: var(--amber); }
em.wire { font-style: normal; color: var(--node); }
.mono { font-family: var(--mono); font-size: .9em; }
.muted { color: var(--ink-mute); }
.small { font-size: .9rem; }

/* ------------------------------------------------------------------ top -- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--shade); backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.top .wrap { display: flex; align-items: center; gap: 1rem; min-height: 3.75rem; }
.brand { display: flex; align-items: center; gap: .65rem; min-height: 44px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand .mk-f { fill: var(--amber); } .brand .mk-n { fill: var(--node); }
.brand .mk-w { stroke: var(--node); stroke-width: 1.3; fill: none; opacity: .8; }
.brand b { font: 500 1.05rem/1 var(--serif); letter-spacing: .12em; text-transform: uppercase; }
.nav { display: flex; gap: .25rem; align-items: center; }
.nav a {
  font: 500 .9rem/1 var(--sans); color: var(--ink-soft); text-decoration: none;
  padding: .7rem .7rem; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center;
}
.nav a:hover { color: var(--ink); background: var(--panel-2); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--amber); border-radius: 0; }
.theme, .menu {
  font: 500 .85rem/1 var(--sans); color: var(--ink); background: var(--panel);
  border: 1px solid var(--rule-strong); border-radius: 999px; padding: 0 .95rem;
  min-height: 44px; min-width: 44px; cursor: pointer;
}
.theme:hover, .menu:hover { border-color: var(--amber); }
.menu { display: none; }
@media (max-width: 960px) {
  .menu { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
         align-items: stretch; padding: .5rem var(--gutter) 1rem; background: var(--ground); border-bottom: 1px solid var(--rule); }
  .nav.open { display: flex; }
  .nav a { border-radius: 10px; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--amber); }
}

/* ----------------------------------------------------------------- hero -- */
/* The master is 1536px wide. Full-bleed it could never be sharp on a retina
   screen, so the art holds the right-hand column at no more than 48rem (768px,
   i.e. 1536 device pixels at 2x) and fades into the ground on its inner edge. */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule);
  background: radial-gradient(50rem 30rem at 78% 45%, var(--glow-amber), transparent 70%),
              radial-gradient(40rem 26rem at 20% 90%, var(--glow-node), transparent 70%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: center;
  padding-block: clamp(2rem, 6vh, 4rem) clamp(3rem, 8vh, 5.5rem); }
.hero__art { order: -1; margin-inline: calc(-1 * var(--gutter)); }
.hero__art img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  -webkit-mask-image: linear-gradient(0deg, transparent 0, #000 22%); mask-image: linear-gradient(0deg, transparent 0, #000 22%); }
.hero h1 { max-width: 13ch; }
.hero .lede { max-width: 34rem; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, min(48rem, 55vw)); gap: 0; padding-block: clamp(3rem, 9vh, 6rem); }
  .hero__art { order: 2; margin: 0 calc(-1 * var(--gutter)) 0 -1.5rem; max-width: 48rem; }
  .hero__copy { padding-right: 2rem; }
  .hero__art img { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
  .hero__copy { position: relative; z-index: 1; }
}
.page-hero { padding-block: clamp(3rem, 9vh, 6rem) clamp(2rem, 6vh, 3.5rem); border-bottom: 1px solid var(--rule); background:
  radial-gradient(60rem 20rem at 85% 0%, var(--glow-node), transparent 70%),
  radial-gradient(40rem 18rem at 10% 100%, var(--glow-amber), transparent 70%); }
.page-hero h1 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.9rem); max-width: 18ch; }

.cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: 0 1.3rem;
  font: 600 .95rem/1 var(--sans); text-decoration: none; border-radius: 999px;
  border: 1px solid var(--rule-strong); color: var(--ink); background: var(--panel);
  cursor: pointer;
}
.btn:hover { border-color: var(--amber); color: var(--ink); }
.btn--fire { background: var(--amber); color: var(--ground); border-color: var(--amber); }
.btn--fire:hover { background: var(--ink); border-color: var(--ink); color: var(--ground); }

.quote { margin: 2.2rem 0 0; padding-left: 1.2rem; border-left: 2px solid var(--amber); max-width: 36rem; }
.quote p { font-style: italic; font-size: 1.12rem; color: var(--ink); margin: 0 0 .4rem; }
.quote cite { font: 500 .8rem/1.4 var(--sans); letter-spacing: .06em; color: var(--ink-mute); font-style: normal; }

/* -------------------------------------------------------------- sections -- */
.section { padding-block: clamp(3.5rem, 9vw, 6.5rem); border-bottom: 1px solid var(--rule); }
.section--alt { background: var(--ground-2); }
.section__head { max-width: 46rem; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section__head p { color: var(--ink-soft); }
.split { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } .split--flip > :first-child { order: 2; } }
.split--prose { grid-template-columns: minmax(0, 1fr) !important; }
.table-wrap--wide { margin-top: 1.5rem; }
.figure { margin: 0; }
.figure img { border-radius: var(--radius); border: 1px solid var(--rule); box-shadow: 0 30px 80px -40px rgba(0,0,0,.6); }
.figure--capped { max-width: 56.5rem; margin-inline: auto; }
.figure figcaption { font: .85rem/1.5 var(--sans); color: var(--ink-mute); margin-top: .75rem; }

/* ------------------------------------------------------------ full size -- */
/* Every artwork can be opened to be read (assets/js/lightbox.js). The hover says
   so before it is tried; the labelled button says so where there is no hover. */
.zoom { position: relative; display: block; }
.zoom > img { cursor: zoom-in; transition: transform .25s ease, box-shadow .25s ease, filter .25s ease; }
/* On hover the picture lights up: an amber edge that gives off light, the
   colour the artwork uses for what fires. */
.zoom:hover > img, .zoom:focus-within > img {
  transform: translateY(-3px); filter: brightness(1.08);
  box-shadow: 0 0 0 2px var(--amber),
              0 0 18px 3px color-mix(in srgb, var(--amber) 65%, transparent),
              0 0 48px 10px color-mix(in srgb, var(--amber) 35%, transparent),
              0 0 110px 24px color-mix(in srgb, var(--amber) 16%, transparent);
  -webkit-mask-image: none; mask-image: none;
}
/* Beneath the picture, never on it: a control laid over artwork hides the very
   thing the patron came to read (John, 29 September 2026). */
.zoom__btn {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 1rem; margin-top: .7rem;
  font: 600 .85rem/1 var(--sans); color: var(--ink); cursor: zoom-in;
  background: var(--panel); border: 1px solid var(--rule-strong); border-radius: 999px; transition: background .2s, border-color .2s, color .2s;
}
.zoom__btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; }
.zoom:hover .zoom__btn, .zoom__btn:focus-visible { background: var(--amber); color: var(--ground); border-color: var(--amber); }
.hero__art .zoom__btn { margin-left: var(--gutter); }
@media (min-width: 900px) { .hero__art .zoom__btn { margin-left: 22%; } }
.book__cover .zoom { max-width: 20rem; margin-inline: auto; }
@media (max-width: 600px) { .book__cover .zoom { max-width: 15.8rem; } }
@media (prefers-reduced-motion: reduce) { .zoom > img { transition: none; } .zoom:hover > img { transform: none; } }

dialog.lb { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(3, 4, 6, .96); color: #f3ead9; display: none; flex-direction: column; }
dialog.lb[open] { display: flex; }
dialog.lb::backdrop { background: rgba(0, 0, 0, .85); }
.lb__bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .75rem var(--gutter);
  border-bottom: 1px solid rgba(243, 234, 217, .14); }
.lb__title { margin: 0 auto 0 0; font: 500 .95rem/1.35 var(--sans); color: #d2c8b6; flex: 1 1 16rem; min-width: 0; }
.lb__tools { display: flex; flex-wrap: wrap; gap: .5rem; }
.lb__btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; font: 600 .88rem/1 var(--sans);
  color: #f3ead9; background: transparent; border: 1px solid rgba(243, 234, 217, .35); border-radius: 999px; cursor: pointer; text-decoration: none; }
.lb__btn:hover, .lb__btn:focus-visible { border-color: #e3a56f; color: #fff; }
.lb__btn[aria-pressed="true"] { background: #f3ead9; color: #050609; border-color: #f3ead9; }
.lb__btn--close { background: #e3a56f; color: #050609; border-color: #e3a56f; }
.lb__stage { flex: 1; min-height: 0; overflow: auto; position: relative; }
/* Fitted: absolutely placed in the stage, whose size the flex column fixes, so
   the percentages resolve and the whole picture is always on screen. */
.lb__img { position: absolute; inset: 0; margin: auto; max-width: calc(100% - 2rem); max-height: calc(100% - 2rem);
  width: auto; height: auto; cursor: zoom-in; border-radius: 6px; }
.lb--actual .lb__img { position: static; max-width: none; max-height: none; margin: 1rem; cursor: zoom-out; }

/* ------------------------------------------------------------- the loop -- */
.loop { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); margin-top: 1.1rem; }
@media (min-width: 700px) { .loop { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.loop__half { display: grid; gap: .5rem; align-content: start; }
.loop__head { min-height: 2.8em; font: 600 .7rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 0 0 .15rem; }
.loop__step { display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 48px; padding: .55rem .9rem .55rem .6rem;
  text-align: left; font: 500 .98rem/1.3 var(--serif); color: var(--ink); background: var(--panel);
  border: 1px solid var(--rule); border-radius: 12px; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.loop__step:hover, .loop__step:focus-visible { border-color: var(--amber); box-shadow: 0 0 18px -4px color-mix(in srgb, var(--amber) 55%, transparent); }
.loop__step[aria-expanded="true"] { border-color: var(--amber); background: var(--panel-2); }
.loop__n { flex: none; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  font: 500 1rem/1 var(--serif); color: var(--gold); border: 1px solid var(--gold); }
.loop__step[aria-expanded="true"] .loop__n { background: var(--gold); color: var(--ground); }
.loop__panel { grid-column: 1 / -1; background: var(--panel); border: 1px solid var(--amber); border-radius: var(--radius); padding: 1.3rem 1.3rem 1rem; }
.loop__panel h3 { margin-bottom: .3rem; }
.loop__panel p { color: var(--ink-soft); max-width: 44rem; }
.loop__live { font: .92rem/1.5 var(--sans); }
.loop__live b { color: var(--ink); }
.loop__nav { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; margin: .4rem 0 0; font: 600 .9rem/1 var(--sans); }
.loop__nav a { display: inline-flex; align-items: center; min-height: 44px; }
.loop__next { min-height: 44px; padding: 0 1rem; font: 600 .88rem/1 var(--sans); color: var(--ink); background: transparent;
  border: 1px solid var(--rule-strong); border-radius: 999px; cursor: pointer; }
.loop__next:hover { border-color: var(--amber); }

/* ------------------------------------------------------------ the ledger -- */
.ledger { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); }
.stat { background: var(--panel); padding: 1.4rem 1.3rem 1.3rem; min-width: 0; }
.stat__n { font: 500 clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem)/1 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.stat__n.fire { color: var(--amber); }
.stat__n--date { font-size: clamp(1.2rem, 1rem + .6vw, 1.5rem); line-height: 1.2; }
.stat__n.wire { color: var(--node); }
.stat__k { font: 600 .72rem/1.35 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-top: .7rem; }
.stat__d { font-size: .92rem; color: var(--ink-mute); margin: .45rem 0 0; line-height: 1.45; }
.asof { font: .82rem/1.5 var(--sans); color: var(--ink-mute); margin-top: 1rem; }

/* ------------------------------------------------------------ six stages -- */
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); counter-reset: st; }
.stage { position: relative; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.4rem 1.3rem 1.3rem 4.3rem; min-width: 0; }
.stage::before {
  counter-increment: st; content: counter(st);
  position: absolute; left: 1.2rem; top: 1.25rem; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: grid; place-items: center; font: 500 1.1rem/1 var(--serif); color: var(--gold);
  border: 1px solid var(--gold);
}
.stage h3 { margin-bottom: .35rem; }
.stage__spec { font-style: italic; color: var(--ink-soft); margin: 0 0 .8rem; }
.stage__now { font: .88rem/1.5 var(--sans); color: var(--ink-mute); margin: 0; border-top: 1px solid var(--rule); padding-top: .75rem; }
.state { display: inline-block; font: 600 .68rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  padding: .32rem .5rem; border-radius: 999px; border: 1px solid currentColor; margin-right: .4rem; vertical-align: .1em; }
.state--done { color: var(--node); } .state--running { color: var(--amber); } .state--baseline { color: var(--gold); }
.state--waiting, .state--failed { color: var(--ink-mute); }

/* ---------------------------------------------------------- the network -- */
.net { position: relative; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background:
  radial-gradient(40rem 22rem at 30% 40%, var(--glow-amber), transparent 70%),
  radial-gradient(40rem 22rem at 75% 60%, var(--glow-node), transparent 70%), var(--panel); }
.net canvas { display: block; width: 100%; height: clamp(18rem, 42vw, 26rem); touch-action: manipulation; cursor: crosshair; }
.net__hud { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding: .9rem 1.2rem; border-top: 1px solid var(--rule); font: .88rem/1.4 var(--sans); color: var(--ink-mute); }
.net__hud b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------- bare/grounded -- */
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.tab { font: 500 .88rem/1.2 var(--sans); padding: .7rem 1rem; min-height: 44px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--rule-strong); background: transparent; color: var(--ink-soft); text-align: left; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.compare { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .compare { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.answer { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.3rem 1.3rem 1.1rem; min-width: 0; }
.answer--bare { border-top: 3px solid var(--ink-mute); }
.answer--grounded { border-top: 3px solid var(--node); }
.answer h3 { font: 600 .74rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; }
.answer__text { white-space: pre-line; color: var(--ink-soft); font-size: 1rem; }
.answer__meta { font: .84rem/1.5 var(--sans); color: var(--ink-mute); border-top: 1px solid var(--rule); padding-top: .7rem; margin-top: .9rem; }
.q { font-size: 1.12rem; margin: 0 0 1rem; color: var(--ink); }
.q::before { content: "Asked — "; font: 600 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

/* ---------------------------------------------------------------- table -- */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--panel); }
table { border-collapse: collapse; width: 100%; font: .93rem/1.45 var(--sans); }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); background: var(--panel-2); }
tr:last-child td { border-bottom: 0; }
td b { color: var(--ink); font-weight: 600; }
td { color: var(--ink-soft); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ------------------------------------------------------------- reserved -- */
.reserved { position: relative; border: 1px dashed var(--rule-strong); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.4rem);
  background: repeating-linear-gradient(135deg, transparent 0 18px, var(--panel-2) 18px 19px), var(--panel);
  min-height: 15rem; display: flex; flex-direction: column; justify-content: flex-end; }
.reserved--wide { aspect-ratio: 16 / 9; min-height: 0; }
.reserved h3 { margin: 0 0 .4rem; }
.reserved p { margin: 0; color: var(--ink-mute); max-width: 34rem; }
.reserved .tag { position: absolute; top: 1rem; left: 1rem; font: 600 .68rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold); border-radius: 999px; padding: .38rem .6rem; }
@media (max-width: 600px) { .reserved--wide { aspect-ratio: auto; min-height: 15rem; } }

/* ----------------------------------------------------------------- cards -- */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.card { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.35rem; min-width: 0; }
.card p { color: var(--ink-soft); margin-bottom: 0; }
.card h3 { margin-bottom: .45rem; }
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { border-color: var(--amber); }
a.card .more { font: 600 .85rem/1 var(--sans); color: var(--amber); margin-top: 1rem; display: inline-block; }

.cards--loop { margin-top: 1.4rem; }
.cards--loop .eyebrow { margin-bottom: .6rem; }
.cards--reserved { margin-top: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }

/* ------------------------------------------------------------------ ask -- */
.ask { background: var(--panel); border: 1px solid var(--rule); border-radius: calc(var(--radius) + 4px); padding: clamp(1.1rem, 3vw, 1.8rem);
  box-shadow: 0 30px 90px -50px var(--glow-node); }
.ask form { display: flex; flex-wrap: wrap; gap: .6rem; }
.ask label { flex-basis: 100%; font: 600 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.ask textarea { flex: 1 1 18rem; min-height: 3.2rem; max-height: 12rem; resize: vertical; font: 1.02rem/1.5 var(--serif);
  color: var(--ink); background: var(--ground); border: 1px solid var(--rule-strong); border-radius: 12px; padding: .8rem 1rem; }
.ask textarea:focus { outline: 2px solid var(--node); outline-offset: 1px; }
.suggest { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.suggest li { max-width: 38rem; }
.suggest button { font: .88rem/1.3 var(--sans); color: var(--ink-soft); background: transparent; border: 1px solid var(--rule); border-radius: 999px;
  padding: .6rem .9rem; min-height: 44px; cursor: pointer; text-align: left; }
.suggest button:hover { border-color: var(--node); color: var(--ink); }
.ask__status { font: .92rem/1.5 var(--sans); color: var(--ink-mute); margin: 1.1rem 0 0; min-height: 1.5em; }
.ask__status .pulse { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: var(--amber); margin-right: .5rem; vertical-align: .05em; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .ask__status .pulse { animation: none; } }
.ask__out { margin-top: 1rem; }
.ask__answer { font-size: 1.06rem; color: var(--ink); white-space: pre-line; border-left: 2px solid var(--node); padding-left: 1rem; }
.cite { font: 600 .78rem/1 var(--sans); color: var(--node); text-decoration: none; border: 1px solid var(--node); border-radius: 999px; padding: .15rem .45rem; white-space: nowrap; }
.cite:hover { background: var(--node); color: var(--ground); }
.warn { border: 1px solid var(--amber); border-radius: 12px; padding: .8rem 1rem; color: var(--ink); margin-top: 1rem; font: .92rem/1.5 var(--sans); }
.given { margin-top: 1.2rem; }
.given summary { cursor: pointer; font: 600 .85rem/1.4 var(--sans); color: var(--ink-soft); min-height: 44px; display: flex; align-items: center; }

pre[data-contract] { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-soft); background: var(--ground); border: 1px solid var(--rule); border-radius: 10px; padding: 1rem; margin: .6rem 0 0; }

/* -------------------------------------------------------------- identity -- */
.acct { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; font: .92rem/1.5 var(--sans); color: var(--ink-soft); margin: 0 0 1rem; }
.acct:empty { display: none; }
.acct b { color: var(--ink); }
.linkbtn { font: 600 .9rem/1 var(--sans); color: var(--amber); background: none; border: 0; padding: 0 .2rem; min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.linkbtn:hover { color: var(--ink); }
.ask__check { flex-basis: 100%; min-height: 0; }
.lock { border-top: 1px solid var(--rule); margin-top: 1.4rem; padding-top: 1.4rem; }
.lock h3 { margin-bottom: .3rem; }
.patron-form { display: grid; gap: .8rem; max-width: 28rem; margin: 1rem 0 .6rem; }
.patron-form label { display: grid; gap: .35rem; font: 600 .8rem/1.3 var(--sans); letter-spacing: .04em; color: var(--ink-soft); }
.patron-form input { min-height: 48px; font: 1rem/1.4 var(--sans); color: var(--ink); background: var(--ground); border: 1px solid var(--rule-strong); border-radius: 10px; padding: 0 .9rem; }
.patron-form input:focus { outline: 2px solid var(--node); outline-offset: 1px; }
.patron-form .btn { justify-self: start; }
.form__status { font: .92rem/1.5 var(--sans); color: var(--ink-soft); margin: 0; min-height: 1.4em; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ask .notice { margin: 1.4rem 0 0; }
.signin .lede { max-width: 36rem; }

/* --------------------------------------------------------------- claims -- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1.2rem; }
.filters input[type="search"] { flex: 1 1 16rem; min-height: 48px; font: 1rem/1.4 var(--sans); color: var(--ink); background: var(--panel);
  border: 1px solid var(--rule-strong); border-radius: 999px; padding: 0 1.1rem; }
.chip { font: 500 .85rem/1 var(--sans); padding: 0 .9rem; min-height: 44px; border-radius: 999px; border: 1px solid var(--rule-strong);
  background: transparent; color: var(--ink-soft); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.claims { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; max-width: 46rem; }
.claim { background: var(--panel); border: 1px solid var(--rule); border-radius: 12px; padding: 1rem 1.1rem; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .35rem 1rem; }
.claim:target { border-color: var(--node); box-shadow: 0 0 0 3px var(--glow-node); }
.claim__id { font: 600 .8rem/1.6 var(--mono); color: var(--node); white-space: nowrap; }
.claim__s { color: var(--ink-soft); font-size: .98rem; overflow-wrap: anywhere; }
.claim__m { grid-column: 2; font: .8rem/1.4 var(--sans); color: var(--ink-mute); }
.grade { display: inline-block; font: 700 .7rem/1 var(--mono); padding: .25rem .4rem; border-radius: 6px; border: 1px solid currentColor; margin-right: .4rem; }
.grade--P { color: var(--amber); } .grade--A { color: var(--node); } .grade--S, .grade--U, .grade--R { color: var(--ink-mute); }
.count { font: .9rem/1.4 var(--sans); color: var(--ink-mute); margin: 0 0 1rem; }

/* ----------------------------------------------------------------- book -- */
.book { display: grid; gap: clamp(1.5rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 820px) { .book { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); } }
.book__cover img { max-width: 20rem; border-radius: 6px 14px 14px 6px; box-shadow: -8px 0 0 -4px rgba(0,0,0,.35), 0 40px 90px -40px rgba(0,0,0,.8); border: 1px solid var(--rule); width: 100%; margin-inline: auto; }

/* The cover master is 760px: at a phone's 3x that is 253 CSS px, no wider. */
@media (max-width: 600px) { .book__cover img { max-width: 15.8rem; } }

/* ------------------------------------------------------------ foundation -- */
.foundation { text-align: left; }
.foundation .lede { max-width: 48rem; }
.notice { font: .9rem/1.6 var(--sans); color: var(--ink-mute); max-width: 48rem; }
.pill { display: inline-block; font: 600 .72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold);
  border: 1px solid var(--gold); padding: .4rem .7rem; border-radius: 999px; margin-bottom: 1rem; }

/* --------------------------------------------------------------- footer -- */
.foot { padding-block: 3rem 2rem; font: .9rem/1.6 var(--sans); color: var(--ink-mute); }
.foot .wrap { display: grid; gap: 1.2rem; }
.foot a { color: var(--ink-soft); }
.foot__line > a { display: inline-flex; align-items: center; min-height: 44px; }
.foot__line { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
/* The estate footer's link tiles are 41px tall; a phone needs 44. Set from the
   host, because the shared footer.js is maintained in one place for every site. */
.foot .ws-footer a { min-height: 44px; box-sizing: border-box; }
.ws-footer { --ws-footer-ink: var(--ink-soft); --ws-footer-muted: var(--ink-mute); --ws-footer-rule: var(--rule); }
