/* The Absolute One. One dark theme: everything is drawn against the night. */

:root {
  --night: #07080d;
  --panel: #10121a;
  --panel-high: #181b26;
  --line: rgba(255, 255, 255, 0.1);
  --text: #eceae4;
  --dim: #a3a6b3;
  --gold: #ffd36b;
  --tint: #9fb4c7; /* each category sets its own */
  --top: 56px; /* height of the header */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--night) radial-gradient(120% 80% at 50% 0%, #131a33 0%, var(--night) 60%) fixed;
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a {
  color: inherit;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

button,
input {
  font: inherit;
  color: inherit;
}

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

.noscript {
  max-width: 36rem;
  margin: 4rem auto;
  padding: 0 16px;
}

/* --- Header ---------------------------------------------------------------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--top);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  background: rgba(7, 8, 13, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.tabs {
  display: flex;
  gap: 4px;
  margin-right: auto;
}

.tabs a {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--dim);
  text-decoration: none;
  font-size: 0.95rem;
}

.tabs a:hover {
  color: var(--text);
}

.tabs a.current {
  color: var(--night);
  background: var(--text);
}

.search {
  position: relative;
  width: min(260px, 100%);
}

.search input {
  width: 100%;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}

.search input::placeholder {
  color: var(--dim);
}

.search-results {
  position: absolute;
  top: 42px;
  right: 0;
  width: max(100%, 300px);
  max-width: calc(100vw - 32px);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--panel-high);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  z-index: 30;
}

.search-results li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 9px;
  cursor: pointer;
}

.search-results li.active,
.search-results li:hover {
  background: rgba(255, 255, 255, 0.08);
}

.search-results li.empty {
  color: var(--dim);
  cursor: default;
}

.result-art {
  width: 34px;
  height: 34px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-name {
  flex: 1;
  min-width: 0;
}

.result-size {
  color: var(--dim);
  font-size: 0.85rem;
  white-space: nowrap;
}

/* A small picture of a thing. It shrinks to fit whatever box it is put in. */
.thumb {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}

/* --- Buttons and chips ----------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--text);
  color: var(--night);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.button.quiet {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.28);
}

.button:hover {
  filter: brightness(1.12);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--tint);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tint);
}

/* --- The Scale ------------------------------------------------------------- */

.on-stage {
  overflow: hidden;
}

.stage {
  position: relative;
  height: calc(100dvh - var(--top));
  overflow: hidden;
}

.stage-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
  outline: none;
}

.stage-canvas:active {
  cursor: grabbing;
}

.filter {
  position: absolute;
  top: 14px;
  left: 16px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 18, 26, 0.85);
  cursor: pointer;
  font-size: 0.9rem;
}

.zoom-buttons {
  position: absolute;
  top: 14px;
  right: 16px;
  display: flex;
  gap: 6px;
}

.zoom-buttons button,
.travel button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 18, 26, 0.85);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.zoom-buttons button.wide {
  width: auto;
  padding: 0 12px;
  font-size: 0.85rem;
}

.hint {
  position: absolute;
  bottom: 244px;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  color: var(--dim);
  font-size: 0.9rem;
  pointer-events: none;
  transition: opacity 0.6s;
}

.hint.gone {
  opacity: 0;
}

.stage-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 16px calc(10px + env(safe-area-inset-bottom));
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.stage-bottom > * {
  pointer-events: auto;
}

