/* Fonts are self-hosted (SIL OFL), latin subset: Instrument Serif, Instrument Sans, JetBrains Mono. */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/instrument-serif-latin-400-normal.5eb09b5ac0.woff2) format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/instrument-serif-latin-400-italic.5a51946dff.woff2) format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/instrument-sans-latin-wght-normal.2ee17598a9.woff2) format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/instrument-sans-latin-wght-italic.77210cdde0.woff2) format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url(fonts/jetbrains-mono-latin-wght-normal.18be452724.woff2) format("woff2");
}

/* Each colour that changes with the theme is written once, light value then dark value, as
   `var(--if-light, LIGHT) var(--if-dark, DARK)`. In the light theme --if-dark is an empty value (so its half drops
   out) and --if-light is unset (so its fallback shows); the dark theme, forced or from the system, swaps the two.
   That is all the two dark blocks below say. light-dark() would do it in one function, but it needs Chrome 123, Safari
   17.5 or Firefox 120, and this stylesheet already works back to Chrome 111 and Safari 16.2. */
:root {
  --if-dark: ;
  --paper: var(--if-light, #ffffff) var(--if-dark, #0b0f19);
  --ink: var(--if-light, #111827) var(--if-dark, #f3f4f6);
  --panel: var(--if-light, #f1f3f6) var(--if-dark, #161c2a);
  --muted: var(--if-light, #5b6472) var(--if-dark, #9aa4b5);
  --alert: var(--if-light, #c81e4a) var(--if-dark, #ff7d96);
  --ok: var(--if-light, #0f766e) var(--if-dark, #5fd3c4);
  --soft: var(--if-light, rgba(17, 24, 39, 0.16)) var(--if-dark, rgba(243, 244, 246, 0.18));
  --water: var(--if-light, #86c5d0) var(--if-dark, #16233f);
  --shadow: rgba(20, 24, 20, 0.22);
  --card-paper: #f3f4f6;
  --card-soft: #c5cad3;
  --display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --data: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --if-light: ;
    --if-dark: initial;
  }
}
:root[data-theme="dark"] {
  --if-light: ;
  --if-dark: initial;
}
/* Sizes, layers and timings already in use, named by their value. Only values that repeat on a scale are here: the
   odd ones (13.5px and 14.5px type, 7px and 18px spacing and the like) stay literal until they are folded onto it. */
:root {
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-14: 14px;
  --space-16: 16px;
  --space-24: 24px;
  --text-10: 10px;
  --text-11: 11px;
  --text-12: 12px;
  --text-13: 13px;
  --text-14: 14px;
  --text-15: 15px;
  --text-16: 16px;
  --text-17: 17px;
  --text-18: 18px;
  --text-19: 19px;
  --text-20: 20px;
  --text-22: 22px;
  --text-24: 24px;
  --text-26: 26px;
  --text-28: 28px;
  --text-30: 30px;
  --text-32: 32px;
  --text-34: 34px;
  --z-2: 2;
  --z-5: 5;
  --z-10: 10;
  --z-20: 20;
  --z-50: 50;
  --z-100: 100;
  --z-200: 200;
  --dur-120: 120ms;
  --dur-150: 0.15s;
  --dur-180: 0.18s;
  --dur-400: 0.4s;
  --dur-800: 0.8s;
}
html {
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 56px);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--text-16) / 1.45 var(--body);
}
body.full {
  overflow: hidden;
}
/* The frame every page shares: the masthead, the tab row, the page and the footer sit in one 1180px column. */
header.mast,
.navbar .tabs {
  width: min(1156px, calc(100% - 24px));
  margin-left: auto;
  margin-right: auto;
}
body > main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-12) var(--space-24);
}

/* The masthead scrolls away. Only the tab row under it sticks. */
.mast {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas: ". sim theme" "title title title";
  align-items: center;
  gap: var(--space-4) var(--space-12);
  margin-top: var(--space-16);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-10);
  border-bottom: 2px solid var(--ink);
}
.mast .title {
  grid-area: title;
}
.mast .theme-toggle {
  grid-area: theme;
  justify-self: end;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  min-height: 0;
  padding: 0;
}
.theme-toggle .theme-icon {
  display: none;
  grid-area: 1 / 1;
}
:root[data-theme-choice="light"] .theme-icon[data-icon="light"],
:root[data-theme-choice="dark"] .theme-icon[data-icon="dark"],
:root:not([data-theme-choice="light"]):not([data-theme-choice="dark"]) .theme-icon[data-icon="system"] {
  display: block;
}
@media (min-width: 720px) {
  .mast {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "title sim theme";
    align-items: start;
  }
  .mast .sim {
    align-self: start;
    line-height: 40px;
    white-space: nowrap;
  }
}
.mast .wordmark {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 12vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.01em;
}
.mast .wordmark a {
  color: var(--ink);
  text-decoration: none;
}
.mast .sub {
  margin: var(--space-6) 0 0;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(20px, 5.4vw, 26px);
  line-height: 1.2;
  position: relative;
}
.mast .note {
  margin: var(--space-8) 0 0;
  color: var(--muted);
  max-width: 62ch;
}
.mast .sim {
  grid-area: sim;
  justify-self: end;
  margin: 0;
  font-size: var(--text-13);
  line-height: 1.35;
  color: var(--alert);
  font-weight: 600;
}
.mast .sim[hidden] {
  display: none;
}
/* Phone widths: the switch shares the title's row, right-aligned, and the wordmark shrinks to fit beside it. */
@media (max-width: 719px) {
  .mast {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "sim" "title";
    row-gap: 0;
  }
  .mast .sim {
    margin-bottom: var(--space-4);
  }
  .mast .theme-toggle {
    grid-area: title;
    align-self: start;
    position: relative;
    /* Above the title, which shares this cell and comes later in the page. */
    z-index: var(--z-2);
  }
  .mast .theme-toggle::after {
    content: "";
    position: absolute;
    inset: -2px;
  }
  .mast .wordmark {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding-right: 52px;
    font-size: clamp(30px, 11.5vw, 60px);
  }
}
.mast a:focus-visible,
.navbar a:focus-visible {
  outline: 3px solid var(--alert);
  outline-offset: 2px;
}

.navbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: var(--z-5);
  margin: 0 0 var(--space-14);
  padding: var(--space-6) 0;
  background: var(--paper);
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}
.tabs a {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--space-12);
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.tabs a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}
@media (max-width: 480px) {
  .tabs {
    gap: var(--space-4);
  }
  .tabs a {
    padding: 0 var(--space-4);
  }
}

