/* creature.blog — one stylesheet, no build step.
   Type: Crimson Text (self-hosted, latin + latin-ext), Georgia metric-matched
   fallback. One theme only: warm cream paper.
   Layout: 160px nav column + 80px gap + reading column, stacking under 720px. */

/* ---------------------------------------------------------------- fonts */

@font-face {
  font-family: 'Crimson Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/crimson-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Crimson Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/crimson-400-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Crimson Text';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/crimson-400i.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Crimson Text';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/crimson-400i-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Crimson Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/crimson-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Crimson Text';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/crimson-600i.woff2') format('woff2');
}
@font-face {
  font-family: 'Crimson Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/crimson-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Crimson Text';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/crimson-700i.woff2') format('woff2');
}

/* Georgia, scaled and re-boxed to sit on Crimson Text's metrics so the swap
   doesn't reflow. Measured in the browser with the real font in place:
   CT x-height .4238 / asc .949 / desc .351 em; Georgia x-height .4814.
   .4238/.4814 = .880, advance ratio .923 -> 90% is the honest compromise
   (matching x-height exactly would overshoot the line lengths). */
@font-face {
  font-family: 'Crimson Fallback';
  src: local('Georgia'), local('Times New Roman');
  size-adjust: 90%;
  ascent-override: 105.4%;
  descent-override: 39%;
  line-gap-override: 0%;
}

/* ---------------------------------------------------------------- tokens */

:root {
  /* One theme: cream paper, no dark variant, so the ground never changes
     under the photographs. */
  color-scheme: only light;

  --paper: #faf7f0;        /* the cream, og.png's ground too */
  --paper-sunk: #f2ece1;   /* code, and a photograph's room until it comes */
  --ink: #1a1a1a;
  --ink-muted: #6b625a;    /* warmed off neutral grey so it sits on cream */
  --rule: #ded6c6;
  --accent: #c1512e;       /* the brand orange: wordmark, marks, ornaments */
  --accent-text: #b94a28;  /* a shade deeper, so link-size text clears AA */
  --accent-hover: #9e3f20;
  --accent-wash: #dfb4a2;  /* underlines and the blockquote rule */
  --mark: rgba(193, 81, 46, 0.16);

  --serif: 'Crimson Text', 'Crimson Fallback', Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas,
    'Liberation Mono', monospace;

  /* 20px. Crimson's x-height is small (.424em against Georgia's .481), so
     it sets a size smaller than the number suggests, but 22px read as loud
     for a quiet site; 20px on the same column gives ~66 characters a line. */
  --body-size: 1.25rem;
  /* The type scale. Every piece of text takes one of these sizes, by role:
       laptop  phone
       30px    28px   the wordmark
       28px    26px   page titles: an article, the 404, a short contents list
       24px    22px   headings: ## in a piece, contents entries, a creature's name
       20px    18px   body: prose, ### (bold italic), year labels, notices
       18px    17px   the nav
       17px    17px   secondary: descriptions, notes, captions, tables, quote
                      attributions, "another", back links
       14px    14px   dates, photo credits; code blocks (mono runs large)
     The name leads its column and the nav stands a step under the text: with
     the nav at the text's own size and the name barely over it, a page of a
     few lines read as one size throughout, and the text looked big.
     Inline code (0.76em) and footnote markers (0.64em) scale with their line. */
  /* In rem, not em: it is applied to elements at several font sizes (prose,
     footnotes, headings) and they all have to share one right-hand edge. */
  --measure: 38rem;        /* 608px: ~66 characters of 20px Crimson */
  --nav-width: 160px;
  --gutter: 80px;
  /* What the name's column keeps from the layout's own edge when the window
     is too narrow to centre the text: with the padding, 56px from the side of
     the window, clear of the glow at its rim. */
  --clear: 1rem;
}

/* ---------------------------------------------------------------- base */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  /* A phone lays a grey box over whatever is tapped. Every press here is already
     answered, by a beat at the edge of the window, and the box only gets in its way. */
  -webkit-tap-highlight-color: transparent;
  background: var(--paper);
}

body {
  font-family: var(--serif);
  font-size: var(--body-size);
  line-height: 1.52;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: oldstyle-nums proportional-nums;
  hanging-punctuation: first last;
  /* Inherited by everything: a word or an address too long for its line breaks
     where it must, in a title, a list, a note or a caption as much as in a
     paragraph, instead of pushing a phone's page sideways. */
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--mark);
}

/* Plain by default: colour carries the link and the underline arrives on
   hover. Running prose turns it on permanently. */
a {
  color: var(--accent-text);
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  text-decoration-color: var(--accent-wash);
  transition: color 0.2s;
}

/* Every hover rule in this file sits inside (hover: hover). A touch screen has
   no hover, and treats the last thing tapped as hovered until something else
   is: `another` stayed dark and underlined after each press. */
@media (hover: hover) {
  a:hover {
    color: var(--accent-hover);
    text-decoration-line: underline;
    text-decoration-color: currentColor;
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
  /* Brought into view by Tab, it stands clear of the window's edge, where
     the glow is, with its ring whole. */
  scroll-margin-block: 2rem;
}

/* The router moves focus to the new view's heading so a screen reader hears
   where it landed. That is a programmatic focus, not something the reader
   aimed at, so it gets no ring — a box drawn round the title of every page
   you navigate to reads as a fault. Real focus targets keep theirs. */
.main[tabindex='-1']:focus,
.main[tabindex='-1']:focus-visible,
.view h1[tabindex='-1']:focus,
.view h1[tabindex='-1']:focus-visible {
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Digits in dates, footnote numbers and code want to stay lining. */
code,
kbd,
pre,
samp {
  font-variant-numeric: normal;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: var(--paper);
  color: var(--accent-text);
  font-size: 1.0625rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--rule);
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------- layout */

/* The text is the page, so the reading column — not the nav-plus-column block
   — is what sits in the centre of the window. The nav hangs in the left margin
   beside it, 160px wide and 80px away. The side tracks
   share the leftover space equally, but the left one can never be narrower
   than the nav and its gutter: as the window narrows the right margin gives
   way first and the column slides left, with no breakpoint and nothing
   jumping. The column is the measure, not 680px — 680px of 22px Crimson is
   83 characters to a line. */
.layout {
  display: grid;
  grid-template-columns:
    minmax(calc(var(--nav-width) + var(--gutter) + var(--clear)), 1fr)
    minmax(0, var(--measure))
    minmax(0, 1fr);
  padding: 3.75rem 2.5rem 6rem;
}

.masthead {
  align-self: start;
  justify-self: end;
  width: var(--nav-width);
  margin-right: var(--gutter);
  /* Sticky so the three sections stay reachable inside a long essay. It adds
     nothing to look at; it only stops the nav scrolling away. */
  position: sticky;
  top: 3.75rem;
  /* The masthead is set as lines of the text itself (the name's rule, below
     the nav's, says why), and its first line, which holds the name, is
     lowered as the about page's first line is: onto the baseline a title
     has, 84px down the page. */
  padding-top: 0.1875rem;
}

/* As wide as the word and no wider, like the nav labels below it, so the
   focus ring fits it instead of boxing the column's empty remainder. Never
   broken: the o holds a box (below), and a line could otherwise end at it. */
.wordmark {
  display: block;
  width: fit-content;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--accent);
}

@media (hover: hover) {
  .wordmark:hover {
    color: var(--accent-hover);
    text-decoration: none;
  }
}

/* The hamster's face stands in for the o, on a screen sharp enough to show a
   face that small: one that draws two dots or more to the pixel. There the
   letter is not painted, though it keeps its place, so the word is set as it
   ever was; and the picture is drawn where the letter stood, a box just
   before it that takes no room, rounded into an oval that is the outside of
   Crimson Bold's o. Its measures are that letter's, in em. A screen with
   fewer dots has too few of them for a face, so there, and on paper, the o
   is a plain o.
   The box is as wide as the oval and its right margin takes back exactly
   that width, so the letters after it stand where they stood; it is set in
   from the letter's left edge by its position, which moves it and nothing
   else. (Left margin, width and right margin, three lengths that only add up
   to nothing, can come to a sixty-fourth of a pixel less, and one engine
   then sets the rest of the word a whole pixel to the left.) The bottom
   margin is less than nothing because the round foot of an o dips a little
   below the line the other letters stand on.
   A thin line in the word's colour runs round the face, just inside the
   oval, a little heavier at the sides as the letters' own strokes are. It is
   two shadows, each the oval drawn in by the line's thickness at top and
   bottom and pushed to one side by what the sides have over that. It has the
   word's colour because the letter is hidden by its fill and keeps its
   colour, so the line darkens with the word under a pointer. The picture is
   in this file so that it comes with the word and costs no request. */
@media screen and (-webkit-min-device-pixel-ratio: 2), screen and (min-resolution: 2dppx) {
  .wordmark span {
    -webkit-text-fill-color: transparent;
  }

  .wordmark span::before {
    content: '';
    display: inline-block;
    position: relative;
    left: 0.0254em;
    width: 0.4590em;
    height: 0.4434em;
    margin: 0 -0.4590em -0.0068em 0;
    border-radius: 50%;
    background: url("data:image/jpeg;base64,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") center / 100% 100% no-repeat;
    box-shadow: inset 0.0117em 0 0 0.0215em, inset -0.0117em 0 0 0.0215em;
  }
}

/* The nav is one list, so it is leaded like one: body-size type on a 1.7 line
   at first, and since the sizes were gone through a step under the text
   (18px) on the text's own lines. The list keeps the text's own type, so
   each item is a line of the text, 30.4px; a label is a smaller box hung on
   that line's baseline, and its margins keep it inside the line's height so
   that it cannot move the line. So a label stands where a line of the text
   stands, whatever a screen or a browser makes of this face's measures at
   18px. The list begins one empty line under the name's line: its labels are
   lines three to five of a column of plain text (the about page), and the
   name stands off as the list's heading. */
.nav {
  margin-top: 1.9rem;
}

.nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}

