/* StonkSecretaries — billboard.
   The collection's own language: warm ink on near-black, hairline rules,
   rubber-stamp red. No art is revealed; the file is redacted until mint. */

/* Liquidation Void is the base palette, not a JS preference — the page is the
   right colour before a single script runs. */
:root {
  --paper:     #08070c;
  --surface:   #131020;
  --surface-2: #1c1730;
  --ink:       #ddd6f0;
  --ink-soft:  #8078a0;
  --rule:      #2e2745;
  --stamp:     #7b6fd6;
  --figure:    #3a3560;
  --mono: ui-monospace, "SF Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  padding: clamp(1.2rem, 5vw, 3rem);
}

.board { width: min(100%, 640px); }
.tok { color: var(--stamp); }
code { font: inherit; font-size: .8em; overflow-wrap: anywhere; }

/* ---------- masthead ---------- */

.top { text-align: center; margin-bottom: clamp(1.8rem, 6vw, 3rem); }

#wordmark {
  display: block;
  margin: 0 auto;
  image-rendering: pixelated;
  max-width: 100%;
  height: auto;
}

.tagline {
  margin: 1.4rem auto 0;
  max-width: 42ch;
  color: var(--ink-soft);
  font-size: clamp(.8rem, 2.6vw, .92rem);
}

/* ---------- redacted file ---------- */

.file {
  position: relative;
  border: 1px solid var(--rule);
  background: var(--surface);
  padding: 1.2rem;
}

.file__label {
  margin: 0 0 1rem;
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.file__body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 1.6rem);
  align-items: start;
}

.file__photo {
  width: clamp(120px, 30vw, 168px);
  aspect-ratio: 1;
  background: var(--surface-2);
  border: 1px solid var(--rule);
  /* The silhouette is inline SVG filled with currentColor, so it recolours
     with the scheme instead of being baked into a PNG. */
  color: var(--figure);
}

.file__photo svg { display: block; width: 100%; height: 100%; }

/* One grid for the whole list, not one per row. Sizing the label column with
   `auto` inside each row made every row measure independently, so the short
   labels collapsed to the same floor and "Background" — the only one wider
   than it — pushed its bar out of line by 6px. `display: contents` lifts the
   dt/dd pairs into the shared grid so every bar starts on the same edge. */
.file__rows {
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .3rem .8rem;
  align-content: start;
  align-items: center;
}

.file__rows > div { display: contents; }

.file__rows dt {
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.file__rows dd { margin: 0; }

/* A redaction bar, not a loading skeleton — it does not animate, because it
   is not going to finish. */
.bar {
  display: block;
  width: var(--w);
  height: 11px;
  background: repeating-linear-gradient(
    90deg, var(--ink-soft) 0 3px, transparent 3px 4px
  );
  opacity: .45;
}

.file__stamp {
  position: absolute;
  right: -.4rem;
  bottom: .6rem;
  margin: 0;
  padding: .15rem .6rem;
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--stamp);
  border: 2px solid var(--stamp);
  transform: rotate(-8deg);
  opacity: .85;
}

/* On a narrow screen the rows are short and there is no empty corner for the
   stamp to sit in, so it drops into flow instead of overlapping the last row. */
@media (max-width: 560px) {
  .file__stamp {
    position: static;
    display: table;
    margin: 1.1rem auto 0;
    transform: rotate(-3deg);
  }
}

/* ---------- the swap ---------- */
/* Token on one side, secretary on the other, arrows pointing both ways. The
   two-way-ness is the whole product, so it gets the space rather than a
   price row that reads as a one-directional mint. */

.swap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border: 1px solid var(--rule);
  border-top: 0;
}

.swap__side {
  padding: 1.1rem .8rem;
  text-align: center;
  min-width: 0;
}

.swap__amt {
  margin: 0;
  font-size: clamp(1.05rem, 3.4vw, 1.5rem);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.swap__what {
  margin: .1rem 0 0;
  font-size: clamp(.72rem, 2.2vw, .84rem);
}

.swap__std {
  margin: .45rem 0 0;
  font-size: .6rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.swap__arrows {
  display: grid;
  gap: .1rem;
  padding: 0 clamp(.5rem, 3vw, 1.4rem);
  color: var(--stamp);
  font-size: clamp(1rem, 3vw, 1.35rem);
  line-height: 1;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  align-self: stretch;
  align-content: center;
  text-align: center;
}

/* Stack on narrow screens; the arrows turn to point up and down so the
   relationship still reads. */
@media (max-width: 460px) {
  .swap { grid-template-columns: 1fr; }
  .swap__arrows {
    grid-auto-flow: column;
    justify-content: center;
    gap: .6rem;
    padding: .4rem 0;
    border-left: 0;
    border-right: 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
  }
  .swap__arrows span { display: inline-block; transform: rotate(90deg); }
}

/* ---------- status ---------- */

.status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin: 1.6rem 0 0;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.dot {
  width: 7px; height: 7px;
  background: var(--stamp);
  border-radius: 50%;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .2 } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none } }

/* ---------- footer ---------- */

.foot { margin-top: clamp(2rem, 7vw, 3.5rem); }

.foot dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .9rem 1.6rem;
  margin: 0 0 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}

/* A 42-character address does not fit a half-width column at most viewport
   sizes, and breaking it mid-string strands a character on its own line. Give
   it the full row. */
.foot .wide { grid-column: 1 / -1; }

.foot dt {
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.foot dd { margin: .2rem 0 0; }

.small { margin: 0; color: var(--ink-soft); font-size: .7rem; }
