/*
 * Additions to the live theme. The look itself is tufte.min.css and
 * theme.css, the WordPress theme's own stylesheets copied unchanged, so the
 * site matches the live one `[2026-11-21, Nik]`. Nothing here may restyle a
 * reading page: it covers what WordPress's own inline styles did, and the
 * few things the old site did not have.
 */

/* ------------------------------------------------------------------ */
/* What WordPress's inline styles did, which the live look relies on   */
/* ------------------------------------------------------------------ */

:where(body) { margin: 0; }

.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  clip-path: none;
  height: auto;
  width: auto;
  left: 5px;
  top: 5px;
  z-index: 100000;
  padding: 15px 23px 14px;
  background: #F9F7F5;
  color: #111;
}

/* The block editor's separator, which is what a post's --- became. */
.wp-block-separator {
  border: none;
  border-top: 2px solid;
}

/* The old Media plugin's own inline styles, which the live Media page has:
   the emoji before each title, and the score after it. */
.ps-emoji { margin-right: .35rem; }
.ps-stars,
.ps-score-emoji {
  font-size: .95rem;
  letter-spacing: .02em;
  vertical-align: baseline;
  margin-left: .35rem;
}

/* A photo's width and height are given so nothing jumps as it loads; this
   keeps its shape when the stylesheet narrows it. Zero specificity, so the
   theme's own sizes (galleries at 300 pixels high) still win. */
:where(img[width][height]) { height: auto; }

/* ------------------------------------------------------------------ */
/* The Archive's filter, new with this site                            */
/* ------------------------------------------------------------------ */

.archive-filter { margin: 0 0 1rem; }
.archive-filter p { width: 55%; margin: 0.6rem 0; }
.archive-search input {
  width: 100%;
  font: inherit;
  font-style: italic;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #ccc;
  border-radius: 0;
  padding: 0.2rem 0;
  -webkit-appearance: none;
  appearance: none;
}
.archive-search input:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.archive-choices {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.2rem;
  font-size: 1.1rem !important;
  line-height: 1.6 !important;
  font-style: italic;
}
.archive-choices a[aria-current="true"] { color: var(--accent); }
.archive-entry[hidden],
.archive-month[hidden],
.archive-empty[hidden] { display: none; }
.archive-empty { font-style: italic; }

@media (max-width: 760px) {
  .archive-filter p { width: 100%; }
}

/* ------------------------------------------------------------------ */
/* The Media page's posters, reviews and years, new with this site     */
/* ------------------------------------------------------------------ */

/* Each film or book has its poster beside it, two lines tall: the title
   on the first line, the score and date on the second `[2026-11-21,
   Nik]`. The posters sit in a column of their own, so the titles still
   line up when one has none. */
.media-entry {
  position: relative;
  box-sizing: border-box;
  padding-left: 3.5rem;
  min-height: 4rem;
  margin-top: 0.9rem !important;
  margin-bottom: 0.9rem !important;
}
.media-poster {
  position: absolute;
  left: 0;
  top: 0.1rem;
  line-height: 0;
}
.media-poster img {
  width: auto;
  height: 3.9rem;
  max-width: 2.7rem;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.06);
}
.media-meta { display: block; }
.media-meta > :first-child { margin-left: 0; }
.media-years { margin-top: 2.1rem; }

/* ------------------------------------------------------------------ */
/* The colophon, a small finish still being chosen                     */
/* ------------------------------------------------------------------ */

.site-footer .colophon {
  width: 55%;
  line-height: 1.6;
  color: #666;
}
@media (prefers-color-scheme: dark) {
  .site-footer .colophon { color: #999; }
}
@media (max-width: 760px) {
  .site-footer .colophon { width: 100%; }
}

/* ------------------------------------------------------------------ */
/* The RSS page's copy button                                          */
/* ------------------------------------------------------------------ */

.feed-address code {
  font-size: 1.1rem;
  user-select: all;
  -webkit-user-select: all;
  overflow-wrap: anywhere;
}
.feed-address button {
  font: inherit;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--accent);
  background: none;
  border: 0;
  padding: 0 0.3rem;
  cursor: pointer;
}

