/*
  $LIES — "The Memorial"
  A light, editorial, paper-and-ink, print-grade single page.
  Words are the hero. Funeral restraint, one flame. Everything is a record.
*/

:root {
  color-scheme: light;

  /* Color */
  --paper: #F6F3EC;
  --paper-raised: #FBF9F4;
  --paper-sunken: #EEEAE0;
  --ink: #191613;
  --ink-soft: #4A443C;
  --ink-faint: #8A8276;
  --rule: #D9D3C6;
  --rule-strong: #B4AB9A;
  --flame: #C74A1B;
  --flame-dim: rgba(199, 74, 27, 0.09);
  --mourn: #3B3E8F;
  --loss: #7A1F1F;

  /* Type */
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  /* Radius / motion */
  --r: 2px;
  --dur: 180ms;
  --ease: ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd, dt, figure, blockquote {
  margin: 0;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--flame);
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

code, .mono {
  font-family: var(--font-mono);
}

:is(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--flame);
  outline-offset: 2px;
  border-radius: var(--r);
}

::selection {
  background: var(--flame-dim);
  color: var(--ink);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  border-radius: var(--r);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 14px;
  text-decoration: none;
  transform: translateY(-64px);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus-visible {
  transform: none;
}

/* ---------- Typography ---------- */

.eyebrow, .label {
  display: block;
  color: var(--ink-faint);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 10px;
}

.mono-s {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
}

h1, h2, h3 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(36px, 4.4vw + 12px, 56px);
  line-height: 1.08;
  font-weight: 500;
}

h2 {
  font-size: clamp(24px, 1.6vw + 16px, 32px);
  line-height: 1.2;
}

h3 {
  font-size: clamp(18px, 0.6vw + 15px, 20px);
  line-height: 1.3;
  font-weight: 600;
}

p {
  max-width: 68ch;
}

.lede {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
}

s, .struck {
  color: var(--loss);
  text-decoration-color: var(--loss);
  text-decoration-thickness: 1.5px;
}

em {
  font-style: italic;
}

blockquote {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.5;
  max-width: 52ch;
}

/* Drop cap on the manifesto's opening paragraph */
.drop-cap::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 76px;
  line-height: 0.82;
  font-weight: 500;
  padding: 4px 10px 0 0;
  color: var(--ink);
}

/* ---------- Section rhythm ---------- */

.section {
  margin-top: 88px;
}

.section-head {
  padding-top: 20px;
  border-top: 3px solid var(--rule-strong);
  margin-bottom: 36px;
}

.section-head h2 {
  margin-top: 2px;
}

.section-head .eyebrow {
  margin-bottom: 8px;
}

.section-dek {
  margin-top: 14px;
  color: var(--ink-soft);
  max-width: 62ch;
}

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* ---------- Masthead ---------- */

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.brand-flame {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-self: center;
  flex: 0 0 auto;
}

.brand-flame svg {
  width: 100%;
  height: 100%;
}

.brand-name {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}

.brand-sub {
  color: var(--ink-faint);
  font-family: var(--font-body);
  font-style: italic;
  font-size: 14px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.primary-nav a {
  color: var(--ink-soft);
  font-size: 14.5px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.primary-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--rule-strong);
}

.ledger-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px dashed var(--rule-strong);
}

.ledger-link:hover {
  color: var(--flame);
  border-bottom-color: var(--flame);
}

.primary-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--rule-strong);
}

/* ---------- Buttons (stamps) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--r);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: #2c2620;
}

.btn-flame {
  background: var(--flame);
  color: var(--paper-raised);
}

.btn-flame:hover {
  background: #a83c14;
}

.btn-ghost {
  border-color: var(--rule-strong);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--paper-raised);
}

.btn-s {
  min-height: 34px;
  padding: 0 14px;
  font-size: 13.5px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r);
  color: var(--ink-faint);
  background: var(--paper-raised);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.icon-btn:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.icon-btn svg {
  width: 14px;
  height: 14px;
}

.icon-btn.is-copied {
  color: var(--flame);
  border-color: var(--flame);
}

.icon-btn.is-failed {
  color: var(--loss);
  border-color: var(--loss);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px dashed var(--rule-strong);
  border-radius: var(--r);
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 44px;
  align-items: end;
  padding-top: 56px;
}

.hero-copy {
  max-width: 760px;
}

.hero-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}

.hero-mark .flame-glyph {
  width: 22px;
  height: 22px;
}

.hero-title {
  max-width: 15ch;
}

.hero-struck {
  display: block;
  margin-top: 22px;
  color: var(--ink-faint);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
}

.hero-thesis {
  margin-top: 26px;
  max-width: 62ch;
}

.hero-thesis + .hero-thesis {
  margin-top: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
}

.hero-actions .ledger-link {
  border-bottom-style: solid;
}

.hero-art {
  align-self: start;
  margin: 0;
  min-height: 360px;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 1px 0 var(--rule);
}

.hero-art img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ---------- Whitepaper ---------- */

