/* 2 Bits. Built to the X avatar and the X banner: molten crystal on black, faceted, halftone lit.
   The rules this file obeys are measured in DESIGN-NOTES.md. Three things carry the whole look:
   black is the page, heat is the hierarchy, and every lit edge is one hot pixel on a cut corner. */

@font-face {
  font-family: "Array";
  src: url("/fonts/Array-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Array";
  src: url("/fonts/Array-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nippo";
  src: url("/fonts/Nippo-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nippo";
  src: url("/fonts/Nippo-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "0xProto";
  src: url("/fonts/0xProto-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "0xProto";
  src: url("/fonts/0xProto-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* every value measured off art/ref/avatar.jpg and art/ref/banner.jpg */
  --bg: #000000;
  --surface: #0b0705;
  --surface-2: #140a06;
  --surface-hot: #1d0a03;
  --line: #3a1c12;
  --line-2: #24110a;
  --accent: #ef3303;
  --accent-deep: #8e1c06;
  --gold: #ffb43c;
  --amber: #fc8a00;
  --hot: #fdf9d8;
  --text: #f3e9d2;
  --text-dim: #c8a890;
  --text-off: #8d7360;

  --f-display: "Array", "Arial Black", sans-serif;
  --f-text: "Nippo", system-ui, sans-serif;
  --f-mono: "0xProto", ui-monospace, "SF Mono", monospace;

  /* type scale: 12 14 16 20 24 32 48 72, nothing between */
  --t-micro: 12px;
  --t-small: 14px;
  --t-body: 16px;
  --t-lead: 20px;
  --t-head: 24px;
  --t-title: 32px;
  --t-fig: 48px;
  --t-display: 72px;

  /* space scale: 4 8 12 16 24 32 48 64, nothing between */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;

  --chamfer: 14px;
  --wrap: 1120px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0 0 var(--s8);
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-text);
  font-size: var(--t-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--accent);
  color: #0a0300;
}

/* ---------- shell ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--s6);
}

.section {
  margin-top: var(--s7);
}

.section--tight {
  margin-top: var(--s5);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: var(--accent);
  color: #0a0300;
  font-size: var(--t-small);
  font-weight: 500;
  padding: var(--s3) var(--s4);
}

.skip:focus {
  left: var(--s5);
  top: var(--s3);
}

/* ---------- the block: a lit facet, cut at two corners ---------- */

.block {
  position: relative;
  background: var(--line-2);
  padding: var(--s5);
  clip-path: polygon(
    var(--chamfer) 0,
    100% 0,
    100% calc(100% - var(--chamfer)),
    calc(100% - var(--chamfer)) 100%,
    0 100%,
    0 var(--chamfer)
  );
}

.block::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--surface);
  clip-path: polygon(
    calc(var(--chamfer) - 1px) 0,
    100% 0,
    100% calc(100% - var(--chamfer) + 1px),
    calc(100% - var(--chamfer) + 1px) 100%,
    0 100%,
    0 calc(var(--chamfer) - 1px)
  );
  z-index: 0;
}

/* the hot top edge every facet carries in both visuals */
.block::after {
  content: "";
  position: absolute;
  top: 1px;
  left: var(--chamfer);
  right: 1px;
  height: 1px;
  background: linear-gradient(90deg, var(--hot), rgba(253, 249, 216, 0.1) 58%, transparent);
  z-index: 1;
  pointer-events: none;
}

.block > * {
  position: relative;
  z-index: 1;
}

.block--hot {
  background: var(--accent-deep);
}

.block--figure {
  padding: var(--s6);
  display: flex;
  flex-direction: column;
}

.block--figure > p:last-child {
  margin-top: auto;
  padding-top: var(--s4);
}

.block--hot::before {
  background: linear-gradient(158deg, var(--surface-hot) 0%, #0a0402 72%);
}

.block--lit::before {
  background: linear-gradient(158deg, #190b05 0%, var(--surface) 68%);
}

.block--lit {
  background: var(--line);
}

/* ---------- labels, headings, figures ---------- */

.label {
  margin: 0 0 var(--s3);
  flex-wrap: wrap;
  font-family: var(--f-text);
  font-weight: 500;
  font-size: var(--t-micro);
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-off);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
}

.label__state {
  color: var(--amber);
  letter-spacing: 0.1em;
  text-align: right;
}

h1,
h2,
h3 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  color: var(--text);
  letter-spacing: 0.01em;
}

h2 {
  font-size: var(--t-head);
}

h3 {
  font-size: var(--t-lead);
}

p {
  margin: 0 0 var(--s4);
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--text);
}

.muted {
  color: var(--text-dim);
  font-size: var(--t-small);
  line-height: 1.5;
}

.note {
  color: var(--text-dim);
  font-size: var(--t-small);
  line-height: 1.5;
  margin-top: var(--s3);
}

.note--hot {
  color: var(--gold);
}

.fig {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: var(--t-fig);
  line-height: 1.15;
  color: var(--gold);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.fig--display {
  font-size: var(--t-display);
  color: var(--hot);
  text-shadow: 0 0 32px rgba(239, 51, 3, 0.55);
}

.fig--small {
  font-size: var(--t-head);
}

.unit {
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-off);
  margin-top: var(--s2);
}

.data {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
}

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

.masthead {
  padding-top: var(--s6);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s5);
  align-items: center;
}

.ident {
  display: flex;
  align-items: center;
  gap: var(--s4);
  min-width: 0;
}

.ident__mark {
  width: auto;
  height: 64px;
}

.ident__meta {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  padding: var(--s2) var(--s4) var(--s2) var(--s4);
  border-left: 1px solid var(--line);
}

.ident__ticker {
  font-family: var(--f-display);
  font-size: var(--t-body);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.ident__clock {
  font-family: var(--f-mono);
  font-size: var(--t-small);
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.schedule {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  gap: 0;
  border: 1px solid var(--line);
}

.schedule__cell {
  padding: var(--s3) var(--s4);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  min-width: 0;
}

.schedule__cell:last-child {
  border-right: 0;
}

.schedule__key {
  font-size: var(--t-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-off);
  white-space: nowrap;
}

.schedule__value {
  font-family: var(--f-mono);
  font-size: var(--t-small);
  color: var(--text);
  white-space: nowrap;
}

/* ---------- hero: the one lit object of the first screen ---------- */

.hero {
  margin-top: var(--s6);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--s6);
  align-items: center;
}

.hero__title {
  font-size: var(--t-title);
  line-height: 1.2;
}

.hero__title b {
  color: var(--gold);
  font-weight: 700;
}

.hero__text {
  margin-top: var(--s4);
  color: var(--text-dim);
  max-width: 52ch;
}

.hero__figure {
  position: relative;
  width: 360px;
  height: 360px;
  justify-self: end;
}

.hero__glow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__die {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
  object-fit: contain;
  mix-blend-mode: screen;
  z-index: 1;
}

.hero__caption {
  position: absolute;
  left: 0;
  bottom: -28px;
  z-index: 2;
  font-size: var(--t-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-off);
}

/* ---------- nav ---------- */

.nav {
  margin-top: var(--s7);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--s2);
}

.nav__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: var(--s3) var(--s4);
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text-dim);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--t-small);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: color 0.12s linear, background-color 0.12s linear, border-color 0.12s linear;
}

