/* PonsRock — a specimen drawer. White paper, blue links, serif, thin rules. */
:root {
  --paper: #ffffff;
  --paper-2: #f6f6f3;
  --ink: #141414;
  --ink-2: #4d4d4a;
  --ink-3: #7a7a76;
  --rule: #141414;
  --hair: #d6d6d0;
  --hair-2: #ebebe6;
  --link: #0000ee;
  --visited: #551a8b;
  --green: #00c878;
  --green-ink: #00663d;
  --warn: #8a5a00;
  --serif: "Libre Caslon Text", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1120px;
  --gut: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--serif);
  font-feature-settings: "kern", "liga", "onum";
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:visited { color: var(--visited); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.15; }
.mono, .num { font-family: var(--mono); font-feature-settings: "tnum", "zero"; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.fine { font-size: 14px; color: var(--ink-2); margin: 8px 0 0; }
.msg { font-size: 15px; margin: 8px 0 0; min-height: 0; }
.msg:empty { display: none; }
.msg.err { color: #a11; }
.msg.ok { color: var(--green-ink); }

/* buttons: plain rectangles */
.btn {
  appearance: none; background: var(--paper); border: 1px solid var(--rule); border-radius: 0;
  padding: 8px 14px; font-size: 15px; line-height: 1.2; cursor: pointer; min-height: 40px;
}
.btn:hover:not(:disabled) { background: var(--paper-2); }
.btn:disabled { cursor: not-allowed; color: var(--ink-3); border-color: var(--hair); }
.linkbtn {
  appearance: none; background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline;
  text-underline-offset: 2px; cursor: pointer; font-size: inherit;
}

/* ---------------- header ---------------- */
.top { border-bottom: 1px solid var(--rule); background: var(--paper); }
.top-in { display: flex; align-items: center; gap: 12px 22px; min-height: 64px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.mark {
  font-family: var(--display); font-size: 24px; letter-spacing: .16em; color: var(--ink); text-decoration: none; line-height: 1;
  padding-top: 3px;
}
.mark:visited { color: var(--ink); }
.ca-chip {
  display: inline-flex; align-items: baseline; gap: 8px; border: 1px solid var(--hair); padding: 4px 10px;
  font-family: var(--mono); font-size: 13px; color: var(--ink-2); white-space: nowrap; min-width: 0;
}
.ca-chip .ca-k { color: var(--ink); font-weight: 500; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 16px; margin-left: auto; }
#connect { min-width: 110px; }
#connect.on { font-family: var(--mono); font-size: 13px; }
.netnote {
  margin: 0; padding: 6px var(--gut); text-align: center; font: 13px/1.4 var(--mono); color: var(--warn);
  border-top: 1px solid var(--hair); background: #fffbf0;
}

/* ---------------- hero ---------------- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; padding-top: 48px; padding-bottom: 56px; align-items: start; }
.specimen { margin: 0; }
.specimen-img { display: block; border: 1px solid var(--rule); padding: 14px; background: var(--paper); }
.specimen-img img { width: 100%; image-rendering: auto; }
.label {
  border: 1px solid var(--rule); border-top: 0; padding: 12px 14px 12px; background: var(--paper);
  font-size: 15px;
}
.label-top {
  display: flex; justify-content: space-between; gap: 12px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); padding-bottom: 8px; border-bottom: 1px solid var(--hair); margin-bottom: 10px;
}
.label-name { font-size: 22px; line-height: 1.2; margin: 0 0 8px; }
.label-name i { font-style: italic; }
.label-row { display: flex; justify-content: space-between; gap: 12px; font: 13px/1.5 var(--mono); border-top: 1px solid var(--hair); padding-top: 8px; margin-top: 8px; }
.label-row span:first-child { color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; padding-top: 2px; }
.label-row span:last-child { text-align: right; overflow-wrap: anywhere; }

.kicker { margin: 0 0 14px; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hair); display: inline-block; flex: none; }
.dot.live { background: var(--green); box-shadow: 0 0 0 0 rgba(0, 200, 120, .5); animation: pulse 2.4s ease-out infinite; }
.dot.stale { background: #d39b2a; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 200, 120, .45); } 70% { box-shadow: 0 0 0 7px rgba(0, 200, 120, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 200, 120, 0); } }
h1 { font-family: var(--display); font-size: clamp(48px, 7vw, 84px); letter-spacing: -.01em; line-height: .95; margin: 0 0 18px; }
.lede { font-size: 22px; line-height: 1.4; margin: 0 0 8px; max-width: 30em; }
.sub { margin: 0 0 26px; color: var(--ink-2); max-width: 34em; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 28px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stats > div { padding: 12px 12px 12px 0; }
.stats > div + div { padding-left: 12px; border-left: 1px solid var(--hair); }
.stats dt { font: 500 11px/1.25 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.stats dd { margin: 0; font: 500 20px/1.15 var(--mono); font-feature-settings: "tnum", "zero"; overflow-wrap: anywhere; }
.stats dd small { font-size: 12px; color: var(--ink-3); font-weight: 400; }

/* ---------------- mint box ---------------- */
.mintbox { border: 1px solid var(--rule); padding: 18px 20px 20px; outline-offset: 4px; }
.mintbox-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--hair); padding-bottom: 10px; margin-bottom: 14px; }
.mintbox-head h2 { font-size: 26px; }
.mintbox-head .fine { margin: 0; font-family: var(--mono); font-size: 13px; }
.mint-row { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; }
.qty-l, .total-l { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.stepper { display: inline-flex; border: 1px solid var(--rule); }
.stepper button { appearance: none; border: 0; background: var(--paper); width: 44px; height: 44px; font-size: 20px; cursor: pointer; }
.stepper button:hover:not(:disabled) { background: var(--paper-2); }
.stepper button:disabled { color: var(--hair); cursor: not-allowed; }
.stepper input { width: 56px; height: 44px; border: 0; border-left: 1px solid var(--hair); border-right: 1px solid var(--hair); text-align: center; font: 500 18px var(--mono); background: var(--paper); border-radius: 0; }
.total { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.total-v { font: 400 15px var(--mono); }
.total-v b { font-weight: 500; font-size: 24px; font-feature-settings: "tnum", "zero"; }
.strip { list-style: none; margin: 16px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; min-height: 44px; }
.strip li { width: 44px; position: relative; }
.strip img { width: 44px; height: 44px; border: 1px solid var(--hair); }
.strip li.more { width: auto; display: flex; align-items: center; padding: 0 6px; font: 12px var(--mono); color: var(--ink-2); }
.btn-mint {
  width: 100%; min-height: 54px; font-size: 19px; background: var(--green); border-color: #00a462; color: #04140c;
  letter-spacing: .01em;
}
.btn-mint:hover:not(:disabled) { background: #00b56c; }
.btn-mint:disabled { background: var(--paper-2); color: var(--ink-2); border-color: var(--hair); }
.done { border-top: 1px solid var(--hair); margin-top: 14px; padding-top: 12px; }
.done-h { margin: 0 0 8px; }
.done-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.done-list a { display: block; text-decoration: none; font: 12px var(--mono); color: var(--ink); }
.done-list img { width: 100%; border: 1px solid var(--hair); margin-bottom: 3px; }

/* ---------------- sections ---------------- */
.sec { padding-top: 40px; padding-bottom: 48px; border-top: 1px solid var(--rule); }
.sec-h { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.sec-n { font: 500 14px var(--mono); color: var(--ink-3); min-width: 2.2em; }
.sec-h h2 { font-size: clamp(30px, 4vw, 40px); }
.sec-lede { max-width: 42em; margin: 0 0 24px; color: var(--ink-2); }
.sec h3 { font-size: 21px; margin: 0 0 8px; }

/* ladder chart */
.chart { margin: 0; border: 1px solid var(--hair); padding: 12px 8px 10px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart figcaption { padding: 0 8px; }
.ax { font: 11px var(--mono); fill: var(--ink-2); }
.ax-t { font: 500 10.5px var(--mono); fill: var(--ink-3); letter-spacing: .06em; }
.grid-l { stroke: var(--hair-2); stroke-width: 1; }
.axis-l { stroke: var(--rule); stroke-width: 1; }
.price-l { stroke: var(--ink); stroke-width: 1.6; fill: none; }
.mk-l { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; }
.mk-t { font: 500 12px var(--mono); fill: var(--ink); }
.mk-bg { fill: var(--paper); }

/* ---------------- drawer ---------------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; margin: 0 0 6px; }
.f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.f > span { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.f input, .f select {
  height: 40px; border: 1px solid var(--rule); border-radius: 0; background: var(--paper); padding: 0 10px; font-size: 15px; min-width: 0;
}
.f select { padding-right: 28px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 15px) 17px, calc(100% - 10px) 17px; background-size: 5px 5px; background-repeat: no-repeat; max-width: 210px; }
.f-num input { width: 92px; font-family: var(--mono); }
.seg { display: inline-flex; border: 1px solid var(--rule); margin: 0; padding: 0; min-width: 0; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 0 12px; line-height: 38px; font-size: 15px; cursor: pointer; }
.seg label + label span { border-left: 1px solid var(--hair); }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 2px solid var(--link); outline-offset: -4px; }
.seg input:disabled + span { color: var(--ink-3); cursor: not-allowed; }
.count { margin: 12px 0 10px; font-family: var(--mono); font-size: 13px; }

.tray {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  border-top: 1px solid var(--rule); border-left: 1px solid var(--rule);
}
.tray li { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); min-width: 0; }
.tile {
  appearance: none; display: block; width: 100%; border: 0; background: var(--paper); padding: 10px 10px 9px; text-align: left; cursor: pointer;
}
.tile:hover { background: var(--paper-2); }
.tile:focus-visible { outline: 2px solid var(--link); outline-offset: -3px; }
.tile img { width: 100%; aspect-ratio: 1; border: 1px solid var(--hair-2); background: var(--paper-2); }
.tile .t-no { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-top: 7px; font: 500 12px/1.2 var(--mono); }
.tile .t-st { font: 12px/1.2 var(--mono); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .t-name { display: block; font: italic 13.5px/1.25 var(--serif); color: var(--ink-2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.is-minted .t-st { color: var(--ink); }
.tile.is-mine .t-st { color: var(--green-ink); font-weight: 500; }
.tile.is-next .t-no::after { content: ""; }
.tile .t-tag { font: 500 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--green-ink); }
.tray-empty { border: 1px solid var(--hair); padding: 24px; text-align: center; color: var(--ink-2); margin: 0; }
.more { text-align: center; margin-top: 18px; }

/* ---------------- eth ---------------- */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); border: 1px solid var(--rule); margin-bottom: 24px; }
.flow-in { padding: 18px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.flow-in .fine { margin: 0; }
.flow-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.flow-leg { padding: 18px; }
.flow-leg + .flow-leg { border-left: 1px solid var(--hair); }
.flow-leg p { margin: 6px 0 0; font-size: 16px; }
.flow-big { font: 500 30px/1 var(--mono); }
.ledger { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ledger > div { padding: 12px 12px 12px 0; }
.ledger > div + div { padding-left: 12px; border-left: 1px solid var(--hair); }
.ledger dt { font: 500 11px/1.25 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.ledger dd { margin: 0; font: 500 18px/1.2 var(--mono); font-feature-settings: "tnum", "zero"; overflow-wrap: anywhere; }
.buyback-row { margin: 10px 0 0; }
.buyback-row:has(> #buybackBtn[hidden]) .msg:empty { display: none; }
.tokenblock { border: 1px solid var(--rule); padding: 16px 18px; margin: 28px 0; }
.tokenblock p { margin: 0; }
.tokenblock p + p { margin-top: 8px; }
.ca-full .mono { font-size: 14px; overflow-wrap: anywhere; }
.cols2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-bottom: 16px; }
.plain { margin: 0; padding-left: 1.1em; }
.plain li { margin: 4px 0; }
.plain li::marker { color: var(--ink-3); }

/* ---------------- footer ---------------- */
.foot { border-top: 1px solid var(--rule); margin-top: 8px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 22px; padding-bottom: 32px; }
.mark-s { font-size: 18px; }
.foot .nav { margin-left: 0; }
.foot .fine { margin: 0; flex-basis: 100%; }

/* ---------------- dialog ---------------- */
.dlg {
  border: 1px solid var(--rule); padding: 0; max-width: min(860px, calc(100vw - 24px)); width: 100%; background: var(--paper); color: var(--ink);
  max-height: calc(100dvh - 24px); border-radius: 0;
}
.dlg::backdrop { background: rgba(20, 20, 20, .45); }
.dlg-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); position: relative; }
.dlg-x { position: absolute; top: 10px; right: 14px; font-size: 15px; z-index: 1; background: var(--paper); padding: 2px 4px; }
.dlg-fig { margin: 0; border-right: 1px solid var(--rule); }
.dlg-fig img { width: 100%; aspect-ratio: 1; }
.dlg-label { border: 0; padding: 18px 20px 18px; display: flex; flex-direction: column; }
.dlg-label .label-top { padding-right: 56px; }
.traits { width: 100%; border-collapse: collapse; font-size: 15px; margin: 4px 0 4px; }
.traits th { text-align: left; font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 6px 0; border-bottom: 1px solid var(--hair); }
.traits th:last-child, .traits td:last-child { text-align: right; }
.traits td { padding: 6px 0; border-bottom: 1px solid var(--hair-2); }
.traits td:first-child { color: var(--ink-2); font-size: 14px; width: 34%; }
.traits td:last-child { font: 13px var(--mono); }
.dlg-links { display: flex; gap: 18px; margin: 12px 0 0; }
.dlg-nav { display: flex; gap: 8px; margin-top: auto; padding-top: 14px; }
.dlg-nav .btn { flex: 1; }

/* ---------------- responsive ---------------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .specimen { max-width: 440px; }
  .stats, .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div:nth-child(3), .ledger > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats > div:nth-child(n+3), .ledger > div:nth-child(n+3) { border-top: 1px solid var(--hair); }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .top-in { gap: 10px 14px; }
  .mark { font-size: 21px; }
  .ca-chip { order: 3; flex: 1 1 auto; justify-content: flex-start; }
  .nav { order: 4; margin-left: 0; gap: 14px; font-size: 15px; }
  #connect { margin-left: auto; min-width: 0; }
  .hero { padding-top: 24px; padding-bottom: 36px; }
  .lede { font-size: 19px; }
  .mintbox { padding: 14px 14px 16px; }
  .total { margin-left: 0; align-items: flex-start; flex-basis: 100%; flex-direction: row; align-items: baseline; justify-content: space-between; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow-in { border-right: 0; border-bottom: 1px solid var(--rule); flex-direction: row; align-items: baseline; justify-content: space-between; }
  .flow-split { grid-template-columns: minmax(0, 1fr); }
  .flow-leg + .flow-leg { border-left: 0; border-top: 1px solid var(--hair); }
  .cols2 { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .tray { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile { padding: 7px 7px 7px; }
  .tile .t-no { flex-direction: column; gap: 2px; font-size: 11.5px; }
  .tile .t-st { font-size: 11px; }
  .tile .t-name { font-size: 12.5px; }
  .filters { gap: 10px; }
  .f { flex: 1 1 40%; }
  .f select { max-width: none; width: 100%; }
  .f-num { flex: 0 1 30%; }
  .f-num input { width: 100%; }
  .seg { flex: 1 1 100%; }
  .seg label { flex: 1; text-align: center; }
  .seg span { padding: 0 4px; }
  .dlg-in { grid-template-columns: minmax(0, 1fr); }
  .dlg-fig { border-right: 0; border-bottom: 1px solid var(--rule); }
  .dlg-fig img { max-height: 46dvh; width: auto; margin: 0 auto; }
  .dlg { overflow-y: auto; }
}
@media (max-width: 380px) {
  .ca-chip .ca-v { overflow: hidden; text-overflow: ellipsis; }
  .stats dd { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* additions */
.traits .cnt { color: var(--ink-3); }
.dlg-label .label-name { font-size: 26px; margin-top: 2px; }
.flow-leg .mono, #opsLink { overflow-wrap: anywhere; word-break: break-all; }