/* inline-block, not block: a block would stretch to the full 160px column and
   the focus ring would draw a box round the empty half of it. The padding
   gives the label the whole of its line to be pressed in, and the margin
   takes it back. */
.nav a {
  display: inline-block;
  position: relative;
  margin: -0.25rem 0 -0.3rem;
  padding: 0.25rem 0 0.3rem;
  font-size: 1.125rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--ink);
}

/* The deeper orange, not the wordmark's: the label is body-size text and
   #c1512e on cream is 4.38:1, just under AA. */
.nav a[aria-current] {
  color: var(--accent-text);
  text-decoration: none;
}

@media (hover: hover) {
  .nav a:hover {
    color: var(--accent-text);
    text-decoration: none;
  }
}

/* The current section is marked with a small caret. It is
   drawn, not typed: Crimson has no U+25B8, so each system's fallback font set
   it at a different size and height. It hangs outside the label on every
   layout, so the labels never move and keep one left edge with the wordmark. */
.nav a::before {
  content: '';
  position: absolute;
  right: calc(100% + 0.36em);
  top: calc(50% - 0.23em);
  border-left: 0.3em solid var(--accent);
  border-top: 0.23em solid transparent;
  border-bottom: 0.23em solid transparent;
  visibility: hidden;
}

.nav a[aria-current]::before {
  visibility: visible;
}

/* The name's size, set here beside the nav's because the two are one scale:
   30px over 18px, the name plainly the name and the nav a step under the
   text. (At the nav's old size, the text's own, with the name barely over
   it, a page of a few lines read as one size throughout.)
   It is hung as the nav's labels are: a box on the baseline of the
   masthead's first line, which is a line of the text's own type, with
   margins that keep it inside that line's height. So the name stands on the
   baseline of the column's first line because both are the same line of the
   same type, and not by a measured nudge. A nudge cannot do it: at 30px this
   face's ascent and descent both fall on a half pixel, a screen of one dot
   to the pixel rounds them one way and a screen of two the other, and the
   name came out a pixel lower on the second. */
.masthead .wordmark {
  display: inline-block;
  margin: -0.5rem 0 -0.25rem;
  font-size: 1.875rem;
}

.main {
  min-width: 0;
}

/* The sections of a long piece, under the nav and in its column: what is in
   the piece, a way to any part of it, and where the reader is. It is set as
   the nav above it is: the list keeps the text's own type, so each name is
   on a line of the text, and the name itself is a smaller box hung on that
   line's baseline. It begins one empty line under the nav, so its names are
   on the text's lines as the nav's labels are. Smaller and quieter than the
   nav, which it must never be taken for: the size and the grey of a date,
   with the section being read in ink. A name that takes two lines is hung by
   its first (a flex box's baseline is its first line's), and what follows it
   stands lower by its second. */
.sections {
  position: relative;
  margin-top: 1.9rem;
}

.sections ol {
  list-style: none;
}

.sections a {
  display: inline-flex;
  font-size: 0.875rem;
  line-height: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  text-wrap: balance;
  transition: color 0.2s;
}

.sections a[aria-current] {
  color: var(--ink);
}

/* Under a pointer it answers as the nav's labels do, in the accent: ink is
   what says which section is being read. */
@media (hover: hover) {
  .sections a:hover {
    color: var(--accent-text);
    text-decoration: none;
  }
}

/* Under a finger (a tablet: a phone has no list) a name answers for the
   whole of its line and a little to each side. */
@media (pointer: coarse) {
  .sections a {
    position: relative;
  }

  .sections a::after {
    content: '';
    position: absolute;
    inset: -0.325rem -0.75rem;
  }
}

/* The mark beside the list is a dot in ink (the triangle and the rust are
   the nav's), and the page's script moves it down the list as the piece is
   read. It hangs where the nav's own mark hangs, and stands at the middle
   of the small letters of a line: a little under the middle of the line
   itself. */
.sections-at {
  position: absolute;
  top: -0.05rem;
  right: calc(100% + 0.45rem);
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: var(--ink);
  transition: opacity 0.2s;
}

/* Above the first section the reader is in none of them, and a dot over the
   list would be a speck: it comes with the first section. */
.sections.is-before .sections-at {
  opacity: 0;
}

.sections.is-out {
  visibility: hidden;
}

/* A heading gone to (from the list of sections, or by an address that names
   it) lands a little under the top of the window. */
.prose h2[id],
.prose h3[id] {
  scroll-margin-top: 2.5rem;
}

/* ---------------------------------------------------------------- states */

.notice {
  color: var(--ink-muted);
  font-style: italic;
  text-wrap: balance;
}

.notice a {
  font-style: normal;
}

/* A notice that is the column's first line (a contents page with nothing on
   it yet, a page still on its way) stands on the baseline the name stands
   on, as a title does and the about page's first line. */
.view > .notice {
  padding-top: 0.1875rem;
}

/* ------------------------------------------------------------ contents */

.index-list {
  list-style: none;
}

.index-item + .index-item {
  margin-top: 1.75rem;
}

/* The whole entry is one link, so the description and date are part of the
   target rather than decoration beside it. */
.index-item > a {
  display: block;
  color: inherit;
}

.index-title {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.24;
  color: var(--ink);
  text-wrap: balance;
  transition: color 0.2s;
}

/* Only the title answers the hover. Underlining the whole entry — title,
   description and date together — would be a lot of rules for one link. */
.index-item > a:focus-visible .index-title {
  color: var(--accent-text);
}

@media (hover: hover) {
  .index-item > a:hover {
    text-decoration: none;
  }

  .index-item > a:hover .index-title {
    color: var(--accent-text);
  }
}

