/* Newsreader: Google's Latin subset at weight 300, with the optical-size axis.
   Geist: Latin subset plus arrows (Google's Latin subset has no ← → ↗), weights 400 to 600. */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/newsreader.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/newsreader-italic.woff2") format("woff2");
}

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

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

:root {
  color-scheme: dark;
  --bg: #12110f;
  --bg-raised: #1a1916;
  --line: #2a2723;
  --line-strong: #3d3933;
  --ink: #ece6da;
  --ink-2: #a39b8e;
  --ink-3: #6f685e;
  --paper: #ece6da;
  --accent: #d0613c;
  --fill: rgb(236 230 218 / 0.07);
  --fill-hover: rgb(236 230 218 / 0.13);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --control: 44px;
  --gutter: clamp(20px, 4vw, 48px);
  --max: 1360px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  font-size: 0.9375rem;
  line-height: 1.5;
}

main {
  flex: 1;
}

h1,
h2,
p,
dl,
dd,
figure,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

[tabindex="-1"]:focus {
  outline: none;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* Mono is for numbers, IDs and dates. */
.mono {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.label,
.field-label,
.facts dt,
.contracts dt,
.masthead-note {
  color: var(--ink-2);
  font-size: 0.8125rem;
}

.muted {
  color: var(--ink-2);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Masthead */

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px 20px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark::before {
  content: "";
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  margin-right: 0.5em;
  background: var(--accent);
  vertical-align: 0.1em;
}

/* Controls: one height; primary is paper, secondary a soft fill, quiet is text only. */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--control);
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  background: var(--fill);
  color: var(--ink);
  font: 500 0.875rem/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s ease-out,
    color 0.2s ease-out;
}

.button:hover:not(:disabled) {
  background: var(--fill-hover);
}

.button:focus-visible {
  outline-offset: 2px;
}

.button-primary {
  background: var(--paper);
  color: var(--bg);
}

.button-primary:hover:not(:disabled) {
  background: #fff;
}

.button-quiet {
  padding-inline: 12px;
  background: transparent;
  color: var(--ink-2);
}

.button-quiet:hover:not(:disabled) {
  background: transparent;
  color: var(--ink);
}

.button:disabled {
  opacity: 0.4;
  cursor: default;
}

.button-square {
  width: var(--control);
  padding: 0;
  font-size: 1rem;
}

/* The square echoes the tile checkboxes and fills while select mode is on. */
.button-toggle::before {
  content: "";
  width: 8px;
  height: 8px;
  box-shadow: inset 0 0 0 1px currentColor;
}

.button-toggle[aria-pressed="true"]::before {
  background: var(--accent);
  box-shadow: none;
}

input,
select {
  height: var(--control);
  min-width: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: var(--fill);
  box-shadow: inset 0 -1px 0 var(--line-strong);
  color: var(--ink);
  font: 0.9375rem var(--sans);
  transition: box-shadow 0.2s ease-out;
}

input[type="search"] {
  appearance: none;
}

.mono-input {
  font: 0.875rem var(--mono);
}

input::placeholder {
  color: var(--ink-3);
  opacity: 1;
}

input:hover,
select:hover {
  box-shadow: inset 0 -1px 0 var(--ink-3);
}

input:focus,
select:focus {
  box-shadow: inset 0 -1px 0 var(--ink);
}

select {
  appearance: none;
  padding-right: 36px;
  background: var(--fill)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a39b8e'/%3E%3C/svg%3E")
    no-repeat right 14px center / 10px 6px;
  cursor: pointer;
}

select option {
  background: var(--bg);
  color: var(--ink);
}

/* Home */

.hero {
  position: relative;
}

.hero-stage {
  position: relative;
  height: clamp(460px, 62vh, 700px);
  overflow: hidden;
}

.hero-stage canvas,
.stage-gl canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* The copy sits over the far end of the wall, where the fog has already darkened it. */
.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
}

.hero-copy > * {
  max-width: 30rem;
  pointer-events: auto;
}

.hero-stage:has(.hero-static) {
  height: auto;
}

.hero:has(.hero-static) .hero-copy {
  position: static;
  padding-top: clamp(40px, 6vw, 72px);
}

.hero-static {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 20px);
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin: 24px auto 0;
}

.hero-static li:nth-child(n + 7) {
  display: none;
}

.hero-static a {
  display: block;
  aspect-ratio: 1;
  background: var(--bg-raised);
}

