/* The whole site in the colours of an orange pendant lamp, measured from a
   photo of it: the grey wall behind, powder-coated orange steel, the opal
   tube, the steel cable. Martian Grotesk for words, Martian Mono for the
   small print (Evil Martians, OFL, Latin and Cyrillic). */
:root {
  --wall: #e9e9ea;    /* the grey wall */
  --opal: #fefefe;    /* the lit tube */
  --steel: #bab7b4;   /* the cable */
  --orange: #ee6a1c;  /* powder-coated steel */
  --ink: #22201e;
  --ink-soft: #5e5a56;
  --sans: "Martian Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; font: 400 1rem/1.5 var(--sans); }
img { max-width: 100%; height: auto; }
img[src$=".gif"] { image-rendering: pixelated; }

/* Webmentions under a note */
.webmentions { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--steel); }
.wm-group { margin-bottom: 1.25rem; }
.wm-label { margin: 0 0 .4rem; color: var(--ink-soft); font: .875rem var(--mono); }
.wm-facepile { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.wm-facepile a, .wm-facepile span { display: block; border-radius: 50%; }
.wm-avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid var(--steel); background: var(--opal); object-fit: cover; }
.wm-initial { display: grid; place-items: center; color: var(--orange); font-size: .95rem; line-height: 1; }
.wm-replies { list-style: none; padding: 0; margin: 0; }
.wm-reply { display: flex; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid var(--steel); }
.wm-reply:last-child { border-bottom: 0; }
.wm-reply .wm-avatar { width: 40px; height: 40px; }
.wm-meta { margin: 0; color: var(--ink-soft); font: .875rem var(--mono); }
.wm-text { margin: .2rem 0 0; overflow-wrap: anywhere; }