.index-desc {
  display: block;
  max-width: 26em;
  margin-top: 0.3rem;
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--ink-muted);
  text-wrap: balance;
}

.index-date {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}

/* Few pieces: let each one take more room, so three entries read as a
   composed contents page rather than a stub feed. */
.index-list[data-density='sparse'] .index-item + .index-item {
  margin-top: 2.5rem;
}

.index-list[data-density='sparse'] .index-title {
  font-size: 1.75rem;
  line-height: 1.16;
  letter-spacing: -0.006em;
}

.index-list[data-density='sparse'] .index-date {
  margin-top: 0.6rem;
}

.index-year {
  margin: 3.75rem 0 1.4rem;
  font-size: var(--body-size);
  font-weight: 400;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
}

/* Not :first-child — the view opens with a visually-hidden <h1>, so the first
   year heading is never the first child and used to inherit the 3.75rem. */
.index-year:first-of-type {
  margin-top: 0;
}

/* Whatever opens the contents page stands on the baseline the name stands
   on, as a short list's first title does: a longer list's smaller title is
   lowered two pixels for it, and a year three, as a notice is. Not on a
   phone, where nothing stands beside the column. */
.view > h1 + .index-list[data-density='normal'] {
  padding-top: 0.125rem;
}

.view > h1 + .index-year {
  padding-top: 0.1875rem;
}

@media (max-width: 720px) {
  .view > h1 + .index-list[data-density='normal'],
  .view > h1 + .index-year {
    padding-top: 0;
  }
}

/* ------------------------------------------------------------- article */

.article-header {
  margin-bottom: 2.1rem;
}

/* Where the nav stands beside the text, the head of a piece is the height
   that puts the text's first line on the nav's second: the title on the
   name's baseline, and the first two lines of the piece on the lines of the
   two labels under the first. (Four pixels less than elsewhere; on a phone
   and on paper nothing stands beside the text.) */
@media screen and (min-width: 721px) {
  .article-header {
    margin-bottom: 1.85rem;
  }
}

.article-title {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.006em;
  text-wrap: balance;
}

.article-date {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}

/* ---- prose -------------------------------------------------------- */

.prose > * {
  max-width: var(--measure);
}

.prose p {
  margin-bottom: 1.1em;
  text-wrap: pretty;
  /* No automatic hyphens at this measure — they only add noise, and they
     look wrong in the larger settings. Narrow screens turn them on below. */
  hyphens: manual;
  overflow-wrap: break-word;
}

.prose > :last-child {
  margin-bottom: 0;
}

/* Where the nav stands beside the text, whatever a piece opens with begins
   where a paragraph would. A quotation or a list brings space of its own
   over it, and that put its first line off the lines the nav stands on. */
@media screen and (min-width: 721px) {
  .article-header + .prose > :first-child {
    margin-top: 0;
  }
}

.prose h2 {
  max-width: 22em;
  margin: 2.2em 0 0.6em;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.004em;
  text-wrap: balance;
}

/* Set apart by italic rather than by size, so it can sit at reading size
   and still read as subordinate to an h2. */
.prose h3 {
  max-width: 22em;
  margin: 1.9em 0 0.45em;
  font-size: 1.25rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.3;
  text-wrap: balance;
}

.prose h2 + h3 {
  margin-top: 1.1em;
}

/* Inside an essay a link has to be visible mid-sentence, so in running text
   the underline is permanent. The back-links in the notes are navigation, so
   they are left plain. (The notes are a section of their own, beside the
   prose and not inside it, so each rule they share with it names them.) */
.prose a,
.footnotes li a:not(.fn-back),
.sources li a:not(.fn-back),
.is-peek a {
  text-decoration-line: underline;
}

.prose strong,
.footnotes strong,
.sources strong,
.is-peek strong {
  font-weight: 600;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.5em;
}

/* Wider than the line gap, or the items read as one paragraph. */
.prose li {
  margin-bottom: 0.45em;
  text-wrap: pretty;
}

.prose li > ul,
.prose li > ol {
  margin: 0.45em 0 0.2em;
}

.prose ul {
  list-style-type: '\2013\2003';
}

.prose ul ul {
  list-style-type: '\2022\2003';
}

.prose ol {
  list-style-type: decimal;
}

.prose ol ol {
  list-style-type: lower-alpha;
}

.prose li::marker {
  color: var(--ink-muted);
  font-variant-numeric: oldstyle-nums;
}

.prose blockquote {
  margin: 1.8em 0;
  padding-left: 1.3em;
  border-left: 2px solid var(--accent-wash);
}

.prose blockquote p {
  margin-bottom: 0.75em;
}

.prose blockquote p:last-of-type {
  margin-bottom: 0;
}

.prose blockquote footer {
  margin-top: 0.65em;
  font-size: 1.0625rem;
  color: var(--ink-muted);
  text-wrap: balance;
}

.prose code,
.footnotes code,
.sources code,
.is-peek code {
  font-family: var(--mono);
  font-size: 0.76em;
  background: var(--paper-sunk);
  padding: 0.1em 0.32em;
  border-radius: 2px;
  overflow-wrap: break-word;
}

/* Size and leading belong on the <pre>: left on the inner <code> they lose
   to the block's own 22px strut and the lines drift apart. */
/* Its margins are in the text's size, not its own: in its own small type
   the same figure came to two thirds of a quotation's space. */
.prose pre {
  max-width: var(--measure);
  margin: calc(1.8 * var(--body-size)) 0;
  padding: 1rem 1.15rem;
  font-size: 0.875rem;
  line-height: 1.65;
  background: var(--paper-sunk);
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow-x: auto;
}

.prose pre code {
  font-size: 1em;
  background: none;
  padding: 0;
  border-radius: 0;
  white-space: pre;
}

.prose figure {
  max-width: var(--measure);
  margin: 2.2em 0;
}

.prose figure img {
  display: block;
  border-radius: 2px;
}

/* A picture whose size is known (it has a width and a height) is drawn at
   that size, and never wider than the column, and its room is kept from the
   two before it arrives; one smaller than the column is not blown up to fill
   it. One whose size is not known fills the column. */
.prose figure img:not([width]) {
  width: 100%;
}

.prose figure picture {
  display: block;
}

/* A picture drawn narrower than the column (as the essay drew it, or a tall
   one kept no taller than the column is wide) stands in the middle of the
   column, and its caption is as wide as it is and begins where it begins:
   the caption gives the figure no width of its own, so the figure is as wide
   as its picture. Where the picture fills the column, as a tall photograph
   does on a phone, its caption stands at the column's edge, as any other's
   does. One narrower than a phone's column at its narrowest (276px) is small
   on every screen, and a caption as wide as it would be a few words to a
   line: its caption is centred under it, and wider than it. */
.prose figure.narrow {
  width: fit-content;
  margin-inline: auto;
}

.prose figure.narrow figcaption {
  contain: inline-size;
}

.prose figure.narrow img,
.prose figure.small img {
  margin-inline: auto;
}

.prose figure.small figcaption {
  margin-inline: auto;
  text-align: center;
  text-wrap: balance;
}

/* A picture straight under a heading belongs to the heading's section: as
   close to it as the text under a heading is, near enough. */
.prose h2 + figure,
.prose h3 + figure {
  margin-top: 1.2em;
}

.prose figcaption {
  max-width: 30em;
  margin-top: 0.6rem;
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--ink-muted);
  text-wrap: balance;
}

/* A photograph's room is a shade of the paper until it arrives, so that on a
   slow connection the space reads as a picture on its way and not as a gap.
   The photograph covers it whole; a drawing, which may be clear in places,
   keeps the paper. */
.prose figure picture:has(> source[type='image/avif']) img {
  background: var(--paper-sunk);
}

