/* swap fonts here once you pick one */
:root {
  --font-body: "EB Garamond", "Garamond", serif;
  --font-title: "Instrument Serif", "Garamond", serif;
  /* apple's own font (sf pro) on apple devices; the system font elsewhere */
  --font-apple: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  --ink: #111;
  --muted: #8a8a8a;
  --paper: #fff;
  --accent: #2f3dff;          /* link squiggle */
  --purple: #7b3fe4;          /* lit footnote */
  /* pearl fallback; site.js swaps in a fresh random one each time */
  --pearl: linear-gradient(115deg, oklch(.93 .05 230), oklch(.95 .04 280), oklch(.98 .015 200), oklch(.93 .05 175), oklch(.94 .04 335));
  --ease: cubic-bezier(.2, .8, .2, 1);
}

@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) { animation-duration: .35s; animation-timing-function: var(--ease); }
::view-transition-old(title) { animation: .3s var(--ease) both fade-up-out; }
::view-transition-new(title) { animation: .4s var(--ease) both fade-up-in; }
@keyframes fade-up-out { to { opacity: 0; transform: translateY(-8px); filter: blur(4px); } }
@keyframes fade-up-in { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(24px, 2.7vw, 40px);
  line-height: 1.55;
}
::selection { background: oklch(.92 .05 260); }
html.pearl ::selection { background: transparent; }
/* drawn behind selected text by site.js; multiply keeps the ink black */
.pearl-select { position: absolute; inset: 0 auto auto 0; pointer-events: none; mix-blend-mode: multiply; z-index: 30; }
.pearl-select span { position: absolute; border-radius: 3px; }


main {
  max-width: 1400px;
  min-height: 100vh;
  display: flex; flex-direction: column;
  margin: 0 auto;
  padding: 40px clamp(16px, 4vw, 48px) 32px;
}

.title {
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(64px, 9vw, 140px);
  line-height: 1;
  letter-spacing: -.02em;
  margin: 0 0 .35em;
  view-transition-name: title;
}

.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4em;
  margin-inline: clamp(0px, 4vw, 70px);   /* same indent both sides, so the text sits dead centre */
  margin-block: auto;   /* experiment: text floats in the middle of the screen */
}
.columns p { margin: 0; }
@media (max-width: 760px) {
  .columns { grid-template-columns: 1fr; margin-inline: 0; gap: .8em; }
}

/* links: wavy squiggle; on hover the line straightens and the cursor turns blue */
a { color: inherit; }
main a, sup.fn a {
  --blue-cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M4 2v17l4.5-4.2 3 6.7 2.6-1.1-3-6.6 6-.3z' fill='%232f3dff' stroke='white' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, pointer;
  cursor: var(--blue-cursor);
}
main a {
  text-decoration: underline wavy var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  transition: text-decoration-color .2s;
}
main a:hover, main a:focus-visible {
  text-decoration-style: solid;
  outline: none;
}

/* homepage only: links get the skateboarding cat (hotspot on its nose) */
.home main a:not(sup a) {
  cursor: url("images/cat-cursor.png") 51 12, pointer;
  cursor: -webkit-image-set(url("images/cat-cursor.png") 1x, url("images/cat-cursor@2x.png") 2x) 51 12, pointer;
}

