
@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,400;0,500;1,400&family=JetBrains+Mono:ital,wght@0,400;1,400&display=swap");

:root {
  --bg: #efeee9;
  --ink: #111111;
  --mute: #8a8a84;
  --line: #11111122;
  --link: #111111;
  --hi: #d6ff3a;        /* yellow  */
  --hot: #b000ff;       /* neon-purple  */
  --win: #ffffff;
  --neon: #39ff14;

  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* type scale */
  --fs-xs: 0.8125rem;                      /* 13px — meta, captions, labels */
  --fs-s:  1rem;                           /* 16px — nav, descriptions, body */
  --fs-m:  1.0625rem;                      /* 17px — list titles, tagline */
  --fs-l:  clamp(1.125rem, 1.6vw, 1.375rem); /* 18–22px — About bio */
  --fs-xl: clamp(1.75rem, 3vw, 2.375rem);  /* 28–38px — page titles */

  --max: 1180px;
  --gut: max(24px, calc((100vw - var(--max)) / 2 + 24px));
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 0.9375rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--hot); color: var(--win); }
a { color: inherit; text-decoration: none; }
a:hover { background: var(--hi); }
.u { color: var(--link); text-decoration: underline; text-decoration-color: var(--mute); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.u:visited { color: var(--link); }
.u:hover { text-decoration-color: var(--ink); }

/* content column */
#app > *:not(.top) { max-width: var(--max); margin-inline: auto; }
#app > .sec-h, #app > .filters { padding-left: 24px; padding-right: 24px; }
.mute { color: var(--mute); }
img { max-width: 100%; display: block; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline;
  gap: 1rem; padding: 16px var(--gut);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(6px);
}
.top .name { font: 500 17px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; justify-self: start; display: inline-block; }
.top .name em { font-weight: 400; color: var(--mute); font-style: normal; }
.top { grid-template-columns: 1fr auto; }
.top nav { display: flex; gap: 1.75rem; font: 400 16px/1 var(--sans); justify-self: end; }
.top nav a { padding: 2px 5px; }
.top nav a:hover { background: var(--hi); color: var(--ink); }
.top nav a[aria-current], .top nav a[aria-current]:hover { background: var(--ink); color: var(--bg); }
.top .clock { justify-self: end; color: var(--mute); font: var(--fs-xs) var(--mono); font-variant-numeric: tabular-nums; }


/* ---------- home desktop ---------- */
.desk { position: relative; height: 74vh; margin-top: 24px; border: 1px solid var(--line); min-height: 520px; overflow: hidden; border-bottom: 1px solid var(--line); }
.desk .big {
  position: absolute; left: 16px; bottom: 14px; max-width: 38ch; margin: 0; z-index: 1;
  font: 400 var(--fs-m)/1.35 var(--sans); letter-spacing: -0.005em;
  pointer-events: none; user-select: none;
}
.desk .big i { color: var(--mute); }
.desk .hint { position: absolute; right: 16px; bottom: 14px; color: var(--mute); z-index: 1; font: var(--fs-xs) var(--mono); }

.win {
  position: absolute; width: 220px; background: var(--win);
  border: 1px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  z-index: 2; user-select: none;
}
.win .bar {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 2px 6px; border-bottom: 1px solid var(--ink);
  background: repeating-linear-gradient(0deg, var(--win) 0 2px, #dcdcd6 2px 3px);
  cursor: grab; font: 12px/1.5 var(--mono);
}
.win .bar span { background: var(--win); padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win.drag .bar { cursor: grabbing; }
.win a.body { display: block; }
.win a.body:hover { background: none; }
.win img, .win canvas { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; filter: grayscale(1) contrast(1.1); transition: filter .2s; }
.win:hover img, .win:hover canvas { filter: none; }
.win .cap { padding: 4px 6px; font: 12px/1.45 var(--mono); border-top: 1px solid var(--ink); }

/* ---------- sections ---------- */
.wrap { padding: 24px; }
.sec-h {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 56px 24px 16px; /*border-bottom: 1px solid var(--ink);*/
}
.sec-h h2 { margin: 0; font: 500 var(--fs-xl)/1.1 var(--sans); letter-spacing: -0.02em; }
.sec-h h2 i { color: var(--mute); }
.sec-h > :not(h2) { font: var(--fs-xs) var(--mono); color: var(--mute); }

/* index list — titles in the sans, metadata in mono */
.index { list-style: none; margin: 0; padding: 0; font: var(--fs-xs)/1.4 var(--mono); color: var(--mute); }
.index li a, .index li .nl {
  display: grid; grid-template-columns: 64px 1fr 220px 110px; gap: 1.25rem;
  align-items: baseline;
  padding: 10px 24px; border-bottom: 1px solid var(--line);
}
.index li a:hover { background: var(--hi); color: var(--ink); }
.index .t { font: 400 14px/1.5 var(--mono); letter-spacing: 0; color: var(--ink); } 
.index li a:hover .t { font-style: italic; }
.index .f { text-align: right; }
.filters { display: flex; flex-wrap: wrap; gap: 16px; padding: 20px 24px; }
.filters button {
  font: 400 15px/1 var(--sans); /*var(--fs-xs)/1.6 var(--mono); */ 
  text-transform: lowercase; cursor: pointer;
  background: transparent; color: var(--ink);
  border: 0; border-radius: 0; padding: 2px 5px;
}
.filters button:hover { background: var(--hi); color: var(--ink); }
.filters button[aria-pressed="true"], .filters button[aria-pressed="true"]:hover { background: var(--ink); color: var(--bg); }
.preview {
  position: fixed; z-index: 60; width: 260px; pointer-events: none;
  border: 1px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  opacity: 0; transform: rotate(-2deg); transition: opacity .12s;
}
.preview.on { opacity: 1; }
.preview img, .preview canvas { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ---------- work page ---------- */
.work { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; padding: 40px 24px 80px; }
.work h1 { font: 500 clamp(26px, 3vw, 38px)/1.1 var(--sans); letter-spacing: -0.02em; margin: 0 0 24px; }
.meta { display: grid; grid-template-columns: 90px 1fr; gap: 4px 12px; margin: 0 0 24px; font: var(--fs-xs)/1.5 var(--mono); }
.meta dt { color: var(--mute); }
.meta dd { margin: 0; }
.prose p { max-width: 62ch; margin: 0 0 1em; font-size: 15.5px; line-height: 1.6; }
.media { display: grid; gap: 24px; align-content: start; }
.media figure { margin: 0; border: 1px solid var(--line); background: var(--win); }
.media figcaption { padding: 4px 8px; border-top: 1px solid var(--line); font: 12px/1.45 var(--mono); color: var(--mute); }
.media iframe { width: 100%; border: 0; display: block; }
.media .ratio { aspect-ratio: 16/9; height: auto; }
.media canvas { width: 100%; aspect-ratio: 4/3; display: block; }
.list { list-style: none; padding: 0; margin: 0 0 24px; }
.list li { border-top: 1px solid var(--line); padding: 6px 0; }
h3 { font: 400 var(--fs-xs)/1 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; margin: 32px 0 10px; color: var(--mute); }
.back { display: inline-block; margin-bottom: 20px; font: var(--fs-xs) var(--mono); }

/* ---------- calendar ---------- */
.cal-box { margin: 32px 24px 48px; background: var(--win); border: 1px solid var(--line); padding: 8px 28px 20px; }
.cal { width: 100%; border-collapse: collapse; }
.cal td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.cal td:first-child { padding-left: 0; }
.cal td:last-child { padding-right: 0; }
.cal tr:last-child td { border-bottom: 0; }
.cal b, .cal strong { font-weight: 500; font-size: 15.5px; line-height: 1.5; letter-spacing: 0; }
.cal .d { width: 130px; font: var(--fs-xs)/1.6 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--mute); }
.cal .k { width: 100px; font: var(--fs-xs)/1.6 var(--mono); color: var(--mute); }
.cal tr.up .d, .cal tr.up .k { color: var(--ink); }
.cal td:last-child { width: 200px; text-align: right; font-size: 13px; line-height: 1.5; letter-spacing: 0; }
.cal .wl { display: block; margin-top: 4px; font: 12px/1.6 var(--mono); }
.cal .wl a.u { color: var(--ink); }
.cards.mini { padding: 0; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.tag { font: var(--fs-xs) var(--mono); color: var(--mute); }
.cal tr.up .tag { color: var(--ink); }
.cal .yr td { padding: 32px 0 10px; font: 500 15px/1 var(--mono); letter-spacing: 0.04em; color: var(--ink); border-bottom: 1px solid var(--ink); text-align: left; }
.cal tr:first-child.yr td { padding-top: 16px; }

.cal .desc { font-size: 14px; line-height: 1.6; letter-spacing: 0; }
.cal tr.up .d { position: relative; }
.cal tr.up .d::before { content: ""; position: absolute; left: -14px; top: 12px; bottom: 12px; width: 4px; background: var(--hi); }
body[data-page="works"] .sec-h h2, body[data-page="dates"] .sec-h h2, body[data-page="calendar"] .sec-h h2 { letter-spacing: 0; line-height: 1.15; }
.cal .yr td { letter-spacing: 0; line-height: 1.5; }
.video-local { position: relative; display: block; overflow: hidden; background: var(--ink); }
.video-local img { width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 10px 18px; background: var(--ink); color: var(--win); font: 24px/1 var(--sans); }
.video-local:hover .video-play { background: var(--hi); color: var(--ink); }
.soundcloud figcaption { font-size: 10px; line-height: 1.5; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 3fr 2fr; gap: 64px; padding: 40px 24px 80px; }
.about p { max-width: 62ch; }
.about .lead { font: 400 var(--fs-m)/1.35 var(--sans); /*400 var(--fs-l)/1.4 var(--sans);*/ letter-spacing: -0.01em; max-width: 30em; margin: 0 0 1em; }

/* ---------- collabs ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; padding: 40px 24px 80px; }
.cards .win { position: relative; width: auto; }
.cards .win .cap { font-size: 13px; }

.hotlink, .hotlink:visited, .foot a.hotlink { color: var(--hot); text-decoration-color: var(--hot); }
.hotlink:hover, .foot a.hotlink:hover { color: var(--ink); background: var(--hi); text-decoration-color: var(--ink); }

/* ---------- footer ---------- */
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: 48px; padding: 20px 24px; border-top: 1px solid var(--line); color: var(--mute);
  font: var(--fs-xs) var(--mono);
}
.foot a { color: var(--ink); }

@media (max-width: 760px) {
  .top { grid-template-columns: 1fr; padding: 14px 16px; }
  .top nav { justify-self: start; }
  .top .clock { display: none; }
  .top nav { flex-wrap: wrap; gap: .8rem; }
  .index li a, .index li .nl { grid-template-columns: 52px 1fr; padding: 12px 16px; }
  #app > .sec-h, #app > .filters { padding-left: 16px; padding-right: 16px; }
  .cal-box { margin: 16px 0 32px; padding: 4px 16px 12px; border-inline: 0; }
  .cal td:last-child { text-align: left; }
  .index .ty, .index .f { display: none; }
  .index .t { font-size: 14px; }
  .desk .big { font-size: 16px; }
  .desk { margin-top: 0; border-inline: 0; }
  .work, .about { grid-template-columns: 1fr; }
  .win { width: 150px; }
  .cal .k { display: none; }
  .cal .d { width: 90px; white-space: normal; }
  .cal td:last-child { width: auto; }
}
@media (prefers-reduced-motion: reduce) { }

.dt { font: var(--fs-xs)/1.6 var(--mono); font-variant-numeric: tabular-nums; }
#app > .box { margin: 32px 24px 48px; padding: 8px 28px 20px; border: 1px solid transparent; }
@media (min-width: 1228px) { #app > .box { margin-inline: auto; max-width: var(--max); } }
#app > .box-w { border-color: var(--line); border: none;}
.box .filters { padding: 16px 0 12px; }
.box .index li a, .box .index li .nl { padding-left: 0; padding-right: 0; }
.box .index li a:hover { padding-left: 8px; padding-right: 8px; margin: 0 -8px; }
.box .index li:last-child a, .box .index li:last-child .nl { border-bottom: 0; }
.work.box { padding-top: 28px; padding-bottom: 28px; }
.about.box { padding-top: 28px; padding-bottom: 28px; }
@media (max-width: 760px) { #app > .box { margin: 16px 0 32px; padding: 4px 16px 12px; border-inline: 0; } .work.box, .about.box { padding-top: 16px; } }

html, body { overflow-x: clip; }
/* Contain the home artwork, including rotated windows, on narrow screens. */
body[data-page="home"] #app { width: 100%; overflow-x: clip; }
@media (max-width: 760px) {
  body[data-page="home"] { overflow-x: hidden; }
  body[data-page="home"] .desk { width: 100%; max-width: 100%; }
}
.desk { touch-action: none; }
.win { touch-action: none; user-select: none; -webkit-user-select: none; }
.win img { -webkit-user-drag: none; pointer-events: none; }

