/* Sandbox. Builds on the tokens and type in ../styles.css. */

.app .top { position: static; }

.app main { padding: 0 0 0; }

.intro { padding: clamp(16px, 3vw, 40px) var(--gutter) clamp(28px, 4vw, 56px); }
.intro h1 { font-size: clamp(3rem, 8vw, 6.5rem); animation: none; }
.intro p { margin-top: 18px; max-width: 58ch; font-size: 1.1rem; }

.desk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: stretch; }

.app h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); max-width: none; }
.app h3 { font-size: 1.15rem; font-stretch: 90%; letter-spacing: 0; line-height: 1.2; }

/* ---------- holder ---------- */

.wallet { background: var(--clay); padding: clamp(28px, 4vw, 56px) var(--gutter); }

.wallet .switch { margin-top: 18px; border-color: var(--pine); }
.wallet .switch button { color: var(--pine); }
.wallet .switch button[aria-pressed="true"] { background: var(--pine); color: var(--frost); }
.wallet .switch button:focus-visible { outline-color: var(--moss); }

.balances { margin: 26px 0 0; }
.balances > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 12px 0; border-top: 1px solid rgb(23 63 49 / .22);
}
.balances > div:last-child { border-bottom: 1px solid rgb(23 63 49 / .22); }
.balances dd {
  margin: 0; font-family: var(--display); font-stretch: 85%; font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-variant-numeric: tabular-nums;
}
#address { font-family: var(--body); font-weight: 500; font-size: 1rem; }

.wallet h3 { margin-top: 28px; }
.notes { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.notes li { background: var(--mint); color: var(--pine); padding: 7px 12px; font-size: 0.97rem; }
.notes li.none { background: none; padding: 0; color: inherit; }

.wallet form { margin-top: 26px; }
.wallet label { display: block; font-weight: 600; }
.field { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.field input, .field select {
  font: inherit; color: var(--ink); background: var(--frost);
  border: 2px solid var(--pine); border-radius: 0; padding: 11px 12px;
  flex: 1 1 8rem; min-width: 0;
}
.field button {
  font: inherit; font-weight: 600; cursor: pointer;
  background: var(--pine); color: var(--frost); border: 2px solid var(--pine);
  padding: 11px 20px; min-width: 7.5rem;
}
.field button:hover { background: var(--moss); border-color: var(--moss); }
.field button:disabled { opacity: .5; cursor: progress; }

#status { margin-top: 26px; min-height: 3.2em; font-weight: 500; }
#status[data-tone="good"] { color: var(--moss); }
#status[data-tone="bad"] { color: #8c2f1b; }

/* ---------- chain ---------- */

.chain { background: var(--pine); color: var(--frost); padding: clamp(28px, 4vw, 56px) var(--gutter); }

.holders { margin: 18px 0 0; }
.holders > div {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 9px 0; border-top: 1px solid rgb(169 220 196 / .28);
}
.holders dt { color: var(--mint); font-size: 0.97rem; }
.holders dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.holders .pool { border-bottom: 1px solid rgb(169 220 196 / .28); }
.holders .pool dt, .holders .pool dd { color: var(--frost); }

.log { list-style: none; padding: 0; margin: 30px 0 0; }
.log > li { padding: 18px 0; border-top: 2px solid var(--mint); }
.log > li.none { border: 0; padding: 0; color: rgb(247 251 248 / .72); }
.log h3 { color: var(--mint); }
.log dl { margin: 10px 0 0; }
.log dl > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; padding: 3px 0; }
.log dt { color: rgb(247 251 248 / .72); font-size: 0.95rem; }
.log dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
  .desk { grid-template-columns: 1fr; }
  .app .top nav a:not(:last-child) { display: inline; }
}
