@font-face {
  font-family: "Geist Sans";
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/geist-sans@5.2.5/latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Sans";
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/geist-sans@5.2.5/latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Sans";
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/geist-sans@5.2.5/latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Sans";
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/geist-sans@5.2.5/latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/geist-mono@5.2.5/latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/geist-mono@5.2.5/latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #080806;
  --cream: #f1ead9;
  --gold: #f2c43d;
  --dark-gold: #a98213;
  --rust: #98482b;
  --muted: #77736a;
  --background: var(--black);
  --surface: #0d0d0b;
  --gold-light: #ffd95a;
  --border: rgba(242, 196, 61, 0.24);
  --sans: "Geist Sans", Arial, Helvetica, sans-serif;
  --mono: "Geist Mono", "IBM Plex Mono", monospace;
  --nav-h: 56px;
  --strip-h: 40px;
  --wrap: 1120px;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--black);
  color: var(--cream);
  font-family: var(--sans);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
}

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

.live-strip {
  background: var(--gold);
  color: var(--black);
  height: var(--strip-h);
}
.live-strip-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.live-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.live-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.live-value {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.live-div {
  width: 1px;
  height: 14px;
  background: rgba(8, 8, 6, 0.28);
  margin: 0 18px;
  flex: 0 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--nav-h);
  background: var(--black);
  border-bottom: 1px solid rgba(242, 196, 61, 0.16);
}
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--gold);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-x {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.nav-x:hover { color: var(--gold); }
.nav-status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(242, 196, 61, 0.35);
  padding: 6px 10px;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  padding: 0 18px;
  height: 40px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}
