/* THE CASHCOW · fee farm (lime board edition, per brand mockup v2)
   dials: variance 6 · motion 2 · density 6
   palette: lime board, cream panels, near-black ink. radius: 16px panels / 8px boxes. */

:root {
  --lime: #cbe54b;
  --lime-soft: #d7ec6f;
  --lime-deep: #5c8a12;
  --paper: #f8f5e6;
  --paper-deep: #ece5cc;
  --ink: #191712;
  --ink-soft: rgba(25, 23, 18, 0.55);
  --ok: #3f8a1e;
  --bad: #c03a2b;
  --rp: 16px;
  --rb: 8px;
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'Manrope', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scrollbar-color: var(--ink) var(--lime); scroll-behavior: smooth; }

body {
  font-family: var(--mono);
  background: var(--lime);
  color: var(--ink);
  min-height: 100vh;
  padding: 14px clamp(10px, 2vw, 28px);
}

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

a { color: inherit; text-decoration: none; }

button:focus-visible, a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.panel {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--rp);
}

main { display: flex; flex-direction: column; gap: 14px; max-width: 1420px; margin: 0 auto; }

h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}
.star { color: var(--lime-deep); }

/* ── top nav ──────────────────────────────────────── */

.topnav {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1420px;
  margin: 0 auto 14px;
  padding: 4px 2px;
}

.logobadge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--ink);
  display: block;
  flex: none;
}
.logobadge img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.32); display: block; }

.navlinks {
  display: flex;
  gap: clamp(14px, 3vw, 44px);
  margin: 0 auto;
}
.navlinks a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.navlinks a:hover { border-bottom-color: var(--ink); }
.navlinks .icn { width: 19px; height: 19px; }

.navright { display: flex; align-items: center; gap: 10px; }

.modepill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 6px 11px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  white-space: nowrap;
}
.modepill.live { background: var(--ink); color: var(--lime); }
.modepill.paper { background: var(--paper-deep); }
.modepill.bad { background: var(--bad); color: var(--paper); }

.walletchip {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border: 2px dashed var(--ink);
  border-radius: 999px;
  background: var(--paper);
}

.connectbtn {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 11px 18px;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--rb);
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(25, 23, 18, 0.8);
}
.connectbtn:hover { background: var(--ink); color: var(--lime); }
.connectbtn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(25, 23, 18, 0.8); }
.connectbtn.connected { background: var(--ink); color: var(--lime); }

/* ── hero ─────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: clamp(24px, 4vw, 56px);
  overflow: hidden;
}

.wordmarkrow { display: flex; align-items: center; gap: 16px; }
.leaf { width: clamp(44px, 5vw, 66px); height: auto; color: var(--lime); flex: none; }
h1 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.heroline { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; max-width: 360px; }
.heroline .rule { flex: 1; border-top: 2px solid var(--ink); }
.heroline .star { font-size: 15px; }

.herotag { font-size: 15px; font-weight: 700; letter-spacing: 0.14em; margin-bottom: 16px; }

.heropill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--lime-soft);
}
.heropill .spark { color: var(--lime-deep); }
.ethcoin { width: 21px; height: 21px; flex: none; }

.heroart { display: flex; justify-content: center; }
.heroart img {
  width: 100%;
  max-width: 560px;
  height: auto;
  mix-blend-mode: multiply; /* white source bg melts into the cream panel */
  animation: bob 5s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ── stats strip ──────────────────────────────────── */

.strip {
  background: var(--lime-soft);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 16px 6px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px;
  min-width: 0;
}
.stat + .stat { border-left: 2px solid var(--ink); }

.sicon {
  width: 52px;
  height: 52px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
}
.sicon svg { width: 26px; height: 26px; }

.stat h3 { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; }
.sval { font-size: clamp(17px, 1.7vw, 22px); font-weight: 700; margin: 2px 0; }
.sval i { font-style: normal; font-size: 0.6em; font-weight: 600; }
.stat p { font-size: 10px; line-height: 1.5; color: rgba(25, 23, 18, 0.72); }
.stat p b { color: var(--ink); }

