@font-face {
  font-family: DM;
  src: url("/fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Gaegu;
  src: url("/fonts/gaegu-latin-300-normal.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
/* Colour tokens. Each holds its light and dark value; `color-scheme` picks
   one. The theme follows the system unless html[data-theme] overrides it. */
:root {
  color-scheme: light dark;
  --paper: light-dark(#f6f1e4, #16130f);
  --ink: light-dark(#2a2620, #ebe3d1);
  --muted: light-dark(#6d665a, #a59c8b);
  --accent: light-dark(#b83e2d, #e0705a);
  --rule: light-dark(#dcd4c2, #35302a);
  --surface: light-dark(#ece5d4, #211d18);
  --field: light-dark(#faf8f1, #1c1814);
  --selection: light-dark(#dbb6a5, #5b3027);
  --sage: light-dark(#dfe3cc, #1b2018);
  --sage-rule: light-dark(#b6bc9f, #333b2c);
  --grass: light-dark(#6f7a55, #7f8c5e);
  --root: light-dark(#5a4d3a, #a28e6d);
  --thread: light-dark(#8a8848, #a3a165);
  --result: light-dark(#526c50, #9cb98f);
  --result-rule: light-dark(#acb6a5, #3f4d3c);
  --negative-rule: light-dark(#c8998d, #6b3a30);
  /* Night plates and the footer stay dark in both themes. */
  --night: light-dark(#1d1a16, #050403);
  --night-ink: #f3ecdc;
  --night-muted: #b9b2a3;
  --night-accent: #e98d76;
  --faint: color-mix(in srgb, var(--ink) 32%, transparent);
  --hand: Gaegu, "Comic Sans MS", cursive;
  /* Headlines are lettered by the same hand as the captions. */
  --display: Gaegu, "Comic Sans MS", cursive;
  --sans: DM, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}
:root[data-theme="light"] {
  color-scheme: light;
}
:root[data-theme="dark"] {
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--paper);
  color: var(--ink);
  scroll-padding-top: 28px;
}
body {
  margin: 0;
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: var(--selection);
  color: var(--ink);
}
a {
  color: inherit;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
button,
input {
  font: inherit;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
summary {
  cursor: pointer;
}
button {
  color: inherit;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}
button:active,
.button:active {
  transform: translateY(1px);
}
[hidden] {
  display: none !important;
}
svg {
  display: block;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 400;
}
h1,
h2 {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.01em;
}
/* Emphasis in a headline is colour, not a synthetic italic. */
h1 em,
h2 em {
  font-style: normal;
}
h1 {
  font-size: clamp(64px, 7.4vw, 112px);
}
h2 {
  font-size: clamp(46px, 5vw, 70px);
}
.wrap {
  width: calc(100% - 112px);
  max-width: 1328px;
  margin-inline: auto;
}
.mono {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.09em;
}
/* Small labels speak in the same hand as the home-page captions. */
.eyebrow {
  font-family: var(--hand);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-transform: lowercase;
}
.accent {
  color: var(--accent);
}
.skip {
  position: fixed;
  z-index: 50;
  top: 8px;
  left: 8px;
  padding: 12px 24px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
}
.skip:focus {
  transform: translateY(0);
}
/* Wordmark and navigation */
.top {
  height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
  position: relative;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  letter-spacing: -1px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
}
.brand-symbol {
  display: block;
  background: var(--accent);
  color: var(--paper);
  padding: 3px;
}
.brand svg {
  width: 34px;
  height: 34px;
}
.brand-word {
  font-weight: 400;
  margin-left: 7px;
}
.brand-period {
  color: var(--accent);
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 13px;
}
.desktop-nav a {
  text-decoration: none;
  position: relative;
}
.desktop-nav a:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms var(--ease);
}
.desktop-nav a:hover:after,
.desktop-nav a[aria-current]:after {
  transform: scaleX(1);
}
.desktop-nav .nav-source {
  border-left: 1px solid var(--rule);
  padding-left: 32px;
}
.nav-source span {
  margin-left: 10px;
}
.mobile-nav {
  display: none;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}
/* Theme toggle: the filled half turns over when the theme changes. */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
}
.theme-toggle svg {
  width: 26px;
  height: 26px;
  overflow: visible;
}
.theme-toggle:hover {
  color: var(--accent);
}
.moon-ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}
.moon-fill {
  fill: currentColor;
  transform-origin: 16px 16px;
  transition: transform 600ms var(--ease);
}
:root[data-theme="dark"] .moon-fill {
  transform: rotate(180deg);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .moon-fill {
    transform: rotate(180deg);
  }
}
/* Paper grain: one static noise tile over every page, felt more than seen. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Ink draw-in (src/draw.js): drawings below the fold are drawn on first view. */
.ink-pending path[pathLength] {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.ink-pending text,
.ink-pending circle {
  opacity: 0;
}
/* Hovering a specimen draws it again. */
@keyframes redraw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
.specimens a:hover .glyph path[pathLength],
.entry > a:hover .glyph path[pathLength] {
  stroke-dasharray: 1;
  animation: redraw 900ms var(--ease);
}
/* Home: one sheet of plates (src/art/) joined by one thread (src/thread.js). */
.hand {
  font-family: var(--hand);
  font-weight: 300;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: 0.01em;
}
.home {
  position: relative;
  overflow-x: clip;
}
.thread {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
.thread path {
  fill: none;
  stroke: var(--thread);
  stroke-width: 1.3;
  stroke-linecap: round;
}
.thread-tip {
  fill: var(--accent);
  transition: opacity 300ms ease;
}
.plate {
  position: relative;
  padding-block: 120px;
}
.plate-inner {
  position: relative;
  z-index: 2;
}
.tone-night,
.footer {
  --ink: var(--night-ink);
  --muted: var(--night-muted);
  --accent: var(--night-accent);
  --rule: #ffffff24;
  --faint: #f3ecdc52;
  background: var(--night);
  color: var(--ink);
}
.tone-sage {
  background: var(--sage);
  --rule: var(--sage-rule);
}
.torn {
  position: absolute;
  left: 0;
  width: 100%;
  height: 26px;
  fill: var(--paper);
  z-index: 0;
}
.torn-top {
  top: -1px;
}
.torn-bottom {
  bottom: -1px;
}
.plate-label {
  color: var(--muted);
  margin-bottom: 28px;
}
.plate h2 em,
.plate h1 em {
  color: var(--accent);
}
.plate-art {
  width: 100%;
  height: auto;
  margin: 10px 0 40px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.plate-art text {
  font-family: var(--hand);
  font-weight: 300;
  font-size: 24px;
  fill: currentColor;
  stroke: none;
  text-anchor: middle;
}
.plate-art .aside {
  font-size: 21px;
  fill: var(--muted);
  text-anchor: start;
}
.plate-art .red-fill,
.red-fill {
  fill: var(--accent);
  stroke: none;
}
.plate-text {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}
.plate-text h2 {
  font-size: clamp(42px, 5vw, 72px);
}
.plate-text p {
  margin-top: 22px;
  max-width: 520px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}
.plate-entries {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.plate-entries a {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 20px;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
}
.plate-entries .hand {
  color: var(--accent);
  font-size: 18px;
  line-height: 1.15;
}
.plate-entries a:hover span:nth-child(2) {
  text-decoration: underline;
}
.plate-more {
  display: inline-block;
  margin-top: 14px;
}
.plate-more:hover {
  color: var(--accent);
}
/* Plate: opening */
.plate-opening {
  padding-top: 24px;
  text-align: center;
}
.kicker {
  color: var(--muted);
}
.opening-figure {
  width: min(560px, 100%);
  margin: 34px auto 0;
}
.lattice-stage {
  position: relative;
  aspect-ratio: 1;
}
.lattice-stage canvas {
  position: absolute;
  inset: 3%;
  width: 94%;
  height: 94%;
  /* Read by src/lattice.js as the figure's ink and accent colours. */
  color: var(--ink);
  accent-color: var(--accent);
}
.ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.ring path {
  fill: none;
  stroke-linecap: round;
}
.ring-ink {
  stroke: var(--ink);
  stroke-width: 6;
  stroke-dasharray: 4.5 1.8;
}
.ring-shadow {
  stroke: color-mix(in srgb, var(--ink) 13%, transparent);
  stroke-width: 7;
}
.canvas-fallback {
  position: absolute;
  inset: 25%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 24px;
}
.opening-figure figcaption {
  color: var(--muted);
  margin-top: 20px;
}
.opening-figure figcaption .red {
  color: var(--accent);
}
.opening-figure figcaption a {
  color: var(--ink);
  white-space: nowrap;
}
.figure-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  margin-top: 8px;
}
.figure-controls button {
  background: none;
  border: 0;
  font: inherit;
  color: var(--ink);
  padding: 8px 0;
  min-width: 48px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.figure-controls input {
  width: 150px;
  accent-color: var(--accent);
  cursor: pointer;
}
.figure-controls output {
  min-width: 34px;
}
.plate-opening h1 {
  font-size: clamp(54px, 8vw, 120px);
  line-height: 0.95;
  margin-top: 70px;
}
.lede {
  max-width: 470px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}
.scroll-cue {
  display: inline-block;
  margin-top: 56px;
  text-decoration: none;
}
.scroll-cue:hover {
  color: var(--accent);
}
/* Plate: questions */
.scribble {
  font-family: var(--hand);
  font-weight: 300;
  font-size: 15px;
  line-height: 2;
  color: color-mix(in srgb, var(--ink) 50%, var(--paper));
  text-align: justify;
  hyphens: auto;
  max-width: 1120px;
  margin: 0 auto;
}
.circled {
  position: relative;
  display: inline-block;
  color: var(--ink);
  font-size: 27px;
  line-height: 1.2;
  padding: 8px 20px;
  margin: 10px 8px;
  text-decoration: none;
  white-space: nowrap;
}
.circled svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.circled path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
}
.circled:hover {
  color: var(--accent);
}
.plate-questions h2 {
  text-align: center;
  margin-top: 90px;
  font-size: clamp(42px, 5vw, 72px);
}
.plate-note {
  text-align: center;
  color: var(--muted);
  max-width: 540px;
  margin: 18px auto 0;
}
/* Plate: overnight */
.night-art .stars {
  fill: var(--ink);
  stroke: none;
  opacity: 0.45;
}
.night-art .seed {
  stroke-width: 0.8;
  opacity: 0.6;
}
.night-art .core {
  fill: var(--ink);
  stroke: none;
}
.night-art .check {
  stroke: #b9c48a;
  stroke-width: 2;
}
.night-art .handoff {
  stroke-width: 1;
  stroke-dasharray: 2 7;
  opacity: 0.6;
}
.night-art .note {
  fill: var(--night);
  stroke-width: 1;
}
.night-art .note-lines {
  stroke-width: 0.8;
}
/* Plate: decode */
.decode-art .letters text {
  font-size: 24px;
  fill: var(--faint);
}
.decode-art .letters .pick {
  fill: var(--ink);
  font-size: 28px;
}
.decode-art .letters .pick.red-fill {
  fill: var(--accent);
}
.plate-art .ann {
  stroke: var(--muted);
  stroke-width: 1;
}
/* Plate: roots */
.roots-art .grass {
  stroke: var(--grass);
  stroke-width: 0.7;
}
.roots-art .ground {
  stroke-width: 1.2;
}
.roots-art .flower path {
  stroke-width: 1.3;
}
.roots-art .flower .seed {
  stroke-width: 0.7;
}
.roots-art .core {
  fill: var(--ink);
  stroke: none;
}
.roots-art .root {
  stroke: var(--root);
}
.roots-art .root.red {
  stroke: var(--accent);
}
/* Specimen glyphs (src/art/glyph.js): home, catalogue, and articles */
.glyph {
  display: block;
  overflow: visible;
}
.g-ink {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.g-fine {
  stroke-width: 0.8;
}
.g-red {
  stroke: var(--accent);
  stroke-width: 1.6;
}
.g-red-fill {
  fill: var(--accent);
  stroke: none;
}
.g-dash {
  stroke-dasharray: 3 4;
}
.entry-glyph {
  width: 56px;
  margin-bottom: 10px;
}
.article-glyph {
  width: clamp(110px, 16vw, 200px);
  flex: none;
}
/* Plate: specimens */
.plate-text-top {
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 44px;
}
.specimens {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.specimens li {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.specimens a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 18px 18px 22px;
  text-decoration: none;
  transition: background 200ms ease;
}
.specimens a:hover {
  background: var(--surface);
}
.specimens .glyph {
  width: 100%;
  max-width: 140px;
  margin: 0 auto 8px;
}
.specimens .hand {
  color: var(--accent);
  font-size: 16px;
}
.specimen-title {
  font-size: 13px;
  line-height: 1.45;
}
.specimen-key {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-top: 24px;
  color: var(--muted);
}
.specimen-key ul {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.specimen-key li {
  display: flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}
.glyph-legend {
  width: 48px;
}
/* Plate: method */
.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.method-grid h2 {
  font-size: clamp(46px, 5.4vw, 80px);
}
.method-grid .lede {
  margin: 24px 0 0;
}
.principles {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 36px;
}
.principles .mark {
  width: 60px;
  height: 60px;
  overflow: visible;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.3;
  stroke-linecap: round;
}
.principles .mark .red {
  stroke: var(--accent);
}
.principles .hand {
  color: var(--accent);
  font-size: 16px;
}
.principles h3 {
  font-size: 16px;
  font-weight: 550;
  margin: 4px 0 6px;
}
.principles p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
/* Plate: ending */
.plate-contact {
  padding-bottom: 60px;
}
.ending {
  position: relative;
  width: min(640px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
  text-align: center;
}
.ending-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 0 12%;
}
.ending-copy .hand {
  color: var(--muted);
}
.ending-copy a.hand {
  color: var(--ink);
}
.contact-link {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.contact-link em {
  color: var(--accent);
}
.contact-link:hover {
  color: var(--accent);
}
.signoff {
  text-align: center;
  color: var(--muted);
  margin-top: 40px;
}
.button {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 35px;
  padding: 15px 20px;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--paper);
  font-size: 12px;
  text-decoration: none;
  transition:
    background 160ms ease,
    transform 160ms var(--ease);
  line-height: 1.5;
}
.button:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.button span {
  font-size: 18px;
  line-height: 1;
}
.text-link {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding: 6px 0;
  line-height: 1.6;
}
.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 38px;
}
.section-heading .eyebrow {
  display: block;
  margin-bottom: 23px;
}
.section-heading > .text-link {
  margin-bottom: 5px;
}
.tag {
  font: 9px/1.4 var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  padding: 4px 7px;
  display: inline-block;
  width: fit-content;
  color: var(--muted);
}
.tag.negative {
  color: var(--accent);
  border-color: var(--negative-rule);
}
.tag.result {
  color: var(--result);
  border-color: var(--result-rule);
}
/* Shared footer */
.footer {
  position: relative;
  padding-top: 70px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
}
.footer .brand {
  font-size: 20px;
  align-self: start;
}
.footer .brand svg {
  color: var(--accent);
  width: 28px;
  height: 28px;
}
.footer-top p {
  font-family: var(--display);
  font-weight: 300;
  font-size: 25px;
  line-height: 1.2;
}
.footer-top nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 26px;
  font-size: 12px;
}
.footer a {
  text-decoration: none;
}
.footer nav a:hover {
  color: var(--accent);
}
.footer-bottom {
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 25px;
  font: 9px/1.7 var(--mono);
  color: var(--muted);
}
/* Catalogue */
.page-heading {
  padding: 64px 0 45px;
}
.page-heading > .eyebrow {
  display: block;
  margin-bottom: 27px;
}
.page-heading h1 {
  font-size: clamp(64px, 7vw, 100px);
  line-height: 0.97;
}
.page-heading h1 em {
  color: var(--accent);
}
.page-intro {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  margin-top: 25px;
}
.page-intro p {
  max-width: 440px;
  color: var(--muted);
  font-size: 15px;
}
.catalogue-tools {
  border-top: 1px solid var(--ink);
  padding: 24px 0 0;
}
.search {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--rule);
  max-width: 560px;
  padding: 9px 14px;
  background: var(--field);
}
.search > span {
  font-size: 25px;
  line-height: 1;
}
.search input {
  border: 0;
  background: none;
  color: var(--ink);
  min-width: 0;
  width: 100%;
  font-size: 13px;
  padding: 7px 0;
}
.search:focus-within {
  outline: 1px solid var(--accent);
}
.search input:focus {
  outline: none;
}
.search kbd {
  border: 1px solid var(--rule);
  padding: 0 6px;
  color: var(--muted);
  font-size: 11px;
}
.filters {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--rule);
  margin-top: 27px;
}
.filters button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0 0 17px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.filters button sup {
  font: 9px var(--mono);
  margin-left: 4px;
}
.filters button[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--ink);
}
.filters button:hover {
  color: var(--accent);
}
.catalogue-label {
  display: flex;
  justify-content: space-between;
  padding: 24px 0 13px;
  color: var(--muted);
  font-size: 9px;
}
.entries {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}
.entry > a {
  display: grid;
  grid-template-columns: 90px 1fr 140px 24px;
  align-items: start;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: background 160ms ease;
}
.entry-id {
  color: var(--accent);
  padding-top: 4px;
  font-size: 10px;
}
.entry-id small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 9px;
}
.entry-main > .eyebrow {
  font-size: 15px;
  color: var(--muted);
}
.entry h3 {
  font-family: var(--display);
  font-weight: 300;
  font-size: 32px;
  line-height: 1.15;
  margin: 8px 0 10px;
  max-width: 750px;
}
.entry p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  max-width: 660px;
}
.entry-aside {
  display: flex;
  align-items: end;
  flex-direction: column;
  gap: 12px;
  padding-top: 5px;
  font: 9px var(--mono);
  color: var(--muted);
}
.entry-arrow {
  font-size: 24px;
  text-align: right;
  line-height: 1;
  padding-top: 5px;
  transition: transform 180ms var(--ease);
}
.entry > a:hover h3 {
  color: var(--accent);
}
.entry > a:hover .entry-arrow {
  transform: translate(3px, -3px);
}
.catalogue-note {
  font-size: 11px;
  max-width: 620px;
  color: var(--muted);
  padding: 30px 0 65px;
}
.empty-state {
  padding: 65px 0;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}
.empty-state h2 {
  font-size: 42px;
}
.empty-state p {
  margin: 16px 0 24px;
  font-size: 14px;
  color: var(--muted);
}
/* Research detail: margin notes and a comfortable reading measure */
.article-head {
  padding-top: 43px;
}
.back {
  color: var(--muted);
  text-decoration: none;
}
.back:hover {
  color: var(--accent);
}
.article-title {
  padding: 42px 0 44px;
  border-bottom: 1px solid var(--ink);
  max-width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.article-title h1 {
  font-size: clamp(48px, 5.7vw, 80px);
  max-width: 990px;
  line-height: 1.04;
  margin: 19px 0 23px;
  overflow-wrap: anywhere;
}
.article-summary {
  max-width: 730px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}
.article-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 740px);
  justify-content: space-between;
  gap: 60px;
  padding-block: 47px 75px;
}
.article-details dl {
  margin: 25px 0;
}
.article-details dl > div {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.article-details dt {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 3px;
}
.article-details dd {
  margin: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.source-button {
  font-size: 11px;
  padding: 12px 14px;
  width: 100%;
  gap: 12px;
  margin-bottom: 9px;
}
.article-details > .text-link {
  display: flex;
  justify-content: space-between;
  width: fit-content;
  font-size: 11px;
  margin-top: 13px;
}
.prose {
  font-size: 17px;
  line-height: 1.85;
  min-width: 0;
}
.prose p {
  margin-bottom: 22px;
}
.prose > p:first-child {
  margin-top: 0;
}
.prose h2 {
  font-size: 38px;
  margin: 45px 0 18px;
}
.prose h3 {
  font-size: 22px;
  margin: 30px 0 12px;
}
.prose li {
  padding-left: 6px;
  margin-block: 8px;
}
.prose a {
  color: var(--accent);
}
.prose pre {
  font-size: 12px;
  line-height: 1.8;
  background: var(--surface);
  padding: 23px;
  overflow: auto;
  border: 1px solid var(--rule);
}
.prose code {
  font-family: var(--mono);
  font-size: 0.82em;
}
.prose pre code {
  font-size: inherit;
}
.prose blockquote {
  margin: 30px 0;
  padding: 16px 24px;
  border-left: 2px solid var(--accent);
  background: var(--surface);
}
.prose blockquote p:last-child {
  margin-bottom: 0;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-block: 25px;
}
.prose th,
.prose td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--rule);
}
.prose th {
  font-weight: 550;
}
.prose img {
  max-width: 100%;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 35px 0;
}
.katex-display {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 0;
}
.citation {
  margin: 48px 0 32px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.citation-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.citation h2 {
  font-size: 25px;
  margin: 0;
}
.citation button {
  font: 10px var(--mono);
  background: none;
  border: 1px solid var(--rule);
  padding: 10px 14px;
}
.citation button:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.copy-status {
  display: block;
  color: var(--muted);
  min-height: 16px;
  font-size: 10px;
}
.related {
  padding-bottom: 70px;
}
.related .section-heading {
  border-top: 1px solid var(--ink);
  padding-top: 35px;
  margin-bottom: 25px;
}
.related h2 {
  font-size: 42px;
}
.related .section-heading > .eyebrow {
  margin: 0;
  color: var(--muted);
}
.history {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding-bottom: 90px;
}
.history .page-heading p {
  font-size: 15px;
  max-width: 340px;
  color: var(--muted);
  margin-top: 25px;
}
.history-prose {
  padding-top: 90px;
  font-size: 14px;
}
.history-prose h2 {
  font-size: 30px;
}
.history-prose h2:first-child {
  margin-top: 0;
}
.missing {
  padding-block: 80px 100px;
}
.missing h1 {
  margin: 25px 0;
}
.missing em {
  color: var(--accent);
}
.missing p {
  color: var(--muted);
  margin-bottom: 25px;
}
.lost-art {
  width: min(700px, 100%);
  margin: 10px 0 30px;
  overflow: visible;
  fill: none;
  stroke: var(--thread);
  stroke-width: 1.4;
  stroke-linecap: round;
}
.lost-art .red {
  stroke: var(--accent);
  stroke-width: 2;
}
.lost-art text {
  font-family: var(--hand);
  font-weight: 300;
  font-size: 20px;
  fill: var(--muted);
  stroke: none;
}
@media (max-width: 1100px) {
  .wrap {
    width: calc(100% - 72px);
  }
  .button {
    gap: 22px;
  }
  .entry > a {
    grid-template-columns: 70px 1fr 120px 20px;
    gap: 18px;
  }
  .entry h3 {
    font-size: 28px;
  }
  .article-layout {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 40px;
  }
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .top {
    height: 80px;
  }
  .brand {
    font-size: 21px;
    gap: 9px;
  }
  .brand svg {
    width: 29px;
    height: 29px;
  }
  .desktop-nav {
    display: none;
  }
  .mobile-nav {
    display: block;
    font-size: 12px;
  }
  .mobile-nav summary {
    list-style: none;
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 12px 0;
  }
  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }
  .mobile-nav summary span {
    font-size: 20px;
    font-weight: 300;
  }
  .mobile-nav[open] summary span {
    transform: rotate(45deg);
  }
  .mobile-nav nav {
    position: absolute;
    top: 79px;
    left: -20px;
    right: -20px;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
    box-shadow: 0 15px 20px color-mix(in srgb, var(--ink) 7%, transparent);
    padding: 16px 20px;
    display: grid;
    gap: 0;
  }
  .mobile-nav nav a {
    padding: 12px 4px;
    text-decoration: none;
    border-top: 1px solid var(--rule);
  }
  .plate {
    padding-block: 72px;
  }
  .plate-text,
  .method-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .plate-opening h1 {
    margin-top: 48px;
  }
  .figure-controls input {
    width: 110px;
  }
  .figure-controls label {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .decode-art {
    width: 170%;
    margin-left: -35%;
  }
  .scribble {
    font-size: 13px;
    text-align: left;
  }
  .circled {
    font-size: 21px;
    white-space: normal;
  }
  .night-art,
  .roots-art {
    width: 160%;
    margin-left: -30%;
  }
  .plate-art .aside,
  .night-art text {
    display: none;
  }
  .specimens {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .specimens a {
    padding: 14px 12px 18px;
  }
  .specimen-key {
    flex-direction: column;
    align-items: start;
  }
  .specimen-key ul {
    flex-wrap: wrap;
  }
  .principles {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .article-glyph {
    display: none;
  }
  .section-heading {
    align-items: start;
    gap: 20px;
    flex-direction: column;
    margin-bottom: 27px;
  }
  .section-heading .eyebrow {
    margin-bottom: 20px;
  }
  h2 {
    font-size: 52px;
  }
  .section-heading > .text-link {
    margin: 0;
  }
  .footer {
    padding-top: 56px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }
  .footer-top > .brand {
    grid-column: 1/-1;
  }
  .footer-top p {
    font-size: 24px;
  }
  .footer-top nav {
    font-size: 11px;
    gap: 8px 15px;
  }
  .footer-bottom {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    font-size: 8px;
    padding-bottom: 24px;
  }
  .page-heading {
    padding: 42px 0 30px;
  }
  .page-heading h1 {
    font-size: 67px;
  }
  .page-intro {
    flex-direction: column;
    align-items: start;
    gap: 14px;
    margin-top: 20px;
  }
  .page-intro p {
    font-size: 14px;
  }
  .filters {
    gap: 16px 20px;
    margin-top: 23px;
  }
  .filters button {
    font-size: 10px;
    padding-bottom: 12px;
  }
  .search {
    padding: 6px 10px;
  }
  .search input {
    font-size: 12px;
  }
  .search kbd {
    display: none;
  }
  .catalogue-label {
    font-size: 8px;
  }
  .entry > a {
    grid-template-columns: 45px minmax(0, 1fr) 20px;
    gap: 12px;
    padding-block: 25px;
  }
  .entry-id {
    font-size: 9px;
  }
  .entry-main > .eyebrow {
    font-size: 14px;
  }
  .entry h3 {
    font-size: 28px;
  }
  .entry p {
    font-size: 12px;
  }
  .entry-aside {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    font-size: 8px;
    padding: 0;
    gap: 10px;
    flex-wrap: wrap;
  }
  .entry-aside .tag {
    font-size: 8px;
  }
  .entry-arrow {
    grid-column: 3;
    grid-row: 1;
    font-size: 21px;
  }
  .catalogue-note {
    padding-bottom: 40px;
  }
  .article-head {
    padding-top: 28px;
  }
  .article-title {
    padding: 29px 0;
  }
  .article-title h1 {
    font-size: 38px;
    line-height: 1.08;
    overflow-wrap: break-word;
  }
  .article-summary {
    font-size: 15px;
    line-height: 1.75;
  }
  .article-layout {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 28px 0 40px;
  }
  .article-details dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
    margin: 16px 0;
  }
  .article-details .source-button {
    max-width: 230px;
  }
  .article-details > .text-link {
    display: inline-flex;
    margin-right: 20px;
  }
  .prose {
    font-size: 16px;
  }
  .prose h2 {
    font-size: 33px;
  }
  .prose pre {
    padding: 15px;
    font-size: 10px;
  }
  .citation-heading {
    align-items: center;
  }
  .citation h2 {
    font-size: 26px;
  }
  .citation button {
    padding: 9px;
    font-size: 9px;
  }
  .related {
    padding-bottom: 40px;
  }
  .related h2 {
    font-size: 39px;
  }
  .history {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 50px;
  }
  .history-prose {
    padding-top: 10px;
  }
  .history-prose h2 {
    font-size: 29px;
  }
  .missing {
    padding-block: 50px 70px;
  }
  .missing h1 {
    font-size: 58px;
  }
}
@media (max-width: 380px) {
  .page-heading h1 {
    font-size: 58px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .top,
  .footer,
  body::after,
  .article-details,
  .copy-status,
  .citation button,
  .related {
    display: none;
  }
  .wrap {
    width: 100%;
  }
  body {
    background: white;
    color: black;
  }
  .article-layout {
    display: block;
  }
  .article-title h1 {
    font-size: 38pt;
  }
  .prose {
    font-size: 11pt;
  }
  .prose pre {
    white-space: pre-wrap;
  }
  .article-summary {
    font-size: 13pt;
  }
}
