/* ============================================================
   $CURE — the board
   ------------------------------------------------------------
   Layout and components. Everything here is built from the four
   primitives in paper.css; nothing re-invents a border.
   ============================================================ */

.wrap {
  width: min(100% - 32px, var(--rail));
  margin-inline: auto;
}

section {
  scroll-margin-top: 96px;
}

/* ============================================================
   Header
   ============================================================ */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(253, 252, 247, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: var(--line) solid var(--ink-line);
}

.top__in {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
}

.brand__mark {
  width: 42px;
  height: 42px;
  flex: none;
}

.brand__name {
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: -0.01em;
}

.brand__sub {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  line-height: 1.2;
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-family: var(--hand);
  font-size: 1.02rem;
}

.nav a {
  position: relative;
  padding-bottom: 3px;
}
.nav a:hover {
  color: var(--teal);
}
.nav a.on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: var(--teal);
  border-radius: 60% 40% 55% 45% / 100% 100% 100% 100%;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 34px;
  align-items: center;
  padding: 44px 0 30px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.5rem);
  margin-bottom: 18px;
}
.hero h1 span {
  display: block;
  color: var(--teal);
}

.hero__lede {
  font-size: 1.06rem;
  max-width: 46ch;
  color: var(--ink-2);
  margin: 0 0 22px;
}
.hero__lede b {
  color: var(--ink);
  font-weight: 400;
  border-bottom: 2px solid var(--teal);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero__art {
  position: relative;
}
.hero__art img {
  width: 100%;
  border-radius: 12px;
}

/* The contract address, as a chip you can copy. */
.ca {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  background: var(--paper-3);
  border: var(--line) dashed var(--ink-line-soft);
  border-radius: 10px;
  cursor: pointer;
  max-width: 100%;
}
.ca:hover {
  border-color: var(--teal);
  background: var(--teal-wash);
}
/* display:inline-flex above beats the UA rule for [hidden], so the chip has
   to opt out explicitly — otherwise an empty CA chip shows before launch. */
.ca[hidden] {
  display: none;
}
.ca__v {
  font-family: var(--mono);
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   The strip — four live numbers
   ============================================================ */
.strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 4px;
  margin-bottom: var(--gap);
}

.strip__cell {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-right: 2px dashed var(--ink-line-soft);
  min-width: 0;
}
.strip__cell:last-child {
  border-right: 0;
}

.strip__ico {
  width: 44px;
  height: 44px;
  flex: none;
}

.strip__k {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.strip__v {
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.85rem;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.strip__v.is-word {
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.strip__s {
  font-size: 0.8rem;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   Card row
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-bottom: var(--gap);
}

.card {
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card__h {
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.22rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card__row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.card__figure {
  width: 92px;
  flex: none;
  border-radius: 10px;
}

.card__big {
  font-family: var(--hand);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

/* Eligibility bar — a drawn tube that fills teal. */
.meter {
  height: 15px;
  background: var(--paper-3);
  border: var(--line) solid var(--ink-line);
  border-radius: 20px;
  overflow: hidden;
}
.meter__fill {
  height: 100%;
  width: 0;
  background: var(--teal);
  border-radius: 20px;
  transition: width 0.5s ease;
}

.eligible {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  color: var(--ink-2);
}
.eligible.is-yes {
  color: var(--teal);
}

/* Wallet lookup */
.look {
  display: flex;
  gap: 8px;
}
.look input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  background: var(--paper-sunk);
  border: var(--line) solid var(--ink-line);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 0.82rem;
}
.look input:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

/* How it works — three steps with an arrow between */
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 8px;
  text-align: center;
}
.step__ico {
  width: 52px;
  height: 52px;
  margin: 0 auto 8px;
}
.step__t {
  font-family: var(--hand);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 3px;
}
.step__d {
  font-size: 0.78rem;
  color: var(--ink-2);
  line-height: 1.45;
}
.steps__arrow {
  width: 26px;
  align-self: center;
  margin-top: 14px;
  color: var(--ink-3);
}

/* ============================================================
   News bar
   ============================================================ */
.news {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px var(--pad);
  margin-bottom: 34px;
}
.news__ico {
  width: 46px;
  flex: none;
}
.news__t {
  flex: 1;
  min-width: 0;
  font-size: 1rem;
  line-height: 1.5;
}
.news__t em {
  font-style: normal;
  color: var(--teal);
  border-bottom: 2px solid var(--teal);
}
/* Architects Daughter ships one weight, so <b> gets synthesised bold and the
   strokes smear. Emphasis switches to the hand face, which has a real 700. */
.news__t b,
.note b {
  font-family: var(--hand);
  font-weight: 700;
}
.news__doc {
  width: 84px;
  flex: none;
}

/* ============================================================
   Section headings
   ============================================================ */
.head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 44px 0 18px;
  flex-wrap: wrap;
}
.head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
}
.head p {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 0.95rem;
  max-width: 62ch;
}

/* ============================================================
   Two-column split
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

.panel {
  padding: var(--pad);
}
.panel__h {
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

/* ============================================================
   The ledger
   ============================================================ */
.ledger {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 190px;
  padding-bottom: 2px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

.round {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: var(--paper-sunk);
  border: var(--line) solid var(--ink-line-soft);
  border-radius: 12px;
}
.round:hover {
  border-color: var(--teal);
  background: var(--teal-wash);
}

.round__when {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--ink-3);
  white-space: nowrap;
}
.round__what {
  min-width: 0;
  font-size: 0.92rem;
}
.round__what b {
  font-family: var(--hand);
  font-size: 1.05rem;
  color: var(--teal);
}
.round__note {
  font-size: 0.8rem;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.round__tx {
  font-size: 0.78rem;
  white-space: nowrap;
  color: var(--ink-2);
  border-bottom: 1px dashed var(--ink-3);
}
.round__tx:hover {
  color: var(--teal);
  border-color: var(--teal);
}

/* ============================================================
   Leaderboard
   ============================================================ */
.board {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.board th {
  text-align: left;
  font-family: var(--print);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0 10px 8px;
  border-bottom: 2px solid var(--ink-line-soft);
}
.board td {
  padding: 11px 10px;
  border-bottom: 1px dashed var(--ink-line-soft);
  vertical-align: middle;
}
.board tr:last-child td {
  border-bottom: 0;
}
.board tbody tr:hover {
  background: var(--teal-wash);
}
.board .r {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: var(--line) solid var(--ink-line);
  border-radius: 50% 45% 52% 48% / 48% 52% 45% 50%;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 0.85rem;
}
.rank--1 {
  background: var(--teal);
  color: var(--teal-ink);
}

/* ============================================================
   The log
   ============================================================ */
.log {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 420px;
  overflow-y: auto;
  font-size: 0.86rem;
  padding-right: 4px;
}
.log__l {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--ink-line-soft);
  line-height: 1.45;
}
.log__t {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-3);
  padding-top: 2px;
  white-space: nowrap;
}
.log__l[data-type="error"] .log__m {
  color: var(--down);
}
.log__l[data-type="warn"] .log__m {
  color: var(--warn);
}

/* ============================================================
   Facts list — the split, the addresses, the terms
   ============================================================ */
.facts {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--ink-line-soft);
}
.fact:last-child {
  border-bottom: 0;
}
.fact__k {
  font-size: 0.88rem;
  color: var(--ink-2);
}
.fact__v {
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.02rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.fact__v.addr {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.8rem;
}

/* ============================================================
   About / prose
   ============================================================ */
.prose {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-2);
}
.prose p {
  margin: 0 0 14px;
  max-width: 68ch;
}
.prose b,
.prose strong {
  color: var(--ink);
  font-weight: 400;
  border-bottom: 2px solid var(--teal);
}
.prose h3 {
  font-size: 1.15rem;
  color: var(--ink);
  margin: 22px 0 8px;
}
.prose ul {
  margin: 0 0 14px;
  padding-left: 20px;
  max-width: 68ch;
}
.prose li {
  margin-bottom: 6px;
}
.prose code {
  font-family: var(--mono);
  font-size: 0.84em;
  background: var(--paper-3);
  padding: 2px 6px;
  border-radius: 5px;
}

.flow {
  display: grid;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.7;
  background: var(--paper-sunk);
  border: 2px dashed var(--ink-line-soft);
  border-radius: 12px;
  padding: 16px 18px;
  white-space: pre;
  overflow-x: auto;
  color: var(--ink-2);
}

/* ============================================================
   Notices
   ============================================================ */
.note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 16px;
  background: var(--teal-wash);
  border: var(--line) solid var(--teal);
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.note--warn {
  background: #fdf4e3;
  border-color: var(--warn);
}
.note__ico {
  width: 20px;
  flex: none;
  margin-top: 2px;
}

.empty {
  padding: 26px 10px;
  text-align: center;
  color: var(--ink-3);
  font-size: 0.9rem;
}

/* ============================================================
   Footer
   ============================================================ */
.foot {
  margin-top: 56px;
  border-top: var(--line) solid var(--ink-line);
  padding: 26px 0 40px;
}
.foot__in {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.foot__links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--hand);
}
.foot__links a:hover {
  color: var(--teal);
}
.foot__legal {
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--ink-3);
  line-height: 1.6;
  max-width: 90ch;
}