.paper-page {
  max-width: 1080px;
}

.paper-page p {
  max-width: none;
}

.paper-hero {
  padding: clamp(58px, 8vw, 104px) 0 clamp(34px, 5vw, 64px);
  border-bottom: 1px solid var(--rule-strong);
}

.paper-hero h1 {
  max-width: 880px;
  margin-top: 10px;
  font-size: clamp(58px, 10vw, 126px);
  line-height: 0.9;
}

.paper-page .paper-lede {
  max-width: 980px;
  margin-top: 26px;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.28;
  color: var(--ink);
}

.paper-section {
  margin-top: clamp(52px, 6vw, 76px);
  padding-top: 0;
}

.paper-page .section-head {
  margin-bottom: clamp(22px, 3vw, 30px);
}

.paper-copy {
  display: grid;
  gap: 18px;
  max-width: none;
  margin-top: 22px;
}

.section-head + .paper-copy {
  margin-top: 0;
}

.paper-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  background: var(--rule-strong);
  border: 1px solid var(--rule-strong);
}

.paper-card {
  min-height: 230px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--paper);
}

.paper-card h3 {
  margin-top: 10px;
  font-size: 26px;
}

.paper-card p:last-child {
  max-width: 68ch;
  margin-top: 14px;
  color: var(--ink-soft);
}

.paper-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.paper-flow-step {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  border: 1px solid var(--rule-strong);
  background: var(--paper-sunken);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
}

.paper-version {
  margin-top: 22px;
  color: var(--ink-faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.paper-toc {
  margin-top: clamp(34px, 5vw, 56px);
  padding-bottom: 8px;
}

.paper-toc ol {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0 28px;
  counter-reset: toc;
}

.paper-toc li {
  counter-increment: toc;
  border-bottom: 1px solid var(--rule);
}

.paper-toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  margin-right: 12px;
}

.paper-toc a {
  display: inline-block;
  padding: 10px 0;
  text-decoration: none;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 17px;
}

.paper-toc a:hover {
  color: var(--flame);
}

.paper-goal {
  margin-top: 26px;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--rule-strong);
  background: var(--paper-raised);
  box-shadow: 0 1px 0 var(--rule);
}

.goal-statement {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.3;
  color: var(--ink);
}

.goal-second {
  margin-top: 18px;
  color: var(--ink-soft);
}

.flow-chart {
  margin-top: 28px;
  border: 1px solid var(--rule-strong);
  background: var(--paper-raised);
  box-shadow: 0 1px 0 var(--rule);
  padding: clamp(10px, 2vw, 24px);
}

.flow-svg {
  display: block;
  width: 100%;
  height: auto;
}

.flow-path {
  fill: none;
  stroke: var(--rule-strong);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 0.1 7;
}

.flow-chip {
  fill: var(--paper);
  stroke: var(--rule-strong);
  stroke-width: 1;
}

.flow-port {
  fill: var(--ink);
}

.flow-orbit {
  fill: none;
  stroke: var(--rule);
  stroke-width: 1;
}

.flow-tick {
  stroke: var(--rule-strong);
  stroke-width: 1;
}

.flow-hub {
  fill: var(--paper-sunken);
  stroke: var(--ink);
  stroke-width: 1.5;
}

.flow-flash {
  fill: var(--flame);
  pointer-events: none;
}

.flow-hub-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  fill: var(--ink);
}

.flow-hub-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  fill: var(--ink-faint);
}

.flow-col-head {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  fill: var(--ink-faint);
}

.flow-col-rule {
  stroke: var(--rule-strong);
  stroke-width: 1;
}

.flow-label {
  font-family: var(--font-display);
  font-size: 19px;
  fill: var(--ink);
}

.flow-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  fill: var(--ink-faint);
}

