/* writ's own look on top of base.css: a writing desk at night. Paper ink, warm surfaces, a serif that writes, and wax
   only where something is sealed or launched. */

body {
  background:
    radial-gradient(1200px 520px at 12% -8%, rgba(184, 64, 47, 0.07), transparent 60%),
    var(--bg);
}
h1, h2, .display { font-weight: 400; }
h1.display { font-size: clamp(50px, 7vw, 104px); line-height: 0.95; letter-spacing: -0.02em; }
h2 { font-size: clamp(34px, 4vw, 54px); line-height: 1; }
em, .accent { font-style: italic; }
.accent { color: var(--accent-ink); }
.kicker { color: var(--muted); }
.kicker-dot { background: var(--accent-ink); }
.lede { color: var(--ink-2); }
.link-u { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 4px; }
.link-u:hover { text-decoration-color: var(--accent-ink); }
.arrow { font-family: var(--font-text); }

/* ---------- header ---------- */
#top { background: color-mix(in srgb, var(--bg) 88%, transparent); }
.brand { color: var(--ink); }
.brand svg { display: block; }
.nav a { font: 500 12.5px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 10px 12px; }
.nav a[aria-current] { color: var(--ink); background: none; box-shadow: inset 0 -1.5px 0 var(--accent-ink); border-radius: 0; }
.nav a:hover { background: none; color: var(--ink); }
.x-btn { border: 1px solid var(--line-2); }
.btn { border-radius: var(--r-pill); font-weight: 600; }
.btn.primary { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 1px 0 rgba(255, 220, 200, 0.18), 0 6px 18px -10px rgba(184, 64, 47, 0.9); }
.btn.primary:hover { filter: brightness(1.08); }
.top-cta { height: 38px; padding: 0 16px; font-size: 14px; }
.wallet-btn { height: 38px; font-size: 14px; }

/* ---------- chips ---------- */
.chip { background: transparent; border-color: var(--line-2); color: var(--ink-2); }
.chip.wax { color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent-ink) 45%, transparent); }
.chip.demo { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }

/* ---------- footer ---------- */
#foot { border-top: var(--border); padding: 56px 0 calc(56px + env(safe-area-inset-bottom)); background: var(--bg-2); }
body[data-page="build"] #foot { display: none; }
.foot { grid-template-columns: 1.2fr 2fr; gap: 32px; }
.foot-brand { display: grid; gap: 12px; align-content: start; color: var(--ink); }
.foot-brand p { max-width: 26em; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 24px; }
.foot-col { display: grid; gap: 9px; align-content: start; }
.foot-col .label { margin-bottom: 4px; }
.foot-col a { color: var(--ink-2); font-size: 14.5px; }
.foot-col a:hover { color: var(--ink); }

/* ---------- the seal ---------- */
.seal { display: inline-block; flex: none; color: var(--ink-2); line-height: 0; }
.seal svg { width: 100%; height: 100%; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45)); }
.coin-art.drawn { background: none; border-radius: 50%; }
.coin-art.drawn svg { filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)); }
.empty-seal { opacity: 0.8; }