.nav__item:hover {
  color: var(--gold);
  border-color: var(--accent-deep);
  background: var(--surface-2);
}

.nav__item:active {
  background: var(--surface-hot);
}

.nav__item:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.nav__item[aria-current="page"] {
  background: linear-gradient(180deg, #2a0c03, #120502);
  border-color: var(--accent);
  color: var(--hot);
  box-shadow: inset 0 1px 0 var(--hot), 0 0 28px -10px var(--accent);
}

/* ---------- the day's track ---------- */

.track {
  padding-bottom: var(--s2);
}

.track__rail {
  position: relative;
  height: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  margin: var(--s4) 0 var(--s5);
}

.track__fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent) 60%, var(--gold));
  box-shadow: 0 0 18px -2px rgba(239, 51, 3, 0.8);
  transition: width 0.4s linear;
}

.track__dot {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  transform: rotate(45deg);
}

.track__dot[data-done="yes"] {
  background: var(--gold);
  border-color: var(--hot);
  box-shadow: 0 0 16px -2px var(--amber);
}

.track__stops {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.track__stop {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  min-width: 0;
}

.track__stop:nth-child(2) {
  align-items: center;
  text-align: center;
}

.track__stop:nth-child(3) {
  align-items: flex-end;
  text-align: right;
}

.track__time {
  font-family: var(--f-mono);
  font-size: var(--t-small);
  color: var(--text);
}

.track__stop[data-done="yes"] .track__time {
  color: var(--gold);
}

.track__name {
  font-size: var(--t-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-off);
  white-space: nowrap;
}

/* ---------- grids ---------- */

.grid {
  display: grid;
  gap: var(--s5);
}

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

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

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

.grid--seal {
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
}

/* ---------- question card ---------- */

.q {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.q__coins {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  margin-bottom: var(--s3);
  min-height: 48px;
}

.q__rule {
  height: 1px;
  background: var(--line-2);
  margin: 0 0 var(--s4);
}

.q__symbol {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--t-body);
  letter-spacing: 0.04em;
  color: var(--gold);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.q__cap {
  font-family: var(--f-mono);
  font-size: var(--t-small);
  color: var(--text-dim);
  white-space: nowrap;
}

.q__text {
  font-size: var(--t-body);
  line-height: 1.5;
  color: var(--text);
  margin: 0;
  min-height: 72px;
}

.q__why {
  margin-top: var(--s3);
  font-size: var(--t-small);
  line-height: 1.5;
  color: var(--text-off);
}

.q__foot {
  margin-top: auto;
  padding-top: var(--s4);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s4);
  font-size: var(--t-small);
  color: var(--text-dim);
  white-space: nowrap;
}

.q__foot > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.q__mine {
  color: var(--text);
  font-family: var(--f-mono);
}

/* ---------- badge ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s4);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.5;
  border: 1px solid var(--line);
  color: var(--text-dim);
  background: var(--surface-2);
}

.badge--open {
  color: #0a0300;
  background: var(--gold);
  border-color: var(--hot);
}

.badge--sealed {
  color: var(--hot);
  background: var(--accent-deep);
  border-color: var(--accent);
}

.badge--yes {
  color: #0a0300;
  background: var(--amber);
  border-color: var(--gold);
}

.badge--no,
.badge--void {
  color: var(--text-dim);
  background: var(--surface-2);
  border-color: var(--line);
}

/* ---------- the pot split ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: var(--s2);
  margin-top: var(--s4);
}

.split__part {
  padding: var(--s4) var(--s5);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--accent-deep);
}

.split__part:first-child {
  border-left-color: var(--gold);
}

.split__num {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: var(--t-lead);
  color: var(--text);
  line-height: 1.2;
}

.split__what {
  font-size: var(--t-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-off);
  margin-top: var(--s1);
}

/* ---------- tables ---------- */

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table.t {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-small);
}

