/* Mogathon, the Lion.bio × Pump.fun hackathon
   Palette is sampled from the artworks on the page:
   den and rock from the shadows of the Rubens, mane from the lions' fur,
   vellum from the Hoefnagel parchment, moss from the den floor. */

:root {
  --den: #16100c;
  --rock: #241a13;
  --seam: #45372a;
  --mane: #d29d55;
  --vellum: #ede4cf;
  --moss: #a89e83;

  --font-display: "IM Fell French Canon", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;

  /* Type scale, perfect fourth (1.333) from a 17px base */
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.4375rem;
  --step-2: 1.875rem;
  --step-3: 2.5rem;
  --step-4: 3.375rem;
  --step-5: 4.5rem;

  --gutter: clamp(1rem, 4vw, 3rem);
  --radius: 2px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--den);
  color: var(--vellum);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

/* Film grain, so the flat dark ground reads as a surface. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.11;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  /* Discourages saving the artwork: images can't be dragged out, selected, or long-pressed on a
     phone, and a right-click lands on whatever is behind the image instead of the image itself.
     Links that wrap an image still work, because the click passes through to the link. */
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

/* Keeps the hidden attribute working on elements whose class sets a display value, such as buttons. */
[hidden] {
  display: none !important;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

cite {
  font-style: italic;
}

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

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 20;
  padding: 0.5rem 0.75rem;
  background: var(--vellum);
  color: var(--den);
}

.skip:focus {
  top: 0.5rem;
}

/* Header: no bar of its own. It lies over the top of the hero painting,
   with the LionBio logo in the centre and two links either side. */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
}

.site-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(1.5rem, 5vw, 4.5rem);
  padding-block: 1.25rem;
}

.site-nav__side {
  display: flex;
  gap: clamp(1.5rem, 5vw, 4.5rem);
}

.site-nav__side--left {
  justify-content: flex-end;
}

.site-nav__side a {
  padding-block: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--vellum);
  text-decoration: none;
  text-shadow: 0 1px 3px rgba(22, 16, 12, 0.7);
}

.site-nav__side a:hover {
  text-decoration: underline;
  text-decoration-color: var(--mane);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.4em;
}

.site-nav__logo {
  display: block;
  padding-block: 0.75rem;
}

.site-nav__logo img {
  width: auto;
  height: 1.125rem;
}

.wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

/* Buttons and links */

.button {
  display: inline-block;
  padding: 0.875rem 1.5rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--mane);
  color: var(--den);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--vellum);
}

.button:active {
  transform: translateY(1px);
}

.button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.button--outline {
  background: none;
  color: var(--vellum);
  box-shadow: inset 0 0 0 1px var(--mane);
}

.button--outline:hover {
  background: var(--mane);
  color: var(--den);
}

.text-link {
  padding-block: 0.5rem;
  text-decoration: underline;
  text-decoration-color: var(--seam);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.text-link:hover {
  text-decoration-color: var(--mane);
}

/* Hero */

.hero__art {
  position: relative;
  margin: 0;
  overflow: hidden;
  height: clamp(22rem, 72vh, 48rem);
  background: var(--rock);
}

/* Darkens the top of the painting so the header links stay readable over it. */
.hero__art::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 9rem;
  background: linear-gradient(rgba(22, 16, 12, 0.72), rgba(22, 16, 12, 0));
  pointer-events: none;
}

.hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 45%;
}

.hero__body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}

/* The title block sits over the bottom edge of the painting, like a wall label. */
.hero__lead {
  position: relative;
  margin-top: -6.5rem;
  padding: 2.25rem 2.5rem 0 0;
  background: var(--den);
}

.hero__lead::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 100%;
  width: 100vw;
  background: var(--den);
}

/* Host logos, cut out of the hosts' own artwork (see tools/make_logos.py). */
.logo {
  display: inline-block;
  width: auto;
}

.logo--lion {
  height: 1.0625rem;
}