.hero-static img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.display {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 1.4rem + 3.4vw, 4.5rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.display-sm {
  font-size: clamp(2rem, 1.5rem + 1.8vw, 3.25rem);
}

.lede {
  max-width: 33em;
  margin-top: 28px;
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.5;
  text-wrap: pretty;
}

/* Wall label: names the print under the pointer, like a caption beside a hung work. */
.hero-label {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
  gap: 4px 16px;
  min-height: 1.6rem;
  margin-top: 14px;
  color: var(--ink-2);
}

.hero-label-title {
  color: var(--ink);
  font: italic 300 1.0625rem var(--serif);
}

/* The two collections, each a doorway to its gallery. */
.entrances {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px clamp(24px, 4vw, 64px);
  padding-top: clamp(40px, 6vw, 88px);
}

.entrance {
  display: grid;
  text-decoration: none;
}

.entrance-art {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 16px);
  padding: 10px 10px 0 0;
}

.entrance-name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.entrance-name::after {
  content: "→" / "";
  color: var(--ink-3);
  font: 400 1.25rem var(--sans);
  transition:
    color 0.3s ease-out,
    transform 0.6s var(--ease);
}

.entrance:hover .entrance-name::after {
  color: var(--accent);
  transform: translateX(6px);
}

.entrance:hover .art img {
  transform: scale(1.025);
}

.entrance-meta {
  margin-top: 8px;
  color: var(--ink-2);
}

.home-tools {
  padding-block: clamp(64px, 8vw, 112px) clamp(72px, 9vw, 128px);
}

.finder-title {
  margin-bottom: 24px;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 300;
  letter-spacing: -0.01em;
}

.finder-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 28px clamp(24px, 3vw, 48px);
}

.field {
  display: grid;
  align-content: start;
  gap: 10px;
}

.field-wallet {
  flex: 0 0 auto;
}

.field-address {
  flex: 1.4 1 26rem;
}

.field-token {
  flex: 1 1 22rem;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.5rem;
  gap: 8px;
}

.field-row-token {
  grid-template-columns: 8.5rem minmax(0, 1fr) 5.5rem;
}

/* Wallet picker: a popover under the Connect button where anchor positioning exists, centred elsewhere. */
.picker {
  min-width: 16rem;
  padding: 8px;
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  color: var(--ink);
}

.picker::backdrop {
  background: rgb(0 0 0 / 0.35);
}

@supports (anchor-name: --connect) {
  #connect-wallet {
    anchor-name: --connect;
  }

  .picker {
    position-anchor: --connect;
    inset: auto;
    top: anchor(bottom);
    left: anchor(left);
    margin: 8px 0 0;
  }

  .picker::backdrop {
    background: none;
  }
}

.picker-title {
  padding: 6px 10px 10px;
  color: var(--ink-2);
  font-size: 0.8125rem;
}

.picker-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: var(--control);
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 500 0.9375rem var(--sans);
  text-align: left;
  cursor: pointer;
}

.picker-option:hover {
  background: var(--fill);
}

.picker-option:focus-visible {
  outline-offset: -2px;
}

.picker-option img {
  width: 24px;
  height: 24px;
}

/* Galleries */

.view-head {
  display: grid;
  justify-items: start;
  padding-block: clamp(28px, 5vw, 56px) 24px;
}

.view-head .label {
  margin-bottom: 10px;
}

.head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.switch {
  display: inline-flex;
  margin-bottom: 20px;
  background: var(--fill);
}

.switch a {
  display: inline-flex;
  align-items: center;
  height: var(--control);
  padding: 0 18px;
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color 0.2s ease-out,
    color 0.2s ease-out;
}

.switch a:hover {
  color: var(--ink);
}

.switch a[aria-current="page"] {
  background: var(--fill-hover);
  color: var(--ink);
}

.switch a:focus-visible {
  outline-offset: 0;
}

.address {
  margin-top: 14px;
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

#collection-source {
  margin-top: 4px;
  font-size: 0.8125rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}

.browse-tools {
  display: flex;
  flex: 1 1 22rem;
  gap: 8px;
  max-width: 34rem;
}

.search {
  flex: 1;
}

.view-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Column counts stay at 2 to 6: gallery.js renders 60 tiles per chunk, and each must fill whole rows. */
.gallery {
  --cols: 2;
  --row-gap: clamp(24px, 3vw, 44px);
  padding: 10px 10px clamp(72px, 9vw, 120px) 0;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: var(--row-gap) clamp(12px, 1.8vw, 28px);
}

.chunk + .chunk {
  margin-top: var(--row-gap);
}

@media (min-width: 560px) {
  .gallery {
    --cols: 3;
  }
}

@media (min-width: 900px) {
  .gallery {
    --cols: 4;
  }
}

@media (min-width: 1200px) {
  .gallery {
    --cols: 5;
  }
}

@media (min-width: 1440px) {
  .gallery {
    --cols: 6;
  }
}

.tile {
  position: relative;
}