/* ---- tables ------------------------------------------------------- */

/* A table is set at the secondary size: a firmer rule under the heads, a
   hairline under each row, and nothing upright. It keeps the text's left
   edge. Figures are asked to be lining and of one width; Crimson's are lining
   already and all but even (only 0, 1 and 3 differ), and the request is for
   the fallback. */
.prose .table-scroll {
  overflow-x: auto;
}

/* As wide as its contents and no wider, up to the column it sits in, where
   its cells begin to wrap. */
.prose table {
  border-collapse: collapse;
  font-size: 1.0625rem;
  line-height: 1.4;
  font-variant-numeric: lining-nums tabular-nums;
}

/* That suits a table of up to four columns on a phone too. One of five or
   more keeps the shape it has on a wide screen (the 38rem measure, written
   out because a phone redefines it) and the phone scrolls it sideways in its
   own box: fitted to a phone, that many columns break every cell at every
   space, and scrolling reads better than that. */
.prose table:has(th:nth-child(5)) {
  width: max-content;
  max-width: max(100%, 38rem);
}

.prose th,
.prose td {
  padding: 0.5rem 1.75rem 0.5rem 0;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}

.prose th:last-child,
.prose td:last-child {
  padding-right: 0;
}

.prose th {
  padding-top: 0;
  font-weight: 600;
  vertical-align: bottom;
  border-bottom-color: var(--ink-muted);
  text-wrap: balance;
}

/* A browser centres a column's head unless told otherwise. Only a column
   that asks for an alignment (the align attribute the renderer writes) has
   one; the rest read from the left, heads included. */
.prose th:not([align]) {
  text-align: left;
}

/* A column set to the right or the centre is a column of figures or marks,
   and "118 words" is no use on two lines. Its head may still wrap. */
.prose td[align='right'],
.prose td[align='center'] {
  white-space: nowrap;
}

/* Section break: three small dots in the accent, spaced out. */
.prose .break {
  max-width: var(--measure);
  margin: 2.5em auto;
  border: 0;
  height: 4px;
  width: 42px;
  background-image: radial-gradient(
    circle at center,
    var(--accent) 0 1.6px,
    transparent 1.7px
  );
  background-size: 14px 4px;
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.75;
}

/* End mark, set inline after the last paragraph. */
.endmark {
  display: inline-block;
  width: 0.38em;
  height: 0.38em;
  margin-left: 0.35em;
  border-radius: 1.5px;
  background: var(--accent);
  vertical-align: 0.02em;
}

/* ---- notes and sources ---------------------------------------------- */

/* Two kinds of mark. A number is a note: something more to read. A letter is
   a source: where a thing comes from. Each is listed at the foot of the piece.
   Nothing else of them shows until it is asked for: with the page's script, a
   mark under a pointer shows what it stands for on a card, and a mark that is
   pressed opens it where it is cited (both further down). */

.prose sup a,
.footnotes sup a,
.is-peek sup a,
.footnotes li a.fn-back,
.sources li a.fn-back {
  font-variant-numeric: lining-nums;
}

.prose sup,
.footnotes sup,
.is-peek sup {
  font-size: 0.64em;
  line-height: 0;
  vertical-align: super;
}

.prose sup a,
.footnotes sup a,
.is-peek sup a {
  padding: 0 0.1em;
}

/* A source's letter is quieter than a note's number, and set differently
   enough to be told from it at this size: italic, in the ink of the date.
   It keeps the pale line that every link in the text has, which is what
   says it can be pressed: without it the letter was easy to miss
   altogether. */
.prose sup.src a,
.footnotes sup.src a,
.is-peek sup.src a {
  font-style: italic;
  color: var(--ink-muted);
}

/* A mark whose note is being kept has its line in full, for as long as it
   is: the one sign that the note beside the text will stay until the mark
   is pressed again. Only the line's colour changes, so nothing moves. */
.prose sup a[aria-expanded='true'],
.footnotes sup a[aria-expanded='true'] {
  text-decoration-color: var(--accent-text);
}

@media (hover: hover) {
  .prose sup.src a:hover,
  .footnotes sup.src a:hover,
  .is-peek sup.src a:hover {
    color: var(--accent-text);
  }
}

/* Two marks with nothing between them. */
sup.adj {
  margin-left: 0.2em;
}

.footnotes,
.sources {
  max-width: var(--measure);
  margin-top: 3rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--rule);
}

/* Under the notes the sources are the second half of one thing, with one rule
   over the pair. */
.footnotes + .sources {
  margin-top: 1.7rem;
  padding-top: 0;
  border-top: 0;
}

.footnotes h2,
.sources h2 {
  max-width: none;
  margin: 0 0 0.8rem;
  font-size: 1.0625rem;
  font-weight: 600;
  font-style: italic;
  color: var(--ink-muted);
}

/* Shorter than the column: at this size the column's width is eighty
   characters to a line, and a note is read more easily at sixty-odd. */
.footnotes ol,
.sources ol {
  max-width: 32rem;
  margin: 0;
  padding-left: 1.6em;
  font-size: 1.0625rem;
  line-height: 1.5;
}

.sources ol {
  list-style-type: lower-alpha;
}

/* Its letter in the list as it is in the text. */
.sources li::marker {
  font-style: italic;
}

.footnotes li,
.sources li {
  margin-bottom: 0.65em;
  scroll-margin-top: 2rem;
}

/* Weighed whole, as the text is, so that no word is left on a line alone with
   its way back. Not a note that cites a source, which can open inside it, and
   whose lines above the opening must not be set again. */
.footnotes li:not(:has(sup)),
.sources li {
  text-wrap: pretty;
}

.fn-back {
  margin-left: 0.3em;
}

/* Where in the source a citation points: a page, a section. */
.src-loc {
  font-style: italic;
  color: var(--ink-muted);
}

/* One mention of a source and the next stand a little apart, so that each
   place is read with its own way back. */
.sources .fn-back + .src-loc,
.sources .fn-back + .fn-back {
  margin-left: 0.7em;
}

.prose sup[id],
.footnotes sup[id] {
  scroll-margin-top: 4rem;
}

/* A note or a source opened where it is cited: it takes the next line of the
   paragraph to itself, under the line that cites it, and the rest of the
   paragraph goes on below. It is a box that fills its line, set into the
   paragraph's own run of text, so the lines above it are not set again. The
   setting of whatever it stands in (a paragraph, a list, a quotation) stops
   at its edge. */
.unfold {
  display: inline-block;
  vertical-align: top;
  width: 100%;
  margin: 0.3em 0 0.5em;
  padding: 0.5em 0 0.55em 1.65em;
  position: relative;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: 1.0625rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  text-align: left;
  text-indent: 0;
  white-space: normal;
  color: var(--ink);
  hyphens: manual;
}

/* Cited from somewhere a line cannot be given up (a table, a caption, a
   heading), it stands after that instead. */
.unfold.is-after {
  display: block;
  margin: -0.45em 0 1.1em;
}

.unfold-body {
  display: block;
}

/* Its number or letter again, hung in its margin. On the one that is opened
   in place it is a button, and pressing it closes it. */
.unfold-mark {
  position: absolute;
  left: 0;
  top: 0.5em;
  min-width: 1.2em;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-variant-numeric: lining-nums;
  text-align: left;
  color: var(--accent-text);
}

button.unfold-mark {
  cursor: pointer;
}

.unfold-src > .unfold-mark {
  font-style: italic;
  color: var(--ink-muted);
}

/* Only while it opens or closes. */
.unfold.is-moving {
  overflow: hidden;
}

/* The same thing under a pointer, before anything is pressed: a card that lies
   over the lines below the mark's line and moves nothing, as wide as the
   column, so that a press finds the note where the card was. The page's
   script says where it goes. It is under the window's moving edge, like the
   rest of the page. */