/* The pill makes this logo taller than its lettering, so it is set larger to match. */
.logo--pump {
  height: 2rem;
}

/* The speedrun wordmark has tall arrows above and below its letters, so it is
   set taller than the others for its lettering to match theirs. */
.logo--speedrun {
  height: 2rem;
}

/* The three logos scale together (their heights are in em here) so the row
   still fits on one line on a phone. */
.hosts {
  display: flex;
  align-items: center;
  gap: 0.875em;
  margin-bottom: 1.25rem;
  font-size: clamp(0.64rem, 2.7vw, 0.84rem);
  color: var(--moss);
}

.hosts .logo--lion {
  height: 1.0625em;
}

.hosts .logo--pump,
.hosts .logo--speedrun {
  height: 2em;
}

.hero h1 {
  font-size: clamp(4rem, 10.5vw, 8.75rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.hero__deck {
  max-width: 34rem;
  margin-top: 1.5rem;
  font-size: var(--step-1);
  line-height: 1.4;
  color: var(--vellum);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  margin-top: 2rem;
}

.facts {
  margin: 0;
  padding-top: 2rem;
}

.facts > div {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding-block: 0.75rem;
  border-top: 1px solid var(--seam);
}

.facts dt {
  font-size: var(--step--1);
  color: var(--moss);
}

/* Set in the grotesque: the Fell numeral 1 reads as a capital I, which
   garbles dates and "a16z". */
.facts dd {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
}

figure {
  margin: 0;
}

/* Sections */

.section {
  padding-block: clamp(4.5rem, 11vw, 9rem) 0;
}

.section h2 {
  font-size: clamp(var(--step-3), 5vw, var(--step-4));
  line-height: 1.05;
}

.section__intro {
  max-width: 34rem;
  margin-top: 0.75rem;
  color: var(--moss);
}

/* Tiles: flat panels a shade lighter than the page. The art inside them has
   soft edges baked in (see tools/make_art.py), so it fades into the panel. */

.tiles {
  display: grid;
  gap: 6px;
}

.tile {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.75rem);
  background: var(--rock);
}

.tile__text {
  position: relative;
  z-index: 1;
}

.tile__art {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: none;
}

/* Tracks */

.tiles--tracks {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.tiles--tracks .tile {
  min-height: clamp(25rem, 40vw, 33rem);
}

.tile h3 {
  font-size: var(--step-3);
  line-height: 1.05;
}

.tile__funder {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2rem;
  margin-top: 1rem;
  font-size: var(--step--1);
  color: var(--moss);
}

.tile__note {
  max-width: 19rem;
  margin-top: 1rem;
  color: var(--moss);
}

.tile--desci .tile__art {
  width: auto;
  height: 82%;
}

/* The medal hangs off the corner of its tile. */
.tile--chain .tile__art {
  width: min(80%, 25rem);
  height: auto;
  right: -12%;
  bottom: -16%;
}

.tile--chain .tile__note {
  max-width: 15rem;
}

/* Prizes */

.tiles--prizes {
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  grid-template-rows: 1fr 1fr;
}

.tile--pool {
  grid-row: 1 / span 2;
  min-height: clamp(27rem, 46vw, 38rem);
}

/* Sized so the lion starts below and to the right of the text. */
.tile--pool .tile__art {
  width: 80%;
  height: auto;
}

.prizes__figure {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.3em;
}

/* The figure is set in the grotesque: Fell's old-style zeros read as letter o's. */
.section .prizes__figure {
  font-family: var(--font-body);
  font-size: clamp(3.5rem, 9.5vw, 8.5rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--mane);
}

.prizes__figure span {
  font-family: var(--font-display);
  font-size: clamp(var(--step-2), 3.2vw, var(--step-3));
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--vellum);
}

.prizes__lead {
  max-width: 21rem;
  margin-top: 1.25rem;
  font-size: var(--step-1);
  line-height: 1.4;
}

.tile--fact {
  display: flex;
  flex-direction: column;
}

.tile--fact h3 {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 500;
  line-height: 1.3;
}

/* Figures are set in the grotesque, like the prize total. */
.tile__value {
  margin-top: auto;
  padding-top: 2rem;
  font-size: clamp(var(--step-2), 3vw, var(--step-3));
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--mane);
}

