/* Hallmark · shape: the working pages, one coin's state as their ground · genre: atmospheric · theme: custom · job: try · idea: "One chart with one line on it, the opening price; a coin is black while its clock runs, red once the dev has paid, white when the pledge went back." · vibe: "a deep red poster with a live ledger"
 * paper: oklch(17% 0.018 35) · accent: oklch(62% 0.205 31) · display: Clash Grotesk · body: Switzer · hero: none, each page opens on its object (the coin's ticker and clock, the board, the form) · nav: a bar on the ink, the wordmark, three links, the wallet · footer: the home page's red band · imagery: the product, drawn live on canvas from the chain · signature: the coin page takes the colour of the coin's state
 * axes: dark/grotesk-heavy/chromatic-red · posture: drenched, three grounds that are the three states of a coin · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V3 · weakest: V, these pages share the home page's system on purpose; their compositions are their own */
@import url("./site.css");

/* ---------- chrome ---------- */
.app-top { position: relative; z-index: var(--z-raised); border-bottom: 1px solid var(--g-rule); }
.app-top .nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.3em; }
.nav-wallet { min-height: 44px; padding: 0 var(--space-md); font-size: 0.9375rem; }
.net-chip { padding: var(--space-3xs) var(--space-sm); border: 1px solid var(--g-rule); border-radius: var(--radius-pill); font-size: var(--text-sm); white-space: nowrap; }
.banner { padding: var(--space-sm) var(--gutter); background: var(--red-2); color: var(--bone); font-size: var(--text-sm); }

.page-head { padding-block: var(--space-3xl) var(--space-2xl); }
.page-head h1 { font-size: var(--text-section); max-width: 16ch; }
.page-head .lead { margin-top: var(--space-lg); }
.page-body { padding-bottom: var(--section-gap); }

.msg { min-height: 1lh; margin-top: var(--space-md); font-size: var(--text-sm); }
.msg.is-bad { color: var(--g-ink); text-decoration: underline wavy var(--red-hot) 1px; text-underline-offset: 0.25em; }
.muted { color: var(--g-muted); }
.fig { font-family: var(--font-outlier); font-variant-numeric: tabular-nums; }
.copy { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline dotted; text-underline-offset: 0.25em; cursor: copy; }
.copy:hover { text-decoration-style: solid; }
.copy:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ---------- the board ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-bottom: var(--space-xl); }
.chips button { min-height: 44px; padding: 0 var(--space-md); border: 1px solid var(--g-rule); border-radius: var(--radius-pill); background: transparent; color: var(--g-ink); font-size: var(--text-sm); font-weight: 500; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.chips button:hover { border-color: var(--g-ink); }
.chips button[aria-pressed="true"] { background: var(--g-ink); color: var(--g-bg); border-color: var(--g-ink); }
.chips button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.live-board { grid-auto-rows: 272px; }
.live-board .tile { position: relative; color: var(--g-ink); text-decoration: none; transition: transform var(--dur-short) var(--ease-out); }
.live-board .tile:hover { transform: translateY(-2px); }
.live-board .tile:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.tile .when { font-family: var(--font-outlier); font-size: var(--text-lg); font-variant-numeric: tabular-nums; }
.empty { padding: var(--space-3xl) 0; max-width: 46ch; }
.empty h2 { margin-bottom: var(--space-md); }

/* ---------- one coin ---------- */
.coin-head { padding-block: var(--space-2xl) var(--space-xl); transition: background-color var(--dur-long) var(--ease-out), color var(--dur-long) var(--ease-out); }
.coin-head__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: end; }
.coin-id { grid-column: 1 / span 7; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-lg); align-items: end; }
.coin-pic { grid-row: span 2; width: 96px; height: 96px; }
.coin-pic img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.coin-ticker { font-size: clamp(3rem, 8vw, 7.5rem); line-height: 0.9; max-width: none; }
.coin-name { font-size: var(--text-lead); font-weight: 500; margin-top: var(--space-xs); }
.coin-state { grid-column: 9 / -1; display: grid; gap: var(--space-2xs); justify-items: start; }
.state-word { font: 600 var(--text-2xl)/1.05 var(--font-display); letter-spacing: var(--tracking-title); }
.state-time { font: 500 var(--text-3xl)/1 var(--font-outlier); font-variant-numeric: tabular-nums; }
.state-note { font-size: var(--text-sm); }
.coin-links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); margin-top: var(--space-lg); font-size: var(--text-sm); }