/* Phone page: candybar "slab" phone */
.slab {
  --body1: #c2668a; --body2: #8a3f5f; --key1: #dcdde4; --key2: #a9aab4; --glyph: #24252b;
  width: 320px; max-width: 100%; margin: 1.5rem auto 1rem; padding: 18px 18px 26px;
  border-radius: 44px 44px 56px 56px / 36px 36px 70px 70px;
  background: linear-gradient(100deg, #9c4d6c 0%, var(--body1) 18%, #dc8fab 30%, var(--body1) 45%, var(--body2) 100%);
  box-shadow: 0 25px 50px rgb(80 30 50 / .35), inset 0 2px 1px rgb(255 255 255 / .35), inset 0 -3px 6px rgb(60 10 30 / .4), inset 3px 0 6px rgb(255 255 255 / .12);
  font-family: var(--sans); user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.slab-top { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 10px; }
.slab-earpiece { width: 64px; height: 7px; border-radius: 4px; background: repeating-linear-gradient(90deg, #0b0d10 0 3px, #22262c 3px 5px); box-shadow: inset 0 1px 2px #000; }
.slab-logo { font: 800 .7rem var(--sans); font-stretch: 112.5%; letter-spacing: .45em; color: #fbe6ee; text-shadow: 0 1px 0 rgb(80 20 45 / .6); }
.slab-bezel { padding: 12px; border-radius: 12px; background: linear-gradient(#0d0f12, #17191d); box-shadow: inset 0 2px 6px #000, 0 1px 0 rgb(255 255 255 / .12); }
.slab-screen { display: block; width: 100%; aspect-ratio: 3 / 4; border: 0; border-radius: 3px; background: #9fb08a; }
.slab button { font: inherit; color: var(--glyph); border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.slab button.pressed, .slab button:active { filter: brightness(.8); transform: translateY(1px); }

.slab-nav { display: grid; grid-template-columns: 1fr 104px 1fr; grid-template-rows: 44px 44px; gap: 6px 10px; align-items: center; margin: 16px 0 12px; }
.k { height: 38px; border-radius: 18px; background: linear-gradient(var(--key1), var(--key2)); box-shadow: 0 2px 3px rgb(60 10 30 / .45), inset 0 1px 0 rgb(255 255 255 / .7); }
.k.soft i { display: block; width: 26px; height: 3px; margin: auto; border-radius: 2px; background: var(--glyph); opacity: .8; }
.k svg { width: 18px; height: 18px; display: block; margin: auto; }
.k.call svg { fill: #25a68f; } .k.end svg { fill: #d2402f; }
.k.clear { font-weight: 700; font-size: .95rem; }
.slab-nav .soft:first-child { grid-column: 1; grid-row: 1; }
.slab-nav .dpad { grid-column: 2; grid-row: 1 / span 2; }
.slab-nav .soft:nth-of-type(2) { grid-column: 3; grid-row: 1; }
.slab-nav .call { grid-column: 1; grid-row: 2; }
.slab-nav .end { grid-column: 3; grid-row: 2; }
.slab-nav .clear { display: none; }
.dpad { position: relative; width: 100px; height: 100px; margin: auto; border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #6a6c76, #2f3037 70%); box-shadow: 0 3px 5px rgb(60 10 30 / .5), inset 0 1px 0 rgb(255 255 255 / .35); }
.d { position: absolute; background: transparent; }
.d.up, .d.down { left: 30px; width: 40px; height: 32px; } .d.up { top: 0; } .d.down { bottom: 0; }
.d.left, .d.right { top: 30px; width: 32px; height: 40px; } .d.left { left: 0; } .d.right { right: 0; }
.d.up::after, .d.down::after, .d.left::after, .d.right::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border: 6px solid transparent; }
.d.up::after { border-bottom-color: var(--glyph); top: -6px; } .d.down::after { border-top-color: var(--glyph); bottom: -6px; }
.d.left::after { border-right-color: var(--glyph); left: -6px; } .d.right::after { border-left-color: var(--glyph); right: -6px; }
.d.ok { left: 30px; top: 30px; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(#dcdde4, #a9aab4); box-shadow: 0 1px 2px rgb(0 0 0 / .5), inset 0 1px 0 rgb(255 255 255 / .8); }

.slab-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 10px; }
.num { height: 40px; display: flex; align-items: baseline; justify-content: center; gap: 6px; padding-top: 7px;
  background: linear-gradient(var(--key1), var(--key2)); box-shadow: 0 2px 3px rgb(60 10 30 / .45), inset 0 1px 0 rgb(255 255 255 / .7); }
.num:nth-child(3n+1) { border-radius: 18px 8px 8px 22px; }
.num:nth-child(3n+2) { border-radius: 8px; }
.num:nth-child(3n) { border-radius: 8px 18px 22px 8px; }
.num b { font-size: 1.15rem; font-weight: 600; }
.num small { font-size: .62rem; letter-spacing: .05em; color: #4c4d55; text-transform: lowercase; }
.slab-mic { width: 6px; height: 6px; margin: 16px auto 0; border-radius: 50%; background: #3b1c29; box-shadow: inset 0 1px 1px #000, 0 1px 0 rgb(255 255 255 / .3); }

kbd { font: .85em var(--mono); padding: .05em .35em; border: 1px solid var(--steel); border-radius: 4px; background: var(--opal); }

/* 88x31 buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 4px; margin-top: .75rem; }
.buttons img { width: 88px; height: 31px; image-rendering: pixelated; }

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

/* Leaves page: pressed leaves on a full-window table of warm beige paper */
body.leaves-page { max-width: none; padding: 0; overflow: hidden; }
.leaf-table {
  position: relative; overflow: hidden; user-select: none; -webkit-user-select: none;
  height: 100vh; height: 100dvh; /* the whole screen */
  --paper: #ece0c4; --ink: #2b2418; --ink-muted: #7a6f5c; --rule: #d6cbb2;
  /* Rough paper: faint tonal blotches, fibres running one way, and a fine tooth */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='640'%3E%3Cfilter id='m' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006' numOctaves='3' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36  0 0 0 0 .27  0 0 0 0 .14  .1 0 0 0 -.04'/%3E%3C/filter%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='turbulence' baseFrequency='.06' numOctaves='3' seed='8' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3  0 0 0 0 .22  0 0 0 0 .1  .06 0 0 0 -.006'/%3E%3C/filter%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='1' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .28  0 0 0 0 .2  0 0 0 0 .1  .25 0 0 0 -.105'/%3E%3C/filter%3E%3Cfilter id='w' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='1' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .98  0 0 0 0 .95  0 0 0 0 .88  .8 0 0 0 -.52'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23m%29'/%3E%3Crect width='100%25' height='100%25' filter='url%28%23f%29'/%3E%3Crect width='100%25' height='100%25' filter='url%28%23g%29'/%3E%3Crect width='100%25' height='100%25' filter='url%28%23w%29'/%3E%3C/svg%3E"),
    var(--paper);
  color: var(--ink);
}
.leaf-table.over-leaf { cursor: grab; }
.leaf-layer { position: absolute; inset: 0; isolation: isolate; }
.leaf { padding: 0; border: 0; background: none; color: inherit; font: inherit; -webkit-tap-highlight-color: transparent; }
.leaf img { display: block; }
/* Without JavaScript: the leaves just lie in a row. With it, they stay hidden until dealt. */
html:not(.js) .leaf-table { height: auto; }
html:not(.js) .leaf-layer { position: static; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: center; padding: 2rem 1rem; }
html:not(.js) .leaf img { max-height: 180px; width: auto; }
.js .leaf-table:not(.is-live) .leaf { visibility: hidden; }
.is-live .leaf {
  position: absolute; left: 0; top: 0; touch-action: none; will-change: transform; cursor: inherit;
  filter: drop-shadow(0 0 3px rgb(0 0 0 / .2));
}
.is-live .leaf img { display: none; }
.is-live .leaf canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; transition: scale .18s ease-out; }
.is-live .leaf.is-held { filter: drop-shadow(0 0 12px rgb(0 0 0 / .28)); cursor: grabbing; }
.is-live .leaf.is-held canvas { scale: 1.04; }
.is-live .leaf.hop canvas { animation: leaf-hop .18s ease-out; }
.leaf:focus-visible { outline: 2px dashed var(--ink); outline-offset: 6px; }
@keyframes leaf-hop { 50% { scale: 1.08; } }

.wind-controls { position: absolute; z-index: 1; top: .75rem; right: .75rem; display: flex; align-items: center; gap: .6rem; }
.wind-start {
  position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%;
  display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.8rem 1.1rem 1.4rem;
  border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); color: var(--ink);
  font: 1.3rem/1 var(--mono); letter-spacing: .04em; white-space: nowrap; cursor: pointer;
  box-shadow: 0 6px 24px rgb(43 36 24 / .25);
}
.wind-start svg { width: 2.2rem; height: 2.2rem; fill: currentColor; }
.wind-start:hover { color: var(--orange); border-color: var(--orange); }
.wind-start:focus-visible { outline: 2px dashed var(--ink); outline-offset: 4px; }
.table-button {
  display: block; width: 36px; height: 36px; padding: 6px; border: 1px solid var(--rule); border-radius: 6px;
  background: var(--paper); color: var(--ink); cursor: pointer;
}
.table-button:hover { color: var(--orange); }
.table-button:focus-visible { outline: 2px dashed var(--ink); outline-offset: 2px; }
.table-button svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.home-button { position: absolute; z-index: 1; top: .75rem; left: .75rem; }
.wind-toggle .off, .wind-toggle.is-muted .on { display: none; }
.wind-toggle.is-muted .off { display: inline; }

@media (prefers-reduced-motion: reduce) {
  .is-live .leaf canvas { transition: none; }
  .is-live .leaf.hop canvas { animation: none; }
}
.table-button[hidden], .wind-start[hidden] { display: none; }

/* Glass blocks page: a full-window wall drawn by a shader */
body.glass-page { --bg: #12151f; --fg: #e8e6ec; --muted: #b9bccb; --link: var(--orange); max-width: none; padding: 0; overflow: hidden; background: var(--bg); color: var(--fg); }
.glass-wall { position: relative; height: 100vh; height: 100dvh; overflow: hidden; user-select: none; -webkit-user-select: none; }
.glass-wall canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.glass-wall.no-gl canvas { display: none; }
.glass-wall.no-gl { background: url("/img/scene/dusk-wide.webp") center / cover; }
.glass-fallback { position: absolute; inset: auto 1rem 50% 1rem; text-align: center; text-shadow: 0 1px 6px #000; }
.glass-button {
  position: absolute; z-index: 1; top: .75rem; display: block; width: 38px; height: 38px; padding: 7px;
  border: 1px solid rgb(255 255 255 / .14); border-radius: 8px; cursor: pointer;
  background: rgb(18 22 32 / .62); color: var(--fg); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.glass-button svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.glass-button:hover { color: var(--link); }
.glass-button:focus-visible, .glass-controls button:focus-visible, .glass-size input:focus-visible { outline: 2px dashed var(--link); outline-offset: 2px; }
.glass-wall .home-button { left: .75rem; }
.camera-button { right: .75rem; }
.glass-wall .wall-button, .glass-wall .block-button { left: calc(.75rem + 46px); }
body.block-page { background: #fff; }
.block-stage canvas { cursor: grab; }
.block-stage.is-dragging canvas { cursor: grabbing; }
.block-stage canvas:focus-visible { outline: 2px dashed var(--link); outline-offset: -6px; }
.camera-button[aria-pressed="true"] { color: var(--link); border-color: var(--link); }
.camera-button.is-refused { opacity: .45; }
.camera-button[hidden] { display: none; }
.glass-controls {
  position: absolute; z-index: 1; left: 50%; bottom: max(.9rem, env(safe-area-inset-bottom)); translate: -50% 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem 1rem;
  width: max-content; max-width: calc(100% - 2rem); padding: .45rem .6rem;
  border: 1px solid rgb(255 255 255 / .14); border-radius: 12px;
  background: rgb(18 22 32 / .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font: .85rem/1 var(--mono); letter-spacing: .03em;
}
.glass-patterns { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem; }
.glass-patterns button {
  padding: .45rem .6rem; border: 1px solid transparent; border-radius: 7px; background: none;
  color: var(--muted); font: inherit; cursor: pointer;
}
.glass-patterns button:hover { color: var(--fg); }
.glass-patterns button[aria-checked="true"] { color: var(--bg); background: var(--link); }
.glass-size { display: flex; align-items: center; gap: .5rem; color: var(--muted); }
.glass-size input { width: 7.5rem; accent-color: var(--link); }
@media (max-width: 480px) {
  .glass-controls { font-size: .8rem; gap: .4rem .8rem; }
  .glass-patterns { gap: .1rem; }
  .glass-patterns button { padding: .45rem .42rem; }
}

/* The site's frame, on every page but the full-window ones: a Swiss grid,
   the content in the left eight columns, a stage for something wild in the
   right four. The fonts are variable in weight and width. */
@font-face {
  font-family: "Martian Grotesk";
  src: url("/fonts/martian-grotesk.woff2") format("woff2");
  font-weight: 100 1000; font-stretch: 75% 200%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("/fonts/martian-mono.woff2") format("woff2");
  font-weight: 100 800; font-stretch: 75% 112.5%; font-style: normal; font-display: swap;
}
html:has(body.site) { background: #e9e9ea; }
body.site {
  --cols: 4; --gutter: .75rem; --margin: 1rem;
  max-width: none; margin: 0; padding: 0;
  background: var(--wall); color: var(--ink);
  font: 400 1.125rem/1.45 var(--sans);
}
.site ::selection { background: var(--orange); color: var(--ink); }
.site a { color: inherit; text-decoration: none; }
.site a:hover { color: inherit; }
.site a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.site .rel-me a, .site .colophon a { text-decoration: underline 2px var(--orange); text-underline-offset: .22em; }
.site .notes a:hover, .site .rel-me a:hover, .site .colophon a:hover { text-decoration: underline 2px var(--ink); text-underline-offset: .22em; }
/* The small print in Martian Mono, at its standard width */
.site .rel-me, .site .notes time, .site .colophon { font-family: var(--mono); font-stretch: 100%; font-size: .875rem; }

/* The grid, 1440 px at most: every row is a subgrid of the page, so columns line up all the way down */
.site .page {
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gutter); padding-inline: var(--margin); max-width: 1440px; margin-inline: auto;
}
.site .rows, .site .colophon, .site .rows > * { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; }
.site .grid-guides {
  display: none; position: fixed; inset: 0 auto; left: 50%; translate: -50% 0; width: min(100%, 1440px); z-index: 10; pointer-events: none;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gutter); padding-inline: var(--margin);
}
.site .page:target .grid-guides { display: grid; }
.site .grid-guides span { background: rgb(238 106 28 / .14); }
.site .grid-guides span:nth-child(n + 5) { display: none; }

/* The stage: on phones and tablets a band across the top; wider, the right
   four columns, out to the window's edge, staying in view as the page scrolls */
.site .stage { grid-column: 1 / -1; grid-row: 1; position: relative; height: clamp(16rem, 60vw, 26rem); margin-inline: calc(-1 * var(--margin)); }
.site .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.site.home .rows { grid-row: 2; }
.site.home .colophon { grid-row: 3; }

/* The name, each letter in its own cut: a heavy I, a G from the Mono, a
   hairline O as wide as the face goes, an extra-bold R */
.site .hero { padding-block: clamp(2rem, 6vw, 4rem) clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.site .name {
  grid-column: 1 / -1; grid-row: 1; margin: 0 0 0 -.036em; /* the I's side bearing, so its stem stands on the column's edge */
  font-size: 28vw; font-weight: 800; font-stretch: 112.5%; letter-spacing: -.04em; line-height: .8;
  text-transform: uppercase; text-box: trim-both cap alphabetic; color: var(--orange); white-space: nowrap;
}
.site :is(.name, .wordmark) span:nth-child(1) { font-weight: 1000; }
.site :is(.name, .wordmark) span:nth-child(2) { font-family: var(--mono); font-weight: 800; }
.site :is(.name, .wordmark) span:nth-child(3) { font-weight: 200; font-stretch: 200%; }
@supports not (text-box: trim-both cap alphabetic) {
  .site .name { line-height: 1; margin-bottom: -.1em; }
}
.site .portrait { grid-column: 1 / 3; grid-row: 2; margin-top: clamp(2rem, 6.8vw, 6.125rem); }
.site .portrait img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.site .intro { grid-column: 1 / -1; grid-row: 3; margin-top: 1.25rem; }
.site .lede { margin: 0; font-size: 1.375rem; line-height: 1.3; font-weight: 500; text-wrap: pretty; }
.site .lede b { font-family: var(--mono); font-weight: 700; font-stretch: 112.5%; }
.site .p-locality { margin: .5rem 0 0; color: var(--ink-soft); }
.site .rel-me { list-style: none; margin: 1.375rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1rem; }

/* The other pages, the whole width: the name, small, as the way home; a
   title in the widest, blackest cut, sized so that a ten-letter word still
   fits the width of a phone; then a reading column */
.site .masthead { padding-top: clamp(1.75rem, 5.6vw, 5rem); }
.site .wordmark {
  grid-column: 1 / -1; justify-self: start; margin-left: -.036em;
  font-size: clamp(2.25rem, 3.5vw, 3.125rem); font-weight: 800; font-stretch: 112.5%; letter-spacing: -.04em; line-height: .8;
  text-transform: uppercase; text-box: trim-both cap alphabetic; color: var(--orange); white-space: nowrap;
}
.site .wordmark:hover { color: var(--ink); }
.site .rows > .body { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; align-content: start; padding-block: clamp(2rem, 5.6vw, 5rem) 3rem; }
/* A note, or the blog's list, lays its parts on the grid too, so the title
   can run wide while the text keeps to a reading measure */
.site .body > :not(h1), .site .body > :is(article.h-entry, .h-feed) > :not(h1) { grid-column: 1 / -1; max-width: 44rem; }
.site .body > :is(article.h-entry, .h-feed) { display: grid; grid-template-columns: subgrid; align-content: start; max-width: none; }
.site .body h1 {
  grid-column: 1 / -1; margin: 0 0 clamp(2rem, 4vw, 3.625rem); font: 900 clamp(1.5rem, calc((100vw - 2 * var(--margin)) / 11.5), 4.75rem)/1.2 var(--sans); font-stretch: 200%;
  text-transform: uppercase; color: var(--ink); overflow-wrap: break-word;
}
.site .body h2 { margin: 0 0 .5rem; font: 700 1.375rem/1.3 var(--sans); font-stretch: 112.5%; color: var(--ink); }
.site .body p { margin: 0 0 1rem; line-height: 1.55; text-wrap: pretty; }
.site .body :is(p, li) a, .site .body h2 a { text-decoration: underline 2px var(--orange); text-underline-offset: .22em; }
.site .body :is(p, li) a:hover, .site .body h2 a:hover { text-decoration-color: var(--ink); }
.site .body code { font: .9em var(--mono); }
.site .body .meta, .site .body time { color: var(--ink-soft); font: .875rem/1.45 var(--mono); }
.site .body > article.h-entry > .meta { margin: 0 0 clamp(1.5rem, 2.7vw, 2.4375rem); }
.site .body .e-content > :last-child { margin-bottom: 0; }
.site .body .meta a { text-decoration: underline 2px var(--orange); text-underline-offset: .22em; }
.site .body .h-feed article.h-entry { margin: 0 0 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--steel); }
.site .body .h-feed article.h-entry .meta { margin-top: .75rem; }
.site .body .slab { margin: 2rem 0 1rem; }

/* Rows below: a rule, an orange label, the content under it */
.site .row { border-top: 1px solid var(--steel); padding-block: 1.25rem 3.5rem; align-items: start; }
.site .label {
  grid-column: 1 / -1; margin: 0 0 1.9rem;
  font: 800 1.375rem/1.3 "Martian Grotesk", sans-serif; font-stretch: 112.5%; text-transform: uppercase; color: var(--orange);
}
.site .card { grid-column: 1 / -1; display: flex; flex-direction: column; margin-bottom: 2rem; }
.site .plate { display: block; aspect-ratio: 23 / 20; overflow: hidden; }
/* The previews are close-ups dithered in their own colours, no white (tools/dither/palette.py --bits), two dots to a CSS pixel */
.site .plate img { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.site .card-title { margin-top: 2rem; font-family: var(--mono); font-weight: 500; font-stretch: 112.5%; }
.site .card-note { margin-top: 1.25rem; color: var(--ink-soft); font-size: 1rem; line-height: 1.4; text-wrap: pretty; }
.site .card:hover .card-title, .site .card:focus-visible .card-title { text-decoration: underline 2px var(--orange); text-underline-offset: .22em; }

.site .blog { padding-bottom: 5rem; }
.site .notes { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; list-style: none; margin: 0; padding: 0; }
.site .notes li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: baseline; padding-block: .55rem; border-bottom: 1px solid var(--steel); }
.site .notes li:first-child { padding-top: 0; }
.site .notes a, .site .notes time { grid-column: 1 / -1; }
.site .notes time { color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.site .colophon { border-top: 1px solid var(--steel); padding-block: .9rem 2.5rem; row-gap: .6rem; color: var(--ink-soft); }
.site .colophon p { grid-column: span 2; margin: 0; }
.site .colophon .webring { grid-column: span 4; }
.site .webring a { margin-right: .3rem; }
.site .buttons { margin: 0; display: block; }
.site .buttons img { display: block; }

/* Tablets: eight columns */
@media (min-width: 40rem) {
  body.site { --cols: 8; --gutter: 1.25rem; --margin: 1.5rem; }
  .site .grid-guides span:nth-child(n + 5) { display: block; }
  .site .grid-guides span:nth-child(n + 9) { display: none; }
  .site .name { font-size: 24vw; }
  .site .intro { grid-column: 3 / -1; grid-row: 2; margin-top: clamp(2rem, 6.8vw, 6.125rem); }
  .site .card { grid-column: span 4; margin-bottom: 0; }
  .site .notes a { grid-column: 1 / 7; }
  .site .notes time { grid-column: 7 / -1; }
}

/* Wide screens: twelve columns, the content in the left eight, the stage in the right four */
@media (min-width: 64rem) {
  body.site { --cols: 12; --gutter: 24px; --margin: 40px; }
  .site .grid-guides span:nth-child(n + 9) { display: block; }
  .site .stage {
    grid-column: 9 / -1; grid-row: 1 / 3; align-self: start;
    position: sticky; top: 0; height: 100vh; height: 100svh; margin-inline: 0 calc(-1 * var(--margin));
  }
  .site.home .rows, .site.home .colophon { grid-column: 1 / 9; }
  .site.home .rows { grid-row: 1; }
  .site.home .colophon { grid-row: 2; }
  .site .hero { padding-top: min(13.9vw, 200px); }
  .site .name { font-size: min(17.5vw, 252px); }
  .site .card { grid-column: span 3; }
  .site .notes a { grid-column: 1 / 7; }
  .site .notes time { grid-column: 7 / -1; }
  .site .body h1 { grid-column: 1 / 12; }
  .site .colophon .webring { grid-column: span 3; white-space: nowrap; }
  .site .colophon .buttons { grid-column: span 1; }
}