/* ── middle row ───────────────────────────────────── */

.midrow {
  display: grid;
  grid-template-columns: minmax(210px, 240px) minmax(0, 1fr) minmax(210px, 240px);
  gap: 14px;
  align-items: stretch;
}
.midrow .panel { padding: 18px 18px 16px; }

.secsub { font-size: 11.5px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 14px; }

/* herd list */
.hlist { display: flex; flex-direction: column; gap: 7px; }
.hrow {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
  border-bottom: 1px dashed rgba(25, 23, 18, 0.25);
  padding-bottom: 6px;
}
.hrow .rank { color: var(--lime-deep); font-weight: 700; flex: none; }
.hrow .addr { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hrow .bal { margin-left: auto; color: var(--ink-soft); font-size: 11px; flex: none; }

.empty { font-size: 11.5px; color: var(--ink-soft); padding: 8px 0; }

/* ledger */
.books { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.book { min-width: 0; }
.book h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 7px;
  margin-bottom: 2px;
}
table.rows { width: 100%; border-collapse: collapse; font-size: 12px; }
table.rows th {
  text-align: left;
  font-weight: 400;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 8px 8px 4px 0;
}
table.rows td { padding: 6px 8px 6px 0; border-bottom: 1px dashed rgba(25, 23, 18, 0.22); white-space: nowrap; }
table.rows tr:hover td { background: rgba(203, 229, 75, 0.25); }

.ok { color: var(--ok); font-weight: 700; }
.warn { color: #93690f; font-weight: 700; }
.bad { color: var(--bad); font-weight: 700; }

/* promise */
.promisesec .pitem {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
}
.promisesec .pitem + .pitem { border-top: 1px dashed rgba(25, 23, 18, 0.25); }
.promisesec .icn { width: 24px; height: 24px; color: var(--lime-deep); margin-top: 1px; }
.promisesec p { font-size: 12px; font-weight: 600; line-height: 1.55; }

/* ── papers ───────────────────────────────────────── */

.papersec { padding: 18px; }
.papers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}
.paperbox {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: var(--rb);
  background: var(--paper);
  padding: 9px 12px;
}
.paperbox .k { grid-column: 1 / -1; font-size: 9px; letter-spacing: 0.18em; color: var(--ink-soft); margin-bottom: 4px; }
.paperbox .v { font-size: 11.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copybtn {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: var(--lime);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
}
.copybtn:hover, .copybtn.done { background: var(--ink); color: var(--lime); }

/* ── footer ───────────────────────────────────────── */

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  max-width: 1420px;
  margin: 4px auto 0;
  padding: 18px 6px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.ftext .spark { color: var(--ink); padding: 0 8px; }
.ficons { display: flex; gap: 14px; margin-left: auto; }
.ficons svg { width: 20px; height: 20px; color: var(--ink); }

/* ── responsive ───────────────────────────────────── */

@media (max-width: 1150px) {
  .strip { grid-template-columns: repeat(3, 1fr); row-gap: 12px; }
  .stat:nth-child(4) { border-left: none; }
  .midrow { grid-template-columns: 1fr 1fr; }
  .ledgersec { grid-column: 1 / -1; order: -1; }
}

@media (max-width: 760px) {
  .topnav { flex-wrap: wrap; justify-content: center; }
  .navlinks { order: 3; width: 100%; justify-content: center; }
  .hero { grid-template-columns: 1fr; text-align: center; }
  .wordmarkrow, .heroline { justify-content: center; margin-left: auto; margin-right: auto; }
  .strip { grid-template-columns: 1fr; }
  .stat + .stat { border-left: none; border-top: 2px solid var(--ink); padding-top: 12px; }
  .midrow { grid-template-columns: 1fr; }
  .books { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 10px; }
  .ficons { margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .heroart img { animation: none; }
  html { scroll-behavior: auto; }
}
