@font-face { font-family: Silk; src: url(silkscreen.ttf) format("truetype"); font-display: swap; }

:root {
  --paper: #efeadd; --paper2: #e4ddcb; --ink: #16141a; --ink2: #4a4650;
  --line: rgba(22, 20, 26, .10); --green: #24d05c; --green-dk: #11853a;
  --red: #e23a34; --card: #f8f5ec; --shadow: 6px 6px 0 var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 15px/1.55 "Space Mono", ui-monospace, monospace; overflow-x: hidden;
}
/* the height chart, behind everything */
.chart {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, transparent 0 46px, var(--line) 46px 50px),
    linear-gradient(to right, var(--line) 0 28px, transparent 28px calc(100% - 28px), var(--line) calc(100% - 28px));
  -webkit-mask: repeating-linear-gradient(to bottom, #000 0 50px);
}
a { color: inherit; }
h1, h2, h3, .logo, .btn, .chip, .seal, .tag, .facts b { font-family: Silk, monospace; font-weight: 400; letter-spacing: .02em; }
.mono { font-family: "Space Mono", monospace; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.gap { gap: 10px; }
[hidden] { display: none !important; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center;
  padding: 14px clamp(16px, 4vw, 48px); background: rgba(239, 234, 221, .92); backdrop-filter: blur(6px); border-bottom: 3px solid var(--ink); }
.logo { font-size: 24px; text-decoration: none; }
.logo.small { font-size: 18px; }
.nav nav { display: flex; align-items: center; gap: 18px; }
.nav nav a { text-decoration: none; font-weight: 700; font-size: 14px; }
.nav nav a:hover { text-decoration: underline; }

/* buttons */
.btn { appearance: none; border: 3px solid var(--ink); background: var(--green); color: var(--ink); padding: 10px 16px;
  font-size: 15px; cursor: pointer; box-shadow: 4px 4px 0 var(--ink); transition: transform .06s, box-shadow .06s; }
.btn:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { background: var(--paper2); color: var(--ink2); cursor: not-allowed; }
.btn.ghost { background: var(--card); }
.btn.big { width: 100%; font-size: 22px; padding: 16px; margin-top: 14px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 72px); align-items: center;
  padding: clamp(28px, 6vw, 72px) clamp(16px, 4vw, 48px) 40px; max-width: 1240px; margin: 0 auto; }
.kicker { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; }
.dot { width: 10px; height: 10px; background: var(--green); border: 2px solid var(--ink); display: inline-block; animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { background: var(--red); } }
h1 { font-size: clamp(44px, 7vw, 92px); line-height: .95; margin: 0 0 18px; }
.hl { display: inline-block; background: var(--ink); color: var(--green); padding: .04em .12em 0; margin-top: .08em; line-height: 1; }
.lede { font-size: 16px; max-width: 34em; margin: 0 0 26px; color: var(--ink2); }

.mintbox { background: var(--card); border: 3px solid var(--ink); box-shadow: var(--shadow); padding: 20px; max-width: 480px; }
.chip { border: 2px solid var(--ink); padding: 4px 10px; font-size: 13px; background: var(--paper2); }
.chip.live { background: var(--green); }
.chip.live::before { content: "● "; color: var(--red); }
.bar { height: 14px; border: 2px solid var(--ink); margin: 14px 0; background: var(--paper2); }
.bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--green) 0 8px, var(--green-dk) 8px 10px); transition: width .6s; }
.free { margin: 0 0 12px; padding: 8px 12px; border: 2px dashed var(--ink); font-size: 13px; background: var(--paper2); }
.free.on { background: #d8f7e1; border-style: solid; }
.countdown { font-family: Silk, monospace; font-size: 28px; text-align: center; margin: 4px 0 12px; }
.qty button { flex: 1; border: 2px solid var(--ink); background: var(--paper); padding: 8px 0; font: 700 15px "Space Mono", monospace; cursor: pointer; }
.qty button.on { background: var(--ink); color: var(--paper); }
.qty input { width: 70px; border: 2px solid var(--ink); padding: 8px; font: 700 15px "Space Mono", monospace; background: #fff; }
.total { margin-top: 14px; font-size: 16px; }
.total b { font-size: 20px; }
.fine { font-size: 12px; color: var(--ink2); margin: 10px 0 0; }

/* booth: the camera */
.booth { margin: 0; position: relative; justify-self: center; width: min(100%, 440px); border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink); background: var(--ink); cursor: pointer; }
.booth img { display: block; width: 100%; aspect-ratio: 1; image-rendering: pixelated; }
.booth figcaption { display: flex; justify-content: space-between; padding: 10px 14px; color: var(--paper); font-family: Silk, monospace; font-size: 18px; }
.booth figcaption b { color: var(--green); font-weight: 400; }
.flash { position: absolute; inset: 0 0 44px 0; background: #fff; opacity: 0; pointer-events: none; z-index: 2; }
.flash.go { animation: flash .5s ease-out; }
@keyframes flash { 0% { opacity: .95; } 100% { opacity: 0; } }

/* lineup strip */
.strip { overflow: hidden; border-block: 3px solid var(--ink); background: var(--ink); padding: 10px 0; }
.track { display: flex; gap: 10px; width: max-content; animation: slide 60s linear infinite; }
.track img { width: 128px; height: 128px; image-rendering: pixelated; border: 2px solid var(--paper); }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .track { animation: none; } .dot { animation: none; } }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1240px; margin: 40px auto; padding: 0 clamp(16px, 4vw, 48px); gap: 14px; }
.facts div { border: 3px solid var(--ink); background: var(--card); padding: 18px; box-shadow: 4px 4px 0 var(--ink); }
.facts b { display: block; font-size: 34px; }
.facts span { color: var(--ink2); }