.tile__detail {
  margin-top: 0.625rem;
  font-size: var(--step--1);
  color: var(--moss);
}

/* Dropdowns under the prize tiles: closed until someone opens them. */

.disclosures {
  margin-top: 6px;
  display: grid;
  gap: 6px;
}

.disclosure {
  background: var(--rock);
}

.disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem clamp(1.5rem, 3vw, 2.75rem);
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.15;
  cursor: pointer;
  list-style: none;
}

.disclosure summary::-webkit-details-marker {
  display: none;
}

/* A plus that becomes a minus when the dropdown is open. */
.disclosure summary::after {
  content: "";
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  background:
    linear-gradient(var(--mane), var(--mane)) center / 100% 2px no-repeat,
    linear-gradient(var(--mane), var(--mane)) center / 2px 100% no-repeat;
}

.disclosure[open] summary::after {
  background: linear-gradient(var(--mane), var(--mane)) center / 100% 2px no-repeat;
}

.disclosure summary:hover {
  color: var(--mane);
}

.disclosure summary:focus-visible {
  outline-offset: -3px;
}

.disclosure__body {
  padding: 0.5rem clamp(1.5rem, 3vw, 2.75rem) clamp(1.75rem, 3vw, 2.5rem);
}

.disclosure__note {
  margin-top: 1.25rem;
  font-size: var(--step--1);
  color: var(--moss);
}

.prize-tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem clamp(2rem, 6vw, 5rem);
}

.prize-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.prize-table caption {
  padding-bottom: 0.75rem;
  font-weight: 600;
  text-align: left;
  color: var(--mane);
}

.prize-table th,
.prize-table td {
  padding: 0.625rem 0;
  border-top: 1px solid var(--seam);
  text-align: right;
  font-weight: 400;
}

.prize-table th:first-child {
  text-align: left;
}

.prize-table thead th {
  border-top: 0;
  padding-top: 0;
  font-size: var(--step--1);
  color: var(--moss);
}

.prize-table tbody td:nth-child(2),
.prize-table tfoot td,
.prize-table tfoot th {
  font-weight: 600;
}

.disclosure .timeline--steps {
  margin-top: 0;
  max-width: 44rem;
}

.timeline--steps li:first-child {
  border-top: 0;
}

/* Judging and dates */

/* Official token */

.token__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 4vw, 4rem);
  row-gap: 2rem;
  align-items: start;
}

.token__text {
  grid-column: 1 / span 5;
}

.token__text p {
  max-width: 28rem;
  margin-top: 1.25rem;
  font-size: var(--step-1);
  line-height: 1.4;
}

.token__text p + p {
  margin-top: 0.75rem;
}

.token__tile {
  grid-column: 7 / span 6;
}

.token__tile h3 {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 500;
  line-height: 1.3;
}

/* An address is read character by character, so it gets a fixed-width face and may break anywhere. */
.token__ca {
  margin-top: 1rem;
  font-family: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
  font-size: var(--step-0);
  line-height: 1.5;
  overflow-wrap: anywhere;
  color: var(--mane);
  user-select: all;
}

.token__ca[data-pending] {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-2);
  line-height: 1.1;
  color: var(--moss);
  user-select: auto;
}

/* The address itself is the copy button. */
.token__copy {
  display: block;
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--seam);
  border-radius: var(--radius);
  background: var(--den);
  text-align: left;
  cursor: copy;
}

.token__copy:hover {
  border-color: var(--mane);
}

.token__copy:active {
  transform: translateY(1px);
}

.token__status {
  min-height: 1.5em;
  margin-top: 0.5rem;
  font-size: var(--step--1);
}

