/* Devan's home page. Type: Allo (Josh Puckett, OFL) for everything typeset, and
   "Devan Hand" (built from Devan's own handwriting, see scripts/devan-hand/) for the scribbles. */

@font-face {
  font-family: "Allo";
  src: url("fonts/AlloVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Devan Hand";
  src: url("fonts/devan-hand.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fbfaf6;
  --card: #ffffff;
  --ink: #1d1b1a;
  --soft: rgba(29, 27, 26, 0.68);
  --quiet: rgba(29, 27, 26, 0.46);
  --faint: rgba(29, 27, 26, 0.1);
  --wash: rgba(29, 27, 26, 0.045);
  --red: #ee4035;
  --orange: #ff8a1f;
  --yellow: #ffc928;
  --green: #17a862;
  --teal: #0fa99b;
  --blue: #2a73f0;
  --purple: #7556f5;
  --pink: #ea3f8c;
  --hl: #ffe26a;
  --drift: 0.5;
  --shadow: 0 1px 2px rgba(40, 30, 20, 0.06), 0 14px 34px -18px rgba(40, 30, 20, 0.35);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #131419;
    --card: #1c1e26;
    --ink: #f3f0e9;
    --soft: rgba(243, 240, 233, 0.72);
    --quiet: rgba(243, 240, 233, 0.5);
    --faint: rgba(243, 240, 233, 0.13);
    --wash: rgba(243, 240, 233, 0.06);
    --red: #ff6257;
    --blue: #5b98ff;
    --purple: #9a82ff;
    --green: #35c98a;
    --teal: #2fcabb;
    --pink: #ff64a8;
    --hl: #7a6410;
    --drift: 0.32;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 36px -18px rgba(0, 0, 0, 0.9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #131419;
  --card: #1c1e26;
  --ink: #f3f0e9;
  --soft: rgba(243, 240, 233, 0.72);
  --quiet: rgba(243, 240, 233, 0.5);
  --faint: rgba(243, 240, 233, 0.13);
  --wash: rgba(243, 240, 233, 0.06);
  --red: #ff6257;
  --blue: #5b98ff;
  --purple: #9a82ff;
  --green: #35c98a;
  --teal: #2fcabb;
  --pink: #ff64a8;
  --hl: #7a6410;
  --drift: 0.32;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 36px -18px rgba(0, 0, 0, 0.9);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font: 430 16.5px/1.62 "Allo", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .4 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2.500px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.hand {
  font-family: "Devan Hand", "Allo", cursive;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  font-feature-settings: "liga" 1;
}
.ink-red { color: var(--red); font-size: 1.75em; line-height: 0; vertical-align: -0.06em; white-space: nowrap; }

/* ------------------------------------------------------------------ drifting glyphs */
.drift { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.drift span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-size: var(--s);
  font-weight: var(--w, 800);
  line-height: 1;
  color: var(--c);
  opacity: calc(var(--o) * var(--drift));
  filter: blur(var(--b));
  translate: 0 calc(var(--scroll, 0) * var(--depth) * -1px);
  animation: float var(--d) ease-in-out infinite alternate;
  animation-delay: var(--delay);
  will-change: transform;
}
@keyframes float {
  from { transform: translate3d(0, 0, 0) rotate(var(--r0)); }
  to { transform: translate3d(var(--dx), var(--dy), 0) rotate(var(--r1)); }
}

/* ------------------------------------------------------------------ nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 680px;
  margin: 0 auto;
  padding: 14px 20px 18px;
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0 -100vw -14px;
  z-index: -1;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  mask-image: linear-gradient(#000 55%, transparent);
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
}
.brand { font-size: 31px; text-decoration: none; margin-right: auto; padding: 4px 2px; display: inline-block; transition: transform 0.25s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover { transform: rotate(-4deg) scale(1.08); color: var(--red); }
.nav nav { display: flex; gap: clamp(10px, 2.600vw, 18px); font-size: 14.5px; font-weight: 500; }
.nav nav a { text-decoration: none; color: var(--soft); padding: 4px 0; transition: color 0.15s; }
.nav nav a:hover, .nav nav a.here { color: var(--ink); }
.nav nav a.here { text-decoration: underline wavy var(--red); text-underline-offset: 6px; text-decoration-thickness: 1.500px; }
.icon-btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: var(--soft); cursor: pointer; transition: background 0.15s, color 0.15s, transform 0.4s; }
.icon-btn:hover { background: var(--wash); color: var(--ink); transform: rotate(40deg); }
.options { position: relative; }
.panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 230px;
  padding: 14px 14px 12px;
  background: var(--card);
  border: 1px solid var(--faint);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transform-origin: top right;
  animation: pop 0.2s cubic-bezier(.3, 1.4, .5, 1);
}
@keyframes pop { from { opacity: 0; transform: scale(0.92) rotate(2deg); } }
.panel-title { margin: 0 0 10px; font-size: 34px; color: var(--purple); transform: rotate(-3deg); transform-origin: left; }
.switch { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; color: var(--soft); cursor: pointer; }
.switch input { accent-color: var(--purple); width: 16px; height: 16px; margin: 0; }

.seg { display: flex; padding: 3px; border-radius: 999px; background: var(--wash); gap: 2px; }
.seg button { flex: 1; border: 0; background: transparent; border-radius: 999px; padding: 6px 10px; font-size: 13.5px; font-weight: 560; color: var(--soft); cursor: pointer; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.seg button small { font-weight: 500; color: var(--quiet); margin-left: 3px; font-size: 0.9em; }

/* ------------------------------------------------------------------ column */
.col { max-width: 680px; margin: 0 auto; padding: 0 20px 40px; }
section { position: relative; margin-top: clamp(64px, 11vw, 104px); }

/* ------------------------------------------------------------------ hello */
.hello { margin-top: clamp(28px, 7vw, 64px); }
.hi { margin: 0 0 -0.07em -2px; font-size: clamp(56px, 15vw, 86px); color: var(--red); transform: rotate(-5deg); transform-origin: left bottom; width: max-content; }
.name-row { position: relative; }
.bio { position: relative; }
.name {
  margin: 0;
  font-size: clamp(40px, 12vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  white-space: nowrap;
  font-weight: 300;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}
.name .word { display: inline-block; }
.name .l {
  display: inline-block;
  font-weight: var(--w, 300);
  font-variation-settings: "ROND" var(--rd, 50);
  color: color-mix(in oklab, var(--c) calc(var(--k, 0) * 100%), var(--ink));
  animation: wave 5.200s ease-in-out infinite;
  animation-delay: calc(var(--n) * 0.17s - 6s);
}
.name.live .l { animation: none; transition: font-weight 0.18s ease-out, color 0.18s ease-out; }
@keyframes wave {
  0%, 62%, 100% { font-weight: 240; color: var(--ink); font-variation-settings: "ROND" 50; }
  28% { font-weight: 900; color: var(--c); font-variation-settings: "ROND" 100; }
}
.bio { margin-top: 26px; color: var(--soft); }
.bio p { margin: 0 0 15px; }
.bio .lede { font-size: 1.16em; line-height: 1.5; color: var(--ink); font-weight: 480; margin-bottom: 20px; }
.bio em { font-style: normal; font-weight: 560; }

.hello > *, .bio > p { animation: rise 0.7s cubic-bezier(.2, .8, .2, 1) backwards; }
.hello .hi { animation-name: scribble; animation-duration: 0.6s; }
.hello .name-row { animation-delay: 0.15s; }
.bio > p:nth-child(2) { animation-delay: 0.35s; }
.bio > p:nth-child(3) { animation-delay: 0.45s; }
.bio > p:nth-child(4) { animation-delay: 0.55s; }
.bio > p:nth-child(5) { animation-delay: 0.65s; }
.bio > p:nth-child(6) { animation-delay: 0.75s; }
.bio > p:nth-child(7) { animation-delay: 0.85s; }
.hello .note { animation: rise 0.6s 1.3s backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes scribble { from { clip-path: inset(-20% 100% -20% 0); } to { clip-path: inset(-20% -10% -20% 0); } }

/* inline things in the bio */
.chip { color: var(--ink); font-weight: 560; text-decoration: underline; text-decoration-color: var(--faint); text-decoration-thickness: 1.500px; text-underline-offset: 3.500px; position: relative; transition: text-decoration-color 0.15s; }
.chip i {
  display: inline-grid;
  place-items: center;
  width: 1.4em;
  height: 1.4em;
  margin-right: 0.32em;
  border-radius: 0.38em;
  background: var(--c);
  color: #fff;
  font: 800 0.56em/1 "Allo", sans-serif;
  letter-spacing: 0.01em;
  vertical-align: 0.12em;
  transition: transform 0.25s cubic-bezier(.3, 1.8, .5, 1);
}
.chip:hover { text-decoration-color: var(--c); }
.chip:hover i { transform: rotate(-10deg) scale(1.18); }
mark.hl { color: var(--ink); background: linear-gradient(100deg, transparent 0.5%, var(--hl) 3%, var(--hl) 96%, transparent 99.5%); padding: 0.05em 0.3em; margin: 0 -0.1em; border-radius: 0.3em; -webkit-box-decoration-break: clone; box-decoration-break: clone; font-weight: 520; }
.tag { display: inline-block; position: relative; background: var(--c); color: #fff; font-weight: 650; padding: 0 0.5em; border-radius: 0.45em; text-decoration: none; transform: rotate(-1.500deg); transition: transform 0.2s cubic-bezier(.3, 1.8, .5, 1); line-height: 1.45; }
.tag:hover { transform: rotate(1.500deg) scale(1.06); }
.wavy { position: relative; color: var(--ink); font-weight: 520; text-decoration: underline wavy var(--blue); text-decoration-thickness: 1.500px; text-underline-offset: 4px; }
.wavy.alt { text-decoration-color: var(--green); }
.under { color: var(--ink); text-decoration: underline; text-decoration-color: var(--quiet); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color 0.15s, color 0.15s; }
.under:hover { color: var(--blue); text-decoration-color: var(--blue); }

@media (hover: hover) {
  [data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    left: 0;
    bottom: calc(100% + 6px);
    z-index: 5;
    width: max-content;
    max-width: 250px;
    padding: 6px 10px;
    border-radius: 10px;
    background: var(--ink);
    color: var(--paper);
    font: 500 12.5px/1.35 "Allo", sans-serif;
    white-space: normal;
    text-align: left;
    opacity: 0;
    transform: translateY(4px) rotate(-1deg);
    pointer-events: none;
    transition: opacity 0.15s, transform 0.2s cubic-bezier(.3, 1.6, .5, 1);
  }
  [data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transform: none; }
}

/* handwritten margin notes */
.note { position: absolute; margin: 0; display: none; align-items: center; gap: 6px; font-size: 34px; color: var(--blue); white-space: nowrap; pointer-events: none; }
.arrow { flex: none; overflow: visible; }
.arrow path { fill: none; stroke: currentColor; stroke-width: 3.200; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 1120px) {
  .note { display: flex; }
  .note-name { left: 548px; top: 50%; margin-top: -30px; transform: rotate(-5deg); transform-origin: left center; color: var(--purple); align-items: flex-end; gap: 4px; font-size: 40px; }
  .note-name span { margin-bottom: 14px; }
  .note-about { right: calc(100% + 10px); top: 62px; transform: rotate(-7deg); color: var(--teal); flex-direction: column; align-items: flex-end; gap: 2px; }
}
@media (hover: none) { .note-name { display: none; } }

/* ------------------------------------------------------------------ section heads */
.sec-head { margin-bottom: 20px; }
.h { margin: 0; font-size: clamp(50px, 12vw, 66px); color: var(--red); transform: rotate(-2.500deg); transform-origin: left bottom; width: max-content; max-width: 100%; }
#experiments .h { color: var(--blue); }
#research .h { color: var(--green); font-size: clamp(44px, 11vw, 62px); }
#courses .h { color: var(--purple); }
#path .h { color: var(--orange); }
.sec-sub { margin: 10px 0 0; color: var(--soft); }
.mini { margin: 34px 0 8px; font-size: 13px; font-weight: 650; letter-spacing: 0.09em; text-transform: uppercase; color: var(--quiet); }

/* ------------------------------------------------------------------ tiles */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tiles.lead > li:first-child { grid-column: 1 / -1; }
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--faint);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(.2, .9, .3, 1.2), box-shadow 0.3s;
}
.tile:hover, .tile:focus-within { transform: translateY(-4px) rotate(var(--tilt, -0.5deg)); box-shadow: var(--shadow); }
.tile:nth-child(even) { --tilt: 0.5deg; }
.art { position: relative; aspect-ratio: 16 / 10; background: var(--c, var(--blue)); padding: 7% 7% 0; overflow: hidden; }
.art img { width: 100%; height: 100%; object-fit: cover; object-position: top left; border-radius: 9px 9px 0 0; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.45); transform: translateY(5%); transition: transform 0.45s cubic-bezier(.2, .9, .3, 1); }
.tile:hover .art img { transform: translateY(0) scale(1.025); }
.art.bare { display: grid; place-items: center; padding: 8%; }
.art.bare b { font-weight: 900; font-size: clamp(22px, 5vw, 34px); line-height: 1; letter-spacing: -0.02em; color: #fff; text-align: center; text-wrap: balance; }
.badge { position: absolute; top: 9px; right: 9px; z-index: 1; padding: 3px 8px 2px; border-radius: 999px; background: rgba(20, 18, 17, 0.72); color: #fff; font-size: 10.5px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; backdrop-filter: blur(4px); }
.badge.new { background: var(--yellow); color: #1d1b1a; }
.cap { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.cap h3 { margin: 0; font-size: 17px; font-weight: 680; letter-spacing: -0.01em; line-height: 1.25; }
.cap h3 a { text-decoration: none; }
.cap h3 a::after { content: ""; position: absolute; inset: 0; }
.cap h3 .go { display: inline-block; margin-left: 4px; color: var(--quiet); transition: transform 0.2s, color 0.2s; }
.tile:hover .go { transform: translate(2px, -2px); color: var(--ink); }
.cap p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--soft); }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 8px; }
.tags span, .tags a { font-size: 11.5px; font-weight: 600; padding: 2px 8px 1px; border-radius: 999px; background: var(--wash); color: var(--soft); }
.tags a { position: relative; z-index: 1; background: transparent; box-shadow: inset 0 0 0 1.200px var(--faint); color: var(--ink); text-decoration: none; }
.tags a:hover { background: var(--ink); color: var(--paper); }
.tiles.lead > li:first-child .cap h3 { font-size: 21px; }
.tiles.lead > li:first-child .art { aspect-ratio: 16 / 8.500; padding: 5% 9% 0; }
.tiles.lead > li:last-child:nth-child(even) { grid-column: 1 / -1; }
.tiles.lead > li:last-child:nth-child(even) .art { aspect-ratio: 16 / 8.500; padding: 5% 9% 0; }
.cap .credit { font-size: 12.5px; color: var(--quiet); }
.sub-head { margin: 44px 0 16px; }
.sub-head h3 { margin: 0; font-size: 21px; font-weight: 720; letter-spacing: -0.01em; }
.sub-head p { margin: 4px 0 0; color: var(--soft); }
.all-link { display: flex; justify-content: center; margin: 20px 0 0; }
.tile.ghost { min-height: 220px; opacity: 0.5; }
.tiles.small .cap h3 { font-size: 16px; }
.tiles.small .cap p { font-size: 13.5px; }
.tile.extra { display: none; }
.tiles.all .tile.extra { display: flex; }

.more { margin-top: 22px; }
.more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: baseline; gap: 10px; padding: 4px 2px; border-radius: 10px; }
.more summary::-webkit-details-marker { display: none; }
.more-word { font-size: 46px; color: var(--pink); display: inline-block; transform: rotate(-3deg); transition: transform 0.25s cubic-bezier(.3, 1.6, .5, 1); }
.more summary:hover .more-word { transform: rotate(2deg) scale(1.06); }
.more-count { color: var(--soft); font-size: 14.5px; }
.chev { display: inline-block; color: var(--quiet); transition: transform 0.25s; }
.more[open] .chev { transform: rotate(90deg); }
.rows { list-style: none; margin: 10px 0 0; padding: 0; }
.rows li { border-top: 1px dashed var(--faint); }
.rows a { display: flex; align-items: baseline; gap: 10px; padding: 9px 4px; text-decoration: none; border-radius: 8px; transition: background 0.15s, padding 0.2s; }
.rows a:hover { background: var(--wash); padding-left: 10px; }
.rows b { font-weight: 620; }
.rows span { color: var(--soft); font-size: 14px; flex: 1; min-width: 0; }
.rows i { font-style: normal; color: var(--quiet); }

.lucky { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; min-height: 52px; }
.note-lucky { position: static; display: flex; font-size: clamp(27px, 7vw, 33px); color: var(--red); transform: rotate(-3deg); }
.show-all { display: flex; justify-content: center; margin-top: 20px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 8px;
  border-radius: 999px;
  border: 1.600px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  font-weight: 620;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3.500px 0 var(--ink);
  transition: transform 0.12s, box-shadow 0.12s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4.500px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 0.5px 0 var(--ink); }
.btn.primary { background: var(--yellow); color: #1d1b1a; }
.btn.quiet { box-shadow: none; border-color: var(--faint); font-weight: 560; }
.btn.quiet:hover { background: var(--wash); transform: none; box-shadow: none; }
.dice { display: inline-block; color: var(--red); transition: transform 0.5s cubic-bezier(.3, 1.6, .5, 1); }
.btn:hover .dice { transform: rotate(180deg) scale(1.2); }

/* ------------------------------------------------------------------ research */
.books { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.book { position: relative; display: flex; gap: 14px; align-items: stretch; padding: 12px; background: var(--card); border: 1px solid var(--faint); border-radius: 18px; transition: transform 0.3s cubic-bezier(.2, .9, .3, 1.2), box-shadow 0.3s; }
.book:hover { transform: translateY(-3px) rotate(-0.4deg); box-shadow: var(--shadow); }
.cover { flex: none; width: 84px; aspect-ratio: 2 / 3; border-radius: 3px 8px 8px 3px; background: var(--c); color: #fff; padding: 9px 7px 9px 12px; font-weight: 800; font-size: 9.5px; line-height: 1.15; letter-spacing: -0.01em; box-shadow: inset 5px 0 0 rgba(0, 0, 0, 0.18), 0 6px 14px -6px rgba(0, 0, 0, 0.5); display: flex; align-items: flex-end; transition: transform 0.35s cubic-bezier(.3, 1.6, .5, 1); overflow: hidden; }
.book:hover .cover { transform: rotate(-5deg) scale(1.05); }
.book div { min-width: 0; display: flex; flex-direction: column; gap: 3px; justify-content: center; }
.book h3 { margin: 0; font-size: 15.5px; line-height: 1.25; font-weight: 680; }
.book h3 a { text-decoration: none; }
.book h3 a::after { content: ""; position: absolute; inset: 0; }
.book p { margin: 0; font-size: 13px; line-height: 1.4; color: var(--soft); }
.book .meta { color: var(--quiet); font-size: 12px; }

.tabs { width: max-content; max-width: 100%; margin-bottom: 8px; }
.year { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 6px; padding-top: 18px; }
.year + .year { border-top: 1px dashed var(--faint); margin-top: 6px; }
.year > .hand { font-size: 38px; white-space: nowrap; color: var(--green); margin: 2px 0 0; transform: rotate(-4deg); transform-origin: left; position: sticky; top: 84px; align-self: start; }
.year ul { list-style: none; margin: 0; padding: 0; }
.work { padding: 6px 0 14px; }
.work h3 { margin: 0; font-size: 15.5px; font-weight: 620; line-height: 1.38; text-wrap: pretty; }
.work h3 a { text-decoration: underline; text-decoration-color: var(--faint); text-decoration-thickness: 1.500px; text-underline-offset: 3px; transition: text-decoration-color 0.15s; }
.work h3 a:hover { text-decoration-color: var(--green); }
.work h3 a::after { content: " ↗"; color: var(--quiet); font-weight: 500; }
.work p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--soft); }
.work p b { color: var(--ink); font-weight: 650; }
.work .venue { color: var(--quiet); }
.writing { animation: rise 0.35s; }

/* ------------------------------------------------------------------ courses */
.school { margin-top: 22px; }
.school h3 { margin: 0 0 9px; font-size: 16px; font-weight: 660; display: flex; align-items: center; gap: 9px; }
.school h3::before { content: ""; width: 11px; height: 11px; border-radius: 4px; background: var(--c); transform: rotate(12deg); }
.school ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.school li { display: inline-flex; align-items: baseline; gap: 7px; padding: 5px 12px 4px 6px; border-radius: 999px; background: var(--card); border: 1px solid var(--faint); font-size: 14px; transition: transform 0.2s cubic-bezier(.3, 1.8, .5, 1); }
.school li:hover { transform: rotate(-1.500deg) scale(1.03); }
.school code { font: 700 11.5px/1 "Allo", sans-serif; font-feature-settings: "tnum" 1; letter-spacing: 0.02em; padding: 4px 7px 3px; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, transparent); color: color-mix(in srgb, var(--c) 72%, var(--ink)); white-space: nowrap; }

/* ------------------------------------------------------------------ path */
.path { list-style: none; margin: 0; padding: 0; }
.path li { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px dashed var(--faint); align-items: baseline; }
.path li:first-child { border-top: 0; }
.path time, .path .when { font-size: 13.5px; color: var(--quiet); font-feature-settings: "tnum" 1; white-space: nowrap; }
.path b { font-weight: 620; }
.path span { color: var(--soft); }
.path small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--quiet); }
.path .now { color: var(--green); }
.path .now::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent); vertical-align: 1px; }
.members { margin: 0; color: var(--soft); }