.stage {
  margin: 0;
}
.glass {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--water);
  line-height: 0;
}
canvas {
  display: block;
  width: 100%;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}
#island {
  /* Only until the script has sized it: it then sets the ratio itself, to the height the island needs at its width. */
  aspect-ratio: 4 / 3;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  outline: none;
}
#island:focus-visible {
  outline: 3px solid var(--alert);
  outline-offset: -5px;
}
@media (min-width: 920px) {
  #island {
    aspect-ratio: 8 / 5;
  }
}

/* Controls and windows that float over the island. */
.hud {
  position: absolute;
  top: 8px;
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
  line-height: 1.4;
}
.hud-tools {
  left: 8px;
}
.hud-feed {
  right: 8px;
  justify-content: flex-end;
}
.hud button.sq {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
}
.hud button.sq svg {
  display: block;
}
.hud button:disabled {
  opacity: 0.45;
  cursor: default;
}
.hud button,
.card,
.feed {
  box-shadow: 3px 3px 0 var(--ink);
}
@media (max-width: 719px) {
  .glass.has-card .hud-tools,
  .glass.has-card .hud-feed {
    display: none;
  }
}
.badge {
  display: inline-block;
  min-width: 24px;
  margin-left: var(--space-6);
  padding: 0 5px;
  background: var(--alert);
  color: var(--paper);
  text-align: center;
  font-family: var(--data);
  font-size: var(--text-13);
  font-weight: 600;
}
.badge[hidden] {
  display: none;
}
.feed {
  position: absolute;
  top: 62px;
  right: 8px;
  width: min(350px, calc(100% - 16px));
  max-height: calc(100% - 70px);
  overflow: auto;
  line-height: 1.4;
  background: var(--panel);
  border: 2px solid var(--ink);
  padding: var(--space-10) var(--space-12);
}
.feed[hidden],
.card[hidden] {
  display: none;
}
.feed:focus-visible,
.card:focus-visible {
  outline: 3px solid var(--alert);
  outline-offset: -5px;
}
.feed .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-12);
  margin-bottom: var(--space-8);
}
.feed h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--text-28);
  line-height: 1.1;
}
.feed ol,
.card .lately {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}
.feed li,
.card .lately li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0 var(--space-10);
  align-items: start;
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--soft);
}
.feed time,
.card .lately time {
  font-family: var(--data);
  font-size: var(--text-13);
  line-height: 1.7;
  color: var(--muted);
}
.feed .who,
.card .lately .who {
  overflow-wrap: anywhere;
  font-weight: 600;
}
.feed .req,
.card .lately .req {
  display: block;
  color: var(--muted);
  font-family: var(--data);
  font-size: var(--text-13);
  font-weight: 400;
}
.tag {
  border: 1.5px solid currentColor;
  padding: 1px var(--space-6);
  font-family: var(--data);
  font-size: var(--text-12);
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.tag.bad {
  color: var(--alert);
}
.tag.good {
  color: var(--ok);
}

/* Expanded: the island takes the whole window. */
body.full .stage {
  position: fixed;
  inset: 0;
  z-index: var(--z-20);
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--paper);
  padding: calc(var(--space-8) + env(safe-area-inset-top, 0px)) var(--space-8)
    calc(var(--space-8) + env(safe-area-inset-bottom, 0px));
}
body.full .glass {
  flex: 1;
  min-height: 0;
  box-shadow: none;
}
body.full #island {
  height: 100%;
  aspect-ratio: auto;
}
body.full .ticker {
  margin-top: var(--space-8);
}