.token__note {
  margin-top: 0.75rem;
  font-size: var(--step--1);
  color: var(--moss);
}

.field__hint a {
  text-decoration: underline;
  text-decoration-color: var(--mane);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

/* Admin page */

.admin {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4rem, 10vw, 8rem);
}

.admin h1 {
  margin-top: 2rem;
  font-size: clamp(var(--step-4), 8vw, var(--step-5));
  line-height: 1;
}

.admin__tiles {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

/* The contract address tile is the main one, so it takes the tall right-hand column. */
.admin__tiles > :nth-child(2) {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.admin h2 {
  font-size: var(--step-2);
  line-height: 1.15;
}

.admin__state {
  margin-top: 1.25rem;
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.3;
}

.admin__detail {
  max-width: 30rem;
  margin-top: 0.5rem;
  color: var(--moss);
}

.admin__label {
  margin-top: 1.25rem;
  font-size: var(--step--1);
  color: var(--moss);
}

.admin .token__ca {
  margin-top: 0.375rem;
  user-select: text;
}

/* Addresses are typed and checked character by character. */
.admin .field input[type="text"] {
  font-family: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
}

.admin__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.admin__actions:empty {
  display: none;
}

/* Judging sits beside Dates, and Rules sits below Judging beside the painting.
   The gap between Judging and Rules matches the gap above the section. */
.details__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 4vw, 4rem);
  row-gap: clamp(4.5rem, 11vw, 9rem);
  align-items: start;
}

#judging {
  grid-column: 1 / span 5;
  grid-row: 1;
}

#rules {
  grid-column: 1 / span 5;
  grid-row: 2;
}

/* The right-hand column spans both rows, so the height of Dates never
   stretches the gap between Judging and Rules. */
.details__side {
  position: relative;
  grid-column: 7 / span 6;
  grid-row: 1 / span 2;
  align-self: stretch;
}

/* Like the chalk lion, the painting has no frame: its edges fade into the page.
   It fills the width of the column beside the Rules block. */
.details__art {
  position: absolute;
  left: -5%;
  bottom: -4.5rem;
  width: 110%;
  max-width: none;
  height: auto;
}

.details p {
  max-width: 28rem;
  margin-top: 1.25rem;
  font-size: var(--step-1);
  line-height: 1.4;
}

.details .button {
  margin-top: 1.5rem;
}

.details .quiet {
  margin-top: 0.75rem;
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--moss);
}

.timeline {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: baseline;
  padding-block: 0.875rem;
  border-top: 1px solid var(--seam);
}

.timeline time,
.timeline__when {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
}

/* Register */

.register {
  padding-bottom: clamp(4.5rem, 11vw, 9rem);
}

.register__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

/* The chalk lion floats free of any frame and runs off the left edge. */
.register__art {
  grid-column: 1 / span 6;
  width: 122%;
  max-width: none;
  margin: -3rem 0 0 -16%;
}

.register__form {
  grid-column: 7 / span 6;
}

form {
  margin-top: 2.25rem;
}

.field {
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field label,
.field legend {
  display: block;
  padding: 0;
  margin-bottom: 0.5rem;
  font-size: var(--step--1);
  font-weight: 500;
}

.field .field__hint {
  margin: -0.125rem 0 0.625rem;
  font-size: var(--step--1);
  color: var(--moss);
}

.field input::placeholder {
  color: var(--moss);
  opacity: 0.7;
}

.field input[type="text"],
.field input[type="email"] {
  width: 100%;
  padding: 0.8125rem 0.875rem;
  border: 1px solid var(--seam);
  border-radius: var(--radius);
  background: var(--rock);
  color: var(--vellum);
  font: inherit;
}

.field input[type="text"]:hover,
.field input[type="email"]:hover {
  border-color: var(--moss);
}

.field input[aria-invalid="true"] {
  border-color: var(--vellum);
}

.choices {
  display: grid;
  gap: 0.25rem;
}

.field .choice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding-block: 0.5rem;
  font-size: var(--step-0);
  font-weight: 400;
  cursor: pointer;
}