.unfold.is-peek {
  position: absolute;
  z-index: 4;
  display: block;
  margin: 0;
  background: var(--paper);
  /* Bare paper over its rule too, as far up as the line it hangs from: the
     few pixels of the next line that would show there (an accent on a
     capital) are covered. */
  box-shadow: 0 -0.3em 0 var(--paper);
}

.unfold.is-peek.is-over {
  box-shadow: none;
}

/* Its shadow, which is all that says it lies over the page. On a layer of its
   own, so that it falls across the strip below, and out of the pointer's way. */
.unfold.is-peek::before {
  content: '';
  position: absolute;
  inset: -1px 0;
  box-shadow: 0 16px 28px -22px rgba(26, 26, 26, 0.55);
  pointer-events: none;
}

/* A card ends wherever its words do, which is as likely as not halfway down a
   line of the text under it: the top halves of that line's letters gone and
   the bottom halves left. So past its far edge it has a strip of bare paper,
   as deep as the script finds is needed to cover that line whole. (Over the
   card, when the card is set above its mark's line.) */
.unfold.is-peek::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: calc(100% + 1px);
  right: 0;
  left: 0;
  height: var(--strip, 0px);
  background: var(--paper);
}

.unfold.is-peek.is-over::after {
  top: auto;
  bottom: calc(100% + 1px);
}

/* Beside the text. Where the window has room at the column's right, what a
   mark stands for is shown there and not in the column: level with the line
   that cites it, its number hung in the gap between the two. It is the same
   box with nothing round it, and it takes no room in the text. The page's
   script says where it goes, and keeps it clear of the window's moving edge. */
.unfold.is-side {
  position: absolute;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  /* The size a note has everywhere (at the foot, opened in the column, on a
     card), a little closer leaded for the short lines here. */
  line-height: 1.45;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.unfold.is-side > .unfold-mark {
  top: 0;
  right: 100%;
  left: auto;
  min-width: 0;
  margin-right: 0.55em;
  line-height: inherit;
  text-align: right;
}

/* One that a pointer is only resting on has none of the card's dress: it
   lies over nothing. A note kept there that it would lie over stands aside
   for as long as it is shown. */
.unfold.is-peek.is-side {
  background: none;
  box-shadow: none;
}

.unfold.is-peek.is-side::before,
.unfold.is-peek.is-side::after {
  content: none;
}

.unfold.is-side {
  transition: opacity 0.11s;
}

.unfold.is-side.is-aside {
  opacity: 0;
  pointer-events: none;
}

/* What a note beside the text cites opens inside it, under its own line, so
   such a note is set line by line too (see below). */
.unfold.is-side:has(sup.src) {
  text-wrap: wrap;
}

/* A paragraph or a list's entry with a mark in it is set line by line, as the
   browser did before it learned to weigh a whole paragraph. Weighed whole, a
   paragraph is set again from the top when something is put into the middle
   of it, and the line being read moves under the reader's eye; set line by
   line, the lines above an opening stay as they are. Without this Safari's
   engine could open only one mark in five under its own line. */
.prose p:has(> sup.fn, > sup.src),
.prose li:has(> sup.fn, > sup.src) {
  text-wrap: wrap;
}

/* A note's number is a few pixels wide and its way back not much more: a
   target for a mouse, not a thumb. Under a finger each one answers for the
   space around it as well. Nothing is drawn, and nothing moves. */
@media (pointer: coarse) {
  .prose sup a,
  .footnotes sup a,
  .fn-back {
    position: relative;
  }

  .prose sup a::after,
  .footnotes sup a::after,
  .fn-back::after,
  .unfold-mark::after {
    content: '';
    position: absolute;
    inset: -0.8rem -0.7rem;
  }

  /* Two marks side by side each answer for their own side only: left as it
     was, the second one's space lay over the whole of the first. */
  sup.adj a::after {
    left: -0.1em;
  }

  sup:has(+ sup.adj) a::after {
    right: -0.1em;
  }
}

/* Where a note shows beside the text nothing is put into a paragraph, so one
   with a mark in it is weighed whole like any other. From a scrollbar's width
   past the window where that room begins (1272px), so that no window has both
   this and a note opened in place. */
@media screen and (min-width: 1290px) {
  .prose p:has(> sup.fn, > sup.src),
  .prose li:has(> sup.fn, > sup.src) {
    text-wrap: pretty;
  }
}

/* Under a finger the space round an arrow back reaches over the words beside
   it: a link there keeps its own words, and two arrows side by side each
   answer for their own side. */
@media (pointer: coarse) {
  .footnotes li a:not(.fn-back),
  .sources li a:not(.fn-back) {
    position: relative;
    z-index: 1;
  }

  .footnotes .fn-back + .fn-back::after {
    left: -0.15em;
  }

  .footnotes .fn-back:has(+ .fn-back)::after {
    right: -0.15em;
  }
}

/* ---- article footer ----------------------------------------------- */

/* The way back, and across from it the ways on: the sign-up, and the piece's
   own copy elsewhere where it has one. The end mark has already closed the
   piece, so there is no rule and no next/previous apparatus under it. The
   way back keeps the accent to itself; the ways on are set like the date at
   the head of the piece, and take the accent when pointed at. On a screen too
   narrow for one line they drop to a line of their own. */
.article-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  max-width: var(--measure);
  margin-top: 3.25rem;
  font-size: 1.0625rem;
}

.elsewhere {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.6rem;
}

.elsewhere a {
  color: var(--ink-muted);
}

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

/* Three short words in a row are a target for a mouse. Under a finger each
   answers for the space around it as well, as a note's number does. Nothing
   is drawn, and nothing moves. */
@media (pointer: coarse) {
  .article-footer a {
    position: relative;
  }

  .article-footer a::after {
    content: '';
    position: absolute;
    inset: -0.5rem -0.6rem;
  }
}

/* The lone way home on the not-found and error views. */
.back-link {
  margin-top: 2.5rem;
  font-size: 1.0625rem;
}

/* Under a finger the links that stand alone answer for the space around
   them, as the links at the foot of a piece do: the way home from a page
   that is not there, the about page's two, and a photograph's credit.
   Nothing is drawn, and nothing moves. */
@media (pointer: coarse) {
  .back-link a,
  .colophon .contact a,
  .colophon .food a,
  .creature-credit a {
    position: relative;
  }

  .back-link a::after,
  .colophon .contact a::after,
  .colophon .food a::after,
  .creature-credit a::after {
    content: '';
    position: absolute;
    inset: -0.6rem;
  }
}

/* -------------------------------------------------------------- about */

/* A few short sentences are set plainly: reading
   size, one sentence group per line, no paragraph gaps. Anything longer falls
   back to ordinary prose. */
/* Its first line on the baseline that a title has on the other pages, where
   the name stands, and its lines on the leading the nav beside it keeps. */
.colophon {
  padding-top: 0.1875rem;
}

.colophon[data-brief] p {
  line-height: 1.52;
  margin-bottom: 0;
  hyphens: manual;
}

/* On a phone the text is leaded a little wider, and the about page with it:
   its lines are a phone's lines of text, and its last line stands one of
   them clear. */
@media (max-width: 720px) {
  .colophon[data-brief] p {
    line-height: inherit;
  }

  .colophon[data-brief] .food {
    margin-top: 1.56em;
  }
}

/* The contact line is one more sentence, spaced like the lines above it. Its
   address reads like the current nav item: accent colour, no underline until
   hover or keyboard focus. The line that asks for dinner reads the same way. */
.colophon .contact a,
.colophon .food a {
  color: var(--accent-text);
  text-decoration-line: none;
}

.colophon .contact a:focus-visible,
.colophon .food a:focus-visible {
  color: var(--accent-text);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
}