/* ------------------------------------------------------------------ */
/* The title becomes a retro sticker `[2026-11-22, Nik]`               */
/* ------------------------------------------------------------------ */

/* Chosen as option C on the effects demo (2026-11-21-title-and-sidenote-
   effects.html in Nik's working folder), whose CSS this follows. "Phat
   Snaps" turns orange letter by letter, with a dark outline and a solid
   dark drop, then fades back from the last letter. site.js says when: a
   mouse hovering the words, a tap on the home page, the home page
   arriving. The letters are drawn by layout.php.

   The shape, on every screen and in print: the letters in a box each, so
   they can move, inside a box per word that never breaks, so a phone
   wraps the title between the words and never inside one. At rest it
   stands where it always has. */
.site-title .word { display: inline-block; white-space: nowrap; }
.site-title .l { display: inline-block; white-space: pre; }

/* When the title wraps, its lines sit much closer `[2026-11-22, Nik]`:
   "When the title wraps, can we make the line spacing much tighter?" Each
   line is 0.8 of the title's size rather than all of it, and the heading
   gets back above and below exactly what one line gave up, so a title on
   one line (a laptop) stands precisely where it did; only the gap between
   two lines (a phone) closes, by a fifth of the title's size. The size
   is the theme's own, repeated here because the heading has to know it.
   The heading's own line height is nought, so only the title's letters
   set how tall each line is (Softie's sat a few pixels lower otherwise). */
.site-title { --title-size: clamp(6rem, 8vw, 8rem); padding-block: calc(var(--title-size) * 0.1); line-height: 0; }
html[data-tuned] .site-title { --title-size: clamp(90px, 8vw, 120px); }
.site-title a { line-height: 0.8; }

/* The rest only where the screen moves: with reduced motion it simply
   doesn't play, and on paper it never does. */
