/* Quint. Light paper, black type, theatre-coloured paintings. Tokens keep their old names so the
   desk and the mixer re-theme with them: --ink is the page, --white is the strongest ink. */
:root {
  --ink: #f6f1e9;
  --deck: #fffdf9;
  --panel: #ffffff;
  --chip: #efe8dd;
  --line: #e7dfd2;
  --line2: #d8cebf;
  --text: #2b2723;
  --muted: #6a625a;
  --dim: #978d81;
  --faint: #cdc3b5;
  --white: #141210;
  --accent: #c41c3c;
  --teal: #0e4a56;
  --gold: #f4b62a;
  --r-card: 22px;
  --r-pill: 999px;
  --display: "Sora", "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.num { font-family: var(--mono); font-feature-settings: "tnum" 1; letter-spacing: -.02em; }
.dim { color: var(--dim); }
.muted { color: var(--muted); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ---------- nav ---------- */
.top { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 16px 28px; background: rgba(246, 241, 233, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--white); font: 600 21px/1 var(--display); letter-spacing: -.03em; justify-self: start; }
.brand img { width: 28px; height: 28px; }
.brand b { color: var(--accent); font-weight: 600; }
.links { display: flex; gap: 26px; font-size: 15px; }
.links a { text-decoration: none; color: var(--muted); }
.links a:hover, .links a[aria-current="page"] { color: var(--white); }
.chips { display: flex; gap: 8px; justify-self: end; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: var(--r-pill); background: var(--white); color: var(--ink); border: 0; text-decoration: none; cursor: pointer; font-size: 14px; font-weight: 500; }
.chip.ghost { background: var(--panel); color: var(--white); box-shadow: inset 0 0 0 1px var(--line2); }
.chip:hover { opacity: .88; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.chip .dot.on { background: #3ccf7a; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.035em; color: var(--white); margin: 0; }
h1 { font-size: clamp(44px, 6.2vw, 78px); line-height: 1.02; }
h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.1; }
h3 { font-size: 19px; line-height: 1.25; letter-spacing: -.02em; }
.lede { max-width: 540px; color: var(--muted); font-size: 18px; line-height: 1.55; margin: 22px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: var(--r-pill); border: 0; background: transparent; color: var(--white); text-decoration: none; cursor: pointer; font-weight: 600; font-size: 15px; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line2); transition: background .15s, opacity .15s; }
.btn:hover { background: var(--panel); }
.btn.solid { background: var(--white); color: var(--ink); box-shadow: none; }
.btn.solid:hover { opacity: .86; background: var(--white); }
.btn.plain { box-shadow: none; padding: 0 8px; }
.btn.plain:hover { background: transparent; text-decoration: underline; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.small { min-height: 34px; padding: 0 14px; font-size: 13px; }

/* ---------- paintings ---------- */
.art { position: relative; overflow: hidden; border-radius: var(--r-card); background: var(--teal); }
.art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.art:hover img { transform: scale(1.09); }
.credit { font-size: 12px; color: var(--dim); margin-top: 8px; font-style: italic; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 56px 0 30px; }
.hero .cta { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.tape { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 30px; font-size: 13px; color: var(--muted); }
.tape .num { color: var(--white); }
.tape .live { display: inline-flex; align-items: center; gap: 6px; }
.tape .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ccf7a; }
.stage { position: relative; padding-bottom: 96px; }
.stage .art { aspect-ratio: 1.22; }
.card-live { position: absolute; left: -36px; bottom: 0; width: min(330px, 86%); padding: 18px 18px 14px; border-radius: 18px; background: var(--panel); box-shadow: 0 1px 0 var(--line), 0 24px 60px -24px rgba(40, 20, 10, .35); }
.card-live .hd { display: flex; justify-content: space-between; align-items: baseline; }
.card-live .hd b { font: 600 17px var(--display); color: var(--white); letter-spacing: -.02em; }
.card-live .hd span { font: 500 15px var(--mono); color: var(--white); }
.card-live .sub { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); margin-top: 2px; }
.bar { display: flex; gap: 3px; height: 6px; margin: 14px 0 8px; }
.bar i { display: block; border-radius: 3px; }
.legrow { display: grid; grid-template-columns: 14px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.legrow .sw { width: 10px; height: 10px; border-radius: 3px; }
.legrow b { font-weight: 600; color: var(--white); }
.legrow .w { color: var(--muted); }
.legrow .p { font: 500 12.5px var(--mono); color: var(--text); min-width: 74px; text-align: right; }
.card-live .cfoot { font-size: 11.5px; color: var(--dim); margin-top: 6px; }

/* ---------- $QNT contract address ---------- */
.ca { display: flex; align-items: center; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.ca-pill { display: inline-flex; align-items: center; gap: 12px; padding: 7px 7px 7px 16px; border: 0; border-radius: var(--r-pill); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line2); cursor: pointer; font-size: 14px; color: var(--text); }
.ca-pill b { font: 600 14px var(--display); color: var(--white); }
.ca-pill .num { font-size: 13px; color: var(--muted); }
.ca-copy { padding: 5px 12px; border-radius: var(--r-pill); background: var(--white); color: var(--ink); font-size: 12.5px; font-weight: 500; min-width: 58px; text-align: center; }
.ca-pill:hover { box-shadow: inset 0 0 0 1px var(--muted); }
.ca-link { font-size: 14px; color: var(--muted); text-decoration: none; }
.ca-link:hover { color: var(--white); }
.ca-inline { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: var(--muted); letter-spacing: 0; text-transform: none; overflow-wrap: anywhere; text-align: left; }
.ca-inline:hover { color: var(--white); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; padding: 34px 0 40px; border-bottom: 1px solid var(--line); }
.stats > div { border-top: 1px solid var(--line); padding-top: 18px; }
.stats b { display: block; font: 600 30px/1 var(--display); letter-spacing: -.03em; color: var(--white); }
.stats span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 8px; }

/* ---------- sections ---------- */
section { padding: 84px 0 0; }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 34px; }
.pcard { border-radius: var(--r-card); background: var(--panel); overflow: hidden; box-shadow: 0 1px 0 var(--line); }
.pcard .art { border-radius: 0; aspect-ratio: 1.45; }
.pcard .body { padding: 20px 22px 24px; }
.pcard .n { font: 500 13px var(--mono); color: var(--accent); }
.pcard h3 { margin: 8px 0 6px; }
.pcard p { margin: 0; color: var(--muted); font-size: 15px; }
.safe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 30px; }
.safe h3 { font-size: 17px; margin-bottom: 8px; }
.safe p { margin: 0; color: var(--muted); font-size: 15px; }
.listhead { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.listhead a { font-size: 14px; color: var(--muted); text-decoration: none; }
.brow { display: block; padding: 18px 0 16px; border-bottom: 1px solid var(--line); text-decoration: none; }
.brow .t { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.brow .t b { font: 600 17px var(--display); letter-spacing: -.02em; color: var(--white); }
.brow .t span { font: 500 15px var(--mono); color: var(--white); }
.brow .bar { height: 5px; margin: 12px 0 10px; }
.brow .m { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.brow:hover .t b { color: var(--accent); }
.mrow { display: grid; grid-template-columns: minmax(0, 1.4fr) 1fr 1fr 1fr; gap: 12px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.mrow .sym { font: 600 15px var(--display); color: var(--white); }
.mrow .r { text-align: right; }
.closing { position: relative; margin-top: 96px; }
.closing .art { aspect-ratio: 2.4; }
.closing .over { position: absolute; left: 32px; bottom: 32px; right: 32px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.closing h2 { color: #fff7e8; font-size: clamp(32px, 4.4vw, 56px); text-shadow: 0 2px 30px rgba(8, 30, 40, .45); }
.closing .btn.solid { background: #fff7e8; color: #141210; }

/* ---------- footer card ---------- */
.foot { margin-top: 96px; padding-bottom: 40px; }
.footcard { border-radius: 26px; background: var(--deck); box-shadow: inset 0 0 0 1px var(--line); padding: 34px 34px 22px; }
.footgrid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.footgrid p { margin: 12px 0 0; color: var(--muted); font-size: 14px; max-width: 320px; }
.footgrid h4 { margin: 4px 0 12px; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.footgrid a.brand { display: flex; margin: 0; font-size: 21px; color: var(--white); }
.footgrid a, .footgrid div > span { display: block; font-size: 14px; color: var(--text); text-decoration: none; margin-bottom: 8px; overflow-wrap: anywhere; }
.footbase { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }

/* ---------- coin logos ---------- */
.coin { display: inline-block; flex: none; border-radius: 50%; object-fit: cover; background: #fff; vertical-align: middle; }
.legrow { grid-template-columns: 22px 1fr auto auto; }
.mname { display: inline-flex; align-items: center; gap: 10px; }
.brow .m .lg { display: inline-flex; align-items: center; gap: 5px; margin-right: 12px; }
.table td .coin { margin-right: 8px; }
.legtag .coin { margin: -2px 0; }
.pickrow { display: flex; align-items: center; gap: 8px; }
.pickrow [data-logo] { display: flex; }
.pickrow .pick { min-width: 0; }

/* ---------- shared bits used by the desk and the mixer ---------- */
.fine { font-size: 12.5px; color: var(--dim); margin: 12px 2px 0; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 500; color: var(--dim); font-size: 12px; padding: 0 12px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 12px 13px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table .r { text-align: right; }
.table td.num, .table td .num { white-space: nowrap; }
.table tr.go { cursor: pointer; }
.table tr.go:hover td { background: var(--deck); }
.sym { font: 600 15px var(--display); color: var(--white); letter-spacing: -.01em; }
.legline { display: flex; gap: 5px; flex-wrap: wrap; }
.legtag { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1 var(--mono); color: var(--text); padding: 6px 8px; border-radius: 7px; background: var(--chip); }
.legtag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.legtag.short::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--teal); }
.state { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.state.ok::before { background: #3ccf7a; }
.empty { padding: 26px; border-radius: 18px; background: var(--panel); color: var(--muted); box-shadow: 0 1px 0 var(--line); }
.empty b { color: var(--white); font-weight: 600; }

/* ---------- the mixer (desk builder) ---------- */
.console { container-type: inline-size; border-radius: var(--r-card); background: var(--panel); box-shadow: 0 1px 0 var(--line), inset 0 0 0 1px var(--line); overflow: hidden; }
.strips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 1.25fr); }
.strip { position: relative; padding: 18px 16px 20px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.strip.master { border-right: 0; background: var(--deck); }
.strip-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.strip-n { font: 500 12px/1 var(--mono); color: var(--dim); }
.strip-age { font: 400 11px/1 var(--mono); color: var(--dim); }
.strip-age.stale { color: var(--accent); }
.pick { appearance: none; -webkit-appearance: none; width: 100%; padding: 9px 30px 9px 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--deck) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236a625a' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center; font: 600 15px/1 var(--display); letter-spacing: -.01em; color: var(--white); cursor: pointer; }
.px { font: 500 15px/1.1 var(--mono); color: var(--text); min-height: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 2px; border-radius: var(--r-pill); background: var(--chip); }
.side button { border: 0; border-radius: var(--r-pill); background: transparent; padding: 6px 0; font-size: 13px; color: var(--muted); cursor: pointer; }
.side button.on { background: var(--white); color: var(--ink); }
.side button.on.short { background: var(--teal); color: #fff; }
.fader { position: relative; display: grid; grid-template-rows: repeat(20, 1fr); gap: 4px; height: 252px; padding: 4px 0; cursor: ns-resize; touch-action: none; outline: none; border-radius: 12px; }
.fader:focus-visible { box-shadow: 0 0 0 2px var(--line2); }
.fader i { display: block; justify-self: center; align-self: center; width: 8px; height: 8px; border-radius: 50%; background: var(--chip); transition: background .12s; }
.fader i.lit { background: var(--accent); }
.fader.short i.lit { background: var(--teal); }
.fader i.blocked { background: transparent; box-shadow: inset 0 0 0 1px var(--line2); }
.fader .stop { position: absolute; left: 6%; right: 6%; height: 0; border-top: 1.5px solid var(--white); }
.fader .stop span { position: absolute; right: 0; top: -18px; font: 500 10px/1 var(--mono); color: var(--white); white-space: nowrap; }
.weight { display: flex; justify-content: space-between; align-items: baseline; }
.weight b { font: 600 26px/1 var(--display); color: var(--white); letter-spacing: -.03em; }
.weight span { font-size: 12px; color: var(--dim); }
.master .fader { grid-template-rows: repeat(26, 1fr); gap: 3px; }
.master .fader i { width: 14px; height: 6px; border-radius: 3px; }
.master .fader i.lit { background: var(--white); }
.master-note { font-size: 12px; color: var(--dim); line-height: 1.45; margin: 0; }
.readout { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; border-top: 1px solid var(--line); background: var(--deck); }
.readout > div { padding: 16px 18px; border-right: 1px solid var(--line); min-width: 0; }
.readout label { display: block; font-size: 12px; color: var(--dim); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.readout .v { font: 500 18px/1.2 var(--mono); color: var(--white); white-space: nowrap; }
.ship { display: flex; align-items: center; gap: 10px; padding: 12px 16px !important; border-right: 0 !important; }
.ship:empty { display: none; }

/* ---------- sheet and toast ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; background: rgba(30, 20, 12, .32); backdrop-filter: blur(4px); }
.sheet.open { display: flex; }
.sheet-card { width: min(420px, calc(100vw - 32px)); padding: 26px; border-radius: 24px; background: var(--panel); box-shadow: 0 30px 80px -30px rgba(40, 20, 10, .45); }
.sheet-card h3 { margin-bottom: 14px; }
.wal { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 14px 16px; margin-top: 8px; border-radius: 14px; border: 1px solid var(--line2); background: var(--deck); cursor: pointer; text-decoration: none; color: var(--white); }
.wal:hover { border-color: var(--muted); }
.wal { gap: 12px; justify-content: flex-start; }
.wal .wname { flex: 1; text-align: left; font-weight: 500; }
.wic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--chip); font: 600 14px var(--display); color: var(--white); overflow: hidden; flex: none; }
.wic img { width: 100%; height: 100%; object-fit: cover; }
.note { color: var(--muted); font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translateX(-50%); max-width: min(560px, calc(100vw - 32px)); padding: 13px 18px; border-radius: 14px; background: var(--white); color: var(--ink); font-size: 14px; display: none; }
.toast.show { display: block; }
.toast.bad { background: var(--accent); color: #fff; }

@media (max-width: 960px) {
  .top { grid-template-columns: 1fr auto; }
  .links { display: none; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 30px; }
  .card-live { left: 16px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 22px 24px; }
  .cards3, .safe { grid-template-columns: 1fr; }
  .footgrid { grid-template-columns: 1fr 1fr; }
  .mrow { grid-template-columns: minmax(0, 1.4fr) 1fr 1fr; }
  .mrow .opt { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .top { padding: 12px 18px; }
  .chips .hide-s { display: none; }
  .closing .art { aspect-ratio: 1.1; }
  .closing .over { left: 20px; right: 20px; bottom: 20px; }
  .footgrid { grid-template-columns: 1fr; }
  .stage { padding-bottom: 150px; }
  .card-live { left: 12px; right: 12px; width: auto; }
}
@container (max-width: 860px) {
  .strips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .strip:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .strip:nth-child(3) { border-right: 0; }
  .readout { grid-template-columns: 1fr 1fr; }
  .readout > div:nth-child(2n) { border-right: 0; }
  .readout > div { border-bottom: 1px solid var(--line); }
  .ship { grid-column: span 2; }
}
@container (max-width: 520px) {
  .strips { grid-template-columns: 1fr 1fr; }
  .strip:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .strip:nth-child(3) { border-right: 1px solid var(--line); }
  .strip:nth-child(2n) { border-right: 0; }
  .fader { height: 190px; gap: 2px; }
  .fader i { width: 7px; height: 7px; }
  .readout { grid-template-columns: 1fr; }
  .readout > div { border-right: 0 !important; }
}