/* Night watch: the island and nothing else. The one control left is the contract button, which shows on touch or
   movement and goes after a few seconds. It is not clickable while hidden, so a tap there reaches the island. */
.hud button[hidden] {
  display: none;
}
body.watch .stage {
  padding: 0;
}
body.watch .glass {
  border: 0;
}
body.watch .ticker,
body.watch #bell,
body.watch #watch {
  display: none;
}
body.watch .hud-tools:not(.awake):not(:focus-within) {
  opacity: 0;
  pointer-events: none;
}
body.watch .hud-tools {
  transition: opacity var(--dur-400);
}
@media (prefers-reduced-motion: reduce) {
  body.watch .hud-tools {
    transition: none;
  }
}

.ticker {
  display: flex;
  align-items: center;
  gap: var(--space-10);
  margin-top: var(--space-14);
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-4) var(--space-4) var(--space-4) var(--space-12);
  min-height: 52px;
}
.ticker p {
  margin: 0;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
button {
  font-family: var(--body);
  font-size: var(--text-16);
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  min-height: 44px;
  padding: 0 var(--space-14);
  cursor: pointer;
}
.ticker button {
  border-color: var(--paper);
}
button:focus-visible {
  outline: 3px solid var(--alert);
  outline-offset: 2px;
}

/* Sections below the island. */
.home {
  display: grid;
  gap: var(--space-24) var(--space-16);
  grid-template-columns: minmax(0, 1fr);
  margin-top: var(--space-24);
}
.home h2 {
  margin: 0 0 var(--space-8);
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--text-30);
  line-height: 1.1;
}
.fine {
  margin: 0 0 var(--space-8);
  color: var(--muted);
  font-size: var(--text-14);
}
.guide-link {
  margin: 0;
}
.guide-link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 500;
}