.coin-body { padding-block: var(--space-xl) var(--section-gap); transition: background-color var(--dur-long) var(--ease-out), color var(--dur-long) var(--ease-out); }
.coin-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-2xl); align-items: start; }
.coin-main { grid-column: 1 / span 8; display: grid; gap: var(--space-xl); min-width: 0; }
.coin-side { grid-column: 9 / -1; display: grid; gap: var(--space-lg); min-width: 0; }
.coin-chart { position: relative; height: clamp(320px, 42vw, 520px); border-top: 1px solid var(--g-ink); border-bottom: 1px solid var(--g-rule); }
.coin-chart canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.chart-note { font-size: var(--text-sm); color: var(--g-muted); max-width: 70ch; }

.book { display: grid; gap: var(--space-lg); padding-block: var(--space-xl); border-top: 1px solid var(--g-ink); }
.book__fig { font: 600 clamp(3rem, 7vw, 6rem)/0.9 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.book__fig small { font-size: 0.4em; letter-spacing: 0; }
.meter { position: relative; height: 14px; border: 1px solid var(--g-ink); border-radius: var(--radius-pill); overflow: clip; }
.meter i { position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--g-ink); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform var(--dur-long) var(--ease-out); }
.meter__labels { display: flex; justify-content: space-between; gap: var(--space-md); font-size: var(--text-sm); }

.panel { display: grid; gap: var(--space-md); padding: var(--space-lg); border-radius: var(--radius-card); background: var(--g-well); color: var(--g-ink); }
.panel h2 { font-size: var(--text-xl); letter-spacing: var(--tracking-title); max-width: none; }
.panel p { max-width: 46ch; }
.panel .row { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.panel form { display: grid; gap: var(--space-md); }
.panel .btn { width: 100%; }
.panel .row .btn { width: auto; flex: 1 1 auto; }
.pledge-fig { font: 600 clamp(2.5rem, 4.5vw, 4rem)/0.95 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }

.kv { display: grid; gap: 0; margin: 0; }
.kv > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-md); padding-block: var(--space-xs); border-top: 1px solid var(--g-rule); font-size: var(--text-sm); }
.kv > div:first-child { border-top: 0; }
.kv dt { font-weight: 500; }
.kv dd { margin: 0; font-family: var(--font-outlier); font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap-columns); }
.facts > div:nth-child(2) { border-top: 0; }

.steps-line { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-xs); margin: 0; padding: 0; list-style: none; }
.steps-line li { display: grid; gap: var(--space-2xs); padding-top: var(--space-sm); border-top: 3px solid var(--g-rule); font-size: var(--text-sm); }
.steps-line li[data-done] { border-top-color: var(--g-ink); }
.steps-line li[data-now] { border-top-color: var(--g-lo); }
.steps-line b { font-weight: 500; }

/* ---------- the launch form ---------- */
.launch-page .launch-grid { align-items: start; }
fieldset.field { margin: 0; padding: 0; border: 0; }
fieldset.field legend { padding: 0; margin-bottom: var(--space-2xs); font-weight: 500; }
.window-pick { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.select { min-height: var(--control-h); padding: 0 var(--space-md); border: 1px solid var(--g-muted); border-radius: var(--radius-pill); background: var(--g-bg); color: var(--g-ink); }
.select:hover { border-color: var(--g-ink); }
.select:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.textarea { width: 100%; min-height: 96px; padding: var(--space-sm) var(--space-md); border: 1px solid var(--g-muted); border-radius: var(--radius-card); background: transparent; color: var(--g-ink); resize: vertical; }
.textarea:hover { border-color: var(--g-ink); }
.textarea:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -3px; }
.costs { margin-top: var(--space-sm); }
.file { font-size: var(--text-sm); }
.file:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ---------- the docs ---------- */
.doc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); }
.doc-nav { grid-column: 1 / span 3; position: sticky; top: calc(var(--nav-h) + var(--space-xl)); align-self: start; display: grid; gap: var(--space-xs); font-size: var(--text-sm); }
.doc-nav a { text-decoration: none; }
.doc-nav a:hover { text-decoration: underline; }
.doc-body { grid-column: 5 / span 7; display: grid; gap: var(--space-3xl); }
.doc-body section { display: grid; gap: var(--space-md); scroll-margin-top: calc(var(--nav-h) + var(--space-xl)); }
.doc-body h2 { font-size: var(--text-2xl); letter-spacing: var(--tracking-title); max-width: none; }
.doc-body p, .doc-body li { max-width: 65ch; line-height: 1.6; }
.doc-body ol, .doc-body ul { display: grid; gap: var(--space-xs); margin: 0; padding-left: 1.2em; }
.doc-body code { font-family: var(--font-outlier); font-size: 0.92em; overflow-wrap: anywhere; }
.doc-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.doc-table th, .doc-table td { padding: var(--space-xs) var(--space-sm) var(--space-xs) 0; border-top: 1px solid var(--g-rule); text-align: left; vertical-align: top; }
.doc-table th { font-weight: 500; white-space: nowrap; }