.tile-link {
  display: grid;
  gap: 12px;
  text-decoration: none;
}

.art {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-raised);
  animation: breathe 2.6s ease-in-out infinite;
}

.art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition:
    opacity 0.9s var(--ease),
    transform 1.4s var(--ease);
}

.art.is-loaded,
.art.is-failed,
.art.is-blank,
.art:has(.art-note) {
  animation: none;
}

.art.is-loaded img {
  opacity: 1;
}

.art.is-failed::after,
.art-note {
  content: "Image unavailable";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  color: var(--ink-2);
  font: italic 300 0.9375rem var(--serif);
  text-align: center;
}

.art.is-blank {
  background: var(--paper);
}

.art.is-blank .art-note {
  color: #6b645a;
}

/* Offset hairline sheets behind a story cover: a stack you can count at a glance. */
.art.is-stack {
  box-shadow:
    5px -5px 0 -1px var(--bg),
    5px -5px 0 0 var(--line-strong),
    10px -10px 0 -2px var(--bg),
    10px -10px 0 -1px var(--line-strong);
}

.tile-link:hover .art img {
  transform: scale(1.025);
}

/* Captions are one fixed-height line, so every tile has the same height (gallery.js relies on it). */
.tile-title {
  height: 1.4em;
  overflow: hidden;
  font: italic 300 1.0625rem/1.4 var(--serif);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tile-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  height: 1rem;
  margin-top: -8px;
  overflow: hidden;
  color: var(--ink-2);
  line-height: 1rem;
}

@keyframes breathe {
  50% {
    background-color: #211f1b;
  }
}

