/* Amber site. Palette: resin brown base, amber + honey, bone text, moss as the second accent (the plant caught in resin). */
:root {
  --resin: #2A1A0F;
  --resin-2: #3A2615;
  --resin-3: #4C331C;
  --amber: #E0922F;
  --honey: #F5C766;
  --bone: #F1E4CC;
  --bone-dim: #C9B79A;
  --moss: #8E9B52;
  --warn: #F0A25A;
  --serif: "ZCOOL XiaoWei", "Songti SC", "STSong", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --measure: 40em;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--resin);
  color: var(--bone);
  font: 400 16px/1.75 var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--honey); text-underline-offset: 3px; }
a:hover { color: var(--bone); }
:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; border-radius: 2px; }
code, pre { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .9em; }
code { color: var(--honey); overflow-wrap: anywhere; }

.top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  max-width: 1080px; margin: 0 auto; padding: 1.25rem 1.5rem;
}
.brand { font: 400 1.6rem/1 var(--serif); color: var(--honey); text-decoration: none; }
.top nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.top nav a { color: var(--bone-dim); text-decoration: none; font-size: .95rem; }
.top nav a:hover { color: var(--honey); }

main { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 3.5rem 0; border-top: 1px solid var(--resin-3); }
section > * { max-width: var(--measure); }
h1, h2 { font-family: var(--serif); font-weight: 400; color: var(--honey); margin: 0 0 1rem; }
h2 { font-size: 2rem; line-height: 1.2; }
p { margin: 0 0 1rem; }

/* Hero: the specimen is the one bold element on the page */
.hero {
  border-top: 0; padding-top: 2rem;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 3rem; align-items: center;
}
.hero > * { max-width: none; }
.hero h1 { font-size: clamp(4rem, 12vw, 7.5rem); line-height: .95; letter-spacing: .02em; margin-bottom: 1.5rem; }
.lede { font-size: 1.3rem; line-height: 1.6; max-width: 22em; }
.facts { color: var(--bone-dim); max-width: 26em; }
.actions, .prompt-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.5rem 0 .5rem; }
.copied { min-height: 1.75em; color: var(--moss); font-size: .95rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .55rem 1.2rem;
  border: 1px solid var(--amber); border-radius: 999px; background: transparent; color: var(--honey);
  font: 500 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--resin-2); color: var(--bone); }
.btn.primary { background: var(--amber); color: var(--resin); border-color: var(--amber); }
.btn.primary:hover { background: var(--honey); border-color: var(--honey); color: var(--resin); }

.specimen { margin: 0; text-align: center; }
.specimen svg { width: 100%; max-width: 360px; height: auto; filter: drop-shadow(0 18px 40px rgba(224, 146, 47, .18)); }
.specimen figcaption { display: grid; gap: .2rem; margin-top: .75rem; }
.seed-label { font: 400 1.6rem/1.2 var(--serif); color: var(--honey); }
.seed-sub { color: var(--bone-dim); font-size: .9rem; }
#strata rect { transition: opacity .6s ease; }
@media (prefers-reduced-motion: reduce) { #strata rect { transition: none; } }

/* Live status */
.now > .status { max-width: none; }
.countdown { font: 400 clamp(2.4rem, 7vw, 4rem)/1.1 var(--serif); color: var(--honey); margin-bottom: 1.5rem; }
.countdown small { display: block; font: 400 1rem/1.5 var(--sans); color: var(--bone-dim); margin-top: .4rem; }
.status { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--resin-3); }
.status div { min-width: 0; padding: .9rem 1rem .9rem 0; border-bottom: 1px solid var(--resin-3); }
.status dt { color: var(--bone-dim); font-size: .9rem; }
.status dd { margin: .15rem 0 0; font-size: 1.2rem; color: var(--bone); }
.note { color: var(--bone-dim); font-size: .95rem; margin-top: 1rem; }