.choice input {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  accent-color: var(--mane);
}

.choice a,
.site-footer__credit a {
  text-decoration: underline;
  text-decoration-color: var(--mane);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

/* A field real visitors never see or reach. Form-filling bots fill it in, and the server drops them. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field__error {
  margin-top: 0.5rem;
  font-size: var(--step--1);
  color: var(--vellum);
}

.field__error::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--mane);
}

.form-status {
  margin-top: 1.25rem;
  max-width: 30rem;
}

.form-status:empty {
  display: none;
}

.form-status:focus {
  outline: none;
}

.form-status[data-state="done"] {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.2;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--seam);
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem 3rem;
  padding-block: 2.5rem 3.5rem;
}

.site-footer__credit {
  max-width: 36rem;
  font-size: var(--step--1);
  color: var(--moss);
}

.site-footer__credit p + p {
  margin-top: 0.5rem;
}

/* Motion: one settle of the painting on load, nothing else moves on its own. */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .hero__art img {
    animation: settle 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  @keyframes settle {
    from {
      transform: scale(1.06);
    }
    to {
      transform: scale(1);
    }
  }
}

/* Mid-width screens: the track tiles are narrower, so the medal drops lower to clear the text. */

@media (min-width: 861px) and (max-width: 1150px) {
  .tile--chain .tile__art {
    width: 68%;
    right: -14%;
    bottom: -22%;
  }
}

/* Narrow screens */

@media (max-width: 860px) {
  .hero__body {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .hero__lead {
    margin-top: -3rem;
    padding: 1.5rem 1.5rem 0 0;
    width: fit-content;
    max-width: 100%;
  }

  .tiles--tracks,
  .tiles--prizes,
  .details__grid,
  .token__grid,
  .register__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .token__text,
  .token__tile {
    grid-column: 1 / -1;
  }

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

  .admin__tiles > :nth-child(2) {
    grid-column: auto;
    grid-row: auto;
  }

  .tiles--prizes {
    grid-template-rows: auto;
  }

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

  .tile--pool {
    grid-row: auto;
    min-height: 33rem;
  }

  .tile--pool .tile__art {
    width: 118%;
  }

  .tiles--tracks .tile {
    min-height: 29rem;
  }

  .tile--desci .tile__art {
    height: 60%;
  }

  .tile--chain .tile__art {
    width: 15.5rem;
    right: -2.5rem;
    bottom: -4rem;
  }

  .register__grid > * {
    grid-column: 1 / -1 !important;
  }

  /* One column: Judging, Dates, then Rules. */
  .details__grid {
    row-gap: 3.5rem;
  }

  .details__side {
    display: contents;
  }

  #judging,
  #dates,
  #rules {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  #judging {
    order: 1;
  }

  #dates {
    order: 2;
  }

  #rules {
    order: 3;
  }

  /* Hidden here: in one column it would sit directly above the chalk lion. */
  .details__art {
    display: none;
  }

  .register__art {
    width: 112%;
    max-width: 30rem;
    margin: -1rem 0 -1.5rem -12%;
  }
}

@media (max-width: 720px) {
  .hero__art {
    height: auto;
    aspect-ratio: 5 / 5.2;
    max-height: 62svh;
  }

  .hero__art img {
    object-position: 60% 35%;
  }

  .hero__lead {
    margin-top: 0;
    padding: 1.75rem 0 0;
    width: auto;
  }

  .wordmark {
    font-size: 1.1875rem;
  }

  /* One link either side of the logo is all that fits. */
  .site-nav__extra {
    display: none;
  }

  .site-nav {
    padding-block: 0.75rem;
  }

  .site-nav__logo img {
    height: 1rem;
  }

  .facts > div {
    grid-template-columns: 4.5rem minmax(0, 1fr);
  }

  .timeline li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.125rem;
  }
}