.tally {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  border: 2px solid var(--ink);
  border-width: 2px 0 0 2px;
}
@media (min-width: 560px) {
  .tally {
    grid-template-columns: repeat(4, 1fr);
  }
}
.tally div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding: var(--space-8) var(--space-10);
  border: 2px solid var(--ink);
  border-width: 0 2px 2px 0;
}
.tally dt {
  color: var(--muted);
  font-size: var(--text-14);
  line-height: 1.25;
}
.tally dd {
  margin: 0 0 3px;
  font-family: var(--data);
  font-size: var(--text-28);
  font-weight: 600;
  line-height: 1;
}
/* An odd tally out takes the whole last row. */
.tally div:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

/* Landings by hour: one bar an hour of the UTC day. */
.hours {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  align-items: end;
  gap: var(--space-2);
  height: 124px;
  border-bottom: 2px solid var(--ink);
}
.hours i {
  display: block;
  background: var(--ink);
}
.hours i.now {
  background: var(--alert);
}
.hours i.later {
  background: var(--soft);
}
.hoursaxis {
  display: flex;
  justify-content: space-between;
  margin-top: 3px;
  font-family: var(--data);
  font-size: var(--text-12);
  color: var(--muted);
}
.hoursbox .fine {
  margin: var(--space-6) 0 0;
}

.landed {
  list-style: none;
  margin: 0;
  padding: 0 0 var(--space-4);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(124px, 1fr);
  gap: var(--space-10);
  overflow-x: auto;
}
.landed li {
  border: 2px solid var(--ink);
  background: var(--panel);
}
.landed button {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  text-align: left;
  background: var(--panel);
}
.landed canvas {
  aspect-ratio: 22 / 16;
  border-bottom: 2px solid var(--ink);
}
.landed .nm {
  display: block;
  padding: var(--space-6) var(--space-8) 0;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.landed .net {
  display: block;
  padding: 1px var(--space-8) 0;
  color: var(--muted);
  font-size: var(--text-12);
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.landed time {
  display: block;
  margin-top: auto;
  padding: var(--space-4) var(--space-8) 7px;
  font-family: var(--data);
  font-size: var(--text-12);
  font-weight: 400;
  color: var(--muted);
}

/* Specimen of the day: the species with the most landings so far today. */
.day {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: var(--space-12);
  align-items: start;
  border: 2px solid var(--ink);
  background: var(--panel);
  padding: var(--space-10);
  line-height: 1.45;
}
.day.empty {
  display: block;
}
.day .none {
  margin: 0;
  color: var(--muted);
}
.day canvas {
  aspect-ratio: 22 / 16;
  border: 2px solid var(--ink);
}
.day h3 {
  margin: 0;
  font-family: var(--body);
  font-size: var(--text-18);
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.day .latin {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-size: var(--text-22);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.day p {
  margin: var(--space-6) 0 0;
  font-size: 14.5px;
  line-height: 1.35;
}
.day .ord {
  color: var(--muted);
}
.day .meta {
  font-family: var(--data);
  font-size: var(--text-13);
}
.more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 500;
}

/* The creature card: a window over the island. */
.card {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  max-height: 64%;
  overflow: auto;
  line-height: 1.35;
  border: 2px solid var(--ink);
  background: var(--panel);
  padding: var(--space-8) var(--space-10);
}
@media (min-width: 720px) {
  .card {
    right: auto;
    bottom: auto;
    top: 52px;
    width: 330px;
    max-height: calc(100% - 60px);
    padding: var(--space-10) var(--space-12);
  }
}
/* A link that sits among the card's buttons and looks like one. */
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-14);
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.btn:focus-visible {
  outline: 3px solid var(--alert);
  outline-offset: 2px;
}
.card .head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-10);
}
.card .acts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-top: var(--space-8);
}
.card .mug {
  width: 66px;
  flex: none;
  aspect-ratio: 22 / 16;
  border: 2px solid var(--ink);
}
.card .who {
  flex: 1;
  min-width: 0;
}
.card h2 {
  margin: 0;
  font-family: var(--body);
  font-weight: 600;
  font-size: var(--text-19);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.card .held {
  margin: var(--space-8) 0 0;
  border: 2px solid var(--alert);
  padding: var(--space-2) var(--space-8);
  color: var(--alert);
  font-weight: 600;
}
.card .latin {
  margin: 1px 0 0;
  font-family: var(--display);
  font-style: italic;
  font-size: var(--text-20);
  line-height: 1.15;
}
.card dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px var(--space-12);
  margin: var(--space-10) 0 0;
  padding-top: var(--space-8);
  border-top: 2px dotted var(--ink);
}
.card dt {
  color: var(--muted);
}
.card dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.card dd.req {
  font-family: var(--data);
  font-size: var(--text-13);
  align-self: center;
}