/* ------------------------------------------------------------------ contact + footer */
.contact { text-align: center; padding: 8px 0 0; }
.contact .big { font-size: clamp(74px, 19vw, 112px); margin: 0 auto 16px; transform: rotate(-4deg); transform-origin: center; color: var(--red); }
.contact p { margin: 0 auto 18px; max-width: 30em; color: var(--soft); }
.mail { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.sign { font-size: 54px; color: var(--ink); margin: 34px auto 0 !important; transform: rotate(-5deg); width: max-content; }
.colophon { margin-top: 70px; padding-top: 18px; border-top: 1px dashed var(--faint); font-size: 13px; color: var(--quiet); }
.colophon p { margin: 0 0 8px; }
.colophon .under { color: var(--soft); }
.workshop summary { cursor: pointer; width: max-content; }
.workshop #status { margin-top: 8px; }
.key-line { display: block; margin-top: 5px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--faint); }
.dot.on { background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent); }

/* things that drift in as you reach them */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s, transform 0.7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.h.reveal { transform: translateY(10px) rotate(-7deg) scale(0.94); }
.h.reveal.in { transform: rotate(-2.500deg); }
.contact .big.reveal.in { transform: rotate(-4deg); }

/* ------------------------------------------------------------------ small screens */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .tiles { grid-template-columns: 1fr; }
  .tiles.small { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tiles.small .cap { padding: 10px 11px 12px; }
  .tiles.small .cap p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .tiles.small .tags { display: none; }
  .books { grid-template-columns: 1fr; }
  .year { grid-template-columns: 1fr; gap: 0; }
  .year > .hand { font-size: 36px; position: static; margin-bottom: 4px; }
  .path li { grid-template-columns: 1fr; gap: 0; }
  .wide-only { display: none; }
  .brand { font-size: 26px; }
  .nav { gap: 6px; padding: 12px 14px 16px; }
  .nav nav { font-size: 13.5px; gap: 10px; }
  .col { padding: 0 16px 40px; }
  .note-lucky .xtra { display: none; }
  .lucky { gap: 8px; }
  .rows a { flex-wrap: wrap; gap: 2px 10px; }
  .rows span { flex-basis: 100%; order: 3; }
}

/* ------------------------------------------------------------------ stillness */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .h.reveal { transform: rotate(-2.500deg); }
}
:root[data-still] { scroll-behavior: auto; }
:root[data-still] *, :root[data-still] *::before, :root[data-still] *::after { animation: none !important; transition: none !important; }
:root[data-still] .reveal { opacity: 1; transform: none; }
:root[data-still] .h.reveal { transform: rotate(-2.500deg); }
:root[data-still] .drift { display: none; }