section h2 { font-size: clamp(30px, 4vw, 46px); margin: 0 0 6px; }
.sub { color: var(--ink2); max-width: 46em; margin: 0 0 22px; }
.sheet, .files, .mine { max-width: 1240px; margin: 64px auto; padding: 0 clamp(16px, 4vw, 48px); }

.charges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.charge { background: #f4f0e6; border: 3px solid var(--ink); padding: 12px 14px; display: flex; justify-content: space-between; align-items: baseline; }
.charge b { font-family: Silk, monospace; font-weight: 400; font-size: 22px; }
.charge span { font-size: 12px; color: var(--ink2); }
.charge.rare { background: var(--ink); color: var(--paper); }
.charge.rare span { color: var(--green); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.file { background: #d9c9a3; border: 3px solid var(--ink); padding: 16px; position: relative; box-shadow: 5px 5px 0 var(--ink); }
.file::before { content: ""; position: absolute; top: -14px; left: 14px; width: 80px; height: 14px; background: #d9c9a3; border: 3px solid var(--ink); border-bottom: 0; }
.file header { display: flex; justify-content: space-between; align-items: center; }
.tag { font-size: 12px; }
.seal { font-size: 12px; background: var(--red); color: #fff; padding: 2px 8px; transform: rotate(-4deg); border: 2px solid var(--ink); }
.file.open .seal { background: var(--green); color: var(--ink); }
.file h3 { font-size: 26px; margin: 14px 0 8px; }
.file p { margin: 0 0 8px; font-size: 13px; }
.file .stat { font-weight: 700; }
.file:not(.open) h3, .file:not(.open) p:not(.stat) { filter: none; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.card { background: var(--card); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.card.sel { outline: 4px solid var(--red); outline-offset: 2px; }
.card .art { display: block; width: 100%; aspect-ratio: 1; image-rendering: pixelated; background: var(--paper2); }
.card .meta { padding: 8px 10px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 13px; }
.card .acts { display: flex; gap: 6px; padding: 0 10px 10px; flex-wrap: wrap; }
.card .acts button, .card .acts a { font: 700 12px "Space Mono", monospace; border: 2px solid var(--ink); background: var(--paper); padding: 4px 8px; cursor: pointer; text-decoration: none; }

.foot { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; border-top: 3px solid var(--ink);
  padding: 22px clamp(16px, 4vw, 48px); background: var(--paper2); font-size: 13px; }
.foot a { word-break: break-all; }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 140%); background: var(--ink); color: var(--paper);
  padding: 12px 18px; border: 3px solid var(--green); font-weight: 700; transition: transform .25s; z-index: 50; max-width: calc(100% - 32px); }
.toast.on { transform: translate(-50%, 0); }
.toast.bad { border-color: var(--red); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .booth { order: -1; width: min(100%, 340px); }
  .mintbox { max-width: none; }
  .cards { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .nav nav a:not(#navX) { display: none; }
  .cards { grid-template-columns: 1fr; }
  .facts b { font-size: 26px; }
  .track img { width: 96px; height: 96px; }
}