.card {
  width: min(720px, 100%);
  height: 148px; /* fixed, so the ground line above it never jumps */
  margin: 0 auto;
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
  align-items: stretch;
  background: rgba(16, 18, 26, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.card-count {
  color: var(--dim);
  font-size: 0.78rem;
  white-space: nowrap;
}

.card-latin {
  margin: 0;
  color: var(--dim);
  font-style: italic;
  font-size: 0.9rem;
}

.card-about {
  margin: 0;
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.travel {
  width: min(720px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.travel input {
  flex: 1;
  min-width: 0;
  accent-color: var(--gold);
}

.travel-end {
  color: var(--dim);
  font-size: 0.8rem;
}

.landmarks {
  width: min(720px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.landmarks::-webkit-scrollbar {
  display: none;
}

.landmarks button {
  flex: none;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 18, 26, 0.75);
  color: var(--dim);
  font-size: 0.76rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.landmarks button:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.28);
}

.landmarks button.active {
  color: var(--gold);
  border-color: var(--gold);
}

/* The category filter sheet. */

.sheet {
  width: min(640px, calc(100vw - 24px));
  max-height: calc(100dvh - 48px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel-high);
  color: var(--text);
}

.sheet::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.sheet h2 {
  font-size: 1.4rem;
}

.sheet fieldset {
  margin: 16px 0 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sheet legend {
  padding: 0 0 8px;
  color: var(--dim);
  font-size: 0.85rem;
}

.tick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
}

.tick input {
  accent-color: var(--tint);
  margin: 0;
}

.tick:has(input:checked) {
  border-color: var(--tint);
}

.sheet-actions {
  position: sticky;
  bottom: -22px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 20px -22px -22px;
  padding: 14px 22px;
  background: var(--panel-high);
  border-top: 1px solid var(--line);
}

/* --- Ordinary pages -------------------------------------------------------- */

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.page h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.page h2 {
  font-size: 1.4rem;
  margin: 40px 0 14px;
}

.lede {
  max-width: 40rem;
  margin: 10px 0 24px;
  color: var(--dim);
  font-size: 1.1rem;
}

.back {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--dim);
  text-decoration: none;
  font-size: 0.9rem;
}

.back:hover {
  color: var(--text);
}

.footnote {
  margin-top: 40px;
  color: var(--dim);
  font-size: 0.85rem;
}

.empty-note {
  padding: 48px 16px;
  text-align: center;
  color: var(--dim);
  border: 1px dashed var(--line);
  border-radius: 18px;
}

/* Tiles: categories and collections. */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.tile {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.tile:hover {
  border-color: var(--tint);
  transform: translateY(-2px);
}

.tile-art {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 56px;
  margin-bottom: 6px;
}

.tile-art .thumb {
  max-width: 72px;
  max-height: 56px;
  flex: none;
}

.tile strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
}

.tile span:last-child {
  color: var(--dim);
  font-size: 0.88rem;
}

/* Grids of things. */

.things {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.thing-card {
  display: grid;
  gap: 2px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  transition: border-color 0.15s;
}

.thing-card:hover {
  border-color: var(--tint);
}

.thing-card-art {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.thing-card-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.thing-card-size {
  color: var(--tint);
  font-size: 0.85rem;
}

/* One thing. */

.thing-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: center;
}

.thing-art {
  aspect-ratio: 1;
  max-height: 420px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.06), transparent);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.thing-facts h1 {
  margin-top: 8px;
}

.thing-size {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--gold);
  line-height: 1.1;
}

.thing-measure {
  margin: 4px 0 0;
  color: var(--dim);
}

.thing-also {
  margin: 12px 0 0;
  color: var(--dim);
}

.thing-about {
  margin: 16px 0 0;
  font-size: 1.08rem;
  max-width: 36rem;
}

/* Compare. */

.chosen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.chosen-thing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 4px 0 14px;
  border: 1px solid var(--tint);
  border-radius: 999px;
  font-size: 0.92rem;
}

.chosen-thing button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  font-size: 1.1rem;
}

.chosen-thing button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.adder {
  width: min(260px, 100%);
}

.adder .search-results {
  right: auto;
  left: 0;
}

.ideas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.idea {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
}

.idea:hover {
  border-color: var(--gold);
}

/* A line-up panel with its ranking. */

.panel-stage {
  position: relative;
  height: min(62dvh, 560px);
  min-height: 340px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.panel-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: pan-y; /* a finger moving up or down still scrolls the page */
  cursor: grab;
}

.panel-help {
  margin: 8px 0 0;
  color: var(--dim);
  font-size: 0.85rem;
}

.ranking,
.bars {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.ranking li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.ranking-art {
  width: 52px;
  height: 52px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.ranking-text {
  flex: 1;
  min-width: 0;
  display: grid;
}

.ranking-text a {
  font-weight: 600;
  text-decoration: none;
}

.ranking-text a:hover {
  text-decoration: underline;
}

.ranking-text span {
  color: var(--tint);
  font-size: 0.88rem;
}

.ranking-times {
  color: var(--dim);
  font-size: 0.85rem;
  text-align: right;
}

/* Bars. */

.bars li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.bar-art {
  width: 48px;
  height: 48px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bar-body {
  flex: 1;
  min-width: 0;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.bar-label a,
.bar-label span {
  font-weight: 600;
  text-decoration: none;
}

.bar-label strong {
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
}

.bar-track {
  margin-top: 8px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.bar-fill {
  height: 100%;
  min-width: 3px;
  border-radius: 999px;
  background: var(--tint);
}

.bar-note {
  margin: 8px 0 0;
  color: var(--dim);
  font-size: 0.85rem;
}

/* About. */

.prose p {
  max-width: 42rem;
}

.prose a {
  color: var(--gold);
}

.credits {
  padding-left: 1.2rem;
  color: var(--dim);
  font-size: 0.9rem;
  max-width: 48rem;
}

.credits strong {
  color: var(--text);
  font-weight: 600;
}

/* --- Phones ---------------------------------------------------------------- */

@media (max-width: 760px) {
  :root {
    --top: 100px;
  }

  .top {
    flex-wrap: wrap;
    gap: 0 12px;
    padding: 0 16px;
    align-content: center;
  }

  .brand {
    margin-right: auto;
    font-size: 1.05rem;
  }

  .search {
    width: 150px;
  }

  .search input {
    height: 34px;
    font-size: 16px; /* stops phones zooming the page when the box is tapped */
  }

  .tabs {
    order: 3;
    width: 100%;
    margin: 8px 0 0;
    justify-content: space-between;
  }

  .tabs a {
    padding: 5px 10px;
  }

  .page {
    padding: 24px 16px 64px;
  }

  .thing-top {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .thing-art {
    max-height: 280px;
    aspect-ratio: auto;
    height: 260px;
  }

  .card-actions {
    margin-top: 10px;
  }

  .button {
    height: 36px;
  }

  .travel-end {
    display: none;
  }

  .ranking li {
    flex-wrap: wrap;
  }

  .ranking-times {
    width: 100%;
    text-align: left;
    padding-left: 66px;
    margin-top: -6px;
  }

  .things {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  }
}

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

/* --- Photographs, and the cinematic Scale view ------------------------------ */

/* A photo fills its box, cropped to fit. */
.thumb.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  background: #1b1e2a; /* seen while the picture loads */
}

.result-art .thumb.photo,
.tile-art .thumb.photo {
  border-radius: 8px;
}

.tile-art .thumb.photo {
  width: 72px;
  height: 56px;
}

.thing-card {
  padding: 0;
  overflow: hidden;
}

.thing-card-art {
  height: 124px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.thing-card-art .thumb.photo {
  border-radius: 0;
}

.thing-card-art .thumb:not(.photo) {
  padding: 12px;
}

.thing-card-name,
.thing-card-size {
  padding: 0 14px;
}

.thing-card-size {
  padding-bottom: 12px;
}

.thing-art.has-photo {
  position: relative;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: none;
}

.thing-art.has-photo > .thumb.photo {
  border-radius: 0;
}

/* The to-scale figure, tucked into the corner of the photo. */
.thing-figure {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 92px;
  height: 72px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 8, 13, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 14px;
}

/* The backdrop: the framed thing's photo as a wash of colour. */
.backdrop {
  position: absolute;
  inset: -80px;
  pointer-events: none;
}

.backdrop-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.backdrop-layer.showing {
  opacity: 0.9;
}

.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 45%, rgba(7, 8, 13, 0.45) 0%, rgba(7, 8, 13, 0.7) 60%, rgba(7, 8, 13, 0.96) 100%);
}

/* The title above the line-up. */
.title {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  padding: 0 160px;
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
  pointer-events: none;
}

.title .chip {
  pointer-events: auto;
}

.title-name {
  font-size: clamp(1.8rem, 4.4vw, 3.4rem);
  letter-spacing: 0.01em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.7);
}

.title-size {
  margin: 0;
  color: var(--dim);
  font-size: 1.05rem;
}

.title-size strong {
  color: var(--gold);
  font-weight: 600;
}

.title-power {
  color: var(--dim);
  opacity: 0.8;
  font-size: 0.9em;
}

.card-photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

/* "Illustration": the picture is not a photograph of the thing itself. */
.picture-kind {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 1;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(7, 8, 13, 0.72);
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.card-photo .thumb.photo {
  border-radius: 0;
  transition: transform 0.5s ease;
}

.card-photo:hover .thumb.photo {
  transform: scale(1.06);
}

.card-photo .thumb:not(.photo) {
  padding: 16px;
}

.card-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 12px 18px;
  min-width: 0;
}

.card-text .card-actions {
  flex-direction: row;
  align-items: center;
  margin-top: 8px;
}

.card-text .card-count {
  margin-left: auto;
}

.button.compact {
  height: 36px;
  padding: 0 12px;
  font-size: 0.85rem;
}

.compare-summary {
  margin: 0 0 14px;
  padding: 10px 14px;
  background: rgba(255, 211, 107, 0.08);
  border: 1px solid rgba(255, 211, 107, 0.25);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.95rem;
}

.compare-summary strong {
  color: var(--gold);
}

.category-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.sort-bar {
  display: inline-flex;
  padding: 3px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  gap: 2px;
}

.sort-bar button {
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--dim);
  font-size: 0.85rem;
  cursor: pointer;
}

.sort-bar button:hover {
  color: var(--text);
}

.sort-bar button.active {
  background: var(--panel-high);
  color: var(--gold);
}

@media (max-width: 760px) {
  .title {
    top: 88px;
    padding: 0 16px;
  }

  .title-size {
    font-size: 0.95rem;
  }

  .card {
    height: 150px;
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .card-text {
    padding: 10px 12px;
  }

  .card-text .card-latin {
    display: none;
  }

  .landmarks {
    justify-content: flex-start;
  }

  .hint {
    bottom: 248px;
    padding: 0 16px;
  }

  .thing-art.has-photo {
    height: auto;
  }
}
/* Play: the journey travels by itself. */
.travel button.play {
  width: 40px;
  height: 40px;
  border-color: var(--gold);
  background: var(--gold);
  color: #14110a;
  font-size: 0.95rem;
  box-shadow: 0 0 0 0 rgba(255, 205, 110, 0.5);
  animation: play-pulse 2.4s ease-out infinite;
}

.travel button.play.playing {
  animation: none;
  background: rgba(16, 18, 26, 0.85);
  color: var(--gold);
  font-size: 0.7rem;
}

@keyframes play-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 205, 110, 0.5);
  }
  70%,
  100% {
    box-shadow: 0 0 0 12px rgba(255, 205, 110, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .travel button.play {
    animation: none;
  }
}