.flow-coin {
  fill: var(--flame);
  stroke: var(--ink);
  stroke-opacity: 0.25;
  stroke-width: 0.6;
}

.flow-coin.out {
  fill: var(--mourn);
}

.flow-coin-core {
  fill: var(--paper);
  opacity: 0.45;
}

.flow-ripple {
  fill: none;
  stroke: var(--flame);
  stroke-width: 1.2;
}

.paper-viz {
  margin-top: 28px;
  border: 1px solid var(--rule-strong);
  background: var(--paper-raised);
  box-shadow: 0 1px 0 var(--rule);
  padding: clamp(10px, 2vw, 24px);
}

.paper-viz svg {
  display: block;
  width: 100%;
  height: auto;
}

.viz-panel {
  fill: var(--paper);
  stroke: var(--rule-strong);
  stroke-width: 1;
}

.viz-fill {
  fill: var(--paper-sunken);
  stroke: none;
}

.viz-fill-flame {
  fill: var(--flame-dim);
  stroke: none;
}

.viz-line {
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 1.6;
}

.viz-line-dead {
  fill: none;
  stroke: var(--loss);
  stroke-width: 1.6;
  stroke-dasharray: 2 5;
}

.viz-axis {
  stroke: var(--rule-strong);
  stroke-width: 1;
}

.viz-dot {
  fill: var(--flame);
}

@media (max-width: 640px) {
  .flow-label { font-size: 24px; }
  .flow-sub { font-size: 15px; }
  .flow-col-head { font-size: 15px; }
}

/* ---------- Manifesto ---------- */

.manifesto {
  max-width: none;
}

.manifesto-beat {
  display: grid;
  grid-template-columns: 190px minmax(0, 68ch);
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}

.manifesto-beat:first-child {
  border-top: 0;
  padding-top: 0;
}

.manifesto-beat p:not(.beat-label) {
  max-width: 68ch;
}

.beat-label {
  margin-top: 7px;
}

/* ---------- Buy ---------- */

.buy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.buy-grid > *,
.candle-body > *,
.chart-panel > *,
.hero > *,
.notice-grid > * {
  min-width: 0;
}

.buy-actions {
  margin-top: 24px;
}

/* ---------- Wall of Loss ---------- */

#wall .section-head {
  max-width: none;
  margin-bottom: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}

.wall-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.memorial-card {
  background: var(--paper-raised);
  border-top: 3px solid var(--loss);
  padding: 28px 24px;
}

.memorial-card .eyebrow {
  color: var(--ink-faint);
}

.memorial-card h3 {
  font-size: 21px;
}

.lifespan {
  margin-top: 8px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 13px;
}

.epitaph {
  margin-top: 16px;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.55;
}

.evidence-note {
  margin-top: 16px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* ---------- Notices (The Turn) ---------- */

.notice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.notice {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  box-shadow: 0 1px 0 var(--rule);
  padding: 32px;
}

.notice h3 {
  margin-bottom: 14px;
  font-size: 23px;
}

.notice p + p {
  margin-top: 14px;
}

/* ---------- Light a Candle ---------- */

.section-art {
  margin: 0 0 28px;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 1px 0 var(--rule);
}

.section-art img {
  width: 100%;
  height: auto;
}

.candle-art {
  aspect-ratio: auto;
}

.candle-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 28px;
  align-items: start;
  max-width: none;
}

.candle-copy p + p,
.candle-panel p + p {
  margin-top: 16px;
}

.candle-warning {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--paper-sunken);
  border-left: 3px solid var(--rule-strong);
  color: var(--ink);
  font-style: italic;
}

.candle-actions {
  margin-top: 26px;
}

.candle-panel {
  padding: 28px;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  box-shadow: 0 1px 0 var(--rule);
}

.candle-panel h3 {
  margin-bottom: 12px;
  font-size: 23px;
}

/* ---------- Chart ---------- */

.chart-panel {
  display: block;
  margin-bottom: 36px;
  padding: 24px;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  box-shadow: 0 1px 0 var(--rule);
}

.chart-copy h3 {
  margin-bottom: 12px;
  font-size: 24px;
}

.chart-copy p {
  color: var(--ink-soft);
}

.chart-frame {
  margin-top: 22px;
  min-height: 420px;
  background: var(--paper-sunken);
  border: 1px solid var(--rule-strong);
  overflow: hidden;
}

.chart-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  background: var(--paper);
}

.chart-fallback {
  margin-top: 16px;
}

