/* mandytamm.com/notes
   Colours from the Morreo magazine pin: a white page, near-black type, one sky-blue field, a coral rose.
   Name: DT Sans Tall. Pen notes: DT Script Rough. Everything else: Instrument Sans. Square corners, no rules or shadows. */

:root {
  --bg: #f9f4e6;            /* light vanilla page */
  --tone: #2373ab;          /* sky blue, for the shows band: white type on it is 5.1:1 */
  --coral: #ee7d6a;         /* the rose: the Rare Originals band and button hovers, 6.7:1 with near-black */
  --paper: #f9f4e6;
  --black: #1e1310;
  --ink: #1e1310;           /* near-black: 16.5:1 on vanilla */
  --muted: #5f5651;         /* 6.5:1 on vanilla */
  --dark: #1e1310;
  --pen: #bf3f28;           /* deep coral pen: 4.8:1 on vanilla */
  --sans: "Instrument Sans", system-ui, sans-serif;
  --hand: "DT Script Rough", "Bradley Hand", cursive;
  --name: "DT Sans Tall", "Instrument Sans", sans-serif;

  --s-small: 0.875rem;
  --s-body: clamp(1.0625rem, 1rem + .2vw, 1.1875rem);
  --s-lead: clamp(1.375rem, 1.1rem + .9vw, 1.875rem);
  --s-head: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  --s-display: clamp(4.5rem, 2rem + 11vw, 13rem);

  --m: clamp(18px, 3vw, 40px);
  --gap: clamp(120px, 13vw, 200px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); position: relative; isolation: isolate; font: 400 var(--s-body)/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--name); font-weight: 400; letter-spacing: .01em; line-height: 1.02; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--pen); outline-offset: 3px; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: .5em 1em; }
.skip:focus { top: 8px; }
.kit { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.h1-word { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; }

/* ---------- the pen ---------- */
.pen { font-family: var(--hand); font-size: var(--s-lead); line-height: 1.2; color: var(--pen); letter-spacing: .01em; }
.pen-link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; white-space: nowrap; } /* the word and its icon move as one */
.pen-link:hover { text-decoration-thickness: 2px; }
.scrib.video { display: inline-block; width: 1.15em; height: .85em; margin-left: .3em; vertical-align: -.08em; stroke-width: 1.8; }
.scrib { fill: none; stroke: var(--pen); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; vector-effect: non-scaling-stroke; }
.scrib use { stroke: inherit; }

/* ---------- buttons: one shape, square ---------- */
.btn {
  display: inline-block; font: 600 var(--s-body)/1 var(--sans); text-decoration: none; padding: .9em 1.35em;
  background: var(--ink); color: var(--bg); transition: background-color .2s var(--ease), transform .15s var(--ease);
}
.btn:hover { background: var(--coral); color: var(--ink); }
.btn:active { transform: translateY(1px) scale(.97); }
.btn--quiet { background: rgb(30 19 16 / .08); color: var(--ink); }
.btn--quiet:hover { background: rgb(30 19 16 / .16); color: var(--ink); }
.btn--big { font-size: var(--s-lead); }

/* ---------- top ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding: 22px var(--m); }
.name-sm { font-weight: 600; text-decoration: none; letter-spacing: -.01em; }
.top ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.top nav a { display: inline-block; padding-block: 3px; }
.top nav a { text-decoration: none; }
.top nav a:hover { color: var(--pen); text-decoration: underline; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding: clamp(32px, 5vw, 72px) var(--m) 0; align-items: end; }
.hero-text { grid-column: 1 / 7; padding-bottom: 12px; }
.hero h1 { font-family: var(--name); font-size: clamp(4rem, 1rem + 8vw, 9.5rem); font-weight: 400; letter-spacing: .01em; line-height: 1.02; margin-bottom: 36px; }
.lede { font-size: var(--s-lead); line-height: 1.3; letter-spacing: -.01em; margin-bottom: 0; }
.mark { position: relative; white-space: nowrap; }
/* Rare Originals in the intro is a link: the pen line is its underline */
a.mark { color: inherit; text-decoration: none; transition: color .2s; }
a.mark:hover { color: var(--pen); }
.under { position: absolute; left: -2%; bottom: -.32em; width: 104%; height: .45em; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 36px; }
.hero-photo { grid-column: 7 / 13; margin: 0; position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 32%; }
/* notes written straight onto the photographs */
.pen-on { position: absolute; display: flex; align-items: center; gap: 8px; margin: 0; z-index: 2; pointer-events: none; }


