/* ── Museum of Untraceable Crime ─────────────────────────────── */

@font-face { font-family: 'Vinherbiete'; src: url('assets/fonts/Vinherbiete-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Vinherbiete'; src: url('assets/fonts/Vinherbiete-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --bg: #0e0e0e;
  --panel: #141414;
  --panel-hover: #1c1c1c;
  --line: #2a2a2a;
  --line-2: #3a3a3a;
  --text: #f4f4f4;
  --text-2: #dcdcdc;
  --text-3: #cfcfcf;
  --muted: #8a8a8a;
  --muted-2: #9a9a9a;
  --orange: #ff6600;
  --orange-soft: #ff8c33;
  --orange-dim: #7a3300;
  --orange-num: #a06030;
  --orange-bg: #150e08;
  --mono: 'Share Tech Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --pixel: 'Vinherbiete', 'Share Tech Mono', monospace;
  --doto: 'Doto', monospace;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body {
  color: var(--text);
  font-family: var(--mono);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--orange); text-decoration: none; border-bottom: 1px solid var(--orange-dim); }
a:hover { color: #fff; border-bottom-color: var(--orange); }
::selection { background: var(--orange); color: var(--bg); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.display {
  font-family: var(--pixel);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.accent { color: var(--orange); }
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.body {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-2);
  text-wrap: pretty;
}
.callout {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--orange-soft);
  border-left: 2px solid var(--orange);
  padding-left: 14px;
  max-width: 46ch;
  text-wrap: pretty;
}
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(20px, 3vw, 44px);
}
.two-col .callout { margin-top: 0; max-width: none; }

.wrap { max-width: 1200px; margin: 0 auto; }

/* Hazard stripe */
.hazard {
  height: 10px;
  background: repeating-linear-gradient(135deg, var(--orange) 0 12px, var(--bg) 12px 24px);
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero { padding: clamp(24px, 4vw, 56px) clamp(18px, 4vw, 48px) clamp(36px, 6vw, 80px); }

.topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.topbar-brand { display: flex; align-items: center; gap: 10px; }

h1.display {
  line-height: 1.02;
  font-size: clamp(30px, 7.2vw, 104px);
  margin: clamp(28px, 5vw, 56px) 0 0;
  text-wrap: balance;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 3vw, 44px);
  margin-top: clamp(30px, 5vw, 56px);
  align-items: start;
}
.lede {
  margin: 0;
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.75;
  color: var(--text-3);
  max-width: 48ch;
  text-wrap: pretty;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-actions:empty { display: none; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 12px 18px;
  border: 1px solid var(--orange);
  color: var(--orange);
  background: transparent;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--orange); color: var(--bg); border-color: var(--orange); }
.btn-primary { background: var(--orange); color: var(--bg); }
.btn-primary:hover { background: #fff; border-color: #fff; }
.btn-ghost { border-color: var(--line-2); color: var(--text-3); }
.btn-ghost:hover { border-color: var(--orange); background: transparent; color: var(--orange); }

/* Token card */
.token-card {
  border: 1px solid var(--orange);
  background: var(--panel);
  padding: clamp(18px, 2.5vw, 26px);
}
.token-ticker {
  font-size: clamp(38px, 5.6vw, 66px);
  line-height: 1.05;
  margin: 10px 0 6px;
  color: var(--orange);
}
.token-pair {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-3);
  flex-wrap: wrap;
}
.chip {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line-2);
  padding: 4px 10px;
}
.chip strong { color: var(--text); }
.token-ca-label { margin-top: 18px; letter-spacing: 0.2em; }
.token-ca {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
}
.token-ca code {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  word-break: break-all;
  color: var(--orange);
  flex: 1;
  min-width: 0;
}
.copy-btn {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 9px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--text-3);
  cursor: pointer;
  flex: none;
}
.copy-btn:hover { border-color: var(--orange); color: var(--orange); }
.copy-btn.is-copied { border-color: var(--orange); color: var(--bg); background: var(--orange); }

/* ── Main / wings ─────────────────────────────────────────────── */
.main { padding: clamp(36px, 6vw, 84px) clamp(18px, 4vw, 48px); }
.main > section + section { margin-top: clamp(48px, 7vw, 96px); }

