@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/geist-400.woff2") format("woff2");
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/geist-500.woff2") format("woff2");
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/geist-600.woff2") format("woff2");
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/geist-mono-400.woff2") format("woff2");
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/geist-mono-500.woff2") format("woff2");
}

:root {
  --bg: #eeeeec;
  --fg: #0a0a0a;
  --muted: #6b6b6b;
  --faint: #a3a3a3;
  --line: rgba(0, 0, 0, 0.09);
  --line-strong: rgba(0, 0, 0, 0.18);
  --surface: #e6e6e3;
  --raised: #fff;
  --raised-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
  --empty: #e2e2df;
  --c: #00b5e2;
  --m: #e4007c;
  --y: #ffd100;
  --k: #0a0a0a;
  --r: 6px;
  --r-lg: 12px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--fg);
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

html:has(body[data-format="liquidated"]) {
  color-scheme: dark;
  background: #0a0a0a;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font: 400 15px/1.55 var(--sans);
  letter-spacing: -0.005em;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

body[data-format="liquidated"] {
  --bg: #0a0a0a;
  --fg: #f5f5f5;
  --muted: #8f8f8f;
  --faint: #5c5c5c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --surface: #141414;
  --raised: #1f1f1f;
  --raised-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --empty: #161616;
  --k: #f5f5f5;
  background: var(--bg);
  color: var(--fg);
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

a {
  color: inherit;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s var(--ease), color 0.15s var(--ease);
}

a:hover { text-decoration-color: currentColor; }

button { font: inherit; }

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  transition: background-color 0.35s var(--ease);
}

.top::after {
  content: "";
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 0;
  height: 1px;
  background: var(--line);
}

.top-inner {
  max-width: 1120px;
  min-height: 64px;
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: grid;
  grid-template-columns: auto minmax(280px, 460px) auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.logo-copy {
  display: grid;
  gap: 1px;
}

.logo-word {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.host,
.mast-meta,
.kicker,
.seed,
.legend,
.facts,
.ledger,
.formats button,
.release-line,
.plate-wrap figcaption,
.noscript {
  font-family: var(--mono);
}

.host {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
}

.mark {
  display: block;
  color: var(--fg);
}

.mark .rise {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: mark-rise 0.5s var(--ease) backwards;
  animation-delay: var(--d, 0ms);
}

.mast-meta {
  margin: 0;
  justify-self: end;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.top-ca {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter) 12px;
}

.ca {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--r);
  background: var(--raised);
  color: var(--fg);
  box-shadow: var(--raised-shadow);
  text-align: left;
  cursor: pointer;
  transition: scale 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.ca:hover { box-shadow: 0 0 0 1px var(--line-strong); }
.ca:active { scale: 0.98; }

.ca:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 2px;
}

.ca-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ca-value {
  flex: 1 1 220px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0;
  word-break: break-all;
}

.ca-action {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.formats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 3px;
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  justify-self: center;
  width: 100%;
}

.thumb {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: calc(var(--r) - 2px);
  background: var(--raised);
  box-shadow: var(--raised-shadow);
  pointer-events: none;
  transition: transform 0.28s var(--ease), width 0.28s var(--ease), height 0.28s var(--ease), background-color 0.35s var(--ease);
}

.formats button {
  position: relative;
  z-index: 1;
  height: 34px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: calc(var(--r) - 2px);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color 0.15s var(--ease), scale 0.15s var(--ease), background-color 0.2s var(--ease);
}

.formats button[aria-pressed="true"] {
  color: var(--fg);
  background: var(--raised);
  box-shadow: var(--raised-shadow);
}

.formats.ready button[aria-pressed="true"] {
  background: transparent;
  box-shadow: none;
}

.formats button:hover { color: var(--fg); }

.formats button:active { scale: 0.96; }

.formats button:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 2px;
}

main {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px var(--gutter) 80px;
  display: grid;
  gap: 16px;
  min-width: 0;
}

.card {
  min-width: 0;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--raised-shadow);
  animation: rise-in 0.45s var(--ease) both;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.2s var(--ease), color 0.35s var(--ease);
}

main .card:nth-child(1) { animation-delay: 0.04s; }
main .card:nth-child(2) { animation-delay: 0.08s; }
main .card:nth-child(3) { animation-delay: 0.12s; }
main .card:nth-child(4) { animation-delay: 0.16s; }
main .card:nth-child(5) { animation-delay: 0.2s; }
main .card:nth-child(6) { animation-delay: 0.24s; }
main .card:nth-child(7) { animation-delay: 0.28s; }

.card:hover { box-shadow: 0 0 0 1px var(--line-strong); }