@media screen and (prefers-reduced-motion: no-preference) {
  :root { --sticker-deep: #151515; }

  /* The sticker is the answer to a tap, so no grey box over it. */
  .site-title a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  /* The outline is there at rest, see-through, so it fades in and out
     letter by letter with the colour and the drop rather than switching
     all at once. It also keeps Safari drawing the drop: Safari stops
     drawing text shadows when paint-order is set on text with no outline.
     Only the title has it. */
  .site-title .l {
    -webkit-text-stroke: 3px transparent;
    paint-order: stroke fill;
    transition:
      text-shadow 360ms cubic-bezier(.2, .8, .2, 1),
      color 360ms cubic-bezier(.2, .8, .2, 1),
      -webkit-text-stroke-color 360ms,
      transform 360ms cubic-bezier(.2, .8, .2, 1);
    /* Going back: from the last letter to the first. */
    transition-delay: calc(var(--r) * 22ms);
  }

  .site-title a.sticker-on .l,
  html.title-arrives-on .site-title .l {
    color: var(--accent);
    -webkit-text-stroke: 3px var(--sticker-deep);
    paint-order: stroke fill;
    transform: translate(-2px, -2px);
    text-shadow:
      1px 1px 0 var(--sticker-deep), 2px 2px 0 var(--sticker-deep),
      3px 3px 0 var(--sticker-deep), 4px 4px 0 var(--sticker-deep),
      5px 5px 0 var(--sticker-deep), 6px 6px 0 var(--sticker-deep),
      7px 7px 0 var(--sticker-deep), 8px 8px 0 var(--sticker-deep);
  }
  /* Coming on: from the first letter to the last. */
  .site-title a.sticker-on .l { transition-delay: calc(var(--i) * 55ms); }
  /* Arriving already on: on from the first frame, with nothing to play. */
  html.title-arrives-on .site-title .l { transition: none; }
}

/* In dark mode the outline and drop are a warm dark grey, as on the demo,
   so they still show against the dark page. */
@media screen and (prefers-reduced-motion: no-preference) and (prefers-color-scheme: dark) {
  :root { --sticker-deep: #3a3532; }
}

/* ------------------------------------------------------------------ */
/* Clicking a sidenote's number inks the note `[2026-11-22, Nik]`      */
/* ------------------------------------------------------------------ */

/* One accent colour, gold, for the whole site `[2026-11-22, Nik]`:
   "Gold replaces orange in the effects", then "all the colours should
   match, one accent colour." The theme's orange (--accent, in theme.css,
   left untouched) is replaced here, so the dates, the sidenote numbers,
   the arrows, the quotation line, the Archive, the RSS page and the
   effects (--effect follows it) are all the same gold. Paper still prints
   in black (print.css). */
:root {
  --accent: #DAA520;
  --effect: var(--accent);
}
/* A warm dark mode `[2026-11-22, Nik]`: a warm near-black page, #1C1A17,
   with warm off-white words, #ECE6DE, in place of the live site's neutral
   #151515 and #ddd; the pair the first redesign drew up, waiting since with
   the small finishes. The halo that keeps underlines off the descenders
   is the page's colour, so it follows. The browser bar matches
   (theme-color in layout.php). */
@media (prefers-color-scheme: dark) {
  body { background-color: #1C1A17; color: #ECE6DE; }
  :root { --underline-bg: #1C1A17; }
}

/* The pair `[2026-11-22, Nik]`: "Yes use that pair for now". Goldenrod on
   the light page (2.09:1, where the pale gold was a faint 1.60) and the
   pale gold on the dark one (10.66:1). The old orange, kept on record:
   #DD4226 (4.03:1 on light, 4.25:1 on dark), still in theme.css, which
   this overrides; deleting this block and the one above brings it back. */
@media (prefers-color-scheme: dark) {
  :root { --accent: #FBBB36; }
}

/* Option 3 on the effects demo: the note's own number in the margin pops,
   its words fade in from gold, and the number in the text lifts and turns
   gold for a moment. site.js adds and removes the classes. Only where the
   screen moves, and never on paper. */
@media screen and (prefers-reduced-motion: no-preference) {
  /* The margin's number in a box of its own, so it can grow. The theme
     writes it as the number and a space, and white-space keeps that space,
     so the note's words start exactly where they did. */
  .sidenote::before { display: inline-block; white-space: pre; }

  .sidenote.inked { animation: ps-ink 1100ms ease-out; }
  /* The margin's number pops in gold while its note inks, then eases back
     to its own orange (the theme fixes that orange as !important). */
  .sidenote::before { transition: color 300ms; }
  .sidenote.inked::before {
    animation: ps-pop 500ms cubic-bezier(.3, 1.6, .5, 1);
    color: var(--effect) !important;
  }

  /* The number in the text, orange at rest on this site, lifts and turns
     gold for a moment. Moved with the theme's own offset rather than a
     transform, so it needs no box of its own and nothing in the line
     moves. */
  label.sidenote-number::after { transition: top 300ms, color 300ms; }
  label.sidenote-number.tapped::after { top: calc(-.5rem - 2px); color: var(--effect); }
}

/* From gold to the note's own colour, whatever the mode. */
@keyframes ps-ink { from { color: var(--effect); } }
@keyframes ps-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.9); }
  100% { transform: scale(1); }
}

/* ------------------------------------------------------------------ */
/* Underlines turn gold on hover, sweeping left to right               */
/* `[2026-11-22, Nik]`                                                 */
/* ------------------------------------------------------------------ */

/* Built on the theme's own Tufte underline, the thin line drawn under a
   link as a background, with the page-coloured halo (--underline-bg, the
   text shadow) that keeps it off the descenders and a page-coloured
   nub at each end. A gold line is laid over the theme's line, between
   those nubs, with no width at rest; hovering grows it to the full width
   of the link, so the halo and the nubs trim it exactly as they trim the
   theme's, in light and dark mode. A link that wraps is one strip cut
   into lines, so the orange sweeps along its first line, then its second.
   Every link with the underline (the title, the home page's post titles
   and the date's link have none). Only where something can hover: phones
   keep the plain underline. */
@media screen and (hover: hover) {
  :is(a:link, a:visited) {
    background-image:
      linear-gradient(var(--underline-bg), var(--underline-bg)),
      linear-gradient(var(--underline-bg), var(--underline-bg)),
      linear-gradient(var(--effect), var(--effect)),
      linear-gradient(currentColor, currentColor);
    background-size: .05em 1px, .05em 1px, 0% 1px, 1px 1px;
    background-repeat: no-repeat, no-repeat, no-repeat, repeat-x;
    background-position:
      0 var(--underline-y, 87%), 100% var(--underline-y, 87%),
      0 var(--underline-y, 87%), 0 var(--underline-y, 87%);
  }
  :is(a:link, a:visited):hover {
    background-size: .05em 1px, .05em 1px, 100% 1px, 1px 1px;
  }
}

/* The sweep: about a third of a second in and the same out. Every hover
   effect waits 80 milliseconds before starting `[2026-11-22, Nik]`, so a
   pointer passing over a link on its way elsewhere sets nothing off; the
   wait is on the way in only, so leaving sweeps straight back. With
   reduced motion the underline simply turns gold, at once. */
@media screen and (hover: hover) and (prefers-reduced-motion: no-preference) {
  /* "Can the animation be a touch slower? but start a touch sooner?"
     `[2026-11-22, Nik]`: 250ms became 350, and the wait 120 became 80. */
  :is(a:link, a:visited) { transition: background-size 350ms ease-in-out; }
  :is(a:link, a:visited):hover { transition-delay: 80ms; }
}

/* ------------------------------------------------------------------ */
/* The type panel, only while a face is being chosen                  */
/* (cfg('specimen'); with it off the site is exactly the live one)     */
/* ------------------------------------------------------------------ */

/* A face swapped in for ET Book everywhere ET Book is used, which on this
   site is everything but the Phat Snaps title, and set so its lower-case
   letters stand exactly as tall as ET Book's (0.42 of the size). At 100%
   the text then reads at the size it does today; only the letters change. */
html[data-face="dico-slab"] body { font-family: "dico-slab", Georgia, serif; font-size-adjust: 0.42; }
html[data-face="quinn-text"] body { font-family: "quinn-text", Georgia, serif; font-size-adjust: 0.42; }
html[data-face="puffin"] body { font-family: "puffin", system-ui, sans-serif; font-size-adjust: 0.42; }
html[data-face] .site-title { font-size-adjust: none; }

/* The sidenote numbers are ET Book's old-style figures on the live site;
   in another face they are that face's own. */
html[data-face]:not([data-face="et-book"]) .sidenote-number::after,
html[data-face]:not([data-face="et-book"]) .sidenote::before {
  font-family: inherit;
  font-variant-numeric: oldstyle-nums;
}

/* Text size: the theme sets every size and space in rem, from a 15-pixel
   root, so scaling the root scales the text and its rhythm together while
   the page's proportions (the 55% measure, the margins) stay put. The Phat
   Snaps title never changes, so it is pinned to the live site's pixels. */
html[data-tuned] { font-size: calc(15px * var(--t-size, 1)); }
html[data-tuned] .site-title a { font-size: clamp(90px, 8vw, 120px); }
html[data-tuned] .site-header { padding-top: clamp(22.5px, 4vw, 60px); }

/* Line spacing: the theme's 2rem lines, and its notes' 1.3. */
html[data-tuned] :is(p, ol, ul, dl) { line-height: calc(2rem * var(--t-leading, 1)); }
html[data-tuned] :is(.sidenote, .marginnote) { line-height: calc(1.3 * var(--t-leading, 1)); }
html[data-tuned] label.sidenote-number { max-height: calc(2rem * var(--t-leading, 1)); }

/* Weight: the reading text's, wherever the theme leaves the weight alone
   (titles and headings keep their own). Only weights the face really has
   are offered; the theme forbids the browser from faking the others. */
html[data-weight] body { font-weight: var(--t-weight, 400); }

/* ET Book's semi-bold, from the old theme's files, so it has a weight
   between its regular and bold to compare. */
@font-face {
  font-family: et-book;
  src: url("fonts/et-book/et-book-semi-bold-old-style-figures.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Refinements for a new face, which today's ET Book look does not get, so
   "Back to today" is still exactly the live site `[2026-11-21, Nik]`. */

/* Underlines at the same distance below the letters as ET Book's
   `[2026-11-21, Nik]`. The theme draws Tufte's underline as a thin line at
   a fixed point down the link's box (87% in Safari and Chrome), placed for
   ET Book, where it falls 0.264 of an x-height below the baseline. Each
   face's box is a different shape, so each gets the point that puts its
   line at that same distance, measured in the browser: the same line, the
   same halo round the descenders, the same gap. */
html[data-face="quinn-text"] { --underline-y: 94.5%; }
html[data-face="dico-slab"] { --underline-y: 96.4%; }
html[data-face="puffin"] { --underline-y: 91.6%; }
html[data-face]:not([data-face="et-book"]) :is(a:link, a:visited) {
  background-position-y: var(--underline-y, 87%), var(--underline-y, 87%), var(--underline-y, 87%);
}

/* The date takes the text's weight, so a light text has a light date. */
html[data-weight]:not([data-face="et-book"]) .post-date { font-weight: var(--t-weight, 400); }

/* Sidenote numbers in the face's regular weight, in the line and in the
   margin, whatever the text's weight (bold was tried and set aside
   `[2026-11-21, Nik]`), with a little more room between the margin's
   number and its note. */
html[data-face]:not([data-face="et-book"]) .sidenote-number::after,
html[data-face]:not([data-face="et-book"]) .sidenote::before { font-weight: 400; }
html[data-face]:not([data-face="et-book"]) .sidenote::before { margin-right: 0.3em; }

/* Titles and headings: upright, or in Puffin Display. */
html[data-headings="upright"] :is(.entry-title, article section h2, article section h3, .post-date) { font-style: normal; }
html[data-headings="puffin"] :is(.entry-title, article section h2, article section h3, .archive-list h2) {
  font-family: "puffin-display", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size-adjust: none;
  letter-spacing: -0.01em;
}

.tuner {
  position: fixed;
  z-index: 40;
  right: max(0.75rem, env(safe-area-inset-right));
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  font: 13px/1.35 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size-adjust: none;
  color: #111;
  text-align: left;
  /* The button stays at the bottom corner; the panel opens above it. */
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
}
.tuner-toggle {
  display: block;
  margin-left: auto;
  font: inherit;
  font-weight: 600;
  color: #F9F7F5;
  background: #111;
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.tuner-panel {
  width: min(19rem, calc(100vw - 1.5rem));
  max-height: calc(100vh - 6rem);
  max-height: calc(100dvh - 6rem);
  overflow-y: auto;
  margin-bottom: 0.5rem;
  padding: 0.9rem 1rem 1rem;
  border-radius: 14px;
  background: rgba(249, 247, 245, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid #ddd;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
.tuner-panel[hidden] { display: none; }
.tuner fieldset { border: 0; margin: 0 0 0.9rem; padding: 0; }
.tuner legend,
.tuner-range > span {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: #555;
}
.tuner fieldset label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
  cursor: pointer;
}
.tuner input[type="radio"] { margin: 0; accent-color: var(--accent); }
.tuner-weights { display: flex; flex-wrap: wrap; column-gap: 0.9rem; }
.tuner-weights legend { flex-basis: 100%; }
.tuner-weights label:has(input:disabled) { opacity: 0.35; cursor: default; }
.tuner-note { flex-basis: 100%; margin: 0.2rem 0 0 !important; width: auto !important; font-size: 11.5px !important; line-height: 1.35 !important; color: #888; }
.tuner-note:empty { display: none; }
.tuner-range { display: block; margin: 0 0 0.9rem; }
.tuner-range output { font-weight: 400; color: #111; font-variant-numeric: tabular-nums; }
.tuner-range input { width: 100%; margin: 0; accent-color: var(--accent); }
.tuner-status { margin: 0 0 0.8rem !important; width: auto !important; font-size: 12px !important; line-height: 1.35 !important; color: #777; }
.tuner-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tuner-actions button {
  font: inherit;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #ccc;
  background: #fff;
  color: #111;
  cursor: pointer;
}
.tuner-actions button:first-child { background: #111; color: #F9F7F5; border-color: #111; }
.tuner-actions button[data-tuner-pick] { border-color: var(--accent); color: var(--accent); }
.tuner a { background: none !important; text-shadow: none !important; }

@media (prefers-color-scheme: dark) {
  .tuner { color: #eee; }
  .tuner-panel { background: rgba(30, 30, 30, 0.96); border-color: #333; }
  .tuner legend, .tuner-range > span { color: #aaa; }
  .tuner-range output { color: #eee; }
  .tuner-toggle { background: #eee; color: #151515; }
  .tuner-actions button { background: #222; color: #eee; border-color: #444; }
  .tuner-actions button:first-child { background: #eee; color: #151515; border-color: #eee; }
}

/* The camera line under a photo `[plan, "Small finishes"]`, only where it
   has been switched on in the editor: camera, lens and film, in small Dico
   Mono, quieter than the caption. */
.camera-line {
  display: block;
  margin-top: 0.35em;
  font-family: dico-mono, ui-monospace, "SF Mono", Menlo, monospace;
  font-style: normal;
  font-weight: 400;
  font-size: 0.72em;
  letter-spacing: 0.01em;
  color: #767676;
}
@media (prefers-color-scheme: dark) {
  .camera-line { color: #9a9a9a; }
}

/* ------------------------------------------------------------------ */
/* The title lab, on the Mac only (/title-lab/, while `specimen` is on) */
/* ------------------------------------------------------------------ */

/* The site's title, E, Ohno Softie, resting at its heaviest, which
   title-softie.js moves `[2026-11-22, Nik]`: "For now, lets go with E".
   Wherever data-title-look="e" is on the page (Fonts::TITLE, or a Mac
   device's pick in the title lab); without it, C, the retro sticker above.
   (F, Cheee, was ruled out.) */
html[data-title-look="e"] .site-title a {
  font-family: "ohno-softie-variable", "puffin-display", sans-serif;
  font-weight: 900;
  /* As tall as Puffin `[2026-11-22, Nik]`: "for the Oh No font, we should
     make the height match the Puffin height. It seems a bit smaller." At
     its heaviest, Softie's capitals and tall letters stand 1.136 times
     shorter than Puffin Display Black's at the same size (measured: P and
     h, 64.8 against 73.6), so it is set that much larger, and its lines
     that much closer, so they sit exactly as far apart as C's. */
  font-size: calc(var(--title-size) * 1.136);
  line-height: calc(0.8 / 1.136);
}
/* And on Puffin's baseline: Softie sits lower in the same space (0.066 of
   the title's size, measured at 90 and 115 pixels), so the words are
   lifted by that much, which moves nothing else. */
html[data-title-look="e"] .site-title .word {
  position: relative;
  top: calc(var(--title-size) * -0.066);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
html[data-title-look="e"] .site-title .l {
  -webkit-text-stroke: 0;
  transition: none;
  /* Each letter's box made big enough to hold its ink, padded out and
     drawn back in by the same amount so nothing moves. Softie's heaviest
     letters reach past their own boxes, and Safari only redraws inside the
     box, so a letter getting lighter left a sliver of its heavier self. */
  padding: 0 0.1em;
  margin: 0 calc(var(--hair, 0em) - 0.1em) 0 -0.1em;
}
/* A hairline between letters even at their heaviest `[2026-11-22, Nik]`:
   "at its fattest, the title letters touch, can we ensure that there is
   always a tiny gap?", then "Literally like a tiny hair of a gap!" Each
   pair sits at its own distance in Softie, so each letter is given just
   what puts its ink 0.008 of the letter size from the next one's at the
   heaviest weight (about a pixel): measured, with the theme's -0.02em,
   P-h -0.003, h-a -0.003, a-t -0.008, S-n -0.006, n-a -0.003, a-p 0,
   p-s -0.018. Lighter shapes only open further. */
html[data-title-look="e"] .site-title .word:first-child .l:nth-child(1) { --hair: 0.011em; } /* P */
html[data-title-look="e"] .site-title .word:first-child .l:nth-child(2) { --hair: 0.011em; } /* h */
html[data-title-look="e"] .site-title .word:first-child .l:nth-child(3) { --hair: 0.016em; } /* a */
html[data-title-look="e"] .site-title .word:last-child .l:nth-child(1) { --hair: 0.014em; }  /* S */
html[data-title-look="e"] .site-title .word:last-child .l:nth-child(2) { --hair: 0.011em; }  /* n */
html[data-title-look="e"] .site-title .word:last-child .l:nth-child(3) { --hair: 0.008em; }  /* a */
html[data-title-look="e"] .site-title .word:last-child .l:nth-child(4) { --hair: 0.026em; }  /* p */

/* The switch, a bar across the top of the page, so it never covers the
   title or the type panel's button. */
.title-lab {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  margin: 0 0 0.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #ddd;
  font: 13px/1.35 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size-adjust: none;
  color: #555;
}
.title-lab-name { font-weight: 600; margin-right: 0.2rem; }
.title-lab a {
  padding: 0.35rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 999px;
  color: #111;
  background: #fff !important;
  text-shadow: none !important;
  text-decoration: none;
}
/* The device's pick, which the head script knows before anything paints. */
html[data-title-look="e"] .title-lab a[data-look="e"],
html:not([data-title-look="e"]) .title-lab a[data-look="c"] { background: #111 !important; color: #F9F7F5; border-color: #111; }
.title-lab-hint { flex-basis: 100%; color: #888; }
@media (prefers-color-scheme: dark) {
  .title-lab { color: #aaa; border-color: #333; }
  .title-lab a { color: #eee; border-color: #444; background: #222 !important; }
  html[data-title-look="e"] .title-lab a[data-look="e"],
  html:not([data-title-look="e"]) .title-lab a[data-look="c"] { background: #eee !important; color: #151515; border-color: #eee; }
}

/* ------------------------------------------------------------------ */
/* No lonely last words `[2026-11-22, Nik]`                            */
/* ------------------------------------------------------------------ */

/* Shown on the Mac ("Show me") and kept ("Keep it"). Titles, dates and
   headings that run onto more than one line are split evenly, and
   paragraphs, notes and captions are kept from ending on a single word,
   where the browser can (Safari and Chrome both do; others simply wrap as
   before). On a phone it took the home page and two posts from 12
   paragraphs ending on a lonely word to none. */
:is(.entry-title, .post-date, article section h2, article section h3, .archive-list h2) {
  text-wrap: balance;
}
:is(article section p, .sidenote, .marginnote, figcaption, blockquote p) {
  text-wrap: pretty;
}

/* Parked finishes being tried on the Mac only key on html[data-try~="…"],
   which layout.php sets from $trying while `specimen` is on. None now. */