/* ---------- blocks (read-only and editable share this) ---------- */
.blk {
  --blk-bg: color-mix(in srgb, var(--ink-cat) 17%, #1d1714);
  position: relative; display: block; width: fit-content; max-width: 100%;
  border-radius: 9px; background: var(--blk-bg);
  border: 1px solid color-mix(in srgb, var(--ink-cat) 42%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ink-cat) 22%, transparent), 0 3px 0 -1px rgba(0, 0, 0, 0.35);
  color: var(--ink); font: 500 13.5px/1.2 var(--font-text);
}
.blk-head { padding: 7px 10px 7px 8px; }
.blk-line { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 6px; }
.cat-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: color-mix(in srgb, var(--ink-cat) 34%, #1a1412); color: color-mix(in srgb, var(--ink-cat) 70%, #fff); flex: none; }
.blk-word { white-space: nowrap; }
.fld { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--ink-cat) 40%, transparent); background: rgba(10, 7, 6, 0.55); color: var(--ink); font: 500 12.5px/1 var(--font-mono); max-width: 22ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fld.text { font-family: var(--font-text); font-style: italic; }
input.fld, select.fld { appearance: none; -webkit-appearance: none; outline: none; cursor: text; }
input.fld { width: auto; min-width: 3ch; }
select.fld { cursor: pointer; padding-right: 20px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 11px) 9px, calc(100% - 7px) 9px; background-size: 4px 4px; background-repeat: no-repeat; }
select.fld option { background: var(--surface-2); color: var(--ink); }
input.fld:focus, select.fld:focus { border-color: var(--ink-cat); box-shadow: 0 0 0 2px color-mix(in srgb, var(--ink-cat) 30%, transparent); }
.fld[aria-invalid] { border-color: var(--bad); }
/* events wear a cap; wraps have a mouth and a lip */
.blk.shape-event { border-top-left-radius: 16px; border-top-right-radius: 16px; }
.blk.shape-event .blk-head { padding-top: 9px; }
.blk.shape-wrap { min-width: 220px; }
.blk-mouth { min-height: 18px; margin-left: 14px; padding: 2px 0 2px 0; display: grid; gap: 4px; justify-items: start; }
.blk-foot { height: 12px; border-top: 1px solid color-mix(in srgb, var(--ink-cat) 25%, transparent); margin-left: 14px; border-bottom-left-radius: 6px; }
.blk.shape-end { border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--ink-cat) 40%, transparent); }
.stack.static { display: grid; gap: 4px; justify-items: start; }
.stack.static.small .blk { font-size: 12.5px; }
.stack.static.small .fld { height: 20px; font-size: 11.5px; padding: 0 7px; }
.stack.static.small .cat-icon { width: 20px; height: 20px; }
.blk.dropping { animation: drop-in 260ms var(--ease) both; }
@keyframes drop-in { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- home: hero ---------- */
.hero { grid-template-columns: 1.02fr 0.98fr; gap: clamp(28px, 5vw, 64px); padding-top: clamp(40px, 6vw, 84px); align-items: start; }
.hero-copy .lede { margin-top: 22px; max-width: 30em; }
.hero-ask { margin-top: 28px; width: 100%; max-width: 560px; }
.ask-q { font: italic 400 22px/1.2 var(--font-display); color: var(--ink-2); margin-bottom: 10px; }
.ask { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 6px 6px 16px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow); }
.ask:focus-within { border-color: color-mix(in srgb, var(--accent-ink) 60%, transparent); }
.ask-label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); flex: none; }
.ask-input { flex: 1; min-width: 0; height: 40px; border: 0; background: none; outline: none; font-size: 16px; color: var(--ink); }
.ask-input::placeholder { color: var(--muted); }
.ask.big .ask-input { height: 46px; }
.ask-go { flex: none; height: 40px; }
.ask.big .ask-go { height: 46px; }
.recipes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; max-width: 600px; }
.recipe-chip { padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.recipe-chip:hover { color: var(--ink); border-color: var(--line-3); }
.hero-alt { margin-top: 16px; font-size: 14.5px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; margin-top: 26px; font-size: 13px; color: var(--muted); }
.hero-stats b { color: var(--ink); font-weight: 500; }
.hero-stats:empty { display: none; }
.hero-art { position: relative; }

/* the desk */
.desk { position: relative; display: grid; gap: 16px; justify-items: center; padding: 26px 24px 30px; border-radius: 22px; border: var(--border); background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%); box-shadow: var(--shadow); min-height: 600px; align-content: start; overflow: hidden; }
.desk::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(240, 230, 214, 0.05) 1px, transparent 1px); background-size: 18px 18px; pointer-events: none; }
.desk > * { position: relative; }
.desk-paper { width: 100%; padding: 16px 18px; border-radius: 12px; background: #efe4d1; color: #2a1f19; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.8); transform: rotate(-0.6deg); }
.desk-paper .label { color: #8a7562; }
.desk-text { margin-top: 6px; min-height: 2.6em; font: italic 400 clamp(20px, 1.9vw, 25px)/1.25 var(--font-display); }
.desk-line { display: inline; }
.caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; background: #b8402f; vertical-align: -0.12em; animation: blink 1s steps(1) infinite; }
.desk.done .caret, .desk.pressed .caret { visibility: hidden; }
@keyframes blink { 50% { opacity: 0; } }
.desk-arrow { width: 1px; height: 22px; background: linear-gradient(var(--line-3), transparent); }
.desk-blocks { min-height: 150px; display: grid; justify-items: center; }
.desk-seal { min-height: 168px; display: grid; place-items: center; }
.desk.pressed .desk-seal .seal { animation: press 620ms cubic-bezier(.2, .7, .2, 1) both; }
@keyframes press { 0% { opacity: 0; transform: scale(1.35) rotate(-8deg); } 60% { opacity: 1; transform: scale(0.97) rotate(1deg); } 100% { transform: scale(1) rotate(0); } }
.desk-caption { font-size: 11.5px; letter-spacing: 0.08em; color: var(--muted); min-height: 1.2em; text-align: center; }

/* ---------- home: sections ---------- */
.section-head h2 { margin-top: 2px; }
.home-feed { margin-top: 26px; padding: 18px 20px; border-radius: var(--r-lg); border: var(--border); background: var(--bg-2); }
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-step { display: grid; grid-template-rows: 230px auto; border-radius: var(--r-lg); border: var(--border); background: var(--surface); overflow: hidden; }
.how-pic { display: grid; place-items: center; padding: 18px; background: var(--bg-2); border-bottom: var(--border); overflow: hidden; }
.how-pic.write { position: relative; }
.write-line { font: italic 400 22px/1.3 var(--font-display); color: var(--ink); text-align: center; max-width: 16em; }
.how-pic.sealpic { gap: 8px; align-content: center; }
.how-copy { padding: 18px 20px 22px; display: grid; gap: 6px; align-content: start; }
.how-copy h3 { font: 400 28px/1.1 var(--font-display); }
.step-n { color: var(--accent-ink); font-size: 12px; letter-spacing: 0.08em; }

.cat-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.cat-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 6px; border-radius: var(--r-pill); border: 1px solid color-mix(in srgb, var(--ink-cat) 35%, transparent); background: color-mix(in srgb, var(--ink-cat) 9%, transparent); font-size: 13.5px; }
.cat-chip:hover { border-color: var(--ink-cat); }
.cat-chip .cat-icon { width: 22px; height: 22px; border-radius: 50%; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; border-radius: var(--r-lg); overflow: hidden; border: var(--border); background: var(--line); }
.feature { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 22px; background: var(--surface); }
.feature h3 { font: 400 26px/1.1 var(--font-display); }
.feature p { margin-top: 6px; font-size: 14.5px; max-width: 24em; }
.feature-blk { max-width: 300px; }

.seal-band { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; padding: 28px; border-radius: 22px; border: var(--border); background: var(--bg-2); }
.seal-feature { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; }
.seal-feature-copy { display: grid; gap: 8px; }
.seal-name { font-size: clamp(30px, 3vw, 42px); }
.seal-quote { font: italic 400 20px/1.3 var(--font-display); color: var(--ink-2); margin-top: 6px; }
.seal-side { display: grid; gap: 18px; align-content: center; }
.seal-thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.seal-thumb { padding: 4px; border-radius: 50%; border: 1px solid transparent; background: none; cursor: pointer; line-height: 0; transition: transform var(--t-fast) var(--ease); }
.seal-thumb:hover { transform: translateY(-2px); }
.seal-thumb[aria-pressed="true"] { border-color: var(--accent-ink); }
.seal-explain { font-size: 14.5px; max-width: 34em; }

.wheel-band, .sealed-band { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: 22px; border: var(--border); background: var(--surface); }
.wheel-copy, .sealed-copy { display: grid; gap: 16px; justify-items: start; }
.wheel-nums { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: end; }
.wheel-nums .stat-value { font: 400 34px/1 var(--font-display); }
.wheel-loop { display: grid; gap: 10px; counter-reset: none; }
.wheel-loop li { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r); border: var(--border); background: var(--bg-2); font: 400 22px/1.1 var(--font-display); }
.wheel-loop li:last-child { border-color: color-mix(in srgb, var(--accent-ink) 40%, transparent); }
.sealed-facts { display: flex; flex-wrap: wrap; gap: 14px 26px; }
.sealed-facts dd { font: 400 21px/1.2 var(--font-display); margin-top: 4px; }
.sealed-card { display: grid; gap: 14px; padding: 20px; border-radius: var(--r-lg); border: var(--border); background: var(--bg-2); }
.sealed-card-head { display: flex; gap: 12px; align-items: center; }
.sealed-card-head > div { flex: 1; }
.sealed-rule { font: italic 400 19px/1.35 var(--font-display); color: var(--ink-2); }
.sealed-fp { padding-top: 10px; border-top: var(--border); }
.close-band { display: grid; justify-items: center; gap: 26px; text-align: center; padding-bottom: 20px; }
.close-band h2 { font-size: clamp(42px, 6vw, 84px); }
.close-ask { width: min(620px, 100%); }