@media (hover: hover) {
  .colophon .contact a:hover,
  .colophon .food a:hover {
    color: var(--accent-text);
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: currentColor;
    text-underline-offset: 3px;
  }
}

/* The last line asks for dinner. It stands one line clear of the sentences
   above it, because it is not one of them. The takeout box beside its words is
   the reader's own emoji, drawn as their device draws it. It is a box of its
   own, so that the underline stops at the words, and it is set a little
   smaller than the type: an emoji fills its whole square, where Crimson's
   letters are small on theirs. */
.colophon .food {
  margin-top: 1.52em;
}

.colophon .food .mark {
  display: inline-block;
  margin-left: 0.4em;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  font-size: 0.9em;
  font-style: normal;
  line-height: 1;
}

/* ------------------------------------------------------------ creature */

/* Nothing on this page should move when the creature changes. The stage is
   sized from the column, never from the photograph. Its 7:5 sits between the
   two commonest camera shapes (4:3 and 3:2), and photographs near it — about
   two in three — are cropped a few percent to fill it exactly (.is-fill), so
   for most swaps the picture box is identical. Portraits, squares and
   panoramas keep their shape, hung from the top left. Phones differ: see the
   phone rules below. */
.creature-stage {
  display: flex;
  /* Hung from the top so every photograph starts level with the wordmark. */
  align-items: flex-start;
  justify-content: flex-start;
  aspect-ratio: 7 / 5;
  margin-bottom: 1.4rem;
}

.creature-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
  border-radius: 2px;
  opacity: 1;
  transition: opacity 0.22s ease;
}

.creature-stage img.is-fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* One photograph gives way to the next by a cross-fade. For as long as that takes
   (is-changing, from app.js) the outgoing one is held where it is, out of the flow and
   against the stage, and the new one is laid over it: both positioned, so the later is
   drawn on top. Only for that long, because a photograph positioned at rest is given a
   layer of its own by the browser, under the edge, for nothing. */
.creature-stage.is-changing,
.creature-stage.is-changing img {
  position: relative;
}

.creature-stage img.is-loading,
.creature-stage img.is-leaving {
  opacity: 0;
}

/* An outgoing photograph that the new one does not cover goes slowly at first and
   quickly at the end, while the new one arrives the other way about, so that very
   little paper shows through the pair of them on the way. */
.creature-stage img.is-leaving {
  transition-timing-function: ease-in;
}

/* Until the first photograph is on the stage there is nothing for `another` to
   change and no name to show, so neither is there. Their line keeps its room,
   so that on a phone, where it comes first, nothing drops when they come. */
.creature-view.is-waiting .creature-head {
  visibility: hidden;
}

/* A line said where the photograph will be is the column's first line, and
   stands on the name's baseline, as a notice that opens any page does. Not on
   a phone, where nothing stands beside the column. */
.creature-stage > .notice {
  padding-top: 0.1875rem;
}

@media (max-width: 720px) {
  .creature-stage > .notice {
    padding-top: 0;
  }
}

/* With no photograph to name, there is no name: no empty heading either. Its
   line keeps a name's height, so that nothing moves when the name comes. */
.creature-name:empty {
  visibility: hidden;
}

.creature-name:empty::before {
  content: '\200b';
}

.creature-stage img.no-fade {
  transition: none;
}

/* Name on the left, `another` on the right of the same line: both sit at a
   fixed height under the fixed stage, so the control never moves. */
.creature-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--measure);
}

.creature-title {
  min-width: 0;
}

.creature-name {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.004em;
  text-wrap: balance;
}

.creature-desc {
  max-width: var(--measure);
  margin-top: 0.85rem;
  text-wrap: pretty;
}

/* The licences want the maker named; this is the quietest honest way. */
.creature-credit {
  max-width: var(--measure);
  margin-top: 0.7rem;
  font-size: 0.875rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--ink-muted);
}

.creature-credit:empty {
  display: none;
}

.creature-credit a {
  color: inherit;
  text-decoration: none;
}

@media (hover: hover) {
  .creature-credit a:hover {
    color: var(--accent-text);
  }
}

.creature-actions {
  flex: none;
  margin: 0;
  font-size: 1.0625rem;
}

/* A button that has to pass for one of the site's links. */
.another {
  font-family: inherit;
  font-size: inherit;
  color: var(--accent-text);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  transition: color 0.2s;
}

@media (hover: hover) {
  .another:hover {
    color: var(--accent-hover);
    text-decoration: underline;
  }
}

/* A wide screen worked by a finger (a tablet) has the laptop's page, where
   the nav's words and `another` are the size a pointer needs. A phone makes
   them larger by rules of its own; here they answer for the space around
   them instead, so that nothing moves: the nav's words to each side and at
   the list's two ends (they already meet between themselves), `another` all
   round. */
@media (pointer: coarse) and (min-width: 721px) {
  .nav a::after {
    content: '';
    position: absolute;
    inset: 0 -0.75rem;
  }

  .nav li:first-child a::after {
    top: -0.5rem;
  }

  .nav li:last-child a::after {
    bottom: -0.5rem;
  }

  .another {
    position: relative;
  }

  .another::after {
    content: '';
    position: absolute;
    inset: -0.75rem;
  }
}

/* ---------------------------------------------------------- responsive */

@media (max-width: 1100px) {
  .layout {
    --gutter: 56px;
    /* Only out of room to spare: under about 900px the text's column needs
       all there is, and the name stands 32px from the side as it always has. */
    --clear: clamp(0px, 100vw - 904px, 1.5rem);
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (max-width: 720px) {
  :root {
    --body-size: 1.125rem;   /* 18px: ~43 characters a line on a phone */
    --measure: 100%;
  }

  body {
    line-height: 1.56;
  }

  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.75rem 1.375rem 3.5rem;
  }

  /* There is no column beside the text for a piece's own sections. */
  .sections {
    display: none;
  }

  /* Wordmark on its own line, sections in a row beneath it — the same
     arrangement as the desktop column, just turned. */
  .masthead {
    position: static;
    justify-self: stretch;
    width: auto;
    margin-right: 0;
    padding-top: 0;
  }

  /* The name a little under its size on a laptop, and still the largest word
     on the screen: a title is set two pixels under it. It is a block of its
     own here, and the nav a row of its own with its own leading: nothing
     stands beside them to share a line with. */
  .masthead .wordmark {
    display: block;
    margin: 0;
    font-size: 1.75rem;
  }

  .nav {
    margin-top: 0.375rem;
  }

  .nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 1.5rem;
    font-size: 1.0625rem;
    line-height: 1.7;
  }

  /* 44px of height to press, without 44px of visible gap; and to each side,
     half of the space to the next word, so that a thumb between two of them
     still lands on one. Nothing moves for it: the margin takes back what the
     padding adds, and the mark beside the current one stays where it was. */
  .nav a {
    margin: 0 -0.75rem;
    padding: 0.7rem 0.75rem;
    font-size: inherit;
    line-height: inherit;
  }

  .nav a::before {
    right: calc(100% - 0.75rem + 0.36em);
  }

  /* The about page's lines, and a notice, keep to nothing here: there is no
     column beside them. */
  .colophon,
  .view > .notice {
    padding-top: 0;
  }

  .article-title {
    font-size: 1.625rem;
  }

  .index-list[data-density='sparse'] .index-title {
    font-size: 1.625rem;
  }

  .index-title {
    font-size: 1.375rem;
  }

  .prose h2 {
    font-size: 1.375rem;
  }

  .prose h3 {
    font-size: 1.125rem;
  }

  .creature-name {
    font-size: 1.375rem;
  }


  /* Its padding is for a thumb, and is given back, so that the name beside
     it stands where a page's first line stands, and the photograph the same
     distance under a name of one line or two. */
  .another {
    display: inline-block;
    padding: 0.7rem 0;
    margin: -0.7rem 0;
  }

  /* On a phone the name and `another` come first, above the photograph, so the
     control still never moves, and the photograph can keep its own shape: as
     wide as the column, or a tall one at most 58% of the window's height, rather
     than shrunk into a landscape frame. */
  .creature-view {
    display: flex;
    flex-direction: column;
  }

  .creature-head {
    order: -1;
    margin-bottom: 1.1rem;
  }

  /* With no photograph coming, what the frame says comes first, and `another`,
     the way to try again, under it. */
  .creature-view:not(.is-waiting):has(> .creature-stage > .notice) .creature-head {
    order: 0;
  }

  .creature-stage {
    aspect-ratio: auto;
    margin-bottom: 0.2rem;
  }

  /* The stage takes the height of the photograph in it, so an outgoing one that was
     taller is cut off at the new one's foot while it fades, not laid over the words. */
  .creature-stage.is-changing {
    overflow: hidden;
  }

  .creature-stage img,
  .creature-stage img.is-fill {
    width: auto;
    height: auto;
    max-height: 58vh;
    object-fit: contain;
  }

  /* The measure is short enough here that hyphenation earns its keep, but
     only in a word long enough to leave four letters on each line: left to
     itself the browser breaks be-cause, ev-ery and peo-ple, a hyphen on
     nearly one line in five. (The second pair of lines says the same thing
     to Safari.) */
  .prose p,
  .prose li {
    hyphens: auto;
    hyphenate-limit-chars: 8 4 4;
    -webkit-hyphenate-limit-before: 4;
    -webkit-hyphenate-limit-after: 4;
  }

  .prose blockquote {
    padding-left: 1.1em;
  }

  /* Less air between a table's columns, so that more of them fit. */
  .prose th,
  .prose td {
    padding-right: 1.1rem;
  }
}