/* A place's panel: the section names, who is there, and nobody. */
.card h3 {
  margin: var(--space-12) 0 var(--space-4);
  padding-top: var(--space-8);
  border-top: 2px dotted var(--ink);
  font-family: var(--body);
  font-size: var(--text-14);
  font-weight: 600;
  color: var(--muted);
}
.card h3 + dl {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.card .none {
  margin: 0;
  color: var(--muted);
}
.card .here {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}
.card .here button {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  min-height: 44px;
  padding: var(--space-2) var(--space-10) var(--space-2) var(--space-2);
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-weight: 500;
  cursor: pointer;
}
.card .here canvas {
  width: 44px;
  aspect-ratio: 22 / 16;
}
.card .lately {
  margin-top: 0;
}

.card .route {
  max-height: 224px;
  overflow: auto;
}
.card .route li {
  display: block;
  padding: 0;
}
.card .route li.none {
  padding: var(--space-6) 0;
  color: var(--muted);
  font-family: var(--data);
  font-size: var(--text-13);
}
.card .route .stop {
  display: grid;
  grid-template-columns: 22px auto minmax(0, 1fr) auto;
  gap: 0 var(--space-8);
  align-items: start;
  width: 100%;
  min-height: 36px;
  padding: var(--space-6) var(--space-2);
  border: 0;
  background: none;
  box-shadow: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.card .route .stop[aria-pressed="true"] {
  background: var(--soft);
}
.card .route .n {
  min-width: 22px;
  padding: 0 var(--space-4);
  box-sizing: border-box;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  font-family: var(--data);
  font-size: var(--text-12);
  line-height: 1.7;
}
.card .route time {
  font-family: var(--data);
  font-size: var(--text-13);
  line-height: 1.7;
  color: var(--muted);
}

.card .sessions {
  list-style: none;
  margin: var(--space-12) 0 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}
.card .sessions li {
  padding: 5px 0;
  font-family: var(--data);
  font-size: var(--text-13);
  border-bottom: 1px solid var(--soft);
  overflow-wrap: anywhere;
}

/* Server-rendered pages (species, method, editions) share this sheet. */
main h1,
main h2,
main h3 {
  font-family: var(--display);
  font-weight: 400;
}
main i,
main em {
  font-family: var(--display);
  font-size: 1.1em;
}
main code,
main pre,
main time {
  font-family: var(--data);
  font-size: var(--text-13);
}

/* The footer, the same on the island page as on the server pages. It sits in the masthead's column, under a 2px ink rule. */
body > footer {
  width: min(1156px, calc(100% - 24px));
  margin: var(--space-16) auto 0;
  padding: 48px 0 calc(48px + env(safe-area-inset-bottom, 0px));
  border-top: 2px solid var(--ink);
  font-size: var(--text-14);
}
body > footer p,
body > footer ul,
body > footer h2 {
  margin: 0;
  padding: 0;
}
body > footer ul {
  list-style: none;
}
body > footer .foot-top a {
  color: var(--ink);
  text-decoration: none;
}
body > footer .foot-top a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
body > footer .foot-top a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
  outline: 3px solid var(--alert);
  outline-offset: 2px;
}
.foot-top {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.foot-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  max-width: 20rem;
}
.foot-name {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  font-family: var(--display);
  font-size: var(--text-20);
  line-height: 1.2;
  color: var(--ink);
}
.foot-name img {
  width: 24px;
  height: 24px;
}
.foot-blurb {
  color: var(--muted);
  line-height: 1.625;
}
.foot-cols {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}
.foot-cols nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}
.foot-cols ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}
body > footer h2 {
  font: 600 var(--text-12) / 1.33 var(--body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.foot-note {
  font-size: var(--text-12);
  color: var(--muted);
}
.foot-legal {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  margin-top: 48px;
  padding-top: var(--space-24);
  border-top: 1px solid var(--soft);
}
.foot-legal p {
  font-size: var(--text-12);
  color: var(--muted);
}
body > footer a.codeswhat-pill {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: var(--space-10);
  padding: var(--space-6) var(--space-14) var(--space-6) var(--space-6);
  border: 1px solid var(--soft);
  border-radius: 9999px;
  background: color-mix(in srgb, var(--paper) 50%, transparent);
  color: var(--muted);
  text-decoration: none;
  transition: border-color var(--dur-150), background-color var(--dur-150);
}
body > footer a.codeswhat-pill:hover {
  border-color: var(--muted);
  background: color-mix(in srgb, var(--paper) 80%, transparent);
}
body > footer a.codeswhat-pill:focus-visible {
  outline: 3px solid var(--alert);
  outline-offset: 2px;
}
.codeswhat-pill .coin {
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  box-shadow: 0 0 0 1px var(--soft);
}
:root[data-theme="dark"] .codeswhat-pill .coin {
  filter: invert(1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .codeswhat-pill .coin {
    filter: invert(1);
  }
}
.codeswhat-pill .pill-text {
  font-size: var(--text-12);
  line-height: 1.33;
}
.codeswhat-pill .pill-name {
  font-weight: 600;
  color: var(--ink);
}
.codeswhat-pill .pill-arrow {
  flex: none;
  transition: transform var(--dur-150);
}
.codeswhat-pill:hover .pill-arrow {
  transform: translate(2px, -2px);
}
@media (prefers-reduced-motion: reduce) {
  .codeswhat-pill .pill-arrow {
    transition: none;
  }
}
@media (min-width: 640px) {
  .foot-legal {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
@media (min-width: 640px) {
  .foot-cols {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 40px 64px;
  }
}
@media (min-width: 1024px) {
  .foot-top {
    flex-direction: row;
    justify-content: space-between;
  }
  .foot-cols {
    justify-content: flex-end;
  }
}

/* The one link a script adds to every page. It sits in the footer, so it reads as one of its links. */
a.grown {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: var(--space-6);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--text-14);
  line-height: 1.45;
  font-weight: 400;
  text-underline-offset: 2px;
}
a.grown:focus-visible {
  outline: 3px solid var(--alert);
  outline-offset: 2px;
}

/* Moving between pages: a browser that can do cross-document view transitions holds the masthead title, the
   tab row and a page's sub-tab row still and cross-fades only what is below them. Others navigate as before. */
@view-transition {
  /* biome-ignore lint/correctness/noUnknownProperty: biome 1.9 does not know the @view-transition descriptor */
  navigation: auto;
}
.mast .title {
  view-transition-name: mast-title;
}
.navbar {
  view-transition-name: main-nav;
}
.subnav {
  view-transition-name: sub-nav;
}
::view-transition-group(*) {
  animation-duration: var(--dur-120);
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: var(--dur-120);
}
@media (prefers-reduced-motion: reduce) {
  @view-transition {
    /* biome-ignore lint/correctness/noUnknownProperty: biome 1.9 does not know the @view-transition descriptor */
    navigation: none;
  }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none;
  }
}