.kicker {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 {
  max-width: 16ch;
  margin-bottom: 14px;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 8px;
  font-size: 20px;
}

p { text-wrap: pretty; }

.lead,
.statement p,
.summed p,
.foot p,
.note,
.card > p {
  max-width: 68ch;
  margin: 12px 0 0;
}

.affiliation {
  margin: 16px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.plate-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.seed {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
  word-break: break-all;
}

.dither {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  height: 14px;
  margin: 4px 0 16px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--empty);
}

.dither i {
  position: relative;
  display: block;
  background: var(--empty);
}

.plates {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: flex-start;
}

body[data-format="issued"] .plate-wrap:not(:first-child) { display: none; }

.plate-wrap { margin: 0; }

.plate-wrap figcaption {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.plate {
  display: grid;
  grid-template-columns: repeat(8, 16px);
  grid-template-rows: repeat(8, 16px);
  gap: 2px;
  width: max-content;
}

.cell {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 2px;
  background: var(--empty);
  overflow: hidden;
}

.ink {
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
}

body[data-format="liquidated"] .ink { mix-blend-mode: normal; }

.ink.c,
.swatch.c,
.split .c { background: var(--c); }

.ink.m,
.swatch.m,
.split .m { background: var(--m); }

.ink.y,
.swatch.y,
.split .y { background: var(--y); }

.ink.k,
.swatch.k { background: var(--k); }

.plate-band.swap .plates,
.plate-band.swap .release,
.plate-band.swap .dither {
  animation: fade-in 0.35s var(--ease);
}

.scroll {
  max-width: 100%;
  overflow-x: auto;
}

.ledger {
  width: 100%;
  margin-top: 8px;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.channels { margin-top: 16px; }

.ledger th,
.ledger td {
  padding: 10px 8px;
  border: 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
  vertical-align: top;
}

.ledger thead th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.ledger tbody tr:last-child th,
.ledger tbody tr:last-child td { border-bottom: 0; }

.channels td:last-child { letter-spacing: 0.03em; }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.legend li,
.ledger th .swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex: none;
}

.note { color: var(--muted); }

.summed {
  display: none;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

body[data-format="consolidated"] .summed { display: block; }

.release { display: none; }

body[data-format="liquidated"] .plates,
body[data-format="liquidated"] .note,
body[data-format="liquidated"] .legend,
body[data-format="liquidated"] .channels,
body[data-format="liquidated"] .dither,
body[data-format="liquidated"] .scroll:has(.channels) { display: none; }

body[data-format="liquidated"] .release { display: block; }

.release-line {
  margin: 0;
  padding: 8px 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.release-facts { margin-top: 8px; }

.facts {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 12px;
}

.facts div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
}

.facts dt {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.facts dd { margin: 0; }

.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cols-3 div {
  display: block;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: color-mix(in srgb, var(--fg) 3%, transparent);
}

.cols-3 dd { margin-top: 6px; }

.split {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  height: 10px;
  margin-top: 18px;
  border-radius: 999px;
  overflow: hidden;
}

.split i {
  display: block;
  transform-origin: left center;
  animation: bar-in 0.45s var(--ease) both;
}

.split i:nth-child(1) { animation-delay: 0.05s; }
.split i:nth-child(2) { animation-delay: 0.08s; }
.split i:nth-child(3) { animation-delay: 0.11s; }
.split i:nth-child(4) { animation-delay: 0.14s; }
.split i:nth-child(5) { animation-delay: 0.17s; }
.split i:nth-child(6) { animation-delay: 0.2s; }
.split i:nth-child(7) { animation-delay: 0.23s; }
.split i:nth-child(8) { animation-delay: 0.26s; }
.split i:nth-child(9) { animation-delay: 0.29s; }
.split i:nth-child(10) { animation-delay: 0.32s; }

.value { word-break: break-all; }

.copy {
  margin-left: 10px;
  height: 26px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--r);
  background: var(--surface);
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  cursor: pointer;
  vertical-align: middle;
  transition: scale 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.copy:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.copy:active { scale: 0.96; }

.copy:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 2px;
}

.foot p {
  margin: 0;
  color: var(--muted);
}

.noscript {
  max-width: 1120px;
  margin: 0 auto 24px;
  padding: 0 var(--gutter);
  color: var(--muted);
  font-size: 12px;
}

@keyframes mark-rise {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes rise-in {
  from { opacity: 0; translate: 0 6px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bar-in {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 800px) {
  .top-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mast-meta {
    justify-self: start;
    white-space: normal;
  }

  .formats { justify-self: stretch; }

  .formats button {
    padding: 0 4px;
    font-size: 12px;
  }

  h1 { max-width: none; }

  .plate-head { display: block; }

  .seed {
    margin-top: 8px;
    text-align: left;
  }

  .cols-3 { grid-template-columns: 1fr; }

  .ledger { min-width: 560px; }

  .card { padding: 16px; }
}

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