/* Homepage v5 (approved 22 Oct 2026, from design/home-v5). v4's clean magazine structure, plus play you start yourself:
   the name thickens under your pointer, the red pen writes notes when you hover or tap, the AgentWatch dog wakes
   up, the Tarot Watch crown turns the card, the logs type themselves, and the writing is a newspaper front page.
   Every trick shows something true about the work. Type: Newsreader (headlines, the name), Geist (everything you
   click), Geist Mono (metadata and logs), Caveat (only the red pen). Paper, ink and one red; blue comes from RIRRI'S. */
/* Georgia, resized to Newsreader's measurements, stands in while Newsreader loads, so the text doesn't jump when it
   arrives (measured from the Latin files with fontTools: width, ascent and descent) */
@font-face { font-family: "Newsreader Fallback"; src: local("Georgia"); size-adjust: 92.2%; ascent-override: 79.72%; descent-override: 28.74%; line-gap-override: 0%; }
@font-face { font-family: "Newsreader Fallback"; font-style: italic; src: local("Georgia Italic"), local("Georgia-Italic"); size-adjust: 84.61%; ascent-override: 86.87%; descent-override: 31.32%; line-gap-override: 0%; }
:root {
  --paper: #F6F6F3;
  --sheet: #FFFFFF;
  --ink: #121418;
  --ink-2: #4A4F57;
  --hair: rgba(18, 20, 24, .12);
  --red: #E0301E;
  --red-ink: #C42412;
  --serif: "Newsreader", "Newsreader Fallback", Georgia, serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --pen: "Caveat", "Bradley Hand", cursive;
  --g: clamp(16px, 3.4vw, 48px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--red); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; padding: 10px 14px; background: var(--ink); color: #fff; z-index: 100; }
.skip:focus { top: 12px; }
.meta { font: 400 13px/1.4 var(--mono); color: var(--ink-2); letter-spacing: .01em; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- the red pen: a handwritten note that writes itself ---------- */
.pen { font: 600 var(--pen-size, 25px)/1.05 var(--pen); color: var(--red); white-space: nowrap; clip-path: inset(-20% 100% -30% 0); transition: clip-path var(--pen-t, 1s) cubic-bezier(.5, .1, .4, 1); }
.pen.on { clip-path: inset(-20% -2% -30% 0); }
.tag { position: absolute; z-index: 3; padding: 8px 14px 9px; background: var(--sheet); border-radius: 4px; box-shadow: 0 10px 24px -10px rgba(18, 20, 24, .35); rotate: var(--r, -3deg); scale: .6; opacity: 0; transition: scale .45s var(--spring), opacity .2s; pointer-events: none; }
.tag.on { scale: 1; opacity: 1; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding: 0 var(--g); background: color-mix(in srgb, var(--paper) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: box-shadow .3s; }
.top.scrolled { box-shadow: 0 1px 0 var(--hair); }
.mark { font: italic 500 26px/1 var(--serif); text-decoration: none; letter-spacing: -.01em; padding: 6px 0; }
.mark span { color: var(--red); }
.nav { display: flex; gap: clamp(14px, 2.2vw, 30px); font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; padding: 8px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--ease); }
.nav a:hover { background-size: 100% 1.5px; }
.nav .email { color: var(--red-ink); }
@media (max-width: 560px) { .nav .hide-s { display: none; } }
/* the four links left from 380 px down: tighter, and under 340 px Writing waits in the page (Home shows it a scroll away) */
@media (max-width: 380px) { .nav { gap: 12px; font-size: 14px; } }
@media (max-width: 340px) { .nav .hide-xs { display: none; } }

/* ---------- hero ---------- */
.hero { padding: 0 var(--g); }
.window { position: relative; display: block; height: clamp(440px, 64vh, 640px); border-radius: 18px; overflow: hidden; isolation: isolate; text-decoration: none; color: inherit; background: #2F7FD0; container-type: size; touch-action: pan-y; --iw: min(74cqw, 178cqh); }
.layer { position: absolute; inset: 0; will-change: transform; }
.sky { inset: -4%; background: url(/media/home/sky-blue-2400.webp) center 30% / cover no-repeat; }
.name > span { position: absolute; left: 50%; bottom: calc(var(--iw) * .215); translate: -50% 0; font: italic 500 min(30cqw, 70cqh)/.78 var(--serif); font-optical-sizing: auto; letter-spacing: -.035em; color: var(--red); padding-right: .06em; white-space: nowrap; }
.name .l { display: inline-block; font-variation-settings: "wght" var(--w, 500); }
.isle { top: auto; right: auto; left: 50%; bottom: -2cqw; width: var(--iw); }
.isle .float { position: relative; transform: translateX(var(--sx, -50%)); transition: transform .6s var(--ease); }
.isle img { width: 100%; height: auto; filter: drop-shadow(0 18px 24px rgba(10, 50, 110, .25)); }
.isle .float { transform-origin: 64% 24%; }   /* the shop's door, so leaning in goes toward it */
.window:hover .isle .float, .window:focus-visible .isle .float { transform: translateX(var(--sx, -50%)) translateY(-1.5%) scale(1.05); }
.sky { transition: scale .9s var(--ease); }
.window:hover .sky, .window:focus-visible .sky { scale: 1.03; }
/* walking in: a click zooms through the door and the page fades to the world's light before RIRRI'S loads */
.window.entering .isle .float { transform: translateX(var(--sx, -50%)) translateY(6%) scale(2.8); transition: transform .7s cubic-bezier(.55, 0, .35, 1); }
.window.entering .sky { scale: 1.25; transition: scale .7s cubic-bezier(.55, 0, .35, 1); }
.window.entering .name, .window.entering .ring, .window.entering .hand { opacity: 0; transition: opacity .2s; }
.window::after { content: ""; position: absolute; inset: 0; z-index: 5; background: #F2FAFC; opacity: 0; pointer-events: none; }
.window.entering::after { opacity: 1; transition: opacity .35s ease-in .3s; }
.doodle { position: absolute; overflow: visible; pointer-events: none; }
.doodle path { fill: none; stroke: var(--red); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.ring { left: 50%; top: -2%; width: 30%; }
.hand { position: absolute; left: 81%; top: -10%; --pen-size: clamp(24px, 2.6cqw, 36px); color: #fff; text-shadow: 0 1px 10px rgba(6, 40, 90, .5); }
.hint { display: none; margin: 10px 2px 0; font-size: 14.5px; color: var(--ink-2); }
.hint b { color: var(--red-ink); font-weight: 500; }
@media (max-width: 700px) {
  .window { height: min(94vw, 470px); border-radius: 14px; }
  .sky { background-image: url(/media/home/sky-blue-1200.webp); background-position: 42% 0; }
  .name > span { font-size: 50cqw; bottom: auto; top: 10cqw; }
  .isle { width: 172cqw; top: 27%; bottom: auto; --sx: -61%; }
  .ring { left: 47%; width: 34%; }
  .hand { display: none; }
  .hero .hint { display: block; }
}

/* ---------- intro: it writes itself, and the underlined words answer back ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px clamp(24px, 5vw, 80px); align-items: end; padding: clamp(28px, 4vw, 48px) var(--g) 0; }
.intro h1 { font: 400 clamp(30px, 3.5vw, 52px)/1.12 var(--serif); letter-spacing: -.018em; max-width: 19em; }
.intro h1 .me { font-style: italic; color: var(--red); }
.w { white-space: pre-wrap; }
.js.motion .intro h1 .c { opacity: 0; transition: opacity .25s; }
.js.motion .intro h1 .c.on { opacity: 1; }
.ask { position: relative; display: inline-block; background: none; border: 0; padding: 0; font: inherit; font-style: italic; color: inherit; cursor: help; text-align: left; -webkit-tap-highlight-color: transparent; }
.ask .ul { position: absolute; left: -2%; bottom: -.14em; width: 104%; height: .3em; }
.ask .note { position: absolute; z-index: 2; left: 50%; bottom: 92%; translate: -35% 0; width: max-content; max-width: min(26ch, calc(100vw - 48px)); white-space: normal; padding: 0 .3em; background: var(--paper); --pen-size: clamp(22px, 1.9vw, 30px); rotate: -4deg; pointer-events: none; font-style: normal; }
.facts { display: grid; gap: 10px; font-size: 16px; color: var(--ink-2); }
.facts .links { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--ink); font-weight: 500; }
.facts .links a { text-underline-offset: 4px; text-decoration-thickness: 1px; }
.facts .links a:hover { color: var(--red-ink); }
@media (max-width: 820px) { .intro { grid-template-columns: 1fr; } }

/* ---------- sections ---------- */
.sec { padding: clamp(72px, 9vw, 128px) var(--g) 0; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 18px; margin-bottom: clamp(22px, 3vw, 36px); border-bottom: 1px solid var(--ink); }
.sec-head h2 { font: 400 clamp(34px, 4.4vw, 64px)/1 var(--serif); letter-spacing: -.02em; }
.sec-head a { font-size: 15px; font-weight: 500; text-underline-offset: 4px; white-space: nowrap; }
.sec-head .sub { color: var(--ink-2); font-size: 15px; }

/* ---------- featured work ---------- */
.featured { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px); }
.card { grid-column: span var(--span, 6); display: flex; flex-direction: column; gap: 16px; position: relative; }
.frame { position: relative; display: block; height: clamp(320px, 36vw, 540px); border-radius: 14px; overflow: hidden; background: var(--bg, #E9EAE6); transition: transform .5s var(--ease), box-shadow .5s var(--ease); box-shadow: 0 1px 0 var(--hair); text-decoration: none; color: inherit; }
:is(.frame, .lens .in) > img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
:is(.frame, .lens .in) > .shot { position: absolute; inset: 10% 8% auto; width: 84%; height: auto; border-radius: 8px; box-shadow: 0 30px 60px -20px rgba(18, 20, 24, .35), 0 0 0 1px var(--hair); }
.card:hover .frame { box-shadow: 0 28px 50px -30px rgba(18, 20, 24, .45); }
.card .tag { right: 4%; bottom: 6%; }
.cap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; }
.cap h3 { font: 500 clamp(24px, 2.2vw, 32px)/1.1 var(--serif); letter-spacing: -.01em; }
.cap h3 a { text-decoration: none; }
.cap h3 a::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5.5em; }   /* the caption is one big link */
.cap h3 a:hover, .card:hover .cap h3 a { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.cap p { grid-column: 1 / -1; color: var(--ink-2); max-width: 40em; }
.cap .meta { grid-column: 2; grid-row: 1; text-align: right; }
@media (max-width: 820px) { .card { grid-column: 1 / -1; } .frame { height: min(96vw, 460px); } }

/* a watch, for the two watch apps */
.watch { position: absolute; left: 50%; top: 52%; translate: -50% -50%; height: 72%; aspect-ratio: 41 / 49; border-radius: 26% / 22%; background: #1B1B1D; padding: 5%; box-shadow: inset 0 0 0 2px #3A3A3E, 0 30px 60px -24px rgba(0, 0, 0, .55); }
.watch::before, .watch::after { content: ""; position: absolute; left: 22%; right: 22%; height: 34%; background: #2A2A2D; z-index: -1; }
.watch::before { bottom: 96%; border-radius: 10px 10px 0 0; }
.watch::after { top: 96%; border-radius: 0 0 10px 10px; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 20% / 17%; overflow: hidden; background: #000; }
.crown { position: absolute; right: -9%; top: 24%; width: 11%; height: 17%; border: 0; padding: 0; border-radius: 4px; cursor: pointer; background: repeating-linear-gradient(0deg, #5A5A60 0 2px, #2C2C30 2px 4px); background-position: 0 var(--turn, 0px); box-shadow: inset 0 0 0 1px #6B6B70; transition: background-position .5s var(--ease); touch-action: none; }
.crown::after { content: ""; position: absolute; inset: -12px; }   /* a bigger target */
.button-2 { position: absolute; right: -6%; top: 52%; width: 5%; height: 18%; border-radius: 3px; background: #2C2C30; }

/* AgentWatch: the ambient dog */
.aw { --bg: #DCD8EE; }
.aw .screen { background: #F3F2EE; cursor: pointer; border: 0; padding: 0; width: 100%; height: 100%; display: block; }
.dog { position: absolute; left: 50%; bottom: 10%; height: 62%; width: auto; translate: -50% 0; opacity: 0; transition: opacity .18s, scale .5s var(--spring), translate .5s var(--ease); pointer-events: none; }
.aw[data-state="sleep"] .dog.sleep, .aw[data-state="sit"] .dog.sit, .aw[data-state="tilt"] .dog.tilt, .aw[data-state="ask"] .dog.sit { opacity: 1; }
.aw[data-state="sleep"] .dog.sleep { height: 44%; bottom: 14%; }
.aw[data-state="tilt"][data-side="left"] .dog.tilt { scale: -1 1; }
.aw[data-state="ask"] .dog.sit { height: 26%; translate: 40% 0; bottom: 8%; }
.zz { position: absolute; left: 58%; top: 26%; font: 600 20px/1 var(--pen); color: #8A8790; transition: opacity .3s; }
.zz i { display: inline-block; font-style: normal; animation: zz 2.4s infinite; }
.zz i:nth-child(2) { animation-delay: .4s; font-size: .8em; } .zz i:nth-child(3) { animation-delay: .8s; font-size: .65em; }
@keyframes zz { 0%, 100% { translate: 0 0; opacity: .3; } 50% { translate: 2px -6px; opacity: 1; } }
.aw:not([data-state="sleep"]) .zz { opacity: 0; }
.askui { position: absolute; inset: 12% 10% auto; text-align: left; opacity: 0; translate: 0 8px; transition: opacity .3s, translate .4s var(--ease); }
.askui small { font: 600 10px/1.2 var(--sans); color: #6B6870; letter-spacing: .02em; }
.askui b { display: block; margin-top: 4px; font: 700 clamp(17px, 1.6vw, 22px)/1.08 var(--sans); color: #121418; letter-spacing: -.02em; }
.mic { position: absolute; left: 12%; bottom: 12%; width: 22%; aspect-ratio: 1; border-radius: 50%; border: 2px solid #C7C5CC; opacity: 0; transition: opacity .3s; }
.mic::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #8C89F0; animation: ping 1.6s infinite; }
@keyframes ping { from { scale: 1; opacity: .9; } to { scale: 1.6; opacity: 0; } }
.aw[data-state="ask"] .askui { opacity: 1; translate: 0 0; }
.aw[data-state="ask"] .mic { opacity: 1; }
.tip { position: absolute; left: 50%; top: 4.5%; translate: -50% 0; font: 500 13px/1.3 var(--sans); color: #3D3A52; background: rgba(255, 255, 255, .7); padding: 5px 10px; border-radius: 6px; white-space: nowrap; pointer-events: none; transition: opacity .3s; }

/* Tarot Watch: turn the crown, the card turns */
.tw { --bg: #0D0D0F; }
.tw .watch { perspective: 900px; }
.cardface { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3, 1.3, .5, 1); transform: rotateY(var(--flip, 0deg)); }
.cardface img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.cardface .moon { transform: rotateY(180deg); }
.tw .tip { color: #E8E6F0; background: rgba(255, 255, 255, .12); }

/* ---------- the lens: the cursor changes on each selected project ---------- */
.lens { position: fixed; left: 0; top: 0; z-index: 35; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%; overflow: hidden; pointer-events: none; scale: 0; transition: scale .4s var(--spring), width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease); }
.lens.on { scale: 1; }
.lens .in { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.lens.zoom { box-shadow: 0 0 0 3px #fff, 0 18px 40px -10px rgba(18, 20, 24, .45); background: #fff; }
.lens.say { width: 96px; height: 96px; margin: -48px 0 0 -48px; display: grid; place-items: center; background: var(--red); color: #fff; box-shadow: 0 14px 30px -10px rgba(224, 48, 30, .6); }
.lens.say span { font: 600 22px/1 var(--pen); text-align: center; padding: 0 10px; }
.lens.say.dark { background: #F3F2EE; color: var(--ink); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .6); }
@media (hover: hover) and (pointer: fine) { .js :is(.frame, .window)[data-lens] { cursor: none; } .js .frame[data-lens] .crown { cursor: none; } }
@media (hover: none), (pointer: coarse) { .lens { display: none; } }

/* ---------- the rest of the work ---------- */
.list { list-style: none; margin: clamp(36px, 5vw, 64px) 0 0; padding: 0; border-top: 1px solid var(--hair); }
.list a { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) 13em; gap: 6px 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--hair); text-decoration: none; transition: padding .35s var(--ease); }
.list b { font: 500 clamp(21px, 1.9vw, 27px)/1.15 var(--serif); }
.list span { color: var(--ink-2); }
.list i { font-style: normal; text-align: right; }
.list a:hover { padding-left: 10px; }
.list a:hover b { color: var(--red-ink); }
@media (max-width: 760px) { .list a { grid-template-columns: 1fr; } .list i { text-align: left; } }
/* a project with a write-up: a second, smaller link under its row */
.list li.has-method { position: relative; }
.list li.has-method > a:first-child { padding-bottom: 46px; }
.list .list-method { position: absolute; left: 0; bottom: 16px; display: inline-block; padding: 4px 0; font: 500 13px/1.2 var(--mono); color: var(--red-ink); text-decoration: none; border: 0; transition: none; }
.list .list-method:hover { text-decoration: underline; text-underline-offset: 4px; padding-left: 0; }
.peek { position: fixed; left: 0; top: 0; z-index: 30; width: 260px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; pointer-events: none; opacity: 0; transform: scale(.92) rotate(-2deg); transition: opacity .25s, transform .35s var(--spring); box-shadow: 0 24px 50px -18px rgba(18, 20, 24, .45); background: #ddd; }
.peek.on { opacity: 1; transform: none; }
.peek img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .peek { display: none; } }

/* ---------- the front page ---------- */
.paper-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 8px 24px; padding: 10px 0 12px; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); }
.paper-head h2 { font: italic 600 clamp(44px, 6.4vw, 96px)/.9 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -.035em; }
.paper-head .meta { text-align: right; }
.front { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px solid var(--ink); }
.front > * { padding: 22px clamp(16px, 2vw, 28px) 26px; }
.front > * + * { border-left: 1px solid var(--hair); }
.front > :first-child { padding-left: 0; }
.front > :last-child { padding-right: 0; }
.kick { font: 500 12.5px/1.3 var(--mono); color: var(--red-ink); letter-spacing: .02em; }
.story { display: block; text-decoration: none; }
.lead h3 { margin-top: 10px; font: 800 clamp(40px, 4.8vw, 74px)/.92 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -.035em; }
.lead .sub { margin-top: 14px; font: italic 400 clamp(18px, 1.4vw, 22px)/1.35 var(--serif); max-width: 28em; }
.lead-body { display: grid; grid-template-columns: minmax(0, 1fr) clamp(110px, 12vw, 170px); gap: 20px; margin-top: 18px; align-items: start; }
.lead .dek { font: 400 17.5px/1.6 var(--serif); color: var(--ink); columns: 2 14em; column-gap: 24px; }
.lead figure { margin: 0; }
.lead figure img { width: 100%; border-radius: 12px; }
.lead figcaption { margin-top: 6px; font: italic 13.5px/1.35 var(--serif); color: var(--ink-2); }
.fig { display: flex; align-items: end; gap: 14px; margin-top: 18px; }
.odo { display: inline-flex; font: 700 clamp(56px, 6vw, 92px)/1 var(--serif); font-variation-settings: "opsz" 72; font-feature-settings: "tnum", "lnum"; letter-spacing: -.02em; color: var(--red); }
.odo .col { display: inline-block; height: 1em; overflow: hidden; }
.odo .strip { display: block; translate: 0 calc(var(--n, 0) * -1em); transition: translate 2s cubic-bezier(.25, .9, .25, 1); transition-delay: var(--dl, 0s); }
.odo .strip span { display: block; height: 1em; }
.fig .unit { font: 400 15px/1.35 var(--sans); color: var(--ink-2); padding-bottom: 10px; }
.story:hover h3 { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--red); text-underline-offset: 6px; }
.second h3 { margin-top: 8px; font: 600 clamp(24px, 2.2vw, 32px)/1.02 var(--serif); letter-spacing: -.02em; }
/* the Notebook's stories say they open: a quiet arrow after each title, and a Read link under the lead */
.story h3::after { content: "→"; display: inline-block; margin-left: .3em; font: 500 .45em/1 var(--mono); vertical-align: .35em; color: var(--faint); transition: transform .2s var(--ease), color .2s; }
.story:hover h3::after { color: var(--red-ink); transform: translateX(3px); }
.lead .read { display: inline-block; margin-top: 14px; padding: 4px 0; font: 500 14px/1.2 var(--mono); color: var(--red-ink); text-decoration: none; }
.lead .read:hover { text-decoration: underline; text-underline-offset: 4px; }
.second p { margin-top: 10px; font: 400 16.5px/1.55 var(--serif); color: var(--ink-2); }
.second + .second { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--hair); }
.gossip { background: var(--ink); color: #EDEDEA; border-radius: 0; }
.front > .gossip { padding: 20px 22px 18px; }
.gossip h3 { font: italic 600 30px/1 var(--serif); }
.gossip > p { margin-top: 6px; font: 13px/1.4 var(--mono); color: #A9ACB3; }
.gossip ol { list-style: none; margin: 12px 0 0; padding: 0; }
.gossip li { padding: 13px 0 14px; border-top: 1px solid rgba(255, 255, 255, .16); }
.gossip li a { font: 600 19px/1.15 var(--serif); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 4px; }
.gossip li a:hover { text-decoration-color: var(--red); }
.gossip li p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: #D5D6DA; }
.gossip .gtag { display: block; margin-top: 6px; font: 12.5px/1.3 var(--mono); color: #A9ACB3; }
.gossip .all { display: inline-block; margin-top: 4px; padding-top: 12px; font-size: 14.5px; font-weight: 500; color: #FF8A7C; text-underline-offset: 4px; }
@media (max-width: 1100px) { .front { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } .front > .gossip { grid-column: 1 / -1; margin-bottom: 22px; } .front > :nth-child(2) { padding-right: 0; } }
@media (max-width: 760px) {
  .front { grid-template-columns: 1fr; }
  .front > * { padding-left: 0; padding-right: 0; }
  .front > * + * { border-left: 0; border-top: 1px solid var(--hair); }
  .front > .gossip { padding: 20px 18px; }
  .lead-body { grid-template-columns: minmax(0, 1fr) 96px; }
}

/* logs: they type themselves */
.logs { list-style: none; margin: 0; padding: 0; }
.logs-head { display: flex; justify-content: space-between; align-items: baseline; margin-top: clamp(40px, 5vw, 64px); padding-bottom: 10px; border-bottom: 3px solid var(--ink); }
.logs-head h3 { font: italic 600 clamp(30px, 3vw, 44px)/1 var(--serif); }
.logs-head a { font-size: 15px; font-weight: 500; text-underline-offset: 4px; }
.logs li a { display: grid; grid-template-columns: 6.5em minmax(0, 1fr) 10em; gap: 4px 24px; align-items: baseline; padding: 16px 0 17px; border-bottom: 1px solid var(--hair); text-decoration: none; }
.logs time { font: 700 clamp(26px, 2.4vw, 34px)/1 var(--serif); font-variation-settings: "opsz" 72; font-feature-settings: "tnum", "lnum"; }
.logs p { font: 400 16px/1.5 var(--mono); min-height: 1.5em; }
.logs .who { font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-align: right; }
.logs li a:hover time { color: var(--red); }
.caret { display: inline-block; width: .55em; height: 1.05em; margin-left: 1px; vertical-align: -.18em; background: var(--red); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 760px) { .logs li a { grid-template-columns: 4.2em minmax(0, 1fr); } .logs .who { grid-column: 2; text-align: left; } }

/* ---------- about + write to me ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px clamp(24px, 5vw, 80px); }
.about p.big { font: 400 clamp(24px, 2.4vw, 34px)/1.25 var(--serif); letter-spacing: -.01em; }
.about p.big a { text-decoration-color: var(--red); text-underline-offset: 5px; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }
.write { margin: clamp(72px, 9vw, 128px) var(--g) 0; padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 56px); background: var(--red); color: #fff; border-radius: 18px; position: relative; overflow: hidden; }
.write .meta { color: #fff; }   /* small text on the red is pure white: the pale pinks were 3.5–4.2:1 (DESIGN.md) */
.write h2 { margin-top: 10px; font: italic 500 clamp(52px, 9vw, 140px)/.9 var(--serif); letter-spacing: -.04em; }
.write :focus-visible { outline-color: #fff; }
.letter { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px clamp(28px, 5vw, 72px); align-items: end; margin-top: clamp(22px, 3vw, 36px); }
.letter form { display: grid; gap: 14px; }
.letter textarea { width: 100%; min-height: 8.2em; resize: vertical; padding: 14px 16px; border: 1.5px solid rgba(255, 244, 240, .6); border-radius: 14px; background: rgba(18, 20, 24, .1); color: #fff; font: 400 clamp(19px, 1.6vw, 22px)/1.45 var(--serif); transition: background .2s, border-color .2s; }
.letter textarea::placeholder { color: #fff; font-style: italic; }
.letter textarea:hover { border-color: #FFF4F0; }
.letter textarea:focus { outline: none; border-color: #fff; background: rgba(18, 20, 24, .16); box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
.send { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
.send button { min-height: 48px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid #FFF4F0; cursor: pointer; font: 500 16px/1.2 var(--sans); transition: transform .2s var(--spring), background .2s, color .2s; }
.send button:hover { transform: translateY(-2px); }
.send button:active { transform: none; }
.send .gm { background: #FFF4F0; color: var(--red-ink); }
.send .app { background: transparent; color: #fff; }
.send .app:hover { background: rgba(255, 255, 255, .14); }
.letter .fine { font-size: 15px; color: #fff; }
.direct { display: grid; gap: 4px; justify-items: start; }
.direct .meta { color: #fff; }
.copy-mail { margin-top: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid rgba(255, 244, 240, .7); background: transparent; color: #fff; cursor: pointer; font: 500 14.5px/1.2 var(--sans); }
.copy-mail:hover { background: rgba(255, 255, 255, .14); }
@media (max-width: 820px) { .letter { grid-template-columns: 1fr; } }
.write .mail { display: inline-block; margin-top: 4px; font: 400 clamp(22px, 2.6vw, 38px)/1.2 var(--serif); text-decoration: none; position: relative; overflow-wrap: anywhere; }
.write .mail .ul { position: absolute; left: 0; bottom: -.18em; width: 100%; height: .3em; }
.write .mail .ul path { stroke: #FFF4F0; }
.write p.say { margin-top: 12px; font-size: 16px; color: #fff; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 28px var(--g) 40px; color: var(--ink-2); font-size: 14px; }

/* ---------- entrances ---------- */
.js.motion .rise { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js.motion .rise.in { opacity: 1; transform: none; }
.js.motion .name > span { transform: translateY(32%); transition: transform 1.3s var(--ease) .15s; }
.js.motion .window.ready .name > span { transform: none; }
.draw path { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.draw.in path { stroke-dashoffset: 0; transition: stroke-dashoffset .9s cubic-bezier(.55, .1, .3, 1) var(--d, 0s); }
@media (prefers-reduced-motion: reduce) {
  .draw path { stroke-dasharray: none; stroke-dashoffset: 0; }
  .pen { clip-path: none; transition: none; }
  .tag { transition: none; }
  .zz i, .mic::after, .caret { animation: none; }
  .cardface { transition: none; }
}

/* footer links (the site's other pages) */
footer .foot-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
footer a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
footer a:hover { color: var(--red-ink, var(--red)); }

/* touch: every small link and button gets at least a 24px-tall target (WCAG 2.5.8) without changing how it looks */
footer a { display: inline-block; padding-block: 6px; }
/* very wide screens: the page stops growing at 1760px and sits in the middle */
main, footer { max-width: 1760px; margin-inline: auto; }
.sec-head a, .logs-head a, .gossip .all { display: inline-block; padding-block: 6px; }
.gossip li a { display: inline-block; padding-block: 3px; }
/* small phones: the lead story stacks, so its summary and the 531 figure keep a readable measure */
@media (max-width: 480px) { .lead-body { grid-template-columns: 1fr; } .lead figure { max-width: 150px; } }
.top { padding-inline: max(var(--g), calc((100% - 1760px) / 2 + var(--g))); }   /* lines up with the capped page */
