/* Encyclopedia Degenica. Two inks on black, printed the way his cassette inlay is printed:
   a paper band with knocked out pill bars, one duotone plate, hairline rules, a barcode. */

@font-face { font-family: "Technor"; src: url("/fonts/Technor-Black.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Technor"; src: url("/fonts/Technor-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Supreme"; src: url("/fonts/Supreme-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Supreme"; src: url("/fonts/Supreme-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "RX100"; src: url("/fonts/RX100-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --ground: #050506;
  --paper: #F7F7FA;
  --ink: #8B5CF3;
  --ink-deep: #6A33E8;
  --dim: #9A9AA6;
  --inset: clamp(24px, 2.4vw, 32px);
  --seam: clamp(24px, 1.7vw, 28px);   /* the alley that keeps the tracklist off the ticker plate */
  --gutter: clamp(14px, 2vw, 40px);
  --display: "Technor", "Arial Black", sans-serif;
  --text: "Supreme", system-ui, sans-serif;
  --mono: "RX100", ui-monospace, "Cascadia Mono", monospace;
  --rule: 1px solid var(--ink);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { background: var(--ground); }

body {
  margin: 0;
  background: var(--ground);
  color: var(--paper);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

::selection { background: var(--ink); color: #000; }

a { color: inherit; }

.sheet {
  max-width: 1760px;
  margin: 0 auto;
  padding: var(--gutter) var(--gutter) calc(var(--gutter) * 2);
}

/* ---------- the masthead band ---------- */
.band {
  background: var(--paper);
  color: #000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas:
    "name tracks box"
    "bars tracks box";
  gap: clamp(14px, 1.4vw, 22px) var(--inset);
  padding: var(--inset);
  align-items: start;
}

.band-name { grid-area: name; min-width: 0; }

.band-kicker {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(16px, 1.15vw, 22px);
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.wordmark {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(50px, 7vw, 136px);
  line-height: 0.8;
  letter-spacing: -0.015em;
}

.band-bars { grid-area: bars; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; align-self: end; }

.bar {
  margin: 0;
  max-width: 100%;
  background: #000;
  color: var(--paper);
  /* a pill while the line fits (the browser clamps the radius to half the height), a rounded block once it
     wraps: a 999px corner on a six line bar eats the first and the last line of its own text */
  border-radius: 2.2em;
  padding: 0.52em 1.4em;
  min-width: 0;
  overflow-wrap: anywhere;
}

.bar-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(22px, 2vw, 38px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.3;
}

.bar-credit {
  font-family: var(--mono);
  font-size: clamp(16px, 0.95vw, 18px);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* the tracklist: a cassette lists its side A */
.tracklist { grid-area: tracks; align-self: stretch; padding-right: var(--seam); }
.tracklist ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-auto-rows: 1fr;      /* five equal tracks, top and bottom lines shared with the plate */
  align-content: stretch;
  height: 100%;
  gap: 2px;
  min-width: 230px;
}
.tracklist a {
  display: grid;
  grid-template-columns: 2.6em 1fr;
  align-items: center;
  gap: 0.6em;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(16px, 1.15vw, 20px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.62em 1.15em;
  border-radius: 999px;
  border-top: 1px solid rgba(0, 0, 0, 0.18);
}
.tracklist li:first-child a { border-top: 0; }
.tracklist .track-n { font-family: var(--mono); letter-spacing: 0.02em; color: var(--ink-deep); }
.tracklist a:hover { background: #000; color: var(--paper); }
.tracklist a:hover .track-n { color: var(--ink); }
.tracklist a[aria-current="page"] { background: var(--ink); color: #000; }
.tracklist a[aria-current="page"] .track-n { color: #000; }

.drawer-key { display: none; }

.ticker-box {
  grid-area: box;
  align-self: stretch;
  background: #000;
  color: var(--paper);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  padding: 20px 22px;
  min-width: 168px;
  font-family: var(--display);
  font-weight: 900;
  line-height: 0.95;
}
.ticker-mark { font-size: clamp(44px, 4.4vw, 86px); color: var(--ink); line-height: .9; }
.ticker-word {
  font-size: clamp(16px, 1.15vw, 21px);
  letter-spacing: 0.1em;
  writing-mode: horizontal-tb;
}

/* ---------- stations ---------- */
.station { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(26px, 3vw, 54px); padding-top: clamp(22px, 2.4vw, 40px); }

.block { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }

.block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 28px var(--inset);
  border-bottom: var(--rule);
}

.block-head h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(24px, 2.1vw, 38px);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.head-pill {
  margin: 0;
  background: var(--ink);
  color: #000;
  border-radius: 999px;
  padding: 0.58em 1.3em;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.label {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.row {
  display: grid;
  overflow-wrap: anywhere;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px 24px;
  padding: 16px var(--inset);
  border-bottom: 1px solid rgba(139, 92, 243, 0.35);
}

.row.cells { grid-template-columns: minmax(0, 14em) minmax(0, 1fr) auto; align-items: baseline; }
.row.pair { grid-template-columns: minmax(0, 15em) minmax(0, 1fr); align-items: baseline; }
.row.steps { grid-template-columns: 3.4em minmax(0, 1fr); align-items: baseline; }
.row.line { grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; }

.cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cols > * { min-width: 0; }
.cols > * + * { border-left: var(--rule); }

/* ---------- the plate: the only picture, and it is the subject's own numbers ---------- */
.plate-wrap { position: relative; }
.plate {
  display: block;
  width: 100%;
  height: clamp(185px, 23vh, 290px);
  background: #000;
  border-top: var(--rule);
  border-bottom: var(--rule);
}
.plate-caption {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 18px;
  padding: 14px var(--inset);
  border-bottom: var(--rule);
}
.plate-caption b { font-family: var(--mono); font-weight: 400; font-size: 18px; display: block; color: var(--paper); }
.plate-caption span { display: block; }

/* ---------- entries ---------- */
.entry-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(34px, 3.6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.entry-sub { margin: 6px 0 0; font-family: var(--mono); font-size: 18px; color: var(--ink); }

.head-right { display: flex; align-items: center; gap: 14px; margin: 0; }
.sealed { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.seal { display: block; width: 40px; height: 40px; }

.chip {
  display: inline-block;
  background: var(--ink);
  color: #000;
  border-radius: 999px;
  padding: 0.6em 1.2em;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.chip.quiet { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.chip.dead { background: var(--paper); color: #000; }

.infobox { display: grid; grid-template-columns: minmax(0, 1fr); }
.infobox .row { grid-template-columns: minmax(0, 11em) minmax(0, 1fr) auto; align-items: baseline; }
.infobox dt, .infobox .f-label {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
}
.infobox .f-value { font-family: var(--mono); font-size: 18px; overflow-wrap: anywhere; }

.row p { max-width: 86ch; margin: 0; }
.row p + p { margin-top: 10px; }

.prose { font-size: 19px; }
/* a sentence can carry a 44 character address: it breaks rather than pushing the page sideways */
.prose p { margin: 0 0 14px; max-width: 68ch; overflow-wrap: anywhere; }
.prose p:last-child { margin-bottom: 0; }

.note-ref {
  font-family: var(--mono);
  font-size: 16px;
  vertical-align: 0.4em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  padding: 0 0.15em;
}
.note-ref:hover { text-decoration: underline; }

.notes { display: grid; grid-template-columns: minmax(0, 1fr); }
.notes .row { grid-template-columns: 3.2em minmax(0, 7em) minmax(0, 1fr); }
.note-n { font-family: var(--mono); color: var(--ink); }
.note-kind {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 3px 12px;
  justify-self: start;
  color: var(--ink);
}
.notes a { color: var(--paper); overflow-wrap: anywhere; }

/* ---------- keys ---------- */
.keys { display: flex; flex-wrap: wrap; gap: 12px; padding: 18px var(--inset); }
.keys.flush { padding: 10px 0 0; }
.list-row { text-decoration: none; }
.list-row:hover { background: #101016; }

.key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--paper);
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms linear, color 120ms linear;
}
.key:hover { background: var(--ink); color: #000; }
.key.primary { background: var(--ink); color: #000; }
.key.primary:hover { background: var(--paper); border-color: var(--paper); }
.key[aria-disabled="true"], .key:disabled {
  border-color: #3A3A44;
  color: #6E6E7A;
  background: transparent;
  cursor: not-allowed;
}
.key img { width: 20px; height: 20px; display: block; }
.key:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

/* ---------- fields ---------- */
.field { display: grid; gap: 8px; padding: 16px var(--inset); }
.field label { font-family: var(--mono); font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.field input, .field select, .field textarea {
  max-width: 720px;
  min-height: 56px;
  padding: 14px 20px;
  background: #0E0E12;
  border: 1px solid #2A2A33;
  border-radius: 0;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 18px;
  width: 100%;
}
.field textarea { min-height: 110px; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }
.find { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }

.state { padding: 14px var(--inset); font-family: var(--mono); font-size: 17px; color: var(--ink); }
.state.bad { color: #FF8A8A; }
.state.good { color: var(--paper); }

/* ---------- the pressing block: the colophon that carries the contract ---------- */
.pressing { border-top: 2px solid var(--ink); }
.barcode-plate {
  background: var(--paper);
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  align-items: center;
  gap: var(--inset);
  padding: 18px var(--inset);
}
.barcode { display: block; width: 100%; height: 78px; background: var(--paper); }
.barcode-marks { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; color: #000; }
.barcode-digits { font-family: var(--mono); font-size: 20px; letter-spacing: 0.22em; }
.boxed {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid #000;
  padding: 8px 16px;
}
.mint-line {
  font-family: var(--mono);
  font-size: clamp(16px, 1.1vw, 19px);
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  user-select: all;
  padding: 16px var(--inset);
  border-bottom: 1px solid rgba(139, 92, 243, 0.35);
}

.split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split > div { padding: 24px var(--inset); }
.split > div + div { border-left: var(--rule); }
.split b { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(24px, 2.2vw, 40px); line-height: 1.15; color: var(--ink); }

.list { display: grid; grid-template-columns: minmax(0, 1fr); }
.list a { text-decoration: none; }
.list .row:hover { background: #101016; }

.t-right { text-align: right; }
.muted { color: var(--dim); }
.nowrap { white-space: nowrap; }

/* ---------- phone ---------- */
@media (max-width: 860px) {
  body { font-size: 17px; }
  /* the phone gets the wordmark at full width and the ticker as its own chip under it */
  .band {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "name"
      "box"
      "tracks"
      "bars";
  }
  .wordmark { font-size: clamp(42px, 15.5vw, 72px); }
  .ticker-box {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 18px 20px;
  }
  .ticker-mark { font-size: 20px; line-height: 1; }
  .ticker-word { font-size: 18px; }
  .tracklist { align-self: start; padding-right: 0; }
  .tracklist ol { display: none; min-width: 0; margin-top: 10px; height: auto; grid-auto-rows: auto; }
  .tracklist ol.open { display: grid; }
  .tracklist a { font-size: 18px; padding: 0.6em 0.9em; }
  .drawer-key {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    padding: 0 24px;
    background: #000;
    color: var(--paper);
    border: 0;
    border-radius: 999px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .cols > * + * { border-left: 0; border-top: var(--rule); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split > div + div { border-left: 0; border-top: var(--rule); }
  .infobox .row { grid-template-columns: minmax(0, 1fr) auto; }
  .row.cells, .row.pair, .row.line { grid-template-columns: minmax(0, 1fr); }
  .barcode-plate { grid-template-columns: minmax(0, 1fr); }
  .plate-caption { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
  .find { grid-template-columns: minmax(0, 1fr); }
}

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