.wing-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 12px;
}
.wing-head h2 {
  font-size: clamp(19px, 3vw, 38px);
  margin: 0;
  line-height: 1.1;
}
.wing-note {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.exhibits {
  display: grid;
  gap: 1px;
  background: var(--line);
  margin-top: clamp(24px, 3.5vw, 44px);
  border: 1px solid var(--line);
}
.exhibit { background: var(--panel); }

.plaque {
  all: unset;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: clamp(12px, 2.2vw, 26px);
  align-items: center;
  width: 100%;
  padding: clamp(18px, 2.6vw, 30px) clamp(16px, 3vw, 34px);
  cursor: pointer;
  box-sizing: border-box;
  transition: background .15s;
}
.plaque:hover, .plaque:focus-visible { background: var(--panel-hover); }
.plaque:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }

.plaque-num {
  font-family: var(--doto);
  font-weight: 900;
  font-size: clamp(16px, 2vw, 24px);
  color: var(--orange-num);
  line-height: 1;
  min-width: 2.4ch;
}
.plaque-mark {
  width: clamp(44px, 5vw, 62px);
  height: clamp(44px, 5vw, 62px);
  border: 1px solid var(--line-2);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--pixel);
  font-size: clamp(15px, 1.8vw, 22px);
  color: var(--orange);
  letter-spacing: 0.02em;
}
.plaque-title {
  display: block;
  font-family: var(--pixel);
  text-transform: uppercase;
  font-size: clamp(16px, 2.2vw, 27px);
  line-height: 1.2;
  color: var(--text);
}
.plaque-meta {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.plaque-glyph { font-size: 20px; color: var(--orange); line-height: 1; }

.casefile {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .32s ease;
}
.casefile > div { overflow: hidden; }
.exhibit.is-open .casefile { grid-template-rows: 1fr; }

.casefile-inner {
  margin: 0 clamp(16px, 3vw, 34px);
  padding: clamp(20px, 3vw, 30px) 0 clamp(24px, 3.5vw, 36px);
  border-top: 1px dashed var(--line-2);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(20px, 3vw, 36px);
}
.casefile-inner .body { line-height: 1.8; }
.casefile-inner .callout { max-width: none; line-height: 1.75; }

.seal-row {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 16px;
}
.seal-row img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.7);
  flex: none;
}
.seal-row span {
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.facts {
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px 18px;
  font-size: 12px;
}
.facts dt {
  text-transform: uppercase;
  color: var(--muted-2);
  letter-spacing: 0.14em;
  font-size: 10px;
}
.facts dd { margin: 0; color: var(--text); }
.facts dd.status { color: var(--orange); }

/* Annex + notice */
.annex {
  border: 1px solid var(--line-2);
  padding: clamp(22px, 4vw, 44px);
  background: var(--panel);
}
.annex[hidden] { display: none; }
.annex h3 {
  font-size: clamp(19px, 2.8vw, 34px);
  margin: 12px 0 0;
  line-height: 1.15;
}
.annex .two-col { margin-top: 20px; }

.notice {
  border: 1px solid var(--orange);
  padding: clamp(22px, 4vw, 44px);
  background: var(--orange-bg);
}
.notice .eyebrow { font-size: 10px; }
.notice .two-col { margin-top: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ── Footer ───────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); background: var(--panel); }
.footer-inner {
  padding: clamp(24px, 4vw, 44px) clamp(18px, 4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .display {
  font-size: clamp(14px, 2vw, 22px);
  color: var(--orange);
  line-height: 1.2;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Lenis smooth scroll (https://lenis.darkroom.engineering) */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis [data-lenis-prevent], .lenis [data-lenis-prevent-wheel], .lenis [data-lenis-prevent-touch] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
.lenis.lenis-autoToggle { transition-property: overflow; transition-duration: 1ms; transition-behavior: allow-discrete; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  background: var(--orange);
  color: var(--bg);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 10px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 10;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 560px) {
  .plaque { grid-template-columns: auto 1fr auto; }
  .plaque-num { display: none; }
  .topbar span:nth-child(3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .casefile, .toast, .plaque, .btn { transition: none; }
}