/* ============================================================
   Scrollbars — thin, inked
   ============================================================ */
.ledger::-webkit-scrollbar,
.log::-webkit-scrollbar {
  width: 8px;
}
.ledger::-webkit-scrollbar-thumb,
.log::-webkit-scrollbar-thumb {
  background: var(--ink-line-soft);
  border-radius: 8px;
}
.ledger::-webkit-scrollbar-thumb:hover,
.log::-webkit-scrollbar-thumb:hover {
  background: var(--teal);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .strip__cell:nth-child(2) {
    border-right: 0;
  }
  .strip__cell:nth-child(-n + 2) {
    border-bottom: 2px dashed var(--ink-line-soft);
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .cards .card:last-child {
    grid-column: 1 / -1;
  }
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 28px;
  }
  .hero__art {
    order: -1;
  }
  .nav {
    display: none;
  }
  .news {
    flex-wrap: wrap;
  }
  .news__doc {
    display: none;
  }
}

@media (max-width: 620px) {
  :root {
    --pad: 17px;
    --gap: 14px;
  }
  .strip {
    grid-template-columns: minmax(0, 1fr);
  }
  .strip__cell {
    border-right: 0;
    border-bottom: 2px dashed var(--ink-line-soft);
  }
  .strip__cell:last-child {
    border-bottom: 0;
  }
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .steps__arrow {
    display: none;
  }
  .round {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .board th:nth-child(3),
  .board td:nth-child(3) {
    display: none;
  }
  .brand__sub {
    display: none;
  }
}

/* ============================================================
   The news — why Merck, not Moderna
   ============================================================ */
.story {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}
.story .panel {
  padding: var(--pad);
}
.story__src {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--teal);
  border-bottom: 2px solid var(--teal);
}
.story__src:hover {
  color: var(--teal-deep);
}