table.t th {
  text-align: left;
  font-family: var(--f-text);
  font-weight: 500;
  font-size: var(--t-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-off);
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

table.t td {
  height: 44px;
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--line-2);
  color: var(--text);
  vertical-align: middle;
}

table.t tr:last-child td {
  border-bottom: 0;
}

table.t th.num,
table.t td.num {
  text-align: right;
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
}

table.t td.who {
  font-family: var(--f-mono);
  color: var(--text);
}

table.t tr[data-kind="bot"] td {
  color: var(--text-dim);
}

table.t tr[data-kind="bot"] td.who::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: var(--s2);
  background: var(--accent-deep);
  transform: rotate(45deg);
}

table.t tr[data-kind="you"] td {
  color: var(--gold);
}

table.t td.pos {
  color: var(--gold);
}

table.t td.neg {
  color: var(--text-off);
}

.empty {
  padding: var(--s5);
  text-align: center;
  color: var(--text-dim);
  font-size: var(--t-small);
  border: 1px dashed var(--line);
  background: var(--surface-2);
}

.empty strong {
  display: block;
  font-family: var(--f-display);
  font-size: var(--t-body);
  color: var(--text);
  margin-bottom: var(--s2);
  letter-spacing: 0.04em;
}

/* ---------- controls ---------- */

.row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s4);
}

.btn {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 48px;
  padding: var(--s3) var(--s5);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--t-small);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.12s linear, background-color 0.12s linear, border-color 0.12s linear;
}

.btn:hover:not(:disabled):not([aria-disabled="true"]) {
  color: var(--hot);
  border-color: var(--accent);
  background: var(--surface-hot);
}

.btn:active:not(:disabled):not([aria-disabled="true"]) {
  background: #250b03;
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  color: var(--text-off);
  border-color: var(--line-2);
  background: var(--surface);
  cursor: not-allowed;
}

.btn--solid {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0300;
}

.btn--solid:hover:not(:disabled) {
  background: var(--gold);
  border-color: var(--hot);
  color: #0a0300;
}

