@font-face { font-family: Dela; src: url(/fonts/dela-latin.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Dela; src: url(/fonts/dela-kana.woff2) format("woff2"); font-display: swap; unicode-range: U+3040-309F; }
@font-face { font-family: Plex; src: url(/fonts/plex-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Plex; src: url(/fonts/plex-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Plex; src: url(/fonts/plex-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #140c08;
  --ink-2: #21150e;
  --line: #4a3324;
  --orange: #ff6600;
  --cream: #f6efe4;
  --muted: #c2ae9a;
  --paper: #ead7ae;
  --paper-2: #dcc491;
  --type: #24170f;
  --type-2: #5a4632;
  --stamp: #a81f17;
  --display: Dela, Impact, sans-serif;
  --gutter: clamp(1rem, 4vw, 4rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--cream); font: 400 1rem/1.6 Plex, ui-monospace, monospace; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h2 { font: 400 clamp(2rem, 5.5vw, 4.5rem)/1.05 var(--display); }
h3 { font: 400 1.5rem/1.2 var(--display); }
a { color: inherit; text-underline-offset: 0.2em; }
code { font: inherit; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.folder :focus-visible { outline-color: var(--stamp); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; z-index: 10; background: var(--orange); color: var(--ink); padding: 0.5rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }

.btn { display: inline-block; padding: 0.75rem 1.25rem; border: 2px solid var(--cream); background: transparent; color: var(--cream); font: 700 0.875rem/1.25 Plex, monospace; text-decoration: none; text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer; transition: background-color .15s, color .15s; }
.btn:hover { background: var(--cream); color: var(--ink); }
.btn-solid { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn-solid:hover { background: var(--cream); border-color: var(--cream); }
.btn-wide { width: 100%; text-align: center; }
.btn:disabled { opacity: 0.6; cursor: wait; }
.copy { flex: none; padding: 0.25rem 0.75rem; border: 1px solid currentColor; background: none; color: inherit; font: 500 0.75rem/1.5 Plex, monospace; text-transform: uppercase; cursor: pointer; }
.copy:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }

/* Masthead */
.top { position: absolute; inset: 0 0 auto; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: 1rem var(--gutter) 2rem; background: linear-gradient(rgb(20 12 8 / 0.85), transparent); }
.top-mark { display: flex; align-items: center; gap: 0.75rem; font: 400 1.25rem var(--display); text-decoration: none; }
.top nav { display: flex; gap: clamp(1rem, 3vw, 2rem); font-size: 0.875rem; }
.top nav a { text-decoration: none; white-space: nowrap; }
@media (max-width: 26rem) { .top-mark span { display: none; } }
.top nav a:hover { color: var(--orange); }

/* Hero */
.hero { position: relative; min-height: min(100svh, 62vw + 12rem); display: flex; align-items: flex-end; padding: 6rem var(--gutter) 3rem; overflow: hidden; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% 30%; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 25%; background: linear-gradient(transparent, var(--ink)); }
.hero-copy { position: relative; z-index: 2; min-width: 0; }
.hero-lead { font-size: clamp(1rem, 1.6vw, 1.25rem); }
.hero h1 { display: flex; align-items: center; white-space: nowrap; font: 400 clamp(3.25rem, 10.5vw, 11rem)/1 var(--display); letter-spacing: -0.03em; margin: 0.25rem 0 0.75rem -0.02em; }
.glyphs { display: inline-block; margin-right: 0.08em; color: var(--orange); font-size: 0.8em; letter-spacing: 0; }
.glyphs i { display: inline-block; width: 1em; font-style: normal; text-align: center; }
.hero-sub { font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 500; line-height: 1.4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.ca { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 1.5rem; padding: 0.5rem 0.75rem; background: rgb(20 12 8 / 0.85); border: 1px solid var(--line); font-size: 0.875rem; width: fit-content; max-width: 100%; }
.ca-label { color: var(--orange); font-weight: 700; }

/* Case file */
.file-wrap { position: relative; overflow-x: clip; padding: 4rem var(--gutter) 6rem; }
.folder { max-width: 76rem; margin-inline: auto; color: var(--type); }
.folder a { color: var(--stamp); font-weight: 500; }
.folder-tab { display: inline-block; padding: 0.5rem 2.5rem 0.25rem 1.25rem; background: var(--paper-2); font-weight: 700; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.08em; clip-path: polygon(0 0, calc(100% - 1.25rem) 0, 100% 100%, 0 100%); }
.folder-tab span { font-family: var(--display); }
.folder-page { background: var(--paper); border-top: 0.5rem solid var(--paper-2); padding: clamp(1.25rem, 4vw, 3.5rem); }
.file-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; }
.record { position: relative; }
.record h2 { font-size: clamp(1.75rem, 3.6vw, 3rem); margin-bottom: 1.5rem; }
.fields > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid rgb(36 23 15 / 0.35); }
.fields dt { color: var(--type-2); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; align-self: center; }
.fields dd { font-weight: 500; }
.rd { position: relative; display: inline-block; height: 1.05em; vertical-align: -0.15em; background: var(--type); cursor: help; }
.rd-s { width: 3rem; } .rd-m { width: 6rem; margin-right: 0.125rem; } .rd-l { width: min(14rem, 100%); }
.rd:hover::after { content: "nice try"; position: absolute; inset: 0; color: var(--paper); font-size: 0.75rem; line-height: 1.4; text-align: center; white-space: nowrap; overflow: hidden; }
.stamp { width: fit-content; margin: 1.5rem 0 0 auto; padding: 0.5rem 1rem; border: 4px solid var(--stamp); color: var(--stamp); font: 400 clamp(1.25rem, 2.6vw, 2rem)/1.1 var(--display); text-transform: uppercase; text-align: center; transform: rotate(-7deg); opacity: 0.9; }
.stamp.armed { opacity: 0; transform: rotate(-7deg) scale(1.8); }
.stamp.hit { transition: transform .22s cubic-bezier(.3, 1.4, .5, 1), opacity .1s; opacity: 0.9; transform: rotate(-7deg) scale(1); }
.clipped { position: relative; align-self: start; transform: rotate(1.25deg); border: 0.5rem solid var(--cream); }
.clipped::before { content: ""; position: absolute; top: -1.25rem; left: 2rem; width: 1rem; height: 3rem; border: 3px solid #6f6a60; border-radius: 0.5rem; }

.statement { margin-top: clamp(2rem, 5vw, 3.5rem); padding-left: 1.25rem; border-left: 4px solid var(--type); max-width: 42rem; }
.statement p + p { margin-top: 0.5rem; }
.statement p:nth-child(6) { font-weight: 700; }
.statement-label { color: var(--type-2); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }

.exhibits { display: grid; gap: 1.5rem; margin-top: clamp(2rem, 5vw, 3.5rem); grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.exhibits figure { background: var(--cream); padding: 0.5rem 0.5rem 0.75rem; box-shadow: 0 1px 3px rgb(36 23 15 / 0.4); }
.exhibits li:nth-child(1) figure { transform: rotate(-1.5deg); }
.exhibits li:nth-child(2) figure { transform: rotate(1deg) translateY(0.5rem); }
.exhibits li:nth-child(3) figure { transform: rotate(-0.5deg); }
.exhibits figcaption { margin-top: 0.5rem; font-size: 0.8125rem; line-height: 1.4; }

.behind { display: grid; gap: 1.5rem; margin-top: clamp(2.5rem, 6vw, 4.5rem); padding-top: clamp(1.5rem, 4vw, 2.5rem); border-top: 2px solid var(--type); }
.behind h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 0.75rem; }
.behind p + p { margin-top: 0.75rem; }
.shush { position: absolute; right: max(0.5rem, calc(50% - 44rem)); bottom: -3rem; z-index: 2; width: clamp(6rem, 13vw, 11rem); pointer-events: none; }

/* Exchange */
.exchange { padding: 6rem var(--gutter); background: var(--ink-2); border-block: 1px solid var(--line); }
.exchange-head, .exchange-grid { max-width: 76rem; margin-inline: auto; }
.exchange-head p { margin-top: 0.75rem; max-width: 36rem; color: var(--muted); }
.exchange-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2.5rem; align-items: start; }
.slip { background: var(--ink); border: 1px solid var(--line); border-top: 4px solid var(--orange); padding: clamp(1rem, 3vw, 2rem); min-width: 0; }
.modes { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 1rem; border: 1px solid var(--line); }
.mode { padding: 0.75rem 0.5rem; border: 0; background: none; color: var(--muted); font: 700 0.8125rem/1.25 Plex, monospace; text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer; }
.mode:hover { color: var(--cream); }
.mode[aria-pressed="true"] { background: var(--orange); color: var(--ink); }
.route-note { margin-bottom: 1rem; font-size: 0.875rem; }
.leg { padding: 0.75rem 1rem; background: var(--ink-2); border: 1px solid var(--line); }
.leg:focus-within { border-color: var(--orange); }
.leg label, .leg-label { font-size: 0.75rem; font-weight: 500; color: var(--muted); }
.leg-row { display: flex; align-items: center; gap: 0.75rem; }
.leg input, .leg output { flex: 1; min-width: 0; padding: 0; border: 0; outline: 0; background: none; color: var(--cream); font: 400 clamp(1.5rem, 4vw, 2.25rem)/1.3 var(--display); font-variant-numeric: tabular-nums; }
.coin { flex: none; font: 700 1rem Plex, monospace; color: var(--orange); }
.flip { display: block; width: 2.75rem; height: 2.75rem; margin: -0.5rem auto; position: relative; z-index: 1; border: 2px solid var(--orange); background: var(--ink); color: var(--orange); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.flip:hover { background: var(--orange); color: var(--ink); }
.quote-line { min-height: 1.5em; margin: 0.75rem 0 1.25rem; font-size: 0.8125rem; color: var(--muted); }
.quote-line.bad { color: #ffb38a; font-weight: 500; }
.field { display: block; margin-bottom: 1rem; font-size: 0.8125rem; font-weight: 500; color: var(--muted); }
.field input { display: block; width: 100%; margin-top: 0.25rem; padding: 0.75rem; background: var(--ink-2); border: 1px solid var(--line); color: var(--cream); font: 400 0.875rem Plex, monospace; }
.field input:focus { outline: 0; border-color: var(--orange); }
.field small { display: block; margin-top: 0.25rem; font-size: 0.75rem; font-weight: 400; }
.form-error { margin-bottom: 1rem; padding: 0.5rem 0.75rem; border-left: 4px solid var(--orange); background: var(--ink-2); font-weight: 500; }

.exchange-side h3 { margin: 1.5rem 0 0.75rem; }
.exchange-side li { position: relative; padding-left: 1.25rem; margin-bottom: 0.75rem; font-size: 0.875rem; color: var(--muted); }
.exchange-side li::before { content: "\25AE"; position: absolute; left: 0; color: var(--orange); }

.order:focus { outline: none; }
.order-status { font: 400 clamp(1.25rem, 3vw, 1.75rem)/1.25 var(--display); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.25rem; margin: 1rem 0 1.5rem; font-size: 0.75rem; }
.steps li { padding-top: 0.5rem; border-top: 4px solid var(--line); color: var(--muted); }
.steps li.done, .steps li[aria-current] { border-color: var(--orange); color: var(--cream); }
.steps li.done::before { content: "\2713\00a0"; }
.steps li[aria-current] { font-weight: 700; }
.deposit { display: grid; gap: 1rem; padding: 1rem; border: 1px solid var(--orange); }
.deposit img { background: #fff; padding: 0.5rem; image-rendering: pixelated; }
.deposit-label { font-size: 0.75rem; color: var(--muted); }
.deposit-amount { margin-bottom: 0.75rem; font: 400 1.5rem/1.3 var(--display); color: var(--orange); }
.deposit-address { display: block; margin-bottom: 0.5rem; font-size: 0.875rem; font-weight: 500; }
.deposit-memo { margin-top: 0.75rem; font-weight: 700; }
.order-facts { margin: 1.25rem 0; font-size: 0.8125rem; }
.order-facts > div { display: grid; grid-template-columns: 7rem 1fr; gap: 0.75rem; padding: 0.25rem 0; }
.order-facts dt { color: var(--muted); }
.order-out { margin-bottom: 1rem; font-size: 0.875rem; }
.order-note { margin-bottom: 1.25rem; font-size: 0.8125rem; color: var(--muted); }

/* Holder roll */
.roll-band { position: relative; }
.roll-band img { width: 100%; min-height: 18rem; object-fit: cover; object-position: center 40%; }
.roll-band::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, var(--ink) 92%); }
.roll-head { position: absolute; z-index: 1; left: max(var(--gutter), calc(50% - 38rem)); right: var(--gutter); bottom: 0; }
.roll-head h2 { font-size: clamp(2.25rem, 8vw, 7rem); }
.roll-head p { margin-top: 1rem; font-weight: 500; }
.roll-body { max-width: calc(76rem + 2 * var(--gutter)); margin-inline: auto; padding: 2.5rem var(--gutter) 6rem; }
.stats { display: grid; gap: 1.5rem; align-items: end; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.stat-value { display: block; font: 400 clamp(3rem, 10vw, 7rem)/1 var(--display); color: var(--orange); font-variant-numeric: tabular-nums; }
.stat-label { font-weight: 500; }
.stat-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.5rem; }
.stat-list dt { font-size: 0.75rem; color: var(--muted); }
.stat-list dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.flag-warn { color: #ffb38a; }
.roll-message { padding: 2rem 0; }
.roll-message button { margin-top: 0.75rem; }
table { width: 100%; margin-top: 1.5rem; border-collapse: collapse; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
th { padding: 0.5rem 0.75rem 0.5rem 0; color: var(--muted); font-size: 0.75rem; font-weight: 500; text-align: left; }
td { padding: 0.5rem 0.75rem 0.5rem 0; border-top: 1px solid var(--line); }
td:first-child { color: var(--muted); width: 2.5rem; }
.num { text-align: right; }
.share-col { width: 38%; }
.tag { margin-left: 0.5rem; padding: 0 0.375rem; border: 1px solid var(--orange); color: var(--orange); font-size: 0.6875rem; white-space: nowrap; }
.share { display: flex; align-items: center; gap: 0.75rem; }
.share-track { flex: 1; height: 0.5rem; min-width: 1rem; }
.share-fill { display: block; height: 100%; min-width: 2px; background: var(--orange); border-radius: 0 4px 4px 0; }
.share-pct { flex: none; width: 3.75rem; text-align: right; }
#show-all { margin-top: 1.5rem; }
.roll-note { margin-top: 1.5rem; font-size: 0.75rem; color: var(--muted); }
.skeleton td { height: 2.5rem; color: transparent; }
.skeleton span { display: block; height: 0.75rem; background: var(--ink-2); }

.foot { padding: 3rem var(--gutter); border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--muted); }
.foot p:last-child { max-width: 44rem; }
.foot-mark { display: flex; align-items: center; margin-bottom: 0.75rem; color: var(--cream); font: 400 1.5rem var(--display); gap: 0.5rem; }

@media (min-width: 48rem) {
  .file-grid { grid-template-columns: 1.15fr 1fr; }
  .behind { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .deposit { grid-template-columns: 1fr auto; align-items: start; }
  .stats { grid-template-columns: 1fr 1.4fr; }
  .stat-list { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 62rem) {
  .exchange-grid { grid-template-columns: 1.2fr 1fr; }
}
@media (max-width: 40rem) {
  .hero h1 { font-size: 15vw; }
  .hide-sm { display: none; }
  .share-col { width: 45%; }
  .share-track { display: none; }
  .hero { display: block; min-height: 0; padding: 0 0 1rem; }
  .hero::after { content: none; }
  .hero-art { position: relative; height: auto; aspect-ratio: 1; object-position: 82% 20%; mask-image: linear-gradient(#000 78%, transparent); }
  .hero-copy { margin-top: -2.5rem; padding-inline: var(--gutter); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stamp.armed { opacity: 0.9; transform: rotate(-7deg); }
  .stamp.hit { transition: none; }
}