/* A 22 px hairline square inside a 44 px hit area, over the corner of the art. */
.tile-check {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 11px solid transparent;
  background: rgb(18 17 15 / 0.6) padding-box;
  box-shadow: inset 0 0 0 1px var(--ink);
  appearance: none;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.tile-check:checked {
  background-color: var(--accent);
  box-shadow:
    inset 0 0 0 1px var(--ink),
    inset 0 0 0 5px var(--bg);
}

/* Beat the generic input:hover and input:focus lines, which would paint the hit area. */
.tile-check:hover,
.tile-check:focus {
  box-shadow: inset 0 0 0 1px var(--ink);
}

.tile-check:checked:hover,
.tile-check:checked:focus {
  box-shadow:
    inset 0 0 0 1px var(--ink),
    inset 0 0 0 5px var(--bg);
}

.tile-check:focus-visible {
  outline-offset: -9px;
}

.tile:hover .tile-check,
.tile:focus-within .tile-check,
.is-selecting .tile-check {
  opacity: 1;
}

@media (hover: none) {
  .tile-check {
    opacity: 1;
  }
}

.tile.is-selected .art {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

.is-selecting .gallery {
  -webkit-user-select: none;
  user-select: none;
}

/* Sticks to the bottom of the viewport while the gallery scrolls and rests after the last tile. */
.tray {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 14px;
  border-top: 1px solid var(--line-strong);
  background: var(--bg);
}

.tray-text {
  font-variant-numeric: tabular-nums;
}

.tray-actions {
  display: flex;
  gap: 8px;
}

/* Token viewer */

.crumbs {
  padding-top: 12px;
}

.crumbs a,
.links a,
.owner a,
.contracts a {
  color: var(--ink-2);
  text-decoration: none;
}

.crumbs a:hover,
.links a:hover,
.owner a:hover,
.contracts a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.viewer {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 40px clamp(40px, 6vw, 96px);
  align-items: center;
  padding-block: 16px clamp(72px, 9vw, 120px);
}

.stage {
  position: relative;
  justify-self: center;
  width: min(100%, 100svh - 150px);
  aspect-ratio: 1;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.stage:focus-visible {
  outline-offset: 8px;
}

/* The canvas bleeds left and vertically so a turning page has room to travel. */
.stage-gl {
  position: absolute;
  inset: -18% 0 -18% -80%;
  pointer-events: none;
}

.print {
  position: absolute;
  inset: 7%;
  display: grid;
  place-items: center;
  background: var(--paper);
  transition: opacity 0.3s ease-out;
}

.print img {
  width: 93%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

.print.is-loaded img {
  opacity: 1;
}

/* A slow image gets a quiet placeholder so it never reads as a blank page; the delay keeps cached
   images (and the 3D sheet showing through underneath) free of a flash. */
.print:not(.is-loaded, .is-blank)::before {
  content: "";
  position: absolute;
  inset: 3.5%;
  background: #dcd5c8;
  animation:
    placeholder-in 0.4s 0.5s both,
    breathe-paper 2.6s 0.9s ease-in-out infinite;
}

.print.is-failed::before {
  animation: none;
}

@keyframes placeholder-in {
  from {
    opacity: 0;
  }
}

@keyframes breathe-paper {
  50% {
    background-color: #cfc8ba;
  }
}

.print.is-hidden {
  opacity: 0;
  transition: none;
}

/* While its image loads, the DOM print lets the 3D sheet underneath show through. */
.stage.is-3d .print:not(.is-loaded, .is-blank) {
  background: transparent;
}

.stage.is-3d .print img {
  transition: none;
}

.stage.is-stack:not(.is-3d) .print {
  box-shadow:
    6px 6px 0 0 #cdc6b9,
    12px 12px 0 0 #a8a194;
}

.print.is-failed::after {
  content: "Image unavailable";
  position: absolute;
  color: #6b645a;
  font: italic 300 1rem var(--serif);
}

.blank-note {
  max-width: 16em;
  padding: 10%;
  color: #6b645a;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 0.8rem + 1vw, 1.375rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.4;
  text-align: center;
}

.caption {
  display: grid;
  align-content: center;
}

.title {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(2rem, 1.3rem + 2.3vw, 3.5rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.title.is-long {
  font-size: clamp(1.625rem, 1.1rem + 1.4vw, 2.5rem);
  line-height: 1.12;
}

.facts {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.facts > div {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  align-items: baseline;
  padding-block: 11px;
  border-bottom: 1px solid var(--line);
}

.facts dd {
  font-size: 0.8125rem;
}

.owner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

.owner-address {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 0.8125rem;
  cursor: pointer;
}

/* The copy mark is a square over an offset outline, like the story stacks. */
.owner-address::after {
  content: "";
  width: 8px;
  height: 8px;
  color: var(--ink-3);
  box-shadow:
    inset 0 0 0 1px currentColor,
    3px -3px 0 -1px var(--bg),
    3px -3px 0 0 currentColor;
  transition: color 0.2s ease-out;
}

.owner-address:hover::after {
  color: var(--ink);
}

.pager {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pager[hidden] + .actions {
  margin-top: 28px;
}

.report {
  margin-top: 20px;
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
}

.report progress,
.tray progress {
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 10px;
  border: 0;
  background: var(--line);
  appearance: none;
}

.report progress::-webkit-progress-bar,
.tray progress::-webkit-progress-bar {
  background: var(--line);
}

.report progress::-webkit-progress-value,
.tray progress::-webkit-progress-value {
  background: var(--accent);
}

.report progress::-moz-progress-bar,
.tray progress::-moz-progress-bar {
  background: var(--accent);
}

.tray progress {
  position: absolute;
  top: -1px;
  left: 0;
  margin: 0;
}

.report-list {
  margin-top: 4px;
  color: var(--ink-3);
}

.links {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  font-size: 0.875rem;
}

.missing {
  padding-block: clamp(48px, 8vw, 120px);
}

.missing .lede {
  margin-top: 20px;
}

/* Footer and status */

.colophon {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px clamp(40px, 7vw, 120px);
  padding-block: 36px 56px;
  border-top: 1px solid var(--line);
}

.disclaimer {
  max-width: 34em;
  color: var(--ink-2);
  font-size: 0.875rem;
}

.credit {
  margin-top: 10px;
  font-size: 0.8125rem;
}

.credit a {
  color: var(--ink-3);
  text-decoration: none;
}

.credit a:hover {
  color: var(--ink-2);
}

.contracts {
  display: grid;
  gap: 8px;
  align-content: start;
}

.contracts > div {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  align-items: baseline;
}

.contracts dt {
  color: var(--ink-3);
}

.contracts dd {
  color: var(--ink-2);
}

.status {
  position: fixed;
  bottom: 20px;
  left: var(--gutter);
  z-index: 10;
  max-width: min(34rem, 100% - 2 * var(--gutter));
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  color: var(--ink);
  font-size: 0.875rem;
}

.status:empty {
  padding: 0;
  border: 0;
}

.status.is-error {
  border-color: var(--accent);
  color: #f2c2b0;
}

/* Small screens */

@media (max-width: 900px) {
  .viewer,
  .colophon {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-stage {
    height: clamp(300px, 50vh, 460px);
  }

  .hero-label {
    justify-content: flex-start;
  }

  .hero-copy {
    position: static;
    padding-top: 36px;
  }

  .stage {
    width: 100%;
  }

  .caption {
    align-content: start;
  }
}

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

@media (max-width: 560px) {
  .hero-static {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .field-address,
  .field-token {
    flex-basis: 100%;
  }

  .field-row,
  .field-row-token {
    grid-template-columns: minmax(0, 1fr) 4.75rem;
  }

  .field-row-token select {
    grid-column: 1 / -1;
  }

  .print {
    inset: 5%;
  }
}

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