/* ---------- right now: a form filled in by pen ---------- */
.now { padding: var(--gap) var(--m) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.now h2 { grid-column: 1 / 5; grid-row: 1; font-size: var(--s-head); }
.form { grid-column: 5 / 13; grid-row: 1; margin: 0; display: grid; grid-template-columns: 1fr; gap: 0 48px; }
.field { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1rem; align-items: baseline; padding: 12px 0 14px; }
.field dt { color: var(--muted); font-size: var(--s-body); }
.field dd { margin: 0; }
/* listening to: a record in its sleeve, the vinyl slid half out and turning */
.field-np { grid-column: 1 / -1; align-items: center; }
.player { --sz: 120px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 28px; }
.np-sleeve { position: relative; width: calc(var(--sz) * 1.42); height: var(--sz); }
.np-cover { position: absolute; inset: 0 auto 0 0; width: var(--sz); background: #ece4cf; z-index: 1; overflow: hidden; }
.np-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-disc { position: absolute; top: 4%; left: 4%; width: calc(var(--sz) * .92); aspect-ratio: 1; translate: 42% 0; transition: translate .6s cubic-bezier(.22, 1, .36, 1); }
.np-disc svg { width: 100%; height: 100%; display: block; }
.d-vinyl { fill: #111; }
.d-groove { fill: none; stroke: #2c2c2c; stroke-width: .6; }
.np-label { position: absolute; inset: 33%; border-radius: 50%; background: var(--pen) center / cover no-repeat; }
.np-label::after { content: ""; position: absolute; inset: 44%; border-radius: 50%; background: var(--bg); }
.player:hover .np-disc { translate: 56% 0; }
.np-body { min-width: 0; display: grid; justify-items: start; }
.np-title { font-weight: 600; font-size: var(--s-lead); line-height: 1.15; letter-spacing: -.01em; color: var(--ink); text-decoration: none; text-wrap: pretty; overflow-wrap: anywhere; }
.np-title:hover { color: var(--pen); }
.np-artist { margin-top: 4px; color: var(--muted); text-wrap: pretty; }
.np-ctl { margin: 12px 0 0 -11px; display: flex; align-items: center; gap: 4px; }
.np-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; transition: color .2s, background-color .2s, transform .15s var(--ease); }
.np-btn svg { width: 22px; height: 22px; fill: currentColor; }
.np-btn:hover { color: var(--pen); }
.np-btn:active { transform: scale(.94); }
.np-play { background: var(--ink); color: var(--bg); }
.np-play svg { width: 24px; height: 24px; }
.np-play:hover { background: var(--coral); color: var(--ink); }
.np-btn:focus-visible { outline: 2px solid var(--pen); outline-offset: 2px; }
.np-count { margin-left: 12px; color: var(--muted); font-size: var(--s-small); font-variant-numeric: tabular-nums; }

/* reading and watching: the cover beside the title */
.field:has(.with-cover) { align-items: center; }
.with-cover { display: flex; align-items: center; gap: 14px; }
.with-cover img { width: 48px; height: auto; flex: none; outline: 1px solid rgb(30 19 16 / .12); outline-offset: -1px; }

/* ---------- numbers ---------- */
.numbers { padding: clamp(64px, 7vw, 112px) var(--m) 0; }
/* live shows: the sky-blue band, its own section near the end */
.shows { margin-top: var(--gap); }
.shows .where { margin: 0; }
.numbers h2 { font-size: var(--s-head); }
/* the old computer sits at the right end of the numbers, level with the heading; Blümchen and 1998 turn its screen on */
.numbers h2 { margin-bottom: 48px; }
.num-pc { position: relative; margin: 0 0 40px; }
.pc-page { width: min(100%, 380px); }
.pc-off { margin-top: 10px; padding: .55em 1em; border: 0; background: rgb(30 19 16 / .08); color: var(--ink); font: 600 var(--s-small)/1 var(--sans); cursor: pointer; transition: background-color .2s; }
.pc-off:hover { background: rgb(30 19 16 / .16); }
.pc-off[hidden] { display: inline-block; visibility: hidden; } /* keeps its room, so nothing below jumps */
@media (min-width: 1100px) {
  .numbers { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1.05fr); column-gap: 32px; }
  .numbers h2 { grid-column: 1; grid-row: 1; }
  .nums { grid-column: 1; grid-row: 2; }
  .num-pc { grid-column: 2; grid-row: 1 / 3; align-self: end; justify-self: end; width: 100%; margin: 0; }
  .pc-page { width: 100%; margin-left: auto; }
  /* under the computer, out of the way, so nothing moves when it appears */
  .pc-off { position: absolute; left: 0; top: 100%; }
}
/* the power light, measured off the photo */
.pc-led { position: absolute; left: 68.3%; top: 55.2%; width: 1.7%; height: 1.15%; border-radius: 2px; background: #3ccf5c; opacity: 0; box-shadow: 0 0 6px 2px rgb(60 207 92 / .7); transition: opacity .3s; }
.pc-page.on .pc-led { opacity: 1; }
.nums { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.nums li { display: grid; align-content: start; gap: 6px; }
.nums li > span { text-wrap: pretty; } /* no single word left on the last line */
.nums b { font-weight: 600; font-size: clamp(4rem, 2rem + 6vw, 8rem); line-height: .9; letter-spacing: -.045em; font-stretch: 85%; position: relative; justify-self: start; }
.nums .pen { font-size: var(--s-lead); transform: rotate(-2deg); transform-origin: 0 50%; margin-top: 4px; }
.circled { padding: 0 .12em; }
.ring { position: absolute; left: -24%; top: -18%; width: 148%; height: 136%; }
.online-year { white-space: nowrap; font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline dotted var(--pen); text-decoration-thickness: 3px; text-underline-offset: .12em; }
.online-year:hover, .online-year[aria-pressed="true"] { color: var(--pen); }
.scrib.sound { display: inline-block; width: .36em; height: .3em; margin-left: .12em; vertical-align: .34em; stroke-width: 2.2; }

.where { margin-top: 120px; padding: 56px var(--m); margin-left: calc(var(--m) * -1); margin-right: calc(var(--m) * -1); background: var(--tone); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.where-top { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; column-gap: 18px; row-gap: 10px; }
.where-h { font-size: var(--s-head); display: flex; flex-wrap: wrap; gap: .3em; align-items: baseline; }
.where-h select { font: inherit; letter-spacing: inherit; color: var(--pen); background: transparent; border: 0; padding: 0 .1em; cursor: pointer; appearance: none; -webkit-appearance: none; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .12em; }
.yr-pick { position: relative; display: inline-block; }
.yr-btn { font: inherit; letter-spacing: inherit; color: var(--pen); background: transparent; border: 0; padding: 0 .1em; cursor: pointer; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .12em; }
.yr-btn:focus-visible, .yr-menu button:focus-visible { outline: 2px solid var(--pen); outline-offset: 3px; }
.yr-menu { font-family: var(--sans); position: absolute; left: 0; top: calc(100% + 10px); z-index: 5; width: max-content; display: grid; grid-template-columns: repeat(5, auto); gap: 2px; padding: 10px; background: var(--bg); border: 1px solid var(--ink); font-size: var(--s-body); font-weight: 400; letter-spacing: 0; }
.yr-menu[hidden] { display: none; }
.yr-menu button { font: inherit; font-variant-numeric: tabular-nums; color: var(--ink); background: none; border: 0; padding: 8px 10px; min-height: 40px; cursor: pointer; }
.yr-menu button:hover { color: var(--pen); text-decoration: underline; }
.yr-menu button[aria-current="true"] { color: #fff; background: var(--pen); }
.pen-pick { display: flex; align-items: center; gap: 10px; margin: 0; transform: rotate(-3deg); }
.pen-pick .arrow { width: 56px; height: 28px; flex: none; }
.where-count { grid-column: 1 / 8; margin: 18px 0 28px; font-size: var(--s-lead); }
.where-search { grid-column: 8 / 13; margin: 18px 0 28px; }
.where-search input { box-sizing: border-box; width: 100%; padding: .4em 0; border: 0; border-bottom: 2px solid var(--pen); border-radius: 0; background: none; color: var(--ink); font: 400 var(--s-lead)/1.2 var(--sans); appearance: none; -webkit-appearance: none; }
.where-search input::placeholder { color: #e2dbcd; opacity: 1; }
.where-search input:focus-visible { outline: 2px solid transparent; border-bottom-color: var(--ink); box-shadow: 0 2px 0 var(--ink); }
.where-list.all-years li { grid-template-columns: 6.5rem minmax(0, 1fr); }
.where-list { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; columns: 3 260px; column-gap: 40px; }
.where-list li { break-inside: avoid; display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); gap: .75rem; padding: 6px 0 10px; }
.where-list time { color: var(--muted); font-variant-numeric: tabular-nums; }
.where-list .v { display: block; color: var(--muted); font-size: var(--s-small); }
.where-more { margin-top: 20px; font: 600 var(--s-body)/1 var(--sans); padding: .85em 1.3em; border: 0; background: var(--ink); color: var(--bg); cursor: pointer; }

/* ---------- Spotify years ---------- */
.spotify { padding: var(--gap) var(--m) 0; }
.spotify h2 { font-size: var(--s-head); }
.sec-lede { font-size: var(--s-lead); line-height: 1.3; margin: 20px 0 0; }
.years { list-style: none; margin: 64px 0 0; padding: 0; display: grid; gap: 56px; }
.years li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.yr { grid-column: 1 / 3; margin: 0; font-weight: 600; font-size: var(--s-head); letter-spacing: -.03em; line-height: 1; color: var(--muted); }
.yr-text { grid-column: 3 / 8; }
.yr-text h3 { font-size: var(--s-lead); margin: 6px 0 10px; }
.yr-art { grid-column: 8 / 13; display: flex; gap: 12px; align-items: flex-start; position: relative; }
.yr-art img { width: calc(50% - 6px); aspect-ratio: 1; object-fit: cover; }
.yr-art img.tall { aspect-ratio: 4 / 3; width: 100%; }
.pen-equal { margin: 22% 0 0 12px; transform: rotate(-3deg); }

/* ---------- Rare Originals: one tone band ---------- */
.ro { margin-top: var(--gap); padding: 96px var(--m); background: var(--tone); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.ro-text { grid-column: 1 / 7; }
.ro h2 { font-size: var(--s-head); margin-bottom: 24px; }
.ro-mark { grid-column: 8 / 13; }
.ro-mark img { width: 100%; }
/* the animated logo: notes.js draws the video onto a canvas and turns its white into see-through,
   so only the black logo sits on the coral. Without script, or with reduced motion, the still logo shows. */
.ro-anim { position: relative; width: min(100%, 440px); margin-left: auto; }
.ro-still, .ro-canvas { display: block; width: 100%; height: auto; }
.ro-canvas { position: absolute; inset: 0; height: 100%; opacity: 0; }
.ro-anim.playing .ro-canvas { opacity: 1; }
.ro-anim.playing .ro-still { visibility: hidden; }
.ro-src { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.heart { width: 34px; height: 32px; }

/* ---------- work ---------- */
.work { padding: var(--gap) var(--m) 0; }
.work h2 { font-size: var(--s-head); margin-bottom: 48px; }
.feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
.shot { grid-column: 1 / 9; display: block; overflow: hidden; background: #ece4cf; }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.shot:hover img { transform: scale(1.02); }
.feature-text { grid-column: 9 / 13; }
.feature-text h3 { font-size: var(--s-lead); margin-bottom: 12px; }
.sites { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.sites a { display: grid; gap: 4px; text-decoration: none; }
.sites img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; margin-bottom: 10px; transition: transform .4s var(--ease); }
.site-name { font-weight: 600; }
.site-what { color: var(--muted); font-size: var(--s-small); }
.pen-sites { display: flex; align-items: flex-end; gap: 10px; margin: 72px 0 0 2%; transform: rotate(-2deg); transform-origin: 0 50%; }
.arrow-down { width: 40px; height: 46px; flex: none; }

.cv-name { font-weight: 600; }
.cv-meta { color: var(--muted); font-size: var(--s-small); font-variant-numeric: tabular-nums; }

/* ---------- contact ---------- */
.contact { padding: max(var(--gap), 160px) var(--m) var(--gap); }
.contact h2 { font-size: clamp(3rem, 1rem + 5vw, 6rem); }
.contact .sec-lede { margin-top: 28px; }
.pen-contact { margin: 0 0 0 14px; transform: rotate(-4deg); display: flex; align-items: center; gap: 8px; }
.star { width: 26px; height: 26px; }

/* ---------- footer ---------- */
.foot { padding: 56px var(--m) 40px; background: var(--tone); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 20px; align-items: end; }
.foot-name { grid-column: 1 / 6; margin: 0; font-family: var(--name); font-weight: 400; font-size: var(--s-head); letter-spacing: .01em; line-height: 1.02; }
.foot ul { grid-column: 6 / 13; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; list-style: none; margin: 0 -10px 0 0; padding: 0; }
.foot ul a { display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink); transition: color .2s; }
.foot ul a:hover { color: var(--pen); }
.foot ul svg { width: 24px; height: 24px; fill: currentColor; }
.foot-small { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: var(--s-small); }

/* ---------- phone ---------- */
@media (max-width: 899px) {
  .foot ul { justify-content: flex-start; margin: 0 0 0 -10px; }
  .top nav { display: none; }
  .hero, .now, .where, .years li, .ro, .feature, .foot { grid-template-columns: 1fr; }
  .hero-text, .hero-photo, .now h2, .form, .where-top, .where-count, .where-search, .yr, .yr-text, .yr-art, .ro-text, .ro-mark, .shot, .feature-text, .foot-name, .foot ul { grid-column: 1 / -1; }
  .hero-photo { margin-top: 48px; width: 100%; }
  .form { grid-row: auto; }

  .form { grid-template-columns: 1fr; margin-top: 28px; }
  .field { grid-template-columns: 7.5rem minmax(0, 1fr); }
  .field-np { grid-template-columns: 1fr; gap: 10px; }
  .player { --sz: 92px; column-gap: 18px; }
  .np-ctl { margin-top: 8px; gap: 0; }
  .where-h { position: relative; }
  .where-count { margin-bottom: 8px; }
  .where-search { margin-top: 0; }
  .yr-pick { position: static; }
  .yr-menu { grid-template-columns: repeat(4, auto); }
  .nums { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .nums li:last-child { grid-column: 1 / -1; } /* 1998 sits alone in its row, so it gets the full width */
  .pc-page { width: min(72%, 300px); }
  .yr { margin-bottom: 8px; }
  .yr-art { margin-top: 16px; }
  .ro-mark { margin-top: 40px; }
  .feature-text { margin-top: 24px; }
  .sites { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 679px) {
  /* the note drops under the heading, flush right so its arrow points up at the year */
  .where-top { row-gap: 4px; }
  .where-h { flex-basis: 100%; }
  .pen-pick { margin-left: auto; flex-direction: row-reverse; gap: 6px; }
  .pen-pick .arrow { width: 44px; height: 22px; transform: rotate(38deg); }
}
@media (min-width: 600px) and (max-width: 899px) {
  .sites { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* entrances: heading, then text, then pictures, once */
  .js [data-rise] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
  .js [data-rise].in { opacity: 1; transform: none; }
  /* the pen writes itself on, left to right; scribbles draw themselves */
  .js .pen.ink { clip-path: inset(-20% 100% -30% -10%); transition: clip-path 1.1s cubic-bezier(.5, 0, .3, 1) .25s; }
  .js .pen.ink.in { clip-path: inset(-20% -10% -30% -10%); }
  /* dash props inherit into the reused symbols, whose paths carry pathLength=1 */
  .js .scrib { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s cubic-bezier(.5, 0, .3, 1) .55s; }
  .js .in .scrib, .js .scrib.in { stroke-dashoffset: 0; }
  .hero-photo img { animation: settle 1.4s var(--ease) both; }

  /* ---------- the fun layer ---------- */
  /* the pen lines never sit quite still, like a hand-drawn cartoon */
  .js .in .scrib, .js .scrib.in { animation: boil .5s steps(1) 10; }
  /* hover a note and its mark draws itself again */
  .js .nums li:hover .ring, .js .mark:hover .scrib, .js .pen:hover .scrib { animation: boil .5s steps(1) 10, redraw .8s cubic-bezier(.5, 0, .3, 1); }
  /* my name: letters arrive one by one, and hop when you touch them */
  .js .ch { animation: ch-in .7s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--i) * 35ms + 40ms); transition: translate .35s cubic-bezier(.34, 1.8, .64, 1), rotate .35s cubic-bezier(.34, 1.8, .64, 1), color .2s; }
  .ch:hover { translate: 0 -.1em; rotate: var(--r, -4deg); color: var(--pen); }
  /* pictures: pick one up and it tilts in your hand */
  .yr-art img, .sites img, .with-cover img, .shot img { transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
  .yr-art img:hover, .sites a:hover img, .with-cover:hover img { transform: translateY(-6px) rotate(var(--tilt, -2deg)) scale(1.04); }
  /* the next song lands like a card dealt onto the table */
  /* the record turns for one spin when it arrives or changes, and while you hover or tab to the player */
  .np-disc svg, .np-label { animation: spin 5s linear infinite paused; }
  .player.spin .np-disc svg, .player.spin .np-label, .player:hover .np-disc svg, .player:hover .np-label, .player:focus-within .np-disc svg, .player:focus-within .np-label { animation-play-state: running; }
  .np-sleeve.swap .np-disc { animation: reslide .7s cubic-bezier(.22, 1, .36, 1); }
  .np-sleeve.swap .np-cover { animation: nudge .7s cubic-bezier(.22, 1, .36, 1); }
  /* "say hi" wiggles when you go for the button */
  .contact:has(.btn:hover) .pen-contact { animation: wiggle .6s ease-in-out; }
}
@keyframes boil { 0% { filter: url(#boil1); } 33% { filter: url(#boil2); } 66% { filter: url(#boil3); } }
@keyframes redraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ch-in { from { opacity: 0; transform: translateY(.45em) rotate(6deg); } to { opacity: 1; transform: none; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes reslide { 0% { translate: 42% 0; } 35% { translate: 0 0; } 100% { translate: 42% 0; } }
@keyframes nudge { 35% { rotate: -3deg; } }
@keyframes deal { from { opacity: .2; transform: translateX(14px) rotate(9deg) scale(.86); } to { opacity: 1; transform: none; } }
@keyframes wiggle { 0%, 100% { rotate: 0deg; } 20% { rotate: -4deg; } 45% { rotate: 3deg; } 70% { rotate: -2deg; } }

/* scrolling: snapshots settle as they come in, the photo of me tips away as it leaves */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .yr-art img, .with-cover img, .sites img { animation: settle-in linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
    .yr-art img:nth-child(2), .sites li:nth-child(even) img { --from: 5deg; }
    .hero-photo { animation: tip-away linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    /* Play Next: the screenshot grows to full size as it scrolls in */
    .shot { transform-origin: 0 50%; animation: shot-grow linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  }
}
@keyframes settle-in { from { rotate: var(--from, -5deg); translate: 0 30px; } to { rotate: 0deg; translate: 0 0; } }
@keyframes shot-grow { from { scale: .86; } to { scale: 1; } }
@keyframes tip-away { to { rotate: 4deg; translate: 0 -60px; } }
@keyframes settle { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }

/* ---------- the old computer's screen ---------- */
.pc { position: relative; }
.pc-img { display: block; width: 100%; height: auto; }
/* the glass of the monitor, measured from the original photo */
.crt-screen { position: absolute; overflow: hidden; display: grid; place-items: center; background: #060707; color: #e4e7e4; container-type: size; font: 400 clamp(7px, 6.4cqw, 13px)/1.45 ui-monospace, "SF Mono", Menlo, monospace; }
.crt-screen[hidden] { display: none; }
.pc-beige .crt-screen { left: 25.34%; top: 6.85%; width: 48.72%; height: 45.52%; border-radius: 2.5% / 3.5%; }
.crt-screen iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.dialup { width: 86%; display: grid; gap: 6%; }
.dialup p { margin: 0; }
.du-title { font-weight: 600; }
.du-bar { height: 10px; border: 2px solid #e4e7e4; padding: 1px; }
.du-bar span { display: block; height: 100%; width: 100%; background: #e4e7e4; transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s steps(6); }
.du-status { min-height: 3em; color: #b9beb9; }
.du-done { color: #3ccf5c; }
@media (prefers-reduced-motion: no-preference) {
  .pc-page.on .crt-screen { animation: crt-on .7s cubic-bezier(.2, .8, .2, 1) both; }
  .pc-page.off .crt-screen { animation: crt-off .32s ease-in both; }
}
@keyframes crt-on { 0% { transform: scale(.7, .004); opacity: .2; filter: brightness(3); } 35% { transform: scale(1, .004); opacity: 1; } 100% { transform: none; opacity: 1; filter: none; } }
@keyframes crt-off { 55% { transform: scale(1, .004); filter: brightness(3); } 100% { transform: scale(0, .004); opacity: 0; } }

/* ---------- bands: sky blue for the shows, coral for Rare Originals, near-black for the footer ---------- */
/* sky blue: everything in white (5.1:1) */
.where { color: #fff; }
.where .where-list .v, .where .where-list time { color: #fff; }
.where .pen, .where .scrib { color: #fff; stroke: #fff; }
.where .yr-btn { color: #fff; }
.where :focus-visible, .where .yr-btn:focus-visible { outline-color: #fff; }
.where-search input { border-bottom-color: #fff; color: #fff; }
.where-search input::placeholder { color: #fff; }
.where-search input:focus-visible { border-bottom-color: #fff; box-shadow: 0 2px 0 #fff; }
.where-more { background: #fff; color: var(--ink); }
.where-more:hover { background: var(--coral); }
.where .yr-menu { color: var(--ink); }
.where .yr-menu :focus-visible { outline-color: var(--ink); }
/* coral */
.ro { background: var(--coral); color: var(--ink); }
.ro .pen { color: var(--ink); }
.ro .scrib { stroke: var(--ink); }
.ro :focus-visible { outline-color: var(--ink); }
.ro a:not(.btn) { color: var(--ink); }
.ro .btn { background: var(--ink); color: #fff; }
.ro .btn:hover { background: #3a2a25; color: #fff; }
.ro .btn--quiet { background: rgb(30 19 16 / .1); color: var(--ink); }
.ro .btn--quiet:hover { background: rgb(30 19 16 / .2); color: var(--ink); }
/* near-black footer */
.foot { background: var(--ink); color: #fff; }
.foot ul a { color: #fff; }
.foot ul a:hover { color: var(--coral); }
.foot-small { color: #d3cbc7; }
.foot :focus-visible { outline-color: #fff; }

/* the hero photo tips as it scrolls away; its corner must not widen the page */
html, body { overflow-x: clip; }

/* ---------- Spotify years, sideways: the page holds still and the years slide past ----------
   notes.js adds .pin on wide, tall-enough screens with motion on. Everywhere else this stays the vertical list. */
.pin-bar { display: none; }
.spotify.pin { padding: 0; margin-top: var(--gap); }
.spotify.pin .pin-stage { position: sticky; top: 0; box-sizing: border-box; height: 100svh; padding: clamp(28px, 5svh, 56px) var(--m); overflow: clip; display: flex; flex-direction: column; }
.spotify.pin .years { --h: min(46svh, 27vw); flex: none; width: max-content; margin: auto 0; display: flex; align-items: flex-start; gap: clamp(72px, 8vw, 140px); will-change: transform; }
.spotify.pin .years li { flex: none; display: grid; grid-template-columns: 24rem auto; grid-template-rows: auto 1fr; column-gap: 40px; align-items: start; }
.js .spotify.pin .years > li[data-rise] { opacity: 1; transform: none; transition: none; }
.spotify.pin .yr { grid-column: 1; grid-row: 1; font-size: clamp(3.5rem, 2rem + 4vw, 6rem); margin-bottom: 18px; }
.spotify.pin .yr-text { grid-column: 1; grid-row: 2; }
.spotify.pin .yr-art { grid-column: 2; grid-row: 1 / span 2; }
.spotify.pin .yr-art img { width: auto; height: var(--h); animation: none; }
.spotify.pin .pen-equal { align-self: center; margin: 0 0 0 16px; white-space: nowrap; }
.spotify.pin .pin-bar { display: block; flex: none; height: 2px; margin-top: 20px; background: rgb(30 19 16 / .14); }
.spotify.pin .pin-bar span { display: block; height: 100%; background: var(--pen); transform: scaleX(0); transform-origin: 0 50%; }

/* a new year's shows fade up in turn */
@media (prefers-reduced-motion: no-preference) {
  .where-list.swap li { animation: row-in .2s var(--ease) both; animation-delay: calc(var(--n, 0) * 30ms); }
}
@keyframes row-in { from { opacity: 0; transform: translateY(8px); } }