/* ---------- Ledger rows ---------- */

.ledger {
  border-top: 1px solid var(--rule-strong);
}

.ledger-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
}

.ledger-row:hover .ledger-desc {
  color: var(--flame);
}

.ledger-desc {
  flex: 0 0 auto;
  font-size: 15.5px;
  transition: color var(--dur) var(--ease);
}

.ledger-logo {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 2px;
  object-fit: cover;
}

.ledger-fill {
  flex: 1 1 auto;
  overflow: hidden;
  white-space: nowrap;
  color: var(--rule-strong);
  letter-spacing: 2px;
}

.ledger-fill::after {
  content: "..............................................................................................";
}

.ledger-dest {
  flex: 0 0 auto;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 13px;
}

.ledger-dest:empty {
  display: none;
}

/* ---------- The Ledger ---------- */

.mint-receipt {
  max-width: 620px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin-top: 36px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.stat-tile {
  min-width: 0;
  padding: 18px 16px;
  background: var(--paper-raised);
}

.stat-num {
  display: block;
  margin-top: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}

.stat-sub {
  display: block;
  margin-top: 4px;
}

.pool-table {
  margin-top: 22px;
}

.pool-table .ledger-dest {
  color: var(--ink);
  font-weight: 600;
}

.ledger-subhead {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-strong);
}

.ledger-subhead h3 {
  font-size: 22px;
}

.market-links-head {
  margin-top: 44px;
}

.candles-note {
  width: 100%;
  max-width: none;
  margin-top: 22px;
  padding: 16px 20px;
  background: var(--paper-sunken);
  border-left: 3px solid var(--rule-strong);
  color: var(--ink);
}

.candles-note p {
  max-width: none;
  margin-top: 4px;
}

.pool-flame {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  align-self: center;
}

.receipt {
  background: var(--paper-sunken);
  border: 1px dashed var(--rule-strong);
  border-radius: var(--r);
  padding: 24px;
}

.receipt-date {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.receipt-body {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--r);
}

.receipt-body.is-copied {
  border-color: var(--flame);
}

.receipt-addr {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 13.5px;
}

.receipts-links {
  margin-top: 40px;
}

/* ---------- Colophon footer ---------- */

.site-footer {
  margin-top: 100px;
  padding: 48px 0 56px;
  border-top: 3px solid var(--rule-strong);
  background: var(--paper-sunken);
}

.colophon-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}

.colophon-title {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink);
  font-size: 17px;
}

.never-list {
  margin-top: 16px;
  padding: 0;
  list-style: none;
  counter-reset: never;
}

.never-list li {
  counter-increment: never;
  position: relative;
  padding-left: 30px;
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 15px;
}

.never-list li::before {
  content: counter(never) ".";
  position: absolute;
  left: 0;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 13px;
}

.disclaimer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: var(--ink-faint);
  font-size: 13.5px;
  line-height: 1.6;
}

.colophon-meta {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 2;
}

.colophon-meta a {
  color: var(--ink-faint);
}

.colophon-meta a:hover {
  color: var(--flame);
}

.footer-art {
  margin: 26px 0 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  overflow: hidden;
}

.footer-art img {
  width: 100%;
  height: auto;
}

/* ---------- Flame glyph animation ---------- */

.flame-glyph .flame-body {
  transform-origin: 50% 85%;
  animation: flicker 2600ms ease-in-out infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .flame-glyph .flame-body {
    animation: none;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .buy-grid,
  .candle-body,
  .hero,
  .notice-grid,
  .paper-flow,
  .paper-grid,
  .wall-grid,
  .colophon-grid {
    grid-template-columns: 1fr;
  }

  .manifesto-beat {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .beat-label {
    margin-top: 0;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wall-grid {
    gap: 1px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }

  .header-inner {
    padding: 16px 0;
  }

  .primary-nav {
    gap: 14px;
    font-size: 13px;
  }

  .primary-nav a {
    font-size: 13.5px;
  }

  .hero {
    padding-top: 32px;
  }

  .section {
    margin-top: 60px;
  }

  .ledger-dest {
    font-size: 11.5px;
  }

  .ledger-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .ledger-fill {
    display: none;
  }

  .ledger-dest {
    flex: 1 1 100%;
    padding-left: 30px;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .drop-cap::first-letter {
    font-size: 58px;
  }

  .site-footer {
    margin-top: 64px;
  }
}
