/* Jacket. Layout: a full-bleed leather hero, then one left-aligned column of stitched sections; coins are cream woven
   tags with a chrome zipper for curve progress. Square-cut everywhere. One visual world (dark leather), so no themes. */
:root {
  --hide: #0f0d0c;      /* black leather */
  --hide-2: #181513;    /* a raised panel */
  --hide-3: #26211d;    /* inputs, rules */
  --stitch: #c9a96e;    /* waxed thread */
  --chrome: #cfd2d6;    /* zipper teeth */
  --label: #efe8dc;     /* woven tag */
  --ink: #17130f;       /* text on a tag */
  --text: #efe8dc;
  --muted: #a59b8c;
  --up: #86c35a;
  --down: #e0705a;
  --display: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: max(16px, env(safe-area-inset-left, 0px));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--hide); }
body { margin: 0; background: var(--hide); color: var(--text); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--stitch); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: var(--gut); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .9; letter-spacing: .005em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(40px, 6vw, 64px); }
.hint { color: var(--muted); font-size: 14px; margin: 0; }
[hidden] { display: none !important; }

/* header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px; padding: calc(10px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 10px var(--gut); background: rgba(15, 13, 12, .82); backdrop-filter: blur(10px); border-bottom: 1px dashed rgba(201, 169, 110, .35); }
.logo { display: flex; align-items: center; gap: 8px; font: 900 30px/1 var(--display); text-transform: uppercase; text-decoration: none; letter-spacing: .02em; }
.logo svg { width: 16px; height: 22px; fill: var(--chrome); }
.top nav { display: flex; gap: 22px; flex: 1; }
.top nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); }
.wallet { border: 1px solid var(--label); background: var(--label); color: var(--ink); padding: 8px 16px; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.wallet:hover { background: #fff; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; background: var(--label); color: var(--ink); border: 1px solid var(--label); font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: #fff; }
.btn.ghost { background: transparent; color: var(--text); border: 1px dashed var(--stitch); }
.btn.ghost:hover { background: rgba(201, 169, 110, .1); }
.btn.wide { width: 100%; }
.btn:disabled, .btn.off { opacity: .45; cursor: not-allowed; }
.mini { background: none; border: 1px solid var(--hide-3); color: var(--muted); padding: 2px 8px; font-size: 12px; cursor: pointer; }

/* hero */
.hero { position: relative; min-height: min(720px, 86vh); display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px dashed rgba(201, 169, 110, .35); }
#hide { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: radial-gradient(ellipse at 60% 30%, #2a2420, var(--hide) 70%); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 13, 12, .62), rgba(15, 13, 12, .18) 55%, transparent 80%); pointer-events: none; }
.hero-in { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(76px, 15vw, 196px); text-shadow: 0 2px 30px rgba(0, 0, 0, .5); }
.lede { font-size: clamp(18px, 2.2vw, 22px); max-width: 34ch; margin: 22px 0 28px; color: #ddd4c6; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.figures { display: flex; gap: 40px; flex-wrap: wrap; margin: 44px 0 0; }
.figures div { display: grid; gap: 2px; }
.figures dt { font-size: 13px; color: var(--muted); font-weight: 600; }
.figures dd { margin: 0; font: 800 30px/1 var(--display); font-variant-numeric: tabular-nums; }
.up { color: var(--up); } .down { color: var(--down); }
.figures .up, .figures .down { font-size: 20px; }

/* sections */
.section { padding-top: 72px; padding-bottom: 24px; }
.board-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.sort, .sides, .slip { display: flex; }
.sort button, .sides button { background: none; border: 1px solid var(--hide-3); padding: 8px 16px; font-weight: 700; color: var(--muted); cursor: pointer; }
.sort button + button, .sides button + button { border-left: 0; }
.sort button[aria-pressed="true"], .sides button[aria-pressed="true"] { background: var(--label); color: var(--ink); border-color: var(--label); }

/* coin tags: woven labels */
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.tag { position: relative; display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 16px 18px 26px; background: var(--label); color: var(--ink); text-decoration: none;
  background-image: repeating-linear-gradient(0deg, rgba(23, 19, 15, .035) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(23, 19, 15, .03) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 0 4px var(--label), inset 0 0 0 5px rgba(23, 19, 15, .16); transition: transform .15s; }
.tag:hover { transform: translateY(-2px); }
.tag-img { width: 64px; height: 64px; background: var(--hide-3); overflow: hidden; display: grid; place-items: center; }
.tag-img img { width: 100%; height: 100%; object-fit: cover; }
.noimg { font: 900 26px/1 var(--display); color: var(--label); text-transform: uppercase; }
.tag-body { min-width: 0; }
.tag-body b { display: block; font-size: 17px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag-body small, .tag-cap small { color: #6d604e; font-size: 13px; }
.tag-cap { text-align: right; display: grid; }
.tag-cap em { font: 800 26px/1 var(--display); font-style: normal; font-variant-numeric: tabular-nums; }
.tag .zip { position: absolute; left: 18px; right: 18px; bottom: 10px; }
.tag.big { grid-template-columns: 84px 1fr auto; padding: 22px 22px 34px; }
.tag.big .tag-img { width: 84px; height: 84px; }
.tag.big .zip { left: 22px; right: 22px; bottom: 14px; }

/* the zipper: closed teeth (chrome) to the progress, open track after, a pull at the join */
.zip { position: relative; height: 8px; background: repeating-linear-gradient(90deg, rgba(23, 19, 15, .28) 0 3px, transparent 3px 6px); }
.zip i { position: absolute; left: 0; top: 0; bottom: 0; background: repeating-linear-gradient(90deg, #8d9196 0 2px, var(--chrome) 2px 4px, #8d9196 4px 6px); }
.zip b { position: absolute; top: -4px; width: 10px; height: 16px; margin-left: -5px; background: #a9adb2; box-shadow: inset 0 0 0 2px #7d8186; }
.zipwrap .zip { height: 12px; background: repeating-linear-gradient(90deg, rgba(239, 232, 220, .16) 0 4px, transparent 4px 8px); }
.zipwrap .zip b { top: -5px; height: 22px; width: 12px; }

.empty { padding: 48px 0; display: grid; gap: 12px; justify-items: start; }
.empty h3 { font-size: 40px; }
.empty p { margin: 0; color: var(--muted); }

/* how it works */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 1px dashed var(--stitch); }
.steps li { counter-increment: s; padding: 22px 26px 26px 0; color: #d6cdbf; max-width: 38ch; }
.steps li::before { content: counter(s); display: block; font: 900 54px/1 var(--display); color: var(--stitch); margin-bottom: 10px; }
.steps b { color: var(--text); }
.burnline { margin: 26px 0 0; color: var(--muted); font-size: 15px; }

/* faq */
.faq h2 { margin-bottom: 18px; }
.faq details { border-top: 1px dashed rgba(201, 169, 110, .4); padding: 16px 0; max-width: 760px; }
.faq details:last-child { border-bottom: 1px dashed rgba(201, 169, 110, .4); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--stitch); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 10px 0 0; color: #d6cdbf; max-width: 62ch; }

.foot { padding-top: 64px; padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 13px; }

/* forms */
.sub main { padding-top: 40px; }
.launch h1 { font-size: clamp(56px, 9vw, 104px); }
.launch .lede { margin: 16px 0 36px; }
.launch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
#launch { display: grid; gap: 20px; max-width: 640px; }
.field { display: grid; gap: 8px; }
.field > span { font-weight: 700; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field small, .links small { color: var(--muted); font-weight: 400; }
.field input:not([type=range]), .field textarea, .buyrow { background: var(--hide-2); border: 1px solid var(--hide-3); padding: 12px 14px; width: 100%; border-radius: 0; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--stitch); outline: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.drop { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; padding: 16px; border: 1px dashed var(--stitch); cursor: pointer; }
.drop.over { background: rgba(201, 169, 110, .08); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-img { width: 96px; height: 96px; background: var(--hide-2) repeating-linear-gradient(45deg, transparent 0 8px, rgba(201, 169, 110, .08) 8px 9px); display: block; overflow: hidden; }
.drop-img img { width: 100%; height: 100%; object-fit: cover; }
.drop-text { display: grid; gap: 4px; }
.drop-text small { color: var(--muted); }
.links summary { cursor: pointer; font-weight: 700; }
.links[open] { display: grid; gap: 14px; }
.links[open] summary { margin-bottom: 4px; }
output { font: 800 22px/1 var(--display); color: var(--stitch); }
input[type=range] { width: 100%; accent-color: var(--stitch); }
.buyrow { display: flex; align-items: center; gap: 10px; padding: 0 14px 0 0; }
.buyrow input { border: 0 !important; background: none !important; flex: 1; min-width: 0; }
.buyrow em { font-style: normal; color: var(--muted); font-weight: 700; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button, .slip button { background: none; border: 1px solid var(--hide-3); padding: 6px 12px; cursor: pointer; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.chips button:hover, .slip button:hover { border-color: var(--stitch); color: var(--text); }
.slip { gap: 6px; align-items: center; flex-wrap: wrap; }
.slip span { color: var(--muted); font-size: 14px; margin-right: 4px; }
.slip button[aria-pressed="true"] { border-color: var(--stitch); color: var(--text); }
.status { margin: 0; padding: 12px 14px; background: var(--hide-2); border-left: 3px solid var(--stitch); font-size: 15px; overflow-wrap: anywhere; }
.status.err { border-left-color: var(--down); }
.status.ok { border-left-color: var(--up); }
.status a { color: var(--stitch); }
.preview { position: sticky; top: 90px; display: grid; gap: 10px; }
.preview-label { color: var(--muted); font-size: 13px; font-weight: 600; }

/* coin page */
.coin-head { display: flex; gap: 22px; align-items: center; margin-bottom: 30px; flex-wrap: wrap; }
.tag-img.xl { width: 112px; height: 112px; flex: none; }
.coin-head h1 { font-size: clamp(48px, 8vw, 88px); overflow-wrap: anywhere; }
.coin-sym { margin: 8px 0 6px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-weight: 700; font-size: 18px; }
.mint { color: var(--muted); font-weight: 500; font-size: 14px; display: inline-flex; gap: 8px; align-items: center; }
.coin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.coin-main { display: grid; gap: 24px; min-width: 0; }
.cap span { display: block; color: var(--muted); font-weight: 600; font-size: 14px; }
.cap strong { font: 900 clamp(56px, 8vw, 84px)/1 var(--display); font-variant-numeric: tabular-nums; }
.zipwrap { display: grid; gap: 10px; }
.chartbox { position: relative; height: 260px; border: 1px solid var(--hide-3); background: var(--hide-2); }
.chartbox canvas { width: 100%; height: 100%; display: block; }
.chartbox .hint { position: absolute; inset: 0; display: grid; place-items: center; }
.desc { margin: 0; color: #d6cdbf; max-width: 62ch; overflow-wrap: anywhere; }
.links-row { display: flex; gap: 10px; flex-wrap: wrap; }
.links-row a { border: 1px solid var(--hide-3); padding: 8px 14px; text-decoration: none; font-weight: 600; font-size: 14px; color: #d6cdbf; }
.links-row a:hover { border-color: var(--stitch); color: var(--text); }
.coin-side { display: grid; gap: 16px; position: sticky; top: 90px; }
.panel { background: var(--hide-2); border: 1px solid var(--hide-3); padding: 20px; display: grid; gap: 14px; box-shadow: inset 0 0 0 5px var(--hide-2), inset 0 0 0 6px rgba(201, 169, 110, .28); }
.sides button { flex: 1; }
.fees h2 { font-size: 26px; }
.fees strong { font: 800 30px/1 var(--display); font-variant-numeric: tabular-nums; }

/* wallet picker */
.picker { border: 1px dashed var(--stitch); background: var(--hide-2); color: var(--text); padding: 24px; width: min(380px, calc(100vw - 32px)); }
.picker::backdrop { background: rgba(0, 0, 0, .6); }
.picker h3 { font-size: 34px; margin-bottom: 16px; }
.picker button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; margin-bottom: 8px; background: var(--hide); border: 1px solid var(--hide-3); cursor: pointer; font-weight: 600; text-align: left; }
.picker button:hover { border-color: var(--stitch); }
.picker button img { width: 26px; height: 26px; }
.picker .ghost { justify-content: center; color: var(--muted); }
.picker .err { color: var(--down); }

/* intro video */
.replay { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; background: none; border: 1px solid var(--hide-3); color: var(--muted); cursor: pointer; flex: none; }
.replay:hover { color: var(--text); border-color: var(--stitch); }
.replay svg { width: 18px; height: 18px; }
.intro { padding: 0; border: 0; background: transparent; width: min(1040px, calc(100vw - 32px)); max-width: none; overflow: visible; }
.intro::backdrop { background: rgba(8, 7, 6, .92); }
.intro-frame { position: relative; border: 1px dashed var(--stitch); background: #000; }
.intro video { display: block; width: 100%; height: auto; aspect-ratio: 640 / 352; max-height: calc(100vh - 140px); object-fit: contain; background: #000; cursor: pointer; }
.intro-close { position: absolute; right: -1px; bottom: calc(100% + 10px); width: 40px; height: 40px; display: grid; place-items: center; padding: 0; background: var(--label); color: var(--ink); border: 0; cursor: pointer; }
.intro-close svg { width: 18px; height: 18px; }
.intro-sound { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; background: var(--label); color: var(--ink); border: 0; font-weight: 700; white-space: nowrap; cursor: pointer; }
.intro-sound svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .launch-grid, .coin-grid { grid-template-columns: 1fr; }
  .preview, .coin-side { position: static; }
  .preview { order: -1; }
}
@media (max-width: 560px) {
  .top { gap: 14px; }
  .top nav { gap: 14px; }
  .top nav a { font-size: 14px; }
  .logo { font-size: 26px; }
  .wallet { padding: 7px 10px; font-size: 14px; }
  .replay { width: 32px; height: 32px; }
  .intro-sound { padding: 10px 16px; bottom: 10px; }
  .hero-in { padding-top: 90px; padding-bottom: 40px; }
  .figures { gap: 24px; }
  .row2 { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr; }
  .tag { grid-template-columns: 52px 1fr auto; gap: 12px; padding: 14px 14px 24px; }
  .tag-img { width: 52px; height: 52px; }
  .tag .zip { left: 14px; right: 14px; }
  .tag-cap em { font-size: 22px; }
}
@media (max-width: 400px) {
  .top nav a[href="/#coins"] { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tag, .btn { transition: none; } .tag:hover { transform: none; } }