/* ---------- the wallet dialog ---------- */
.wm { width: min(400px, calc(100% - 32px)); max-width: none; max-height: calc(100svh - 32px); margin: auto; padding: 0; border: 0; border-radius: var(--radius-card); background: transparent; color: var(--bone); overflow: visible; }
.wm::backdrop { background: color-mix(in oklab, var(--ink) 70%, transparent); }
.wm__card { color: var(--bone); display: grid; gap: var(--space-sm); padding: var(--space-md); border: 1px solid color-mix(in oklab, var(--bone) 18%, var(--ink)); border-radius: var(--radius-card); background: var(--ink-2); }
.wm__head { display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; align-items: center; text-align: center; }
.wm__head h2 { font-size: var(--text-lg); max-width: none; }
.wm__x, .wm__help { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--bone); cursor: pointer; }
.wm__x svg, .wm__help svg { width: 18px; height: 18px; }
.wm__x:hover, .wm__help:hover { background: var(--ink-3); }
.wm__x:focus-visible, .wm__help:focus-visible { outline: 2px solid var(--bone); outline-offset: 0; }
.wm__list { display: grid; gap: var(--space-2xs); margin: 0; padding: 0; list-style: none; }
.wm__row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 16px; align-items: center; gap: var(--space-sm); width: 100%; min-height: 56px; padding: var(--space-xs) var(--space-sm); border: 0; border-radius: var(--radius-input); background: transparent; color: var(--bone); font: 500 var(--text-md)/1 var(--font-body); text-align: left; text-decoration: none; cursor: pointer; }
.wm__row:hover { background: var(--ink-3); }
.wm__row:focus-visible { outline: 2px solid var(--bone); outline-offset: -2px; }
.wm__row:disabled { opacity: 0.55; cursor: not-allowed; background: transparent; color: color-mix(in oklab, var(--bone) 60%, var(--ink)); }
.wm__row--muted { color: color-mix(in oklab, var(--bone) 70%, var(--ink)); }
.wm__icon svg { width: 36px; height: 36px; border-radius: 9px; }
.wm__badge { font-size: var(--text-xs); color: color-mix(in oklab, var(--bone) 72%, var(--ink)); }
.wm__msg { min-height: 1lh; font-size: var(--text-sm); }
.wm__foot { font-size: var(--text-xs); color: color-mix(in oklab, var(--bone) 72%, var(--ink)); }
.wm__me { display: grid; justify-items: center; gap: var(--space-xs); padding-block: var(--space-md); text-align: center; }
.wm__addr { font: 500 var(--text-xl)/1 var(--font-outlier); }
.wm__bal { font-size: var(--text-md); }
.wm__acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xs); }
.wm__acts .btn { min-height: 44px; padding: 0 var(--space-xs); border-color: color-mix(in oklab, var(--bone) 30%, var(--ink)); color: var(--bone); font-size: var(--text-sm); }
.avatar { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--red); color: var(--bone); font: 600 var(--text-lg)/1 var(--font-display); }

@media (max-width: 60rem) {
  .coin-id, .coin-state, .coin-main, .coin-side, .doc-nav, .doc-body { grid-column: 1 / -1; }
  .coin-head__grid, .coin-grid, .doc { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xl); }
  .coin-pic { width: 72px; height: 72px; }
  .doc-nav { position: static; grid-auto-flow: column; overflow-x: auto; padding-bottom: var(--space-xs); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts > div:nth-child(2) { border-top: 1px solid var(--g-rule); }
  .steps-line { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-md); }
}

@media (prefers-reduced-motion: reduce) {
  .coin-head, .coin-body, .chips button, .live-board .tile, .meter i { transition: none; }
}
