:root {
  --ink: #1d1b18;
  --quiet: #77716a;
  --rule: #e2ddd5;
  --paper: #fbfaf7;
  --accent: #c8432b;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
body { margin: 0; }
a { color: inherit; }

/* The wall ---------------------------------------------------------------- */
.wall { padding: 48px 40px 80px; max-width: 1480px; margin: 0 auto; }
.wall-head h1 { font-size: 64px; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 16px; }
.lede { font-size: 19px; line-height: 1.45; max-width: 46em; margin: 0 0 12px; }
.lede--small { font-size: 15px; color: var(--quiet); }
.wall-section { margin-top: 56px; }
.wall-section h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; border-top: 2px solid var(--ink); padding-top: 10px; margin: 0; }
.wall-section .count { color: var(--quiet); font-weight: 400; }
.blurb { color: var(--quiet); font-size: 14px; margin: 6px 0 20px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 22px 18px; }
.card { text-decoration: none; display: block; }
.thumb { aspect-ratio: 1; background: #fff; border: 1px solid var(--rule); }
.card:hover .thumb { border-color: var(--ink); }
.card-name { font-size: 13px; font-style: italic; margin-top: 7px; line-height: 1.25; }
.card-recipe { font-family: "SF Mono", Menlo, monospace; font-size: 10.5px; color: var(--quiet); margin-top: 2px; }

/* A chimera --------------------------------------------------------------- */
.chimera { width: 100%; height: 100%; display: block; }
.chimera-mark { stroke: #fff; stroke-linejoin: round; }
.chimera-link { fill: none; stroke: #8f887e; stroke-width: 0.9; }
.thumb .chimera-mark { stroke-width: 0.4; }
.thumb .chimera-link { stroke-width: 0.6; }

/* A creature's page --------------------------------------------------------- */
.creature { padding: 20px 32px 40px; }
.creature-head { display: flex; align-items: baseline; gap: 28px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; flex-wrap: wrap; }
.creature-head h1 { font-size: 34px; font-style: italic; font-weight: 400; margin: 0; flex: 1; }
.back { font-size: 14px; text-decoration: none; color: var(--quiet); }
.back:hover { color: var(--ink); }
.steps { display: flex; gap: 8px; }
button { font: inherit; font-size: 14px; border: 1px solid var(--ink); background: #fff; padding: 5px 12px; cursor: pointer; }
button:hover { background: var(--ink); color: #fff; }
button.breed { background: var(--accent); border-color: var(--accent); color: #fff; }
.creature-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; margin-top: 20px; }
.creature-figure { background: #fff; border: 1px solid var(--rule); aspect-ratio: 4 / 3; }
.recipe h2 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; margin: 22px 0 8px; color: var(--quiet); }
.recipe h2:first-child { margin-top: 0; }
.band { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.band select { font: inherit; font-size: 14px; padding: 3px; }
.band .remove { padding: 2px 8px; }
.rest-note { font-size: 13px; color: var(--quiet); }
.add { margin-top: 4px; font-size: 13px; }
.draft { font-family: "SF Mono", Menlo, monospace; font-size: 13px; width: 100%; box-sizing: border-box; padding: 6px; border: 1px solid var(--rule); }
.datasets { display: flex; flex-direction: column; gap: 6px; }
.datasets button { text-align: left; }
.datasets .on { background: var(--ink); color: #fff; }
.count-note { font-size: 12px; color: var(--quiet); }
.seams, .form-notes { padding-left: 18px; margin: 0; font-size: 13px; line-height: 1.45; }
@media (max-width: 900px) { .creature-body { grid-template-columns: 1fr; } }

/* The hero: the collection's cladogram ------------------------------------- */
.hero-figure { margin: 28px 0 8px; }
.hero { width: 100%; height: auto; display: block; }
.hero .chimera-link { stroke: #b4ada3; stroke-width: 0.7; }
.hero-genus { font-size: 13px; font-style: italic; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; pointer-events: none; }
.hero-leader { stroke: var(--ink); stroke-width: 0.6; stroke-dasharray: 2 3; fill: none; }
.hero-leaf { fill: var(--accent); }
.hero-specimen { cursor: pointer; }
.hero-frame { fill: #fff; stroke: var(--rule); }
.hero-specimen:hover .hero-frame { stroke: var(--ink); }
.hero-name { font-size: 12.5px; font-style: italic; fill: var(--ink); }

/* Colour ------------------------------------------------------------------ */
.palettes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.swatch { display: flex; padding: 0; height: 20px; border: 1px solid var(--rule); overflow: hidden; }
.swatch span { flex: 1; }
.swatch.on { outline: 2px solid var(--ink); outline-offset: 1px; }
.swatch:hover { background: none; border-color: var(--ink); }
.offset { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.offset input { flex: 1; }
.offset .own { font-size: 12px; padding: 3px 8px; }
.offset .own.on { background: var(--ink); color: #fff; }

/* The landing: title, motto, hero, then what it is ------------------------- */
.wall-head h1 { margin-bottom: 6px; }
.motto { font-size: 20px; font-style: italic; line-height: 1.4; max-width: 40em; margin: 0; color: var(--ink); }
.motto .after { font-style: normal; font-size: 13px; color: var(--quiet); margin-left: 0.6em; white-space: nowrap; }
.wall-intro { margin-top: 8px; }

/* A creature's page: previous, all, next ---------------------------------- */
.creature-nav { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 2; background: var(--paper); padding: 10px 0; border-bottom: 1px solid var(--rule); }
.creature-nav .nav-step { font-size: 16px; padding: 8px 20px; }
.nav-top { font-size: 15px; text-decoration: none; letter-spacing: 0.04em; padding: 8px 16px; border: 1px solid transparent; }
.nav-top:hover { border-color: var(--ink); }
.creature-head { margin-top: 14px; }
.steps button { font-size: 13px; }
button.drift.on { background: var(--ink); color: #fff; }