.btn:hover:not(:disabled) { background: var(--gold); color: #111; }
.btn-gold { background: var(--gold); color: #111; }
.btn-gold:hover:not(:disabled) { background: var(--gold-light); border-color: var(--gold-light); color: #111; }
.btn-ghost { color: var(--cream); border-color: var(--border); }
.btn-ghost:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-dark { background: var(--black); color: var(--cream); border-color: var(--black); }
.btn-dark:hover:not(:disabled) { background: #1a1914; color: var(--gold); }
.btn-sm { height: 34px; padding: 0 14px; }

.hero {
  position: relative;
  padding: 36px 0 32px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(242, 196, 61, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 196, 61, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.9;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  column-gap: 20px;
}
.hero-copy { min-width: 0; }

h1 {
  margin: 0 0 8px;
  font-size: clamp(2.1rem, 5vw, 4.1rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.hero-subhead {
  margin: 0 0 18px;
  color: #cfc6b2;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stats-board {
  border: 1px solid rgba(242, 196, 61, 0.3);
  background: rgba(8, 8, 6, 0.86);
  min-width: 0;
}
.primary-stat { padding: 22px 24px; border-bottom: 1px solid rgba(242, 196, 61, 0.2); }
.secondary-stats { display: grid; grid-template-columns: 1fr 1fr; }
.secondary-stat { padding: 16px 24px; min-width: 0; }
.secondary-stat + .secondary-stat { border-left: 1px solid rgba(242, 196, 61, 0.2); }
.stat-label {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.secondary-value {
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.secondary-stats { grid-template-columns: 1fr; }
.secondary-stat + .secondary-stat { border-left: 0; }
.stat-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.03em;
}
.stat-meta.is-caps { text-transform: uppercase; }
.stat-meta.is-error { color: #c4a574; }
.debt-value {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: clamp(1.7rem, 3.8vw, 3.6rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transform-origin: left center;
}
.debt-cents { font-size: 65%; }

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  padding: 10px 24px 14px;
  border-top: 1px solid rgba(242, 196, 61, 0.16);
}
.status-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  display: inline-block;
}
.status-item.is-live { color: #9ad37a; }
.status-item.is-live .dot { background: #3dba5a; }
.status-item.is-cache { color: var(--gold); }
.status-item.is-cache .dot { background: var(--gold); }

.sources { margin-top: 16px; }
.sources-kicker {
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}
.source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid rgba(242, 196, 61, 0.12);
}
.source-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.source-copy strong { font-size: 12px; letter-spacing: 0.08em; }
.source-copy span { font-size: 12px; color: var(--muted); }
.source-link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  border-bottom: 1px solid rgba(242, 196, 61, 0.4);
  flex: 0 0 auto;
}

.hero-mascot {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-width: 0;
}
.mascot-rings {
  position: absolute;
  width: min(88%, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(242, 196, 61, 0.16);
  box-shadow:
    0 0 0 18px rgba(242, 196, 61, 0.05),
    0 0 0 40px rgba(242, 196, 61, 0.035);
  pointer-events: none;
}
.coord {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(242, 196, 61, 0.45);
}
.coord-a { top: 12%; left: 8%; }
.coord-b { top: 28%; right: 6%; }
.coord-c { bottom: 18%; left: 4%; }
.mascot {
  width: min(100%, 380px);
  height: auto;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

.printer {
  padding: 20px 0 28px;
  border-top: 1px solid rgba(242, 196, 61, 0.2);
}
.printer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  grid-template-areas:
    "title art"
    "stats art";
  gap: 8px 28px;
  align-items: start;
}
.printer-title {
  grid-area: title;
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
}
.printer-stats {
  grid-area: stats;
  min-width: 0;
}
.printer-art {
  grid-area: art;
  margin: 0;
}
.printer-art img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}
.printer-stat {
  padding: 2px 0 14px;
}
.printer-stat[hidden] { display: none; }
.printer-stat + .printer-stat {
  border-top: 1px solid rgba(242, 196, 61, 0.28);
  padding-top: 16px;
}
.printer-stat .stat-label { display: block; }
.printer-stat-value {
  margin: 8px 0 6px;
  font-family: var(--mono);
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}
.printer-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.printer-means {
  margin: 8px 0 0;
}
.printer-means summary {
  list-style: none;
  cursor: pointer;
  display: inline;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
}
.printer-means summary::-webkit-details-marker { display: none; }
.printer-means p {
  margin: 8px 0 0;
  max-width: 36em;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
}
.printer-link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.printer-flag {
  color: var(--gold);
  font-weight: 700;
}

.cause {
  background: var(--gold);
  color: var(--black);
}
.cause-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 13px;
  text-transform: uppercase;
}
.cause-row i {
  font-style: normal;
  color: rgba(8, 8, 6, 0.45);
  font-weight: 400;
}

.calc {
  background: var(--cream);
  color: var(--black);
  padding: 36px 0 40px;
}
.calc h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
}
.calc-lead { margin: 6px 0 20px; color: #3d3a34; }
.calc-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}
.calc-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.calc-form input {
  height: 42px;
  border: 1px solid #1a1914;
  background: #fffdf6;
  color: var(--black);
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 16px;
  width: 140px;
}
.periods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 18px;
}
.period-btn {
  border: 1px solid #1a1914;
  background: transparent;
  color: var(--black);
  height: 30px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.period-btn.is-on { background: var(--black); color: var(--cream); }
.calc-result {
  margin: 0 0 8px;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.calc-lost {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-weight: 700;
}
.calc-month { margin: 0 0 14px; font-size: 12px; color: #4a463e; }
.chart-block { margin-top: 22px; }
.chart-block h3 {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.16em;
}
.chart-sub { margin: 4px 0 10px; font-size: 12px; color: #4a463e; }
.chart-wrap { width: 100%; }
#cpi-chart { width: 100%; height: auto; display: block; background: var(--cream); }

.why {
  padding: 36px 0;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}
.why-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
}
.why h2 {
  margin: 0 0 22px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  font-weight: 600;
}
.why-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.why-item { padding: 0 20px; min-width: 0; }
.why-item:first-child { padding-left: 0; }
.why-item:last-child { padding-right: 0; }
.why-item + .why-item { border-left: 1px solid var(--border); }
.why-num {
  display: block;
  font-family: var(--mono);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.06em;
  line-height: 1;
  margin-bottom: 12px;
}
.why-item p {
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.printed-today {
  margin: 28px 0 0;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.printed-today strong {
  color: var(--gold);
  font-family: var(--mono);
}
.why-mascot {
  width: 160px;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.cta {
  padding: 28px 0;
  background: var(--black);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
#cta-live {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.strip-token { font-weight: 700; letter-spacing: 0.12em; color: var(--gold); }
.strip-addr {
  font-family: var(--mono);
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(520px, 80vw);
}

.footer { padding: 22px 0 28px; }
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.footer-links { display: flex; align-items: center; gap: 18px; }
.legal-link {
  background: none;
  border: 0;
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  padding: 0;
}
.legal-link:hover { color: var(--gold); }
.footer-note {
  width: min(var(--wrap), calc(100% - 40px));
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.legal-dialog {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--cream);
  padding: 0;
  max-width: 420px;
  width: calc(100% - 32px);
}
.legal-dialog::backdrop { background: rgba(0, 0, 0, 0.72); }
.legal-panel { padding: 28px; }
.legal-panel h2 { margin: 0 0 12px; font-size: 1.1rem; letter-spacing: 0.08em; }
.legal-panel p { margin: 0 0 22px; color: var(--muted); line-height: 1.5; font-size: 0.92rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@media (max-width: 900px) {
  .hero-grid,
  .why-wrap { grid-template-columns: 1fr; }
  .printer-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "art"
      "stats";
    gap: 16px;
  }
  .why-mascot { width: 120px; }
  .hero-mascot { margin-top: 12px; }
  .mascot { width: min(62%, 260px); }
}

@media (max-width: 700px) {
  .secondary-stats { grid-template-columns: 1fr; }
  .secondary-stat + .secondary-stat { border-left: 0; border-top: 1px solid rgba(242, 196, 61, 0.2); }
  .why-grid { grid-template-columns: 1fr; }
  .why-item, .why-item:first-child, .why-item:last-child { padding: 14px 0; }
  .why-item + .why-item { border-left: 0; border-top: 1px solid var(--border); }
  .cause-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .debt-value { font-size: clamp(1.45rem, 7vw, 2.1rem); }
}

@media (max-width: 390px) {
  .wrap { width: calc(100% - 24px); }
  h1 { font-size: clamp(1.9rem, 11vw, 2.4rem); }
  .debt-cents { display: none; }
  .primary-stat, .secondary-stat { padding: 16px; }
  .calc-form input { width: 100%; }
  .calc-form label { width: 100%; }
}
[hidden]{display:none !important;}