/* The photograph is as wide as the text on anything from a small laptop up. A
   full-width 434px photo leaves the name on screen in any window 560px tall or
   more; only a shorter one (a phone on its side) shrinks it to keep the name
   and `another` in view. */
@media (max-height: 559px) {
  .creature-stage {
    max-height: 56vh;
  }
}

/* ------------------------------------------------------------- motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* -------------------------------------------------------------- print */

@page {
  margin: 18mm;
}

@media print {
  :root {
    --paper: #fff;
    --paper-sunk: #fff;
    --ink: #000;
    --ink-muted: #333;
    --rule: #bbb;
    --accent: #000;
    --accent-text: #000;
    --accent-wash: #bbb;
    /* In rem the measure is pinned to a 16px root and would run to ~97
       characters at 11.5pt. Restated in mm it stays a book measure. */
    --measure: 112mm;
    /* The sizes set in rem (notes, captions, tables, code, the title) keep
       the proportion to the text that they have on screen, where the text is
       1.25rem: 11.5pt / 1.25. Left at the browser's 12pt root, the notes and
       captions came out larger than the text they annotate. */
    font-size: 9.2pt;
  }

  body {
    font-size: 11.5pt;
    line-height: 1.45;
    background: #fff;
    color: #000;
  }

  .layout {
    display: block;
    max-width: none;
    padding: 0;
  }

  .masthead,
  .skip-link,
  .article-footer,
  .creature-actions,
  .unfold {
    display: none;
  }

  /* On paper the notes are the lists at the foot, whatever was open on screen. */
  .prose sup.src a {
    color: #000;
  }

  /* The measure is kept on paper too — it fits inside A4 margins and the
     text stays readable instead of running the full width of the sheet. */

  .prose a {
    color: #000;
  }

  /* Spell out destinations that won't survive the paper. */
  .prose a[href^='http']::after,
  .footnotes a[href^='http']::after {
    content: ' <' attr(href) '>';
    font-size: 0.85em;
    color: #555;
    word-break: break-all;
  }

  /* And a source's, in the list of sources. */
  .sources a[href^='http']::after {
    content: ' <' attr(href) '>';
    font-size: 0.85em;
    color: #555;
    word-break: break-all;
  }

  .prose h2,
  .prose h3,
  .article-title {
    break-after: avoid;
  }

  .prose blockquote,
  .prose figure,
  .prose pre {
    break-inside: avoid;
  }

  /* A link whose words are its address already says where it goes. */
  .prose a.bare::after,
  .footnotes a.bare::after,
  .sources a.bare::after {
    content: none;
  }

  /* Paper cannot scroll, so a wide table is fitted to the page like any other. */
  .prose .table-scroll {
    overflow: visible;
  }

  .prose table:has(th:nth-child(5)) {
    max-width: 100%;
  }
}

/* Moving between pages is a short cross-fade (the browser's own is a quarter of a
   second). A press during it is not lost either, though not through anything here:
   the page under a fade is out of reach whatever pointer-events says, so app.js ends
   the fade at the press and passes it on to what it was over. */
::view-transition-group(root),
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.15s;
}

::view-transition {
  pointer-events: none;
}

/* What a press sets off (the hard beat at the edge, the new vessels) takes no part in
   that cross-fade. Left in the picture, its first and hardest moment was spent blended
   with the outgoing page, which had none of it: the beat arrived at under half its
   strength, and the vessels faded in when they should shoot in. For as long as two
   pages are changing it is a picture of its own, shown as it is from the first frame
   and with nothing of the old one. It is named only for those 150ms (app.js marks the
   root), so a page at rest is drawn exactly as it always was. */
html.changing .press {
  view-transition-name: press;
}

::view-transition-group(press),
::view-transition-new(press) {
  animation: none;
}

::view-transition-old(press) {
  display: none;
}

::view-transition-new(press) {
  mix-blend-mode: normal;
}

/* The window is the inside of a creature, looking out. It stays in the outermost
   margin and must never compete with the reading. Everything is in the wordmark's rust
   (--accent, written out because a shadow needs it with transparency). It is drawn over
   the page, not under it, and lets every touch through: drawn under, it would make the
   browser keep a second copy of everything it covers. It is built to be cheap to show,
   since it never stops moving: only opacity changes, so nothing is repainted while it
   beats, the animations use plain numbers rather than variables so every browser can
   hand them to the graphics chip, and there are as few layers as it can have.
     the rim      the thin strong edge and the soft glow inside it; it beats, lub-dub,
                  then rests
     the vessels  branch in from the edges, fading as they go (the fade is in the
                  stroke's own colour, not a mask), and flush on their own clocks;
                  app.js grows them, and after a flush or two each group moves
   All of it quietens further on an essay. */
body {
  background: transparent;
}

body::before,
.vessels {
  position: fixed;
  inset: 0;
  z-index: 5;   /* over the page, under the skip link */
  pointer-events: none;
}

body::before {
  content: '';
  will-change: opacity;
  /* --rim-x and --rim-y come from app.js: the edge sits slightly unevenly, differently
     each load. The last shadow is the glow, reaching in from just beyond the window. */
  box-shadow:
    inset 0 0 4px 1px rgb(193, 81, 46),
    inset var(--rim-x, 0px) var(--rim-y, 0px) 15px 2px rgba(193, 81, 46, 0.76),
    inset 0 0 60px rgba(193, 81, 46, 0.14),
    inset 0 0 70px -24px rgba(193, 81, 46, 0.18);
  opacity: 0.86;
  animation: heart-rim 30.54s linear var(--rim-delay, 0s) infinite;
}

.vessels {
  overflow: hidden;
}

/* Each edge's vessels come in groups on their own clocks (set in app.js). A group fades
   out completely at the end of its cycle, which is when app.js may move it, unseen. */
.vessels svg {
  position: absolute;
  overflow: hidden;
  opacity: 0.14;
  will-change: opacity;
  animation: vessel-flush 4s linear infinite;
}