@media (max-width: 860px) {
  .story {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ============================================================
   The contract address bar
   ------------------------------------------------------------
   The single most-copied string on the page, so it gets its own
   line rather than a chip tucked beside a button. Present before
   launch too — an empty slot that says when it will fill is far
   better than a slot that isn't there, because it tells a visitor
   the coin has not launched yet.
   ============================================================ */
.cabar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 13px 18px;
  margin-bottom: var(--gap);
  background: var(--paper-2);
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.cabar:hover {
  background: var(--teal-wash);
  border-color: var(--teal);
}
.cabar.is-empty {
  cursor: default;
  border-style: dashed;
  border-color: var(--ink-line-soft);
}
.cabar.is-empty:hover {
  background: var(--paper-2);
  border-color: var(--ink-line-soft);
}

.cabar__k {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}

.cabar__v {
  font-family: var(--mono);
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cabar.is-empty .cabar__v {
  font-family: var(--print);
  font-size: 0.92rem;
  color: var(--ink-3);
}

.cabar__copy {
  font-family: var(--hand);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--teal);
  border: var(--line) solid var(--teal);
  border-radius: 9px 7px 10px 8px / 8px 10px 7px 9px;
  padding: 4px 12px;
  white-space: nowrap;
}
.cabar.is-empty .cabar__copy {
  display: none;
}

@media (max-width: 720px) {
  .cabar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
  }
  .cabar__k {
    grid-column: 1 / -1;
  }
}
