/* Fonts, served from this site */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter.woff2") format("woff2");
}

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

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-italic.woff2") format("woff2");
}

/* Base: colours and type from the identity in the project note */

:root {
  --background: #08090a;
  --surface: rgb(16 17 19 / 86%);
  --surface-solid: #101113;
  --line: rgb(255 255 255 / 9%);
  --line-strong: rgb(255 255 255 / 16%);
  --text: #f7f8f8;
  --text-soft: #d0d6e0;
  --text-muted: #8a8f98;
  --accent: #d2b444;
  --sans: "Inter Variable", system-ui, sans-serif;
  --serif: "Instrument Serif", ui-serif, georgia, serif;
  --mono: "Geist Mono", ui-monospace, menlo, monospace;

  color: var(--text-soft);
  color-scheme: dark;
  background: var(--background);
  font-family: var(--sans);
  font-feature-settings: "cv01", "ss03";
  line-height: 1.6;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  margin: 0;
}

h1,
h2,
h3 {
  margin-block: 0;
  color: var(--text);
  font-weight: 510;
  letter-spacing: -0.022em;
  line-height: 1.1;
}

h1 {
  margin-block-end: 0.35em;
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  letter-spacing: -0.032em;
}

h2 {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.125rem;
  line-height: 1.3;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

code {
  font-family: var(--mono);
}

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

.icon {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
}

@media (hover: hover) {
  a:hover {
    color: var(--accent);
  }
}

/* Skip link */

.skip-link {
  position: absolute;
  left: -100vw;
}

.skip-link:focus-visible {
  position: static;
}

/* The rat lives in this canvas, in a lane of its own behind the page */

.rat-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100lvh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.rat-canvas.is-ready {
  opacity: var(--rat-opacity, 1);
}

/* No room for a lane: a small rat in a corner, in front of the content. */
@media (width < 75rem) {
  html {
    scroll-padding-block-end: 5rem;
  }

  .rat-canvas {
    z-index: 1;
  }
}

/* A note pinned to the rat, like an annotation in a Maya scene */

.rat-note {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  margin: 0;
  padding-inline-start: 0.75rem;
  border-inline-start: 1px solid var(--accent);
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.5;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.rat-note.is-ready {
  opacity: 1;
}

@media (aspect-ratio < 1) {
  .rat-note {
    display: none;
  }
}

/* Page frame */

.site-header,
main,
.site-footer {
  box-sizing: border-box;
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

main {
  flex: 1;
  padding-block: clamp(2rem, 6vw, 4.5rem) 4rem;

  /* Keeps the text readable when the rat walks behind it. */
  text-shadow:
    0 0 0.125rem var(--background),
    0 0 0.75rem var(--background);
}

/* Keeps 16rem free at the right of the screen, as LANE_WIDTH in rat.js. */
@media (width >= 75rem) {
  main {
    padding-inline-end: max(2.5rem, calc(16rem - (100vw - 76rem) / 2));
  }
}

.lead {
  max-width: 34em;
  margin-block: 0 clamp(2rem, 5vw, 3.5rem);
  color: var(--text-muted);
  font-family: var(--serif);
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-style: italic;
  line-height: 1.25;
}

.band {
  margin-block: clamp(3.5rem, 8vw, 6rem);
}

.can-reveal .reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.can-reveal .reveal.is-seen {
  opacity: 1;
  transform: none;
}

/* Header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  align-items: center;
  justify-content: space-between;
  border-block-end: 1px solid var(--line);
}

.site-name {
  display: inline-flex;
  align-items: center;
  min-height: 3.5rem;
  color: var(--text);
  font-weight: 510;
  letter-spacing: -0.011em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(1rem, 3vw, 1.75rem);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  text-decoration: none;
}

.site-nav [aria-current] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
}

/* Home */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - 12rem);
}

.hero h1 {
  margin-block-end: 0.25em;
  font-size: clamp(3rem, 10vw, 7rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

@media (aspect-ratio < 1) {
  .hero {
    justify-content: flex-start;
    min-height: calc(100svh - 8rem);
  }
}

.tagline {
  max-width: 13em;
  margin-block: 0 1.5rem;
  color: var(--text-soft);
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-style: italic;
  line-height: 1.1;
}

.role {
  max-width: 30em;
  margin-block: 0;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.section-head {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
  margin-block-end: 1.5rem;
}

.section-line {
  margin-block: 0.375rem 0;
  color: var(--text-muted);
  font-family: var(--serif);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-style: italic;
  line-height: 1.2;
}

.more-link {
  display: inline-flex;
  gap: 0.375rem;
  align-items: center;
  min-height: 2.75rem;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.8125rem;
  text-decoration: none;
}

/* Placeholders that look like a Maya viewport */

.viewport {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-sizing: border-box;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  color: var(--accent);
  background:
    url("/img/viewport.svg") center bottom / cover no-repeat,
    linear-gradient(#1a1c20, #0d0e10 70%);
  transition: border-color 0.2s ease;
}

.viewport::after {
  position: absolute;
  bottom: 0.5rem;
  left: 0.625rem;
  width: 1.5rem;
  height: 1.5rem;
  background: url("/img/axis.svg") center / contain no-repeat;
  content: "";
}

.viewport-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.viewport-camera {
  position: absolute;
  bottom: 0.375rem;
  left: 50%;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.6875rem;
  transform: translateX(-50%);
}

/* The axes and the camera name belong to models, never to pictures or video. */
.viewport-media::after {
  content: none;
}

/* Above the rat: YouTube's rules forbid anything in front of the player. */
.viewport-media iframe {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
}

/* A trailer, before it plays */

.trailer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.trailer:focus-visible {
  outline-offset: -0.375rem;
}

.trailer-play {
  position: relative;
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  background: rgb(8 9 10 / 72%);
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.trailer-play .icon {
  width: 1.75rem;
  height: 1.75rem;
}

@media (hover: hover) {
  .trailer:hover .trailer-play {
    color: var(--background);
    background: var(--accent);
  }
}

.viewport-stamp {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.125rem 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.25rem;
  color: var(--text-soft);
  background: rgb(8 9 10 / 60%);
  font-family: var(--mono);
  font-size: 0.75rem;
}

/* Cards of work */

.tile-grid,
.entry-grid,
.door-grid,
.entry-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1.75rem 1.25rem;
}

.tile-grid-small {
  grid-template-columns: repeat(auto-fill, minmax(min(46%, 14rem), 1fr));
  gap: 1.25rem 1rem;
}

/* Square, so that a character fills its picture. */
.tile-grid-small .viewport {
  aspect-ratio: 1;
}

h2 + .tile-grid {
  margin-block-start: 1.25rem;
}

.tile a {
  position: relative;
  display: block;
  text-decoration: none;
}

.tile-title {
  display: block;
  margin-block-start: 0.625rem;
  color: var(--text);
  font-weight: 510;
  letter-spacing: -0.011em;
}

.tile-grid-small .tile-title {
  font-size: 0.9375rem;
}

.tile-meta {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.tile-grid-small .tile-meta {
  display: block;
}

/* The corners of a selected object */

.tile a::before,
.door::before,
.entry-card::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  box-sizing: border-box;
  border: 1rem solid transparent;
  border-image: url("/img/corners.svg") 16;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  content: "";
}

.tile a::before {
  bottom: auto;
  aspect-ratio: 16 / 9;
}

.tile-grid-small .tile a::before {
  aspect-ratio: 1;
}

@media (hover: hover) {
  .tile a:hover::before,
  .door:hover::before,
  .entry-card:hover::before {
    opacity: 1;
  }
}

.tile a:focus-visible::before,
.door:focus-visible::before,
.entry-card:focus-visible::before {
  opacity: 1;
}

/* Lab entries on the home page */

.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1rem;
}

.entry-card {
  position: relative;
  display: grid;
  gap: 0.375rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
  text-decoration: none;
}

.entry-card-section {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.entry-card-section .icon {
  width: 1rem;
  height: 1rem;
}

.entry-card-title {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 510;
  letter-spacing: -0.015em;
}

/* Hazard signs that lead to the next page */

.signs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 0.75rem;
  margin-block-start: clamp(3.5rem, 8vw, 6rem);
}

.sign {
  display: flex;
  gap: 0.875rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.625rem;
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.sign-plate {
  flex: none;
  width: clamp(2.5rem, 6vw, 3.5rem);
  height: auto;
  overflow: visible;
  color: var(--background);
  transform-origin: 50% 8%;
}

.sign-plate path {
  fill: var(--accent);
  stroke: var(--accent);
  stroke-linejoin: round;
  stroke-width: 6;
}

.sign-text {
  display: grid;
}

.sign-title {
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 510;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.sign-joke {
  color: var(--text-muted);
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.2;
}

@media (hover: hover) {
  .sign:hover {
    border-color: var(--accent);
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .sign:hover .sign-plate {
    animation: sign-swing 0.9s ease-in-out;
  }
}

@keyframes sign-swing {
  20% {
    transform: rotate(7deg);
  }

  50% {
    transform: rotate(-5deg);
  }

  75% {
    transform: rotate(2deg);
  }
}

/* Works and About: a chain of joints, one per project or facet */

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

.timeline-item,
.facet {
  position: relative;
  padding-block-end: clamp(2.5rem, 6vw, 4rem);
  padding-inline-start: clamp(1.75rem, 4vw, 2.75rem);
}

.timeline-item::before,
.facet > h2::before {
  position: absolute;
  top: 0.375rem;
  left: 0;
  z-index: 1;
  box-sizing: border-box;
  width: 0.875rem;
  height: 0.875rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--background);
  content: "";
}

/* A facet's joint sits level with its title, at any text size. */
.facet > h2::before {
  top: calc(0.5lh - 0.4375rem);
}

.timeline-item::after,
.facet::after {
  position: absolute;
  top: 1.25rem;
  bottom: -0.375rem;
  left: 0.375rem;
  width: 2px;
  background: linear-gradient(var(--accent), var(--line-strong));
  content: "";
}

/* So its bone runs from under that joint to under the next one. */
.facet::after {
  bottom: -1.25rem;
}

.timeline-item:last-child::after,
.facet:last-child::after {
  content: none;
}

.project-head {
  position: relative;
  display: grid;
  gap: 1rem clamp(1rem, 3vw, 1.75rem);
  align-items: center;
  margin-block-end: 1.25rem;
}

@media (width >= 44rem) {
  .project-head {
    grid-template-columns: 18rem 1fr;
  }
}

.project-title {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}

.project-title a {
  text-decoration: none;
}

/* The picture leads to the project as well as the title. */
.project-title a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.project-title .icon {
  color: var(--text-muted);
}

.project-meta {
  margin-block: 0.5rem 1rem;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.8125rem;
}

/* The page of a project */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.5rem;
  margin-block-end: 1rem;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
}

.dossier {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1.5rem clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.dossier-media {
  display: grid;
  gap: 1rem;
}

.dossier-poster {
  display: block;
  width: 100%;
  height: auto;
  margin-block-start: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.dossier-summary {
  margin-block-start: 0.5rem;
}

.dossier-summary h2 {
  margin-block-end: 0.5rem;
  font-size: 1.25rem;
}

.dossier-summary p {
  max-width: 38em;
  margin: 0;
}

@media (width >= 60rem) {
  .dossier {
    grid-template-columns: 22rem 1fr;
  }

  .dossier-side {
    position: sticky;
    top: 1.5rem;
  }
}

/* Attributes in the style of Maya's Channel Box */

.channel-box {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.channel-box dl {
  margin: 0;
  padding: 0.375rem 0;
}

/* Maya's own menu bar says what this panel is, so the name can stay a name. */
.channel-box-menu {
  margin: 0;
  padding: 0.25rem 0.75rem;
  border-block-end: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.6875rem;
  word-spacing: 0.75em;
}

.channel-box-node {
  margin: 0;
  padding: 0.5rem 0.75rem;
  border-block-end: 1px solid var(--line);
  color: var(--accent);
  overflow-wrap: anywhere;
}

.channel {
  display: grid;
  grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.25rem 0.75rem;
}

.channel dt {
  color: var(--text-muted);
  text-align: right;
}

.channel dd {
  margin: 0;
  padding: 0.125rem 0.5rem;
  border-radius: 0.1875rem;
  color: var(--text);
  background: rgb(0 0 0 / 45%);
  overflow-wrap: anywhere;
}

.channel dd span {
  display: block;
}

/* Previous and next */

.pager {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-block-start: 3rem;
  padding-block-start: 1rem;
  border-block-start: 1px solid var(--line);
}

.pager a {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
}

/* Demo: a player stuck at 97% */

.player {
  max-width: 52rem;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 0.75rem;
  background: var(--surface-solid);
}

.player-bar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.625rem 0.875rem;
  border-block-end: 1px solid var(--line);
  font-size: 0.8125rem;
}

.player-bar code {
  overflow-wrap: anywhere;
}

.player-dots {
  flex: none;
  width: 2.5rem;
  height: 0.625rem;
  background: radial-gradient(
      circle closest-side,
      var(--line-strong) 96%,
      transparent
    )
    0 0 / 0.875rem 0.625rem repeat-x;
}

.player-screen {
  position: relative;
  display: grid;
  gap: 1.75rem;
  place-content: center;
  place-items: center;
  box-sizing: border-box;
  min-height: min(27rem, 60vw);
  padding: 2.5rem 1.25rem;
  background: radial-gradient(
    ellipse at 50% 30%,
    #1b1d21,
    var(--surface-solid) 70%
  );
}

.player-line {
  max-width: 15em;
  margin: 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-style: italic;
  line-height: 1.1;
  text-align: center;
}

.player-play {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  color: var(--text-muted);
}

.player-play::before {
  position: absolute;
  inset: 0;
  border: 2px dashed var(--accent);
  border-radius: 50%;
  content: "";
}

.player-controls {
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem 0.875rem;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.player-track {
  display: block;
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line-strong);
}

.player-progress {
  display: block;
  width: 97%;
  height: 100%;
  background: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  .player-play::before {
    animation: buffering 8s linear infinite;
  }
}

@keyframes buffering {
  to {
    transform: rotate(1turn);
  }
}

/* Lab */

.door-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
}

.door {
  position: relative;
  display: grid;
  gap: 0.5rem;
  align-content: start;
  box-sizing: border-box;
  height: 100%;
  min-height: 15rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
  text-decoration: none;
}

.door-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-block-end: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.5rem;
  color: var(--accent);
}

.door-icon .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.door-title {
  color: var(--text);
  font-size: 1.75rem;
  font-weight: 510;
  letter-spacing: -0.022em;
  line-height: 1.15;
}

.door-line {
  color: var(--text-muted);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.2;
}

.door-count {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  align-self: end;
  margin-block-start: 1rem;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.door-count .icon {
  width: 1rem;
  height: 1rem;
}

.entry-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  align-items: center;
  min-height: 2.75rem;
  padding-block: 1.25rem;
  border-block-end: 1px solid var(--line);
  text-decoration: none;
}

.entry-row-title {
  flex: 1 1 12rem;
  color: var(--text);
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 510;
  letter-spacing: -0.015em;
}

.entry-body {
  display: grid;
  gap: 1.25rem;
  max-width: 44rem;
}

.entry-body p {
  margin: 0;
}

.entry-download {
  display: flex;
  gap: 0.625rem;
  align-items: center;
  padding: 0.875rem 1rem;
  border: 1px dashed var(--line-strong);
  border-radius: 0.5rem;
  color: var(--text-muted);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.8125rem;
}

/* About */

.bio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 2rem clamp(1.5rem, 5vw, 3.5rem);
  align-items: start;
}

.portrait .viewport {
  aspect-ratio: 1;
  max-width: 26rem;
}

.bio-text {
  display: grid;
  gap: 1.25rem;
}

.bio-text p {
  margin: 0;
}

.bio-lead {
  color: var(--text);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.facets {
  margin: clamp(3.5rem, 8vw, 6rem) 0 0;
  padding: 0;
  list-style: none;
}

.facet p {
  max-width: 38em;
  margin-block: 1rem 0;
}

/* Contact */

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 2rem clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 0.375rem;
  max-width: 34rem;
}

.contact-form label {
  margin-block-start: 0.75rem;
  color: var(--text);
  font-size: 0.9375rem;
}

.contact-form input,
.contact-form textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--text-muted);
  border-radius: 0.375rem;
  color: var(--text);
  background: var(--surface-solid);
  font: inherit;
}

.contact-form button {
  justify-self: start;
  min-height: 2.75rem;
  margin-block-start: 1rem;
  padding: 0.5rem 1.5rem;
  border: 0;
  border-radius: 0.375rem;
  color: var(--background);
  background: var(--accent);
  font: inherit;
  font-weight: 510;
}

.form-status {
  margin-block: 0.5rem 0;
  color: var(--accent);
}

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

.form-note {
  margin-block: 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.contact-side p {
  margin-block: 0 0.5rem;
}

.contact-mail {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}

.map {
  position: relative;
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #0b0c0e;
}

.map img {
  display: block;
  width: 100%;
  height: clamp(16rem, 36vw, 28rem);
  object-fit: cover;
}

.map::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse closest-side,
    transparent 55%,
    var(--background) 118%
  );
  pointer-events: none;
  content: "";
}

.map-pin {
  position: absolute;
  top: calc(clamp(16rem, 36vw, 28rem) / 2);
  left: 50%;
  z-index: 1;
  box-sizing: border-box;
  width: 1rem;
  height: 1rem;
  border: 3px solid var(--background);
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

.map-pin::after {
  position: absolute;
  inset: -0.75rem;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0.6;
  content: "";
}

@media (prefers-reduced-motion: no-preference) {
  .map-pin::after {
    animation: pin-pulse 3s ease-out infinite;
  }
}

@keyframes pin-pulse {
  from {
    opacity: 0.8;
    transform: scale(0.4);
  }

  to {
    opacity: 0;
    transform: scale(1.8);
  }
}

.map figcaption {
  position: absolute;
  bottom: 0.75rem;
  left: 1rem;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
  align-items: baseline;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.map figcaption code {
  font-size: 0.75rem;
}

.map-city {
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 510;
  letter-spacing: -0.02em;
}

/* Links to other sites */

.social-links {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.5rem;
  color: var(--text-muted);
}

.social-links-large {
  margin-inline-start: -0.75rem;
}

.social-links .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.social-links-large .icon {
  width: 1.75rem;
  height: 1.75rem;
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  align-items: center;
  padding-block: 1.25rem;
  border-block-start: 1px solid var(--line);
  color: var(--text-muted);
}

.site-footer p {
  margin: 0;
}

.site-footer-line {
  flex: 1 1 18rem;
  font-family: var(--serif);
  font-size: 1.1875rem;
  font-style: italic;
}

.site-footer-legal {
  font-family: var(--mono);
  font-size: 0.75rem;
}

/* The syringe: stops the rat and everything else that moves */

.rat-rest {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
  background: var(--surface-solid);
  cursor: pointer;
}

.rat-rest[hidden] {
  display: none;
}

.rat-rest::after {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.5rem);
  padding: 0.125rem 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.25rem;
  color: var(--text);
  background: var(--surface-solid);
  font-family: var(--mono);
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  content: attr(aria-label);
}

.rat-rest:focus-visible::after {
  opacity: 1;
}

@media (hover: hover) {
  .rat-rest:hover::after {
    opacity: 1;
  }

  .rat-rest:hover {
    border-color: var(--accent);
  }
}

.rat-rest-wake,
.is-still .rat-rest-sedate {
  display: none;
}

.is-still .rat-rest-wake {
  display: block;
}

.is-still .player-play::before,
.is-still .map-pin::after {
  animation: none;
}