.vessels .top { top: 0; left: 0; }
.vessels .bottom { bottom: 0; left: 0; }
.vessels .left { top: 0; left: 0; }
.vessels .right { top: 0; right: 0; }

.vessels path {
  fill: none;
  stroke-linecap: round;
}

/* Pressing a link or button: the rim gives one hard beat and a few new vessels shoot in
   at two spots on the edge, chosen afresh each time, then fade. app.js runs both, in a
   second layer over the vessels (.press); they rest invisible here. */
.jolt {
  position: absolute;
  inset: 0;
  opacity: 0;
  /* Kept close to the edge: it is the rim beating harder, not a second glow reaching
     into the page. (It reached 62px in on a wide window, against 22px on a phone, and
     tinted a fifth of a laptop's window at its height.) */
  box-shadow:
    inset 0 0 5px 2px rgb(193, 81, 46),
    inset 0 0 18px 3px rgba(193, 81, 46, 0.55),
    inset 0 0 48px rgba(193, 81, 46, 0.16);
}

.vessels svg.sprout {
  opacity: 0;
  animation: none;
  will-change: auto;
}

body:has(.prose)::before {
  opacity: 0.93;
  animation-name: heart-rim-quiet;
}

body:has(.prose) .vessels svg:not(.sprout) {
  opacity: 0.1;
  animation-name: vessel-flush-quiet;
}

/* While an essay is being read the edge is quiet (app.js). The rim is stopped between
   two beats, where it already sits at the opacity it is given above, so taking the
   animation away changes nothing that can be seen. The vessels are not held where they
   are, because a line that is faint and also still looks like a mark on the glass: each
   group is let run to the end of its cycle, where it has faded out, and is kept out
   from there until the page changes. */
html.still body::before {
  animation: none;
}

.vessels svg.is-gone {
  display: none;
}

/* Four unequal beats, lub-dub, in a 6s pattern, played five times at different paces
   (1.04, 0.82, 1.21, 0.9 and 1.12 times as long) so no two cycles of beats are the
   same length: 30.54s in all, entered at a random point on each load (--rim-delay, set
   by app.js). The pace is in the keyframes rather than changed from script, because
   changing an animation's pace makes Safari tend it on every frame from then on. The
   quiet one, for essays, is the same beat from a higher floor. */
@keyframes heart-rim {
  0%, 2.86%, 5.52%, 7.97%, 10.22%, 13.08%, 16.35%, 17.78%, 20.43%, 22.69%, 24.78%, 26.72%, 28.49%, 30.74%, 33.32%, 34.45%, 36.54%, 39.87%, 42.96%, 45.81%, 48.43%, 51.76%, 55.56%, 57.22%, 60.31%, 62.79%, 65.09%, 67.21%, 69.16%, 71.63%, 74.46%, 75.7%, 78%, 81.08%, 83.94%, 86.58%, 89%, 92.08%, 95.6%, 97.14%, 100% { opacity: 0.86; }
  0.41%, 20.75%, 37.02%, 60.67%, 78.44% { opacity: 1; }
  0.92%, 6.64%, 21.16%, 25.67%, 37.61%, 44.27%, 61.11%, 66.06%, 78.99%, 85.15% { opacity: 0.902; }
  1.43%, 21.56%, 38.21%, 61.55%, 79.54% { opacity: 0.951; }
  5.82%, 25.02%, 43.32%, 65.35%, 84.27% { opacity: 0.93; }
  6.23%, 25.35%, 43.79%, 65.71%, 84.71% { opacity: 0.881; }
  10.62%, 28.81%, 48.9%, 69.51%, 89.44% { opacity: 0.986; }
  11.03%, 29.13%, 49.38%, 69.86%, 89.88% { opacity: 0.895; }
  11.54%, 29.53%, 49.97%, 70.3%, 90.43% { opacity: 0.923; }
  16.65%, 33.56%, 55.92%, 74.72%, 95.93% { opacity: 0.916; }
}

@keyframes heart-rim-quiet {
  0%, 2.86%, 5.52%, 7.97%, 10.22%, 13.08%, 16.35%, 17.78%, 20.43%, 22.69%, 24.78%, 26.72%, 28.49%, 30.74%, 33.32%, 34.45%, 36.54%, 39.87%, 42.96%, 45.81%, 48.43%, 51.76%, 55.56%, 57.22%, 60.31%, 62.79%, 65.09%, 67.21%, 69.16%, 71.63%, 74.46%, 75.7%, 78%, 81.08%, 83.94%, 86.58%, 89%, 92.08%, 95.6%, 97.14%, 100% { opacity: 0.93; }
  0.41%, 20.75%, 37.02%, 60.67%, 78.44% { opacity: 1; }
  0.92%, 6.64%, 21.16%, 25.67%, 37.61%, 44.27%, 61.11%, 66.06%, 78.99%, 85.15% { opacity: 0.951; }
  1.43%, 21.56%, 38.21%, 61.55%, 79.54% { opacity: 0.976; }
  5.82%, 25.02%, 43.32%, 65.35%, 84.27% { opacity: 0.965; }
  6.23%, 25.35%, 43.79%, 65.71%, 84.71% { opacity: 0.941; }
  10.62%, 28.81%, 48.9%, 69.51%, 89.44% { opacity: 0.993; }
  11.03%, 29.13%, 49.38%, 69.86%, 89.88% { opacity: 0.948; }
  11.54%, 29.53%, 49.97%, 70.3%, 90.43% { opacity: 0.962; }
  16.65%, 33.56%, 55.92%, 74.72%, 95.93% { opacity: 0.958; }
}

@keyframes vessel-flush {
  0%, 100% { opacity: 0; }
  6% { opacity: 0.44; }
  14% { opacity: 0.23; }
  22% { opacity: 0.335; }
  38%, 82% { opacity: 0.14; }
}

@keyframes vessel-flush-quiet {
  0%, 100% { opacity: 0; }
  6% { opacity: 0.24; }
  14% { opacity: 0.142; }
  22% { opacity: 0.191; }
  38%, 82% { opacity: 0.1; }
}

@media (max-width: 720px) {
  body::before {
    box-shadow:
      inset 0 0 3px 1px rgb(193, 81, 46),
      inset var(--rim-x, 0px) var(--rim-y, 0px) 8px 1px rgba(193, 81, 46, 0.6),
      inset 0 0 24px rgba(193, 81, 46, 0.09),
      inset 0 0 30px -12px rgba(193, 81, 46, 0.1);
  }

  /* A phone's margin is narrow, so its vessels are small; a little stronger to be seen. */
  .vessels svg {
    opacity: 0.18;
  }

  body:has(.prose) .vessels svg:not(.sprout) {
    opacity: 0.13;
  }

  @keyframes vessel-flush {
    0%, 100% { opacity: 0; }
    6% { opacity: 0.5; }
    14% { opacity: 0.276; }
    22% { opacity: 0.388; }
    38%, 82% { opacity: 0.18; }
  }

  @keyframes vessel-flush-quiet {
    0%, 100% { opacity: 0; }
    6% { opacity: 0.28; }
    14% { opacity: 0.175; }
    22% { opacity: 0.228; }
    38%, 82% { opacity: 0.13; }
  }

  .jolt {
    box-shadow:
      inset 0 0 4px 1px rgb(193, 81, 46),
      inset 0 0 14px 2px rgba(193, 81, 46, 0.6),
      inset 0 0 36px rgba(193, 81, 46, 0.14);
  }
}

/* With reduced motion set nothing at the edge may move, and lines that cannot move are
   left out, for the reason they are kept out of a settled essay: faint and still, they
   look like marks on the glass. The rim stays. */
@media (prefers-reduced-motion: reduce) {
  .vessels:not(.press) {
    display: none;
  }
}

@media print {
  body::before,
  .jolt,
  .vessels {
    display: none;
    animation: none;
  }
}