/* ---------- coin cards ---------- */
.coin-card { gap: 14px; padding: 18px; background: var(--surface); }
a.coin-card:hover { border-color: var(--line-3); }
.cc-head { display: flex; gap: 12px; align-items: center; }
.cc-id { flex: 1; min-width: 0; }
.coin-name { font-weight: 600; font-size: 16px; }
.cc-chips { display: flex; flex-direction: column; gap: 4px; align-items: end; }
.cc-rule { font: italic 400 17px/1.32 var(--font-display); color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.96em; }
.cc-more { font-style: normal; font-size: 11.5px; color: var(--muted); }
.cc-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 12px; border-top: var(--border); }
.cc-nums > div { display: grid; gap: 3px; }
.cc-nums .num { font-size: 14.5px; }
.cc-last { font-size: 12.5px; display: flex; gap: 8px; align-items: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--good); flex: none; }
.coin-card.preview { border-style: dashed; }

/* ---------- receipts ---------- */
.feed-row { grid-template-columns: 10px 76px 1fr auto 64px; gap: 12px; padding: 11px 0; font-size: 14px; }
.feed-row.no-sym { grid-template-columns: 10px 1fr auto 64px; }
.feed-kind { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.feed-kind.k-burn { background: var(--accent-ink); }
.feed-kind.k-pay { background: var(--good); }
.feed-kind.k-launch { background: var(--warn); }
.feed-sym { color: var(--ink-2); font-size: 12.5px; }
a.feed-sym:hover { color: var(--ink); }
.feed-text { color: var(--ink-2); }
.feed-row:last-child { border-bottom: 0; }

/* ---------- page heads ---------- */
.page-head h1 { font-size: clamp(42px, 5.6vw, 76px); }
.page-head .lede { max-width: 40em; }
.live-line { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 13px var(--font-mono); color: var(--muted); }
.live-line b { color: var(--ink); font-weight: 500; }

/* ---------- coin page ---------- */
.coin-head { grid-template-columns: auto 1fr auto; gap: 22px; padding-top: 36px; }
.coin-title h1 { font-size: clamp(38px, 4.6vw, 62px); }
.coin-title h1 .mono { font-size: 0.42em; letter-spacing: 0.02em; vertical-align: 0.35em; margin-left: 4px; }
.coin-headline { font: italic 400 20px/1.3 var(--font-display); color: var(--accent-ink); }
.coin-stats .stat { background: var(--surface); }
.coin-stats .stat-value { font-size: 22px; }
.coin-grid { grid-template-columns: 1fr 360px; }
.rules-card { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.rules-card .rules-seal { display: grid; gap: 8px; justify-items: center; text-align: center; }
.rule-list { display: grid; gap: 14px; }
.rule-item { display: grid; gap: 6px; padding-left: 14px; border-left: 2px solid color-mix(in srgb, var(--accent-ink) 50%, transparent); }
.rule-item p { font: 400 20px/1.35 var(--font-display); }
.sealed-line { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 14px; margin-top: 4px; border-top: var(--border); font: 12px var(--font-mono); color: var(--muted); }
.chart-mark { stroke: color-mix(in srgb, var(--accent-ink) 35%, transparent); stroke-dasharray: 2 4; }
.chart-line { stroke: var(--ink-2); }
.chart-area { fill: rgba(240, 230, 214, 0.05); }
.vault-list { display: grid; gap: 8px; margin-top: 12px; }
.vault-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; padding: 8px 0; border-bottom: var(--border); }
.vault-row:last-child { border-bottom: 0; }
.posts { display: grid; gap: 10px; margin-top: 12px; }
.post { padding: 12px 14px; border-radius: var(--r); background: var(--bg-2); font-size: 14.5px; }
.post .muted { font-size: 12px; margin-top: 4px; display: block; }
details.receipt { border-bottom: var(--border); }
details.receipt summary { list-style: none; cursor: pointer; }
details.receipt summary::-webkit-details-marker { display: none; }
details.receipt .feed-row { border-bottom: 0; }
.receipt-steps { display: grid; gap: 6px; padding: 0 0 14px 22px; }
.receipt-step { display: grid; grid-template-columns: 16px 1fr; gap: 8px; font-size: 13.5px; }
.receipt-step .mark { color: var(--good); }
.receipt-step.skipped .mark, .receipt-step.note .mark { color: var(--muted); }
.receipt-step.stopped .mark { color: var(--warn); }
.receipt-step .detail { display: block; color: var(--muted); font-size: 12.5px; }

/* ---------- launch ---------- */
.pic-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: stretch; }
.seal-pick { height: auto; min-height: 44px; align-self: center; gap: 10px; padding: 0 14px 0 8px; }
.seal-pick[aria-pressed="true"] { border-color: var(--accent-ink); color: var(--accent-ink); }
.launch-rules { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; margin: 16px 0 12px; }
.launch-rules .rules-seal { display: grid; justify-items: center; gap: 6px; }
.split .vault { background: color-mix(in srgb, var(--good) 20%, transparent); }
.split .wheel { background: color-mix(in srgb, var(--accent) 34%, transparent); }
.step-card > .btn { margin-top: 14px; }
.flow-seal { display: flex; gap: 14px; align-items: center; padding-bottom: 12px; border-bottom: var(--border); }
.flow-seal b { font-weight: 600; }