/* Wallet check */
.check-form label { display: block; color: var(--bone-dim); font-size: .9rem; margin-bottom: .35rem; }
.field { display: flex; gap: .5rem; }
.field input {
  flex: 1; min-width: 0; min-height: 44px; padding: .5rem .9rem; border-radius: 999px;
  border: 1px solid var(--resin-3); background: var(--resin-2); color: var(--bone); font: 400 1rem/1.2 ui-monospace, Consolas, monospace;
}
.field input::placeholder { color: var(--bone-dim); }
.result { margin-top: 1rem; min-height: 1.75em; }
.result.ok { color: var(--moss); }
.result.bad { color: var(--warn); }

/* Steps are a real sequence, so they are numbered */
.steps { padding: 0; margin: 0 0 1.5rem; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 1.25rem 3rem; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -.1rem; width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--resin-3); color: var(--honey); font: 400 1.1rem/1 var(--serif);
}
.steps strong { display: block; color: var(--bone); font-weight: 700; }

.warn { color: var(--warn); font-weight: 700; font-size: 1.15rem; }
.warn-soft { color: var(--warn); }

.curve { margin: 1.5rem 0; max-width: 40rem; }
.curve svg { width: 100%; height: auto; }
.curve .axis line { stroke: var(--resin-3); stroke-width: 1.5; }
.curve .axis text { fill: var(--bone-dim); font: 400 13px var(--sans); }
.curve .line { fill: none; stroke: var(--amber); stroke-width: 3; stroke-linejoin: round; }
.curve .dot { fill: var(--honey); stroke: var(--resin); stroke-width: 3; }
.curve figcaption { color: var(--bone-dim); font-size: .95rem; margin-top: .5rem; }

.chain { background: var(--resin-2); border-left: 3px solid var(--amber); padding: 1rem 1.25rem; margin: 0 0 1rem; overflow-x: auto; line-height: 1.7; }
.chain code { color: var(--bone); }

.alloc { border-collapse: collapse; width: 100%; margin-bottom: 1.25rem; }
.alloc caption { text-align: left; color: var(--bone-dim); font-size: .95rem; padding-bottom: .5rem; }
.alloc th, .alloc td { text-align: left; vertical-align: top; padding: .75rem 1rem .75rem 0; border-top: 1px solid var(--resin-3); }
.alloc th { color: var(--honey); font-weight: 500; white-space: nowrap; }
.alloc td:nth-child(2) { font: 400 1.35rem/1.3 var(--serif); color: var(--bone); white-space: nowrap; }
.alloc td:last-child { color: var(--bone-dim); }

.risk ul { padding-left: 1.2rem; margin: 0 0 1.25rem; }
.risk li { margin-bottom: .5rem; }

.addrs { margin: 0 0 1rem; max-width: 44rem; }
.addrs div { padding: .7rem 0; border-top: 1px solid var(--resin-3); }
.addrs dt { color: var(--bone-dim); font-size: .9rem; }
.addrs dd { margin: .2rem 0 0; display: flex; gap: .75rem; align-items: baseline; flex-wrap: wrap; }
.addrs .mono { font: 400 .95rem/1.5 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; color: var(--bone); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--honey); font: inherit; font-size: .9rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.small { font-size: .9rem; color: var(--bone-dim); }

.foot { max-width: 1080px; margin: 0 auto; padding: 2rem 1.5rem 3rem; border-top: 1px solid var(--resin-3); color: var(--bone-dim); font-size: .9rem; }

@media (max-width: 760px) {
  body { font-size: 15px; }
  main, .top, .foot { padding-left: 16px; padding-right: 16px; }
  .top nav { gap: .4rem 1rem; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status dd { font-size: 1.05rem; }
  .specimen { order: -1; }
  .specimen svg { max-width: 240px; }
  section { padding: 2.5rem 0; }
  h2 { font-size: 1.6rem; }
  .field { flex-direction: column; }
}