.btn--solid:disabled {
  background: var(--surface);
  border-color: var(--line-2);
  color: var(--text-off);
}

.btn > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn__mark {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: none;
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.field__label {
  font-size: var(--t-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-off);
}

input[type="text"] {
  min-height: 48px;
  padding: var(--s3) var(--s4);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--f-mono);
  font-size: var(--t-small);
  width: 100%;
}

input[type="text"]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 0;
  border-color: var(--accent);
}

input[type="text"]:disabled {
  color: var(--text-off);
  background: var(--surface);
}

/* the probability slider: a hot bead running a cold rail */
.prob {
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin-top: var(--s4);
}

.prob__value {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: var(--t-head);
  color: var(--gold);
  min-width: 72px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 24px;
  background: transparent;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: linear-gradient(90deg, var(--line), var(--accent-deep));
  border: 1px solid var(--line-2);
}

input[type="range"]::-moz-range-track {
  height: 6px;
  background: linear-gradient(90deg, var(--line), var(--accent-deep));
  border: 1px solid var(--line-2);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 24px;
  margin-top: -10px;
  background: var(--gold);
  border: 1px solid var(--hot);
  box-shadow: 0 0 16px -2px var(--amber);
}

input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 24px;
  border-radius: 0;
  background: var(--gold);
  border: 1px solid var(--hot);
}

input[type="range"]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

input[type="range"]:disabled {
  cursor: not-allowed;
}

input[type="range"]:disabled::-webkit-slider-thumb {
  background: var(--text-off);
  border-color: var(--line);
  box-shadow: none;
}

.prob__scale {
  display: flex;
  justify-content: space-between;
  font-size: var(--t-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-off);
  margin-top: var(--s2);
}

/* ---------- imprint: the contract and the four keys ---------- */

.imprint {
  margin-top: var(--s7);
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s5);
}

.mint {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s3);
  margin-top: var(--s3);
}

.mint__value {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: var(--s3) var(--s4);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: var(--t-small);
  line-height: 1.5;
  color: var(--text);
  white-space: normal;
  overflow-wrap: anywhere;
  user-select: all;
}

.mint__value[data-empty="yes"] {
  color: var(--text-off);
  user-select: none;
}

.keys {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s2);
  margin-top: var(--s3);
}

.keys .btn {
  padding-inline: var(--s4);
}

.risk {
  margin-top: var(--s4);
  font-size: var(--t-small);
  color: var(--text-dim);
}

/* ---------- prose ---------- */

.prose p {
  color: var(--text-dim);
  font-size: var(--t-body);
}

.prose ol,
.prose ul {
  margin: 0 0 var(--s4);
  padding-left: var(--s5);
  color: var(--text-dim);
}

.prose li {
  margin-bottom: var(--s2);
}

.prose b,
.prose strong {
  color: var(--text);
  font-weight: 500;
}

.formula {
  margin: var(--s4) 0;
  padding: var(--s4);
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  font-family: var(--f-mono);
  font-size: var(--t-small);
  color: var(--gold);
  overflow-x: auto;
}

.curve {
  width: 100%;
  height: 160px;
  margin-top: var(--s4);
  display: block;
}

.stack > * + * {
  margin-top: var(--s5);
}

/* ---------- widths ---------- */

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .hero__figure {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 960px) {
  .masthead {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .schedule {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule__cell:nth-child(2) {
    border-right: 0;
  }

  .schedule__cell:nth-child(1),
  .schedule__cell:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .grid--3,
  .grid--seal,
  .grid--pot {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .mint__value {
    white-space: normal;
    overflow-wrap: anywhere;
    overflow-x: visible;
    line-height: 1.5;
    padding-block: var(--s3);
  }

  .q__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s2);
    white-space: normal;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s7);
  }

  .hero__figure {
    width: 260px;
    height: 260px;
    justify-self: center;
  }

  .hero__caption {
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
  }

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

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

@media (max-width: 560px) {
  :root {
    --t-display: 48px;
    --t-fig: 32px;
    --t-title: 24px;
    --chamfer: 10px;
  }

  .wrap {
    padding-inline: var(--s5);
  }

  .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ident__mark {
    height: 40px;
  }

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

  .keys {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .block {
    padding: var(--s4);
  }

  .block--figure {
    padding: var(--s6);
  }

  .track__name {
    font-size: 12px;
  }
}

@media (max-width: 400px) {
  :root {
    --t-display: 32px;
  }

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

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