/* ---------- explore ---------- */
.explore-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 6px 0 26px; }
.explore-stats .stat { padding: 16px; border-radius: var(--r); border: var(--border); background: var(--surface); }
.explore-stats .stat-value { font: 400 32px/1 var(--font-display); }
.controls .seg { background: var(--bg-2); }

/* ---------- flywheel page ---------- */
.fw-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.fw-hero .lede { margin-top: 18px; }
.fw-ring { position: relative; width: min(420px, 100%); aspect-ratio: 1; margin-inline: auto; }
.fw-ring svg { width: 100%; height: 100%; }
.fw-ring .fw-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 4px; }
.fw-ring .fw-big { font: 400 clamp(40px, 5vw, 60px)/1 var(--font-display); }
.fw-ring .spin { transform-origin: 50% 50%; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fw-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fw-stats .stat { padding: 18px; border-radius: var(--r); border: var(--border); background: var(--surface); }
.fw-stats .stat-value { font: 400 34px/1 var(--font-display); }
.fw-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fw-card { padding: 22px; border-radius: var(--r-lg); border: var(--border); background: var(--surface); display: grid; gap: 8px; align-content: start; }
.fw-card h3 { font: 400 26px/1.1 var(--font-display); }
.wallet-line { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 14px; font-size: 14px; color: var(--muted); }
.fed-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: var(--border); }
.fed-row:last-child { border-bottom: 0; }

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; padding-top: 24px; }
.docs-toc { position: sticky; top: calc(var(--top-h) + 24px); display: grid; gap: 4px; max-height: calc(100svh - var(--top-h) - 48px); overflow: auto; padding-right: 8px; }
.docs-toc .label { margin: 14px 0 4px; }
.docs-toc .label:first-child { margin-top: 0; }
.docs-toc a { color: var(--ink-2); font-size: 14px; padding: 4px 0 4px 12px; border-left: 1px solid var(--line); }
.docs-toc a:hover, .docs-toc a[aria-current] { color: var(--ink); border-left-color: var(--accent-ink); }
.docs-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 64px; min-width: 0; }
.doc-sec { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; scroll-margin-top: calc(var(--top-h) + 20px); }
.doc-card, .cat-block { grid-template-columns: minmax(0, 1fr); }
.coin-main { min-width: 0; }
.doc-sec h2 { font-size: clamp(32px, 3.4vw, 44px); }
.doc-sec > p, .doc-sec li { color: var(--ink-2); max-width: 44em; }
.doc-sec ul.dots { display: grid; gap: 8px; padding-left: 18px; list-style: disc; }
.doc-sec ul.dots li::marker { color: var(--accent-ink); }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.doc-card { padding: 18px; border-radius: var(--r-lg); border: var(--border); background: var(--surface); display: grid; gap: 10px; align-content: start; }
.doc-card h3 { font: 400 23px/1.1 var(--font-display); }
.cat-block { display: grid; gap: 12px; padding: 20px; border-radius: var(--r-lg); border: var(--border); background: var(--surface); scroll-margin-top: calc(var(--top-h) + 20px); }
.cat-block-head { display: flex; align-items: center; gap: 10px; }
.cat-block-head h3 { font: 400 24px/1 var(--font-display); }
.cat-block-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cost-table { display: grid; grid-template-columns: 1fr auto; gap: 10px 20px; max-width: 560px; font-size: 15px; }
.cost-table dt { color: var(--ink-2); }
.cost-table dd { font-family: var(--font-mono); text-align: right; }
.flow-lanes { display: grid; gap: 10px; }
.lane { display: grid; grid-template-columns: 160px 1fr; gap: 14px; align-items: center; }
.lane-bar { display: flex; height: 38px; border-radius: var(--r-sm); overflow: hidden; border: var(--border); }
.lane-bar span { display: grid; place-items: center; font: 12px var(--font-mono); padding: 0 8px; white-space: nowrap; }
.lane-bar .vault { background: color-mix(in srgb, var(--good) 22%, transparent); }
.lane-bar .wheel { background: color-mix(in srgb, var(--accent) 35%, transparent); }