/* "sissi": hover for a speech bubble of links, click to pin it open */
.who { position: relative; white-space: nowrap; }
.who-name {
  font: inherit; color: inherit; background: none; border: 0; padding: 0;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M4 2v17l4.5-4.2 3 6.7 2.6-1.1-3-6.6 6-.3z' fill='%232f3dff' stroke='white' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, pointer;
}
.bubble {
  position: absolute; z-index: 40;
  left: -38px; bottom: calc(100% - .1em);
  width: 250px; height: 112px;
  padding: 26px 22px 0 26px; box-sizing: border-box;
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 15px; line-height: 1;
  /* hidden = shrunk to a dot at the tail tip, which sits on top of my cap */
  transform-origin: 36px calc(100% - 4px);
  transform: scale(.04);
  visibility: hidden; opacity: 0;
  /* going away: quick ease-in back down into my head */
  transition: transform .24s cubic-bezier(.55, 0, .8, .2), opacity .2s ease-in .04s, visibility 0s linear .24s;
}
.who:focus-within .bubble, .who.peek .bubble, .who.pinned .bubble {
  visibility: visible; opacity: 1; transform: none;
  /* coming out: springs up from the hat with a little overshoot */
  transition: transform .5s cubic-bezier(.2, 1.35, .35, 1), opacity .12s ease-out, visibility 0s;
}
/* icons pop in one after another once the bubble is out */
.bubble .ico { transform: scale(.6); opacity: 0; transition: transform .2s ease-in, opacity .15s ease-in; }
.who:focus-within .bubble .ico, .who.peek .bubble .ico, .who.pinned .bubble .ico {
  transform: none; opacity: 1;
  transition: transform .35s cubic-bezier(.2, 1.5, .4, 1), opacity .2s ease-out;
}
.who.peek .bubble .ico:nth-of-type(1), .who.pinned .bubble .ico:nth-of-type(1) { transition-delay: .12s; }
.who.peek .bubble .ico:nth-of-type(2), .who.pinned .bubble .ico:nth-of-type(2) { transition-delay: .16s; }
.who.peek .bubble .ico:nth-of-type(3), .who.pinned .bubble .ico:nth-of-type(3) { transition-delay: .2s; }
.who.peek .bubble .ico:nth-of-type(4), .who.pinned .bubble .ico:nth-of-type(4) { transition-delay: .24s; }
.who.peek .bubble .ico:nth-of-type(5), .who.pinned .bubble .ico:nth-of-type(5) { transition-delay: .28s; }
/* my face next to the name opens the same bubble */
.pic img.face { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M4 2v17l4.5-4.2 3 6.7 2.6-1.1-3-6.6 6-.3z' fill='%232f3dff' stroke='white' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, pointer; }
.bubble-shape { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; overflow: visible; }
.bubble-shape path { fill: url(#bubble-fill); stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.bubble .ico {
  display: block; width: 26px; height: 26px; color: var(--ink);
  text-decoration: none; background: none;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M4 2v17l4.5-4.2 3 6.7 2.6-1.1-3-6.6 6-.3z' fill='%232f3dff' stroke='white' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, pointer;
}
.bubble .ico svg { width: 100%; height: 100%; fill: currentColor; }
.bubble .ico svg.line { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bubble .ico svg.line .dot { fill: currentColor; stroke: none; }
.bubble .ico:hover, .bubble .ico:focus-visible { color: var(--accent); outline: none; }
.bubble .copied { position: absolute; left: 0; right: 0; top: 64px; text-align: center; font: italic 14px/1 var(--font-body); }

/* inline pictures sit on the text line, like emoji.
   their margin box is zero-height, so they never change the line spacing;
   the picture is centred ~.3em above the baseline and may overlap the gaps */
.pic { white-space: nowrap; }
.pic img {
  --h: 1.15em;
  height: var(--h); width: auto;
  display: inline-block;
  vertical-align: baseline;
  margin-top: calc(var(--h) / -2 - .3em);
  margin-bottom: calc(var(--h) / -2 + .3em);
}
.pic img.big { --h: 1.75em; }
/* a picture can be a link: no squiggle under it */
.pic a { text-decoration: none; }
.pic img.mid { --h: 1.45em; }
.pic .missing {
  height: 1.15em; width: auto;
  vertical-align: -.22em;
  display: inline-block;
}
.pic .missing {
  min-width: 1.15em; padding: 0 .25em;
  border: 1px dashed var(--muted); border-radius: .3em;
  font: italic .42em/2.6 var(--font-body); color: var(--muted);
  text-align: center;
}

/* footnote markers */
sup.fn {
  font-size: .5em; line-height: 0;
  color: var(--accent);
  padding: 0 .1em;
}

sup.fn { transition: color .2s; }
sup.fn.lit { color: var(--purple); }


/* footnotes at the bottom, small and bookish */
.footnotes {
  margin: 0 clamp(0px, 4vw, 70px);
  padding: 1.5em 0 0 1.2em;
  columns: 2 280px; column-gap: 2em;
  font-size: clamp(16px, 1.25vw, 20px); font-style: italic; line-height: 1.5;
  font-family: "Times New Roman", Times, serif;
}
.footnotes li { break-inside: avoid; margin-bottom: .5em; transition: background .4s; }
.footnotes li.flash { background: var(--pearl); }
.footnotes .todo { color: var(--muted); }
.footnotes cite { font-style: normal; }  /* titles stand upright inside the italic notes */
.footnotes li { transition: color .2s, background .4s; }
.footnotes li.lit, .footnotes li.lit .up { color: var(--purple); }

/* subpages: blank for now, a lone arrow home at the bottom middle */
.home-arrow {
  position: fixed; left: 50%; bottom: 28px;
  transform: translateX(-50%);
  padding: 8px; line-height: 0;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M4 2v17l4.5-4.2 3 6.7 2.6-1.1-3-6.6 6-.3z' fill='%232f3dff' stroke='white' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, pointer;
}
.home-arrow img { width: 46px; height: auto; display: block; transition: transform .3s cubic-bezier(.2, 1.6, .4, 1); }
.home-arrow:hover img { transform: translate(-4px, -5px) rotate(-8deg); }
.home-arrow:focus-visible { outline: 1px dotted var(--ink); }

/* page load: lines drift in */
main > * { animation: rise .6s var(--ease) both; }
main > *:nth-child(2) { animation-delay: .06s; }
main > *:nth-child(3) { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, ::view-transition-group(*) { animation: none !important; transition: none !important; }
}

/* footnote links */
sup.fn a { text-decoration: none; color: inherit; }
.footnotes .up { text-decoration: none; background: none; color: var(--muted); font-style: normal; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* find: a glossy question mark in the corner opens a plain box in the middle of a dimmed page */
.sb {
  position: fixed; right: 18px; bottom: 12px; z-index: 50;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 0; border: 0; background: none;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M4 2v17l4.5-4.2 3 6.7 2.6-1.1-3-6.6 6-.3z' fill='%232f3dff' stroke='white' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, pointer;
}
.sb img { width: 52px; height: auto; display: block; transition: transform .2s cubic-bezier(.2, 1.4, .4, 1); }
.sb:hover img { transform: translateY(-3px) rotate(-4deg); }
.sb-label {
  display: flex; gap: 1px; font: 19px/1 "Gochi Hand", var(--font-body); color: #6cb6ff;
}
/* "find", letters scattered like they were dropped there */
.sb-label i { font-style: normal; display: inline-block; transition: transform .25s cubic-bezier(.2, 1.6, .4, 1); }
.sb-label i:nth-child(1) { transform: translateY(1px) rotate(-12deg); }
.sb-label i:nth-child(2) { transform: translateY(-3px) rotate(8deg); margin-left: 2px; }
.sb-label i:nth-child(3) { transform: translateY(2px) rotate(-5deg); margin-left: 1px; }
.sb-label i:nth-child(4) { transform: translateY(-1px) rotate(14deg); margin-left: 3px; }
.sb:hover .sb-label i { transform: translateY(-2px) rotate(0); }
.sb:focus-visible { outline: 1px dotted var(--ink); outline-offset: 4px; }
.sb-shade {
  position: fixed; inset: 0; z-index: 49; background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .12s, visibility 0s linear .12s;
}
.sb-shade.open { opacity: 1; visibility: visible; transition: opacity .12s, visibility 0s; }
.sb-panel {
  --font-body: "Times New Roman", Times, serif;  /* the find box only: plain old times */
  position: fixed; left: 50%; top: 30vh; z-index: 50;
  width: min(560px, calc(100vw - 32px)); max-height: 60vh;
  display: flex; flex-direction: column;
  background: #fff; border: 0; border-radius: 26px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 18px 60px rgba(20, 60, 70, .14);
  font: 18px/1.35 var(--font-body); color: var(--ink);
  transform: translate(-50%, 6px) scale(.985); opacity: 0; visibility: hidden;
  transition: transform .12s ease-in, opacity .1s ease-in, visibility 0s linear .12s;
}
.sb-panel.open {
  transform: translate(-50%, 0); opacity: 1; visibility: visible;
  transition: transform .16s cubic-bezier(.2, 1, .3, 1), opacity .1s ease-out, visibility 0s;
}
.sb-field { display: flex; align-items: center; gap: 0; padding: 20px 22px 14px; }
.sb-prefix { font: italic 22px/1.2 var(--font-body); color: var(--muted); padding-right: 2px; }
.sb-input {
  flex: 1; min-width: 0; font: 22px/1.2 var(--font-body); color: var(--ink);
  border: 0; background: transparent; padding: 0; outline: none;
  -webkit-appearance: none; appearance: none;
}
.sb-input::placeholder { color: #c4c4c4; font-style: italic; }
.sb-input::-webkit-search-cancel-button { display: none; }
.sb-x { border: 0; background: none; font-size: 20px; line-height: 1; color: var(--muted); padding: 0 2px; cursor: inherit; }
.sb-out { overflow-y: auto; padding: 0 12px 6px; }
.sb-out:empty { display: none; }
.sb-foot {
  display: flex; justify-content: center; align-items: flex-end; gap: 26px; margin: 0; padding: 10px 22px 18px;
  font: italic 14px/1 var(--font-body); color: var(--muted);
}
.sb-hint { margin: 6px 8px; color: var(--muted); font-style: italic; font-size: 14px; }
.sb-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 8px 6px; }
.sb-chip, .sb-row {
  font: inherit; color: inherit; background: none; text-decoration: none;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M4 2v17l4.5-4.2 3 6.7 2.6-1.1-3-6.6 6-.3z' fill='%232f3dff' stroke='white' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, pointer;
}
.sb-chip { border: 1px solid #ddd; border-radius: 999px; padding: 2px 10px; font-size: 14px; }
.sb-chip:hover { border-color: var(--ink); }
.sb-row {
  display: flex; align-items: baseline; gap: 14px; width: 100%;
  text-align: left; border: 0; border-radius: 4px; padding: 7px 8px;
}
.sb-row { border-radius: 12px; }
.sb-row:hover, .sb-row.active { background: #f3f7f8; }
.sb-foot .hint { display: inline-flex; align-items: flex-end; gap: 7px; }
.sb-foot .keys { display: block; filter: drop-shadow(0 1.5px 1.5px rgba(0, 0, 0, .18)); overflow: visible; }
.sb-foot .kc.hot { filter: drop-shadow(0 0 3px rgba(60, 200, 215, .55)); }
.sb-contact { border-bottom: 0 !important; }
.sb-row > span { flex: 1; min-width: 0; }
.sb-row em { margin-left: auto; flex-shrink: 0; color: var(--muted); font-size: 14px; font-style: italic; }
.sb-row mark { background: oklch(.9 .07 250 / .7); color: inherit; border-radius: 2px; padding: 0 1px; }
.sb-contact { margin-bottom: 4px; padding-bottom: 4px; border-bottom: 1px solid #f0f0f0; }
.sb-c { align-items: center; }
.sb-c svg { width: 18px; height: 18px; flex-shrink: 0; fill: currentColor; }
.sb-c svg.line { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sb-c svg.line .dot { fill: currentColor; stroke: none; }
.sb-c span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* yap: date, topic (hover and the caption opens out underneath), the talk streaming from red note, and the room around it */
main.yap { justify-content: flex-start; padding-bottom: 110px; }
.yaps {
  list-style: none; margin: 0 auto; padding: 0; width: min(860px, 100%);
  font-size: clamp(19px, 1.7vw, 24px); line-height: 1.35;
}
.yaps > li { margin: 0 0 64px; scroll-margin: 25vh; border-radius: 10px; transition: background .6s; }
.yaps > li.flash { background: oklch(.96 .03 250); transition: none; }
.yaps .head { display: grid; grid-template-columns: 7.5em 1fr; column-gap: 1em; align-items: baseline; margin: 0 0 14px; }
.yaps time {
  font: 600 16px/1.3 var(--font-body); color: var(--ink);
  font-variant-numeric: oldstyle-nums; letter-spacing: .01em;
}
.yaps .topic { outline: none; cursor: default; }
.yaps .topic .more {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows .35s cubic-bezier(.2, .8, .2, 1), opacity .25s;
}
.yaps .topic .more > span {
  overflow: hidden; min-height: 0; display: block; padding-top: 4px;
  font-style: italic; font-size: .78em; line-height: 1.45; color: #6d6d6d;
  transform: translateY(-4px); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.yaps .topic:hover .more, .yaps .topic:focus .more { grid-template-rows: 1fr; opacity: 1; }
.yaps .topic:hover .more > span, .yaps .topic:focus .more > span { transform: none; }
.yaps .talk { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 22px; margin-left: 8.5em; align-items: start; }
.yaps video { width: 100%; aspect-ratio: 3 / 2; border-radius: 8px; background: #f2f2f2; object-fit: cover; display: block; }
.yaps .room { font-size: 15px; line-height: 1.5; color: #555; display: flex; flex-direction: column; gap: 10px; padding-top: 2px; }
.yaps .counts { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--ink); font-variant-numeric: lining-nums; }
.yaps .counts > span { display: inline-flex; align-items: center; gap: 5px; }
.yaps .counts svg { width: 19px; height: 19px; fill: none; stroke: #ff2442; stroke-width: 1.8; stroke-linejoin: round; }
.yaps .said { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.yaps .said {
  max-height: 260px; overflow-y: auto; padding: 0 0 6px; gap: 12px;
  scrollbar-width: none; overscroll-behavior: contain;
  /* soft fades only where there's more to read; at the very end the last comment shows in full */
  --top: 0px; --bottom: 0px;
  -webkit-mask-image: linear-gradient(transparent, #000 var(--top), #000 calc(100% - var(--bottom)), transparent);
  mask-image: linear-gradient(transparent, #000 var(--top), #000 calc(100% - var(--bottom)), transparent);
}
.yaps .said::-webkit-scrollbar { display: none; }
.yaps .said.more-below { --bottom: 46px; }
.yaps .said.more-above { --top: 26px; }
.yaps .said p { margin: 0; }
.yaps .said .replies { list-style: none; margin: 5px 0 0; padding: 0 0 0 12px; border-left: 1.5px solid #ececec; display: flex; flex-direction: column; gap: 5px; }
.yaps .said .me { font-weight: 500; color: var(--accent); margin-right: 2px; }
.yaps .said .them { font-weight: 500; color: var(--ink); margin-right: 2px; }
.yaps .said .pic { color: var(--muted); }
.yaps .said .when { margin-left: 8px; font-size: 12.5px; color: #aaa; white-space: nowrap; }
.yaps .said .hearts { margin-left: 6px; }
.yaps .red {
  display: inline-flex; align-items: center; gap: 7px; width: fit-content; margin-top: 2px;
  text-decoration: none; background: none; font: italic 15px/1 var(--font-body); color: var(--muted);
}
.yaps .red img { width: 18px; height: 18px; border-radius: 4px; display: block; }
.yaps .red:hover { color: #ff2442; }
@media (max-width: 700px) {
  .yaps .head { grid-template-columns: 1fr; row-gap: 2px; }
  .yaps .talk { grid-template-columns: 1fr; margin-left: 0; }
}
.sb-foot svg text { font-style: normal; }

/* pinned talk: first in the list, with a small red note under its date */
.yaps .when-col { display: flex; flex-direction: column; gap: 4px; }
.yaps .pin { display: block; line-height: 0; }
.yaps .pin svg { width: 17px; height: 17px; fill: none; stroke: #ff2442; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; transform: rotate(30deg); }

/* yap player: no hunting for the play button. over a paused video the cursor becomes a little play bubble */
.yaps video.cute { cursor: none; }
.yaps video.cute.playing { cursor: auto; }
.play-bubble {
  position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none;
  width: 80px; margin: -20px 0 0 -40px;
  opacity: 0; scale: .4; rotate: -6deg;
  transition: opacity .18s, scale .28s cubic-bezier(.2, 1.6, .4, 1), rotate .28s cubic-bezier(.2, 1.6, .4, 1);
}
.play-bubble.on { opacity: 1; scale: 1; rotate: 0deg; }
.play-bubble.press { scale: .86; }
.play-bubble img { display: block; width: 100%; height: auto; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .55)) drop-shadow(0 3px 10px rgba(0, 0, 0, .35)); }
@media (hover: none) { .play-bubble { display: none; } .yaps video.cute { cursor: auto; } }

/* hitchhike: one huge dymaxion map, the world as unfolded origami */
/* the map runs edge to edge and the page is the same paper, so no white shows anywhere */
/* the opening fold (fold.js): the paper globe unfolds over the map, then fades into it; the squares wait for it */
.fold-intro { position: fixed; inset: 0; z-index: 40; width: 100vw; height: 100vh; cursor: pointer; transition: opacity .6s ease; }
.fold-intro.gone { opacity: 0; pointer-events: none; }
.dymaxion .stage { transition: opacity .6s ease; }
body.folding .dymaxion .stage { opacity: 0; }

/* white like the homepage: the 1944 scan's cream paper is lifted to white, leaving fuller's black linework */
body:has(main.travel) { background: var(--paper); }
.deepzoom canvas, .dymaxion .sheet { filter: grayscale(1) contrast(1.3) brightness(1.2); }
main.travel { max-width: none; min-height: 100vh; padding: 0; display: grid; place-items: center; }
.dymaxion { margin: 0; width: 100%; position: relative; overflow: hidden; }
.dymaxion .stage { position: relative; }
.dymaxion .sheet { display: block; width: 100%; height: auto; }
/* with js the scan is replaced by deep-zoom tiles filling the screen, and the squares float on top in screen pixels */
.dymaxion.deep { height: 100vh; height: 100dvh; }
.dymaxion.deep .sheet { display: none; }
.deepzoom { position: absolute !important; inset: 0; width: 100%; height: 100%; cursor: zoom-in; } /* openseadragon sets position: relative inline */
.dymaxion.deep .stage { position: absolute; inset: 0; pointer-events: none; }

/* places: a small real photo seen through grainy frosted glass. it clears when you point at it */
.spot {
  --tile: 48px;
  position: absolute; width: var(--tile); height: var(--tile); margin: calc(var(--tile) / -2) 0 0 calc(var(--tile) / -2);
  padding: 0; border: 0; border-radius: 4px; background: var(--c); cursor: pointer; pointer-events: auto;
  box-shadow: 0 2px 6px rgba(60, 30, 0, .25);
  transition: opacity .35s var(--ease), width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease);
}
.spot img {
  position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); object-fit: cover;
  filter: blur(.9px) saturate(1.35) contrast(1.1); transition: filter .35s var(--ease);
  clip-path: inset(4px round 4px);   /* the photo is 4px bigger all round so the blur has no soft edge */
}
.spot .glass {
  position: absolute; inset: 0; border-radius: inherit;
  background:
    url(images/grain.svg) 0 0 / 70px 70px,
    linear-gradient(140deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, .1)),
    color-mix(in oklab, var(--c) 26%, transparent);
  box-shadow: inset 0 0 0 1.5px rgba(255, 252, 235, .8);
  transition: opacity .35s var(--ease);
}
.spot:hover, .spot:focus-visible, .spot.on { z-index: 3; box-shadow: 0 4px 12px rgba(60, 30, 0, .3); }
/* pointing at a square clears its photo (no growing) and its name settles just below it */
.spot::before {
  content: attr(data-label); position: absolute; left: 50%; top: calc(100% + 13px); translate: -50% -5px;
  white-space: nowrap; pointer-events: none;
  color: var(--ink); font: 600 15px/1.2 var(--font-apple); letter-spacing: -.01em; text-shadow: 0 0 2px #fff, 0 0 4px #fff, 0 0 8px #fff;  /* a white edge so the words sit clear of the map's lines */
  opacity: 0; transition: opacity .25s ease, translate .3s var(--ease);
}
.spot:hover::before, .spot:focus-visible::before { opacity: 1; translate: -50% 0; }
/* and its year and month float just above it */
.spot .when {
  position: absolute; left: 50%; bottom: calc(100% + 8px); translate: -50% 5px; white-space: nowrap; pointer-events: none;
  color: var(--ink); font: 500 13px/1.2 var(--font-apple); font-variant-numeric: tabular-nums;
  text-shadow: 0 0 2px #fff, 0 0 4px #fff, 0 0 8px #fff;  /* a white edge so the words sit clear of the map's lines */
  opacity: 0; transition: opacity .25s ease, translate .3s var(--ease); clip-path: none; filter: none;
}
.spot:hover .when, .spot:focus-visible .when { opacity: 1; translate: -50% 0; }
.spot.stack .when { display: none; }
.spot:hover img, .spot:focus-visible img, .spot.on img { filter: none; }
.spot:hover .glass, .spot:focus-visible .glass, .spot.on .glass { opacity: .35; }
.spot:focus-visible { outline: none; }
.spot.hid { opacity: 0; pointer-events: none; }
/* a stack: more squares peeking out behind, in the colours of the places inside, and how many */
.spot.stack { overflow: visible; box-shadow: 4px -4px 0 -1px var(--c2), 8px -8px 0 -2px var(--c3); }
.spot.stack img { clip-path: inset(4px round 4px); }
.spot.stack::after {
  content: attr(data-n); position: absolute; right: -10px; bottom: -10px; width: 22px; height: 22px; box-sizing: border-box;
  display: grid; place-items: center; border-radius: 50%; background: rgba(255, 250, 238, .95); color: #3a2a1c;
  font: 600 11px/1 var(--font-apple); font-variant-numeric: tabular-nums; letter-spacing: -.02em;
  box-shadow: 0 1px 4px rgba(60, 30, 0, .3);
}
@media (max-width: 640px) { .spot { --tile: 34px; } }

/* the places live in the page for agents and no-js readers; with js they open in the white trip view */
.places { animation: none; }
.places .place {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.place h2 { margin: 0 0 4px; font: 600 30px/1.1 var(--font-apple); }
.place ol.trips { list-style: none; margin: 0; padding: 0; }

/* one place: no white, the map just blurs behind it, the name top left in the homepage's
   font (the one "hello. i'm sissi" is in), then each trip: when, and (bigger) where. no lines. the back guy and find stay where they always are. */
.trip-view {
  position: fixed; inset: 0; z-index: 45; display: none; overflow: auto; background: rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #1d1d1f;
  font-family: var(--font-apple); padding: clamp(28px, 5vw, 56px) clamp(16px, 6vw, 72px) 140px;
}
.trip-view.open { display: block; }
.trip-view.leaving { animation: trip-out .3s ease forwards; }
@keyframes trip-out { to { opacity: 0; } }
.trip-title { display: flex; align-items: center; gap: .25em; margin: 0; font: 400 clamp(40px, 5vw, 60px)/1.1 var(--font-body); letter-spacing: -.01em; }
.trip-name { display: inline-block; transform-origin: 0 0; }
.trip-body > p { margin: 12px 0 44px; color: #6e6e73; font-size: clamp(19px, 2vw, 23px); }
.trip-body ol { list-style: none; margin: 0; padding: 0; max-width: 760px; display: grid; gap: 22px; }
.trip-body li { display: flex; align-items: baseline; gap: 4px 22px; }
.trip-body li time { flex: 0 0 auto; min-width: 150px; white-space: nowrap; }
.trip-body time { color: color-mix(in oklab, var(--c, #888) 70%, #1d1d1f); font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.trip-body li span { font-size: clamp(21px, 2.3vw, 26px); font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }
.trip-back { display: none; border: 0; background: none; z-index: 46; }
.trip-back.open { display: block; }
@media (max-width: 640px) { .trip-body li { flex-direction: column; gap: 2px; } .trip-body li time { flex: none; } }

/* pointing at a place: the cursor is sissi's little bear plane */
.spot { cursor: url("images/bear-plane-cursor.png") 22 15, pointer; cursor: image-set(url("images/bear-plane-cursor.png") 1x, url("images/bear-plane-cursor@2x.png") 2x) 22 15, pointer; }

/* where find flew to: the name, briefly */
.here {
  position: absolute; z-index: 4; translate: -50% -50%; white-space: nowrap; pointer-events: none;
  color: var(--ink); font: 600 17px/1.2 var(--font-apple); letter-spacing: -.01em; text-shadow: 0 0 2px #fff, 0 0 4px #fff, 0 0 8px #fff;  /* a white edge so the words sit clear of the map's lines */
  opacity: 0; transition: opacity .4s ease;
}
.here.over-pin { translate: -50% 37px; }
.here.on { opacity: 1; }

/* photo credits for the stand-in photos: one small word in the corner */
.credits { position: fixed; left: 12px; bottom: 10px; z-index: 5; max-width: min(420px, calc(100vw - 24px)); font: 11px/1.4 var(--font-apple); color: rgba(60, 40, 20, .55); }
.credits summary { cursor: pointer; list-style: none; }
.credits summary::-webkit-details-marker { display: none; }
.credits[open] { background: rgba(255, 252, 245, .96); padding: 10px 12px; border-radius: 8px; color: #3a2a1c; max-height: 60vh; overflow: auto; box-shadow: 0 4px 16px rgba(60, 30, 0, .2); }
.credits ul { margin: 6px 0 0; padding-left: 1.1em; }
.credits a { color: inherit; }

/* footnote 5: hitchhike → the hitchhiker's guide → 42 */
.forty-two { display: inline-block; vertical-align: middle; width: 64px; height: auto; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .25)); }


/* ---- build beautiful things (projects.html): aileron, one long strand of pictures per project ---- */
main.projects { font-family: "Aileron", var(--font-apple); max-width: none; padding: 72px 0 140px; }
.projects .project { margin: 0 0 88px; }
.projects h2, .projects .lede, .projects .note, .projects .foot { padding: 0 clamp(16px, 6vw, 96px); }
.projects h2 { font: 400 clamp(22px, 2.4vw, 30px)/1.25 "Aileron", var(--font-apple); margin: 0; letter-spacing: -.01em; }
.projects h2 .name { font-weight: 600; }
.projects h2 .at, .projects h2 .with, .projects h2 .tag { color: #555; }
.projects h2 a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.projects .lede, .projects .note { font-size: 17px; line-height: 1.45; margin: 6px 0 0; color: #333; }
.projects .note { color: #777; font-size: 15px; }
/* the strand: edge to edge, scrolls sideways; room above and below so a picture can grow on hover */
.projects .strand { display: flex; gap: 10px; overflow-x: auto; padding: 56px clamp(16px, 6vw, 96px); margin: -24px 0 -32px; scrollbar-width: none; }
.projects .strand::-webkit-scrollbar { display: none; }
.projects .strand figure { position: relative; flex: none; margin: 0; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.projects .strand img, .projects .strand video { display: block; height: 240px; width: auto; border-radius: 3px; }
.projects .strand figure { cursor: zoom-in; }
.projects .strand figcaption { display: none; }
.projects .strand.empty .frame { flex: none; width: 320px; height: 240px; border-radius: 3px; background: #f3f3f1; }
.projects .strand.empty .frame:nth-child(3n+2) { width: 180px; }
.projects .strand.empty .frame:nth-child(3n) { width: 260px; }
.projects .foot { display: flex; align-items: center; gap: 18px; font-size: 14px; color: #777; }
.projects .links { display: flex; gap: 14px; align-items: center; margin: 0; }
.projects .links a { color: var(--ink); text-decoration: none; }
.projects .links svg { width: 24px; height: 24px; fill: currentColor; display: block; }
.projects .foot time { font-variant-numeric: tabular-nums; }
.projects h2 a.name { text-decoration: none; }
.projects h2 a.name:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.projects .org { white-space: nowrap; color: #555; }
.projects h2 a.org { text-decoration: none; border-bottom: 1px solid #ccc; }
.projects h2 a.org:hover { color: var(--ink); border-color: var(--ink); }
.projects .logo { display: inline-grid; place-items: center; width: 1em; height: 1em; margin: 0 .25em 0 .1em; vertical-align: -.14em; border-radius: 4px; object-fit: cover; }
.projects .logo.mono { background: #ececea; color: #888; font: 600 .6em/1 "Aileron", var(--font-apple); text-transform: lowercase; }
.projects .pin { margin-left: .3em; }
.projects .pin svg { width: .85em; height: .85em; fill: #e8559b; display: inline-block; transform: rotate(28deg); vertical-align: -.08em; }
.projects img.logo { display: inline-block; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.projects img.logo.dark { background: #111; padding: .08em; box-sizing: border-box; }
.projects h2 .mark { height: 1.15em; width: auto; vertical-align: -.25em; margin-right: .3em; }
.projects .sponsors { padding: 0 clamp(16px, 6vw, 96px); margin: 6px 0 0; font-size: 15px; color: #777; }
.projects .sponsors a.org { color: #555; text-decoration: none; border-bottom: 1px solid #ddd; }
.projects .sponsors a.org:hover { color: var(--ink); border-color: var(--ink); }
/* icons first, the date on its own line under them */
.projects .foot { flex-direction: column; align-items: flex-start; gap: 10px; }
.projects .note-pic { height: 2.4em; width: auto; vertical-align: -.9em; margin-left: .15em; }
/* a prize: pearl letters, with a pink-blue-green sheen that slides along under the pointer (site.js sets --x) */
.projects .note.prize { margin-top: 8px; }
.projects .pearl {
  font: 600 19px/1.2 "Aileron", var(--font-apple); letter-spacing: .01em;
  background:
    linear-gradient(100deg, transparent 20%, rgba(240,110,180,.95) 35%, rgba(90,170,240,.95) 50%, rgba(80,200,160,.95) 62%, transparent 78%) var(--x, -40%) 0 / 220% 100% no-repeat,
    linear-gradient(180deg, #8d8597, #5d5768);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: background-position .25s ease-out;
}
.projects .links img { width: 24px; height: 24px; display: block; border-radius: 6px; }

/* a strand picture, lifted into the middle of the screen; its caption sits under it */
.lifted { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(255, 255, 255, 0); transition: background .3s; cursor: zoom-out; }
.lifted.on { background: rgba(255, 255, 255, .94); }
.lifted[hidden] { display: none; }  /* display: grid above would otherwise keep an invisible sheet over the page, eating clicks */
.lifted figure { margin: 0; max-width: min(1100px, 88vw); }
.lifted img, .lifted video, .lifted iframe { display: block; max-width: min(1100px, 88vw); max-height: 76vh; width: auto; height: auto; border-radius: 4px; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.lifted figcaption { margin-top: 14px; max-width: 62ch; font: 400 15px/1.5 "Aileron", var(--font-apple); color: #444; opacity: 0; transform: translateY(6px); transition: opacity .3s .2s, transform .3s .2s; }
.lifted.on figcaption { opacity: 1; transform: none; }

.lifted iframe { width: min(1100px, 88vw); height: min(76vh, calc(min(1100px, 88vw) * .75)); border: 0; background: #111; }
/* a still that opens someone else's player: a soft play mark in its corner */
.projects .strand .play { position: absolute; left: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); pointer-events: none; }
.projects .strand .play::after { content: ""; position: absolute; left: 12px; top: 9px; border-left: 10px solid #111; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
/* a host's wordmark instead of a square logo (paradigm / puzzles) */
.projects .links img.wide { width: auto; height: 20px; border-radius: 0; }
/* x as its app tile: white x on a black rounded square, the same size as the other logos */
.projects .links .ln-x { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: #000; }
.projects .links .ln-x svg { width: 13px; height: 13px; fill: #fff; }

/* maglev: no strand, so give its links room under the line, and tint them a deeper shade of its lavender mark */
.projects #maglev .foot { margin-top: 18px; }
.projects #maglev .links { color: #7d6bd1; gap: 16px; }
.projects #maglev .links a { color: #7d6bd1; }
.projects #maglev .links .ln-x { background: #7d6bd1; }
.projects .lede .pearl { font: inherit; }

/* ---------- writing (write.html) ---------- */
main.writing { max-width: 880px; margin: 0 auto; padding: 96px clamp(16px, 6vw, 64px) 160px; font-family: "Aileron", var(--font-apple); }
.writing h1 { font: 400 clamp(26px, 3vw, 36px)/1.2 "Aileron", var(--font-apple); letter-spacing: -.01em; margin: 0 0 64px; display: flex; flex-wrap: wrap; align-items: center; gap: .25em; }
.writing h1 .keys { height: 1.15em; width: auto; display: block; }
.writing h1 .pal { height: 1.4em; width: auto; display: block; }
.writing h1 .pal + .pal { margin-left: -.1em; }
.writing .pieces { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; }
.writing .piece { position: relative; }
/* the date is quiet and small; the title is the thing */
.writing .piece time, .writing .piece .when { display: block; font: 400 14px/1.4 "Aileron", var(--font-apple); color: var(--muted); margin-bottom: 4px; }
.writing .piece h2 { font: 400 clamp(22px, 2.4vw, 30px)/1.25 "Aileron", var(--font-apple); letter-spacing: -.01em; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .25em; }
.writing .piece .name { font-style: normal; color: var(--ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.writing .piece a.name:hover { background-size: 100% 1px; }
.writing .piece.soon .name { color: #b5b5b5; }
/* stickers stand as tall as the title */
.writing .piece .sticker { height: 1em; width: auto; display: block; }
/* patrick and his trumpet: a tiny, still button off to the side; pressing him plays her voice note */
.writing .trumpet { position: absolute; left: -32px; top: 24px; width: 18px; height: auto; padding: 0; border: 0; background: none; cursor: pointer; }
.writing .trumpet img { width: 100%; height: auto; display: block; }
.writing .trumpet.quiet { opacity: .35; cursor: default; }
@media (max-width: 1000px) { .writing .trumpet { position: static; margin-top: 8px; } }
/* the transcript: hidden until she speaks, each word fading in as it's said, then the whole thing fades away */
.writing .voice { font: 400 17px/1.6 "Aileron", var(--font-apple); color: #555; margin: 0; max-width: 40em; height: 0; overflow: hidden; opacity: 0; transition: opacity 1.4s var(--ease); }
.writing .voice.on { height: auto; margin-top: 14px; opacity: 1; }
.writing .voice.done { opacity: 0; }
.writing .voice .w { opacity: 0; transition: opacity .5s var(--ease); }
.writing .voice .w.lit { opacity: 1; }

/* find landed here: a brief soft glow on the project or piece */
.projects article.project.flash, .writing .piece.flash { background: oklch(.96 .03 250); transition: none; }
.projects article.project, .writing .piece { transition: background .9s var(--ease); }

/* ---------- consume a lot (read.html) ---------- */
main.consume { margin: 0 auto; padding: 40px clamp(16px, 4vw, 48px) 160px; font-family: "Aileron", var(--font-apple); }
/* lucy's open mouth is the menu: the icons sit inside it and scroll when there are more than fit */
.consume .mouth { --m: min(200px, 54vw); position: relative; width: var(--m); margin: 0 auto 32px; }
.consume .mouth .lucy { width: 100%; height: auto; display: block; }
.consume .menu { position: absolute; left: 34%; top: 23%; width: 37%; height: 29%; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: calc(var(--m) * .235); align-content: start; gap: calc(var(--m) * .04); padding: calc(var(--m) * .012) 0; scroll-snap-type: y mandatory; scroll-padding-top: calc(var(--m) * .012); 
  -webkit-mask: linear-gradient(transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(transparent, #000 10%, #000 90%, transparent); }
.consume .menu::-webkit-scrollbar { display: none; }
.consume .bite { scroll-snap-align: start; scroll-snap-stop: always; }
/* little arrows at the top and bottom of her mouth: there are more icons that way */
.consume .nudge { position: absolute; left: 53%; transform: translateX(-50%); padding: 0 6px; border: 0; background: none; cursor: pointer;
  font: 9px/1 var(--font-apple); color: #f3dcc8; opacity: .85; transition: opacity .2s, transform .2s var(--ease); }
.consume .nudge[hidden] { display: none; }
.consume .nudge:hover { opacity: 1; transform: translateX(-50%) scale(1.3); }
.consume .nudge.up { top: 19%; }
.consume .nudge.down { top: 50.5%; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(-50%) translateY(2px); } }
.consume .bite { height: 100%; overflow: visible; min-width: 0; min-height: 0; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; transition: transform .25s var(--ease), filter .25s var(--ease); }
.consume .bite img { width: auto; height: auto; max-height: calc(var(--m) * .235); max-width: 100%; display: block; }
.consume .bite:hover, .consume .bite:focus-visible { transform: scale(1.12); }
.consume .bite.on { transform: scale(1.18); filter: drop-shadow(0 0 5px rgba(255, 236, 170, .95)); }
/* the picked shelf's name, written on her blue shirt */
.consume .shirt { position: absolute; left: 53.5%; top: 91%; transform: translate(-50%, -50%); margin: 0; max-width: 30%;
  font: 400 clamp(13px, 1.8vw, 16px)/1 "Gochi Hand", cursive; color: #fff; text-align: center; white-space: nowrap; pointer-events: none;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.consume .shirt.pop { animation: shirt-in .35s var(--ease); }
@keyframes shirt-in { from { opacity: 0; transform: translate(-50%, -30%); } }
/* the shelves: with js nothing shows until an icon is picked, then only that one, right under the mouth */
.consume .shelf { margin: 0 0 48px; }
.js .consume .shelf { display: none; margin: 0; }
.js .consume .shelf.on { display: block; animation: shelf-in .35s var(--ease); }
@keyframes shelf-in { from { opacity: 0; transform: translateY(-6px); } }
.consume .shelf ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.consume .shelf li { font: 400 clamp(18px, 2vw, 22px)/1.35 "Aileron", var(--font-apple); letter-spacing: -.01em; }
.consume .shelf li a, .consume .shelf li > span { color: var(--ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.consume .shelf li a:hover { background-size: 100% 1px; }
.consume .shelf .by { color: var(--muted); }
.consume .shelf .empty { color: var(--muted); font-size: 18px; margin: 0; }
/* albums: little covers in a grid */
.consume ul.music { grid-template-columns: repeat(4, 150px); justify-content: center; gap: 22px 18px; }
@media (max-width: 720px) { .consume ul.music { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.consume ul.music li { font-size: 15px; }
.consume ul.music a.rec { display: grid; gap: 8px; background: none; }
.consume ul.music img { width: 100%; height: auto; aspect-ratio: 1; display: block; border-radius: 4px; background: #eee; }
.consume ul.music a.rec:hover span { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.consume .shuffle { margin: 0 0 18px; }
/* her line about each shelf: a handwritten note in the shirt's hand, tilted, over a highlighter swipe */
.consume .blurb { margin: 0 0 24px; font: 400 clamp(19px, 1.9vw, 23px)/1.3 "Gochi Hand", cursive; color: #3b3b3b; max-width: 48ch; }
.consume .blurb > span { display: inline; padding: 0 .25em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(100deg, transparent .2em, rgba(255, 228, 120, .55) .5em, rgba(255, 214, 150, .5) 85%, transparent calc(100% - .1em)) 0 62% / 100% 58% no-repeat; }
.consume .blurb { transform: rotate(-1.6deg); transform-origin: left center; }
.consume #music .blurb, .consume #art .blurb { transform-origin: center; }
.consume .blurb .slash { display: inline-block; color: #5aa8e8; transform: rotate(14deg) scale(1.15); margin: 0 .05em; }
.consume .shelf ul.music, .consume .player { max-width: 654px; }
.consume .disc { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; cursor: pointer; font: 400 15px/1 "Aileron", var(--font-apple); color: var(--muted); }
.consume .disc { position: relative; }
.consume .disc .cd { width: 54px; height: auto; transition: transform .4s var(--ease); }
.consume .disc:hover .cd { transform: rotate(-8deg) scale(1.06); }
.consume .disc.spin .cd { animation: cd-wobble 1.2s ease-in-out infinite; }
@keyframes cd-wobble { 50% { transform: rotate(-6deg) translateY(-1px); } }
/* bubbles that float out of the cd while music plays */
.consume .blub { position: absolute; left: 22px; top: 6px; width: var(--s); pointer-events: none; animation: blub var(--d) ease-out forwards; }
@keyframes blub { 0% { opacity: 0; transform: translate(0, 0) scale(.3); } 15% { opacity: .95; }
  100% { opacity: 0; transform: translate(var(--x), -150px) scale(1); } }
.consume .player:not(:empty) { margin: 0 0 22px; }
.consume .player iframe { width: 100%; height: 152px; border: 0; border-radius: 12px; display: block; }

/* consume a lot: the find box's keycaps beside lucy, saying arrows or the mouse wheel switch the icon */
.consume .mouth-hint { position: absolute; left: calc(100% + 14px); top: 22%; margin: 0; display: grid; gap: 6px; justify-items: start; width: max-content;
  font: 400 13px/1.2 "Aileron", var(--font-apple); color: var(--muted); pointer-events: none; }
.consume .mouth-hint em { font-style: normal; }
.consume .mouth-hint .hint { display: inline-flex; align-items: center; gap: 8px; }
.consume .mouth-hint .keys { display: block; filter: drop-shadow(0 1.5px 1.5px rgba(0, 0, 0, .18)); overflow: visible; }
.consume .mouth-hint .kc.hot { filter: drop-shadow(0 0 3px rgba(240, 195, 60, .6)); }
.consume .mouth-hint svg text { font-style: normal; }
@media (hover: none), (max-width: 620px) { .consume .mouth-hint { display: none; } }
/* consume a lot: the lists sit in from the left edge; music and art sit in the middle */
.consume .shelf { padding-left: clamp(8px, 9vw, 150px); }
.consume .shelf#music, .consume .shelf#art { padding-left: 0; text-align: center; }
.consume #music .blurb, .consume #art .blurb, .consume #music ul.music, .consume #music .player { margin-left: auto; margin-right: auto; }
.consume #music ul.music { text-align: left; }

/* everything on consume a lot sits in the middle */
.consume .shelf, .consume .shelf#music, .consume .shelf#art { padding-left: 0; text-align: center; }
.consume .shelf .blurb { margin-left: auto; margin-right: auto; transform-origin: center; }
.consume .shelf ul:not(.music) { justify-items: center; }

/* zhenfund-letter.html: liu yuan's letter, kept as plain text */
main.letter { max-width: 640px; margin: 0 auto; padding: 64px clamp(16px, 6vw, 48px) 160px; font: 400 17px/1.9 "Aileron", "PingFang SC", "Hiragino Sans GB", var(--font-apple); color: var(--ink); }
main.letter h1 { font: 500 clamp(28px, 4vw, 38px)/1.2 "PingFang SC", "Hiragino Sans GB", var(--font-apple); margin: 0 0 10px; text-align: center; letter-spacing: .04em; }
main.letter .from { text-align: center; color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 48px; }
main.letter .from a { color: inherit; }
main.letter h2 { font: 500 19px/1.5 "PingFang SC", "Hiragino Sans GB", var(--font-apple); margin: 44px 0 14px; }
main.letter p { margin: 0 0 1.1em; }

/* books: a gallery of covers like music; books without a good cover get a plain title card */
.consume ul.books { grid-template-columns: repeat(5, 132px); justify-content: center; gap: 28px 22px; margin: 0 auto; text-align: left; }
.consume ul.books .zh, .consume ul.books .t, .consume ul.books .by { display: block; }
.consume ul.books .by { margin-top: 2px; }
@media (max-width: 820px) { .consume ul.books { grid-template-columns: repeat(4, 120px); } }
@media (max-width: 620px) { .consume ul.books { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 14px; } }
.consume ul.books li { font-size: 14px; line-height: 1.3; }
.consume ul.books a.rec, .consume ul.books span.rec { display: grid; gap: 8px; background: none; color: var(--ink); text-decoration: none; }
.consume ul.books img, .consume ul.books .card { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block; border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 4px 12px rgba(0, 0, 0, .06); background: #f1efe9; }
.consume ul.books .card { display: grid; place-items: center; min-height: 0; overflow: hidden; overflow-wrap: anywhere; padding: 10px; text-align: center; font: 500 13px/1.4 "Aileron", "PingFang SC", var(--font-apple);
  color: #5b5446; background: linear-gradient(160deg, #f7f2e6, #ece3cf); }
.consume ul.books .zh { display: block; }
.consume ul.books a.rec:hover > span:last-child { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.consume ul.books .rec { width: 100%; }

/* games: cover art that turns into the trailer when pressed */
.consume ul.games { grid-template-columns: repeat(3, 240px); justify-content: center; gap: 30px 24px; }
@media (max-width: 860px) { .consume ul.games { grid-template-columns: repeat(2, minmax(0, 240px)); } }
.consume ul.games li.game { width: 100%; }
.consume ul.games li.game:first-child { grid-column: 1 / -1; width: min(520px, 100%); justify-self: center; }
.consume .box { display: block; aspect-ratio: 16 / 9; border-radius: 10px; padding: 10px; box-sizing: border-box; background: #f6f1e6; }
.consume .box img { width: 100%; height: 100%; object-fit: contain; display: block; }
.consume .trailer { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background: #000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12), 0 10px 30px rgba(0, 0, 0, .08); }
.consume .trailer img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.consume .trailer:hover img { transform: scale(1.03); }
.consume .trailer .play { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; transform: translate(-50%, -50%); border-radius: 50%;
  background: rgba(255, 255, 255, .9); box-shadow: 0 4px 16px rgba(0, 0, 0, .25); transition: transform .3s var(--ease); }
.consume .trailer .play::after { content: ""; position: absolute; left: 19px; top: 15px; border: 9px solid transparent; border-left: 14px solid #1d2a3a; border-right: 0; }
.consume .trailer:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.consume .trailer iframe { width: 100%; height: 100%; border: 0; display: block; }
.consume li.game p { margin: 12px 0 0; }

.consume .studios { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 8px; }
.consume .studio { display: inline-flex; opacity: .85; transition: opacity .2s, transform .2s var(--ease); }
.consume .studio:hover { opacity: 1; transform: translateY(-1px); }
.consume .studio img { height: 30px; width: auto; max-width: 120px; object-fit: contain; display: block; border-radius: 3px; }
.consume li.game .status { display: block; margin-top: 4px; font-family: 'Gochi Hand', cursive; font-size: 19px; color: #3f6fb5; }

/* art: a gallery wall. each piece sits in a white mat inside a thin dark frame, label underneath */
.consume ul.art { grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 40px 36px; }
@media (max-width: 760px) { .consume ul.art { grid-template-columns: minmax(0, 340px); } }
.consume ul.art:has(> li:only-child) { grid-template-columns: minmax(0, 420px); }
.consume li.piece .frame { display: block; padding: 14px; background: #fff; border: 5px solid #2b2622; border-radius: 2px;
  box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 14px 30px -10px rgba(0,0,0,.35); transition: transform .4s var(--ease); }
.consume li.piece .frame img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.consume li.piece a.rec:hover .frame { transform: translateY(-3px) rotate(-.4deg); }
.consume li.piece p { margin: 14px 0 0; }

/* an installation write-up moved over from her old site (projects-*.html) */
main.installation { max-width: 880px; margin: 0 auto; padding: 64px clamp(16px, 5vw, 40px) 160px; font: 400 16px/1.85 "Aileron", "PingFang SC", "Hiragino Sans GB", var(--font-apple); color: var(--ink); }
main.installation header { text-align: center; margin-bottom: 40px; }
main.installation h1 { font: 600 clamp(30px, 5vw, 48px)/1.1 "Aileron", sans-serif; letter-spacing: .12em; margin: 0; }
main.installation .zh { font: 500 22px/1.4 "PingFang SC", "Hiragino Sans GB", sans-serif; margin: 10px 0 0; letter-spacing: .3em; }
main.installation .sub { color: var(--muted); margin: 2px 0 26px; }
main.installation .specs { display: inline-grid; grid-template-columns: auto; gap: 2px; margin: 0; font-size: 14px; text-align: left; }
main.installation .specs div { display: flex; gap: 10px; }
main.installation .specs dt { color: var(--muted); min-width: 70px; }
main.installation .specs dd { margin: 0; }
main.installation section { margin-top: 72px; }
main.installation h2 { font: 600 13px/1 "Aileron", sans-serif; letter-spacing: .24em; color: var(--muted); margin: 0 0 22px; }
main.installation h3 { font: 600 17px/1.4 "Aileron", sans-serif; margin: 36px 0 14px; }
main.installation p { margin: 0 0 16px; }
main.installation figure { margin: 0 0 22px; }
main.installation figure img, main.installation video { display: block; width: 100%; height: auto; border-radius: 6px; background: #111; }
main.installation figcaption { font-size: 14px; line-height: 1.7; margin-top: 10px; }
main.installation figcaption strong { display: block; font-weight: 600; text-transform: capitalize; }
main.installation .label { color: var(--muted); margin-right: 6px; }
main.installation .fig.side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: center; }
main.installation .fig.side figcaption { margin: 0; }
main.installation .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 22px; align-items: start; }
main.installation .row figure { margin: 0; }
main.installation .vid.small { max-width: 560px; margin-left: auto; margin-right: auto; }
main.installation .top > * { margin-bottom: 16px; }
main.installation .cap { font-size: 14px; }
main.installation .book { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; margin: 22px 0; padding: 18px; border-radius: 10px; background: #f6f3ee; font-size: 14px; }
main.installation .book img { width: 100%; border-radius: 4px; display: block; }
main.installation .steps, main.installation .refs { padding-left: 20px; font-size: 14px; }
main.installation .refs li { margin-bottom: 8px; list-style: none; text-indent: -20px; }
main.installation .gallery { margin: 26px 0 0; }
main.installation .gal-cap { font-size: 14px; text-align: center; }
main.installation .gal-cap strong { display: block; font-weight: 600; }
main.installation .strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
main.installation .strip figure { flex: 0 0 min(78%, 520px); scroll-snap-align: center; margin: 0; }
@media (max-width: 620px) { main.installation .fig.side, main.installation .book { grid-template-columns: 1fr; } main.installation .book img { max-width: 160px; } }

/* consume a lot, every shelf's line: set like the homepage text (eb garamond, upright), no highlighter, no tilt, a bit bigger */
.consume .blurb { font: 400 clamp(24px, 2.2vw, 30px)/1.3 var(--font-body); color: var(--ink); transform: none; }
.consume .blurb > span { background: none; padding: 0; }

/* paidia: one long essay, set like the homepage text but a size you can read a page of */
main.paidia { max-width: 780px; font-size: clamp(20px, 1.7vw, 25px); line-height: 1.6; }
main.paidia .title { margin-bottom: .4em; }
main.paidia p { margin: 0 0 1em; }
main.paidia .pic img.logo { --h: 1em; margin-right: .18em; }
main.paidia .pic img.logo.wide { --h: .85em; margin-right: 0; }
main.paidia a:has(.pic) { text-decoration-skip-ink: auto; }
main.paidia .photo { margin: .4em 0 1.4em; }
main.paidia .photo img { display: block; width: 100%; height: auto; border-radius: 4px; }
main.paidia .photo figcaption { font: italic 16px/1.4 "Times New Roman", Times, serif; margin-top: .5em; text-align: center; }
main.paidia .footnotes { margin: 1.5em 0 0; columns: 1; }
.projects h2 .mark.wordmark { height: 1.05em; vertical-align: -.2em; margin-right: 0; }