/* ---------- 404 ---------- */
.lost { display: grid; justify-items: center; gap: 18px; text-align: center; padding: 80px 16px; }
.lost .seal { transform: rotate(-12deg); }

/* ---------- phones and narrow ---------- */
@media (max-width: 1080px) {
  .how-steps, .fw-cards { grid-template-columns: 1fr; }
  .how-step { grid-template-rows: auto auto; }
  .how-pic { min-height: 200px; }
  .feature-grid { grid-template-columns: 1fr; }
  .seal-band, .wheel-band, .sealed-band, .fw-hero { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .desk { min-height: 0; }
  .docs { grid-template-columns: 1fr; }
  .docs-toc { position: static; max-height: none; display: flex; flex-wrap: wrap; gap: 6px; }
  .docs-toc .label { display: none; }
  .docs-toc a { border: var(--border); border-radius: var(--r-pill); padding: 6px 10px; font-size: 13px; }
  .explore-stats, .fw-stats { grid-template-columns: repeat(2, 1fr); }
  .rules-card { grid-template-columns: 1fr; }
  .launch-rules, .pic-row { grid-template-columns: 1fr; }
  .coin-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .coin-head { grid-template-columns: auto 1fr; }
  .coin-actions { grid-column: 1 / -1; }
  .foot { grid-template-columns: 1fr; }
  .feed-row { grid-template-columns: 10px 60px 1fr 52px; }
  .feed-row.no-sym { grid-template-columns: 10px 1fr 52px; }
  main { padding-bottom: 140px; }
}
@media (max-width: 560px) {
  #coins .grid-cards > :nth-child(n+5) { display: none; }
  .home-feed .feed-row:nth-child(n+5) { display: none; }
  .ask { flex-wrap: wrap; border-radius: 18px; padding: 10px; }
  .ask-label { order: 0; }
  .ask-input { order: 1; flex-basis: 100%; }
  .ask-go { order: 2; width: 100%; }
  .seal-feature { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .feature { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
  .lane { grid-template-columns: 1fr; }
  .wheel-loop li { font-size: 19px; }
}
