/* andrewcorrell.com — shared styles */
:root{
  --paper:#EDF0EB;      /* pale sage paper */
  --paper-2:#E2E7E1;
  --ink:#1A2B2F;        /* deep slate-teal ink */
  --muted:#55666A;
  --rule:#C5CFC8;
  --wigeon:#1E6B57;     /* the green eye-stripe of a wigeon */
  --wigeon-deep:#154D3F;
  --blush:#B8687A;      /* a wigeon's rosy breast */
  --serif:"Source Serif 4",Georgia,serif;
  --sans:"Schibsted Grotesk",system-ui,sans-serif;
  --measure:38rem;
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{background:var(--paper);color:var(--ink);font:400 1.125rem/1.7 var(--serif);
  font-optical-sizing:auto;-webkit-font-smoothing:antialiased}
a{color:var(--wigeon);text-decoration-thickness:1px;text-underline-offset:.18em}
a:hover{color:var(--wigeon-deep);text-decoration-thickness:2px}
:focus-visible{outline:2px solid var(--blush);outline-offset:3px;border-radius:2px}
::selection{background:#CFE3DA}

.wrap{max-width:68rem;margin:0 auto;padding:0 1.5rem}

/* ---------- top bar ---------- */
.top{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;flex-wrap:wrap;
  padding:1.6rem 0 0;font-family:var(--sans);font-size:.95rem}
.top .me{font-weight:600;color:var(--ink);text-decoration:none;letter-spacing:-.01em}
.top nav{display:flex;gap:1.4rem;flex-wrap:wrap}
.top nav a{color:var(--muted);text-decoration:none}
.top nav a:hover{color:var(--ink)}

/* ---------- hero ---------- */
.hero{padding:4.5rem 0 1rem}
.hero h1{font-family:var(--sans);font-weight:700;letter-spacing:-.045em;line-height:.92;
  font-size:clamp(3.4rem,11vw,8.4rem);max-width:12ch}
.hero .intro{display:grid;grid-template-columns:minmax(0,var(--measure)) auto;gap:2.5rem;
  align-items:end;margin-top:2.2rem}
.hero .intro p{font-size:clamp(1.15rem,2vw,1.35rem);line-height:1.55;color:var(--ink)}
.hero .intro p + p{margin-top:.9rem;color:var(--muted);font-size:1.08rem}
.portrait{width:132px;height:176px;object-fit:cover;object-position:50% 18%;border-radius:66px 66px 10px 10px;
  filter:saturate(.85);display:block}

/* journey map (drawn by tools/journey-map.py) */
.journey{margin:3rem 0 0;position:relative}
.journey svg{width:100%;height:auto;display:block;overflow:visible}
.journey .ink{fill:none;stroke:var(--ink);stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;opacity:.5}
.journey .terrain{opacity:.42}
.journey .water-band{fill:none;stroke:#D6E5DF;stroke-width:9;stroke-linecap:round}
.journey .water{fill:none;stroke:#8DB3AA;stroke-width:1.4;stroke-linecap:round}
.journey .water-fill{fill:#D3E2DC;stroke:#8DB3AA;stroke-width:1}
.journey .duck{fill:var(--ink);stroke:var(--ink);stroke-width:.8;opacity:.55}
.journey .trail{fill:none;stroke:var(--wigeon);stroke-width:2.6;stroke-dasharray:7 7;stroke-linecap:round}
.journey .trail-mask{fill:none;stroke:#fff;stroke-width:12}
.journey .ahead{fill:none;stroke:var(--wigeon);stroke-width:2.2;stroke-dasharray:.5 8;stroke-linecap:round;opacity:.45}
.journey .flag{fill:var(--blush)}
.journey .needle{fill:var(--blush);opacity:.75}
.journey .smoke{fill:none;stroke:var(--muted);stroke-width:1;stroke-linecap:round;opacity:.45}
.journey .dot{fill:var(--paper);stroke:var(--blush);stroke-width:2.4}
.journey text{paint-order:stroke;stroke:var(--paper);stroke-width:6px;stroke-linejoin:round}
.journey .yr{font-family:var(--sans);font-size:12px;font-weight:600;letter-spacing:.09em;fill:var(--muted)}
.journey .nm{font-family:var(--serif);font-style:italic;font-size:18px;fill:var(--ink)}
.journey .shadow{fill:var(--ink);opacity:.14}
.journey .fig,.journey .leg{fill:none;stroke:var(--ink);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.journey .head,.journey .pack{fill:var(--ink)}
.journey figcaption{font-family:var(--sans);font-size:.88rem;color:var(--muted);margin-top:.6rem;max-width:46rem}
.journey .replay{font:inherit;color:var(--wigeon);background:none;border:0;padding:0;margin-left:.35rem;cursor:pointer;
  text-decoration:underline;text-underline-offset:.18em;text-decoration-thickness:1px}
.journey .replay:hover{color:var(--wigeon-deep)}
.journey-mobile{display:none}

/* ---------- sections ---------- */
.sec{display:grid;grid-template-columns:13rem minmax(0,1fr);gap:2rem;padding:4.2rem 0;border-top:1px solid var(--rule)}
.sec:first-of-type{border-top:0}
.sec > h2{font-family:var(--sans);font-weight:600;font-size:1.3rem;letter-spacing:-.015em;line-height:1.3;
  position:sticky;top:1.5rem;align-self:start}
.sec .body{max-width:var(--measure)}
.sec .lede{margin-bottom:1.8rem}
.sec .body > p + p{margin-top:1rem}

/* dated entries */
.entries{list-style:none}
.entries li{display:grid;grid-template-columns:3.6rem minmax(0,1fr);gap:1rem;padding:.85rem 0;border-top:1px solid var(--rule)}
.entries li:first-child{border-top:0;padding-top:0}
.entries .when{font-family:var(--sans);font-size:.92rem;font-weight:600;color:var(--muted);padding-top:.15rem;
  font-variant-numeric:tabular-nums}
.entries .what{line-height:1.5}
.entries .what b{font-weight:600}
.entries .where{display:block;color:var(--muted);font-size:.98rem;margin-top:.15rem}

/* things built: whole-tile links */
.built{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}

/* curiosities */
.odd{list-style:none;counter-reset:none}
.odd li{padding:.8rem 0 .8rem 1.6rem;position:relative;border-top:1px solid var(--rule)}
.odd li:first-child{border-top:0;padding-top:0}
.odd li::before{content:"";position:absolute;left:0;top:1.45rem;width:.55rem;height:.55rem;border-radius:50%;
  border:2px solid var(--blush)}
.odd li:first-child::before{top:.65rem}

.contact p{font-size:1.25rem}

footer{border-top:1px solid var(--rule);padding:2rem 0 3rem;font-family:var(--sans);font-size:.88rem;color:var(--muted);
  display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap}
footer a{color:var(--muted)}

/* videos */
.vids{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.6rem 1.4rem}
.vids .vid{display:block;color:var(--ink);text-decoration:none}
.vids .thumb{display:block;position:relative;aspect-ratio:16/9;border-radius:8px;overflow:hidden;background:var(--paper-2);
  border:1px solid var(--rule);margin-bottom:.6rem}
.vids .thumb img{display:block;width:100%;height:100%;object-fit:cover;filter:saturate(.85);transition:filter .3s,transform .5s}
.vids .thumb iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.vids .play{position:absolute;left:.6rem;bottom:.6rem;width:2rem;height:2rem;border-radius:50%;background:var(--paper);
  box-shadow:0 1px 4px rgba(26,43,47,.25)}
.vids .play::after{content:"";position:absolute;left:54%;top:50%;transform:translate(-50%,-50%);
  border-style:solid;border-width:.36rem 0 .36rem .6rem;border-color:transparent transparent transparent var(--wigeon)}
.vids .vid:hover .thumb img,.vids .vid:focus-visible .thumb img{filter:none;transform:scale(1.03)}
.vids b{display:block;font-family:var(--sans);font-weight:600;font-size:.98rem;line-height:1.35;letter-spacing:-.01em}
.vids .vid:hover b{color:var(--wigeon)}
.vids .where{display:block;font-family:var(--sans);font-size:.85rem;color:var(--muted);margin-top:.15rem}
@media (max-width:820px){.vids{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:420px){.vids{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){.vids .thumb img{transition:none}.vids .vid:hover .thumb img{transform:none}}

.article.videos-page{max-width:60rem}
.videos-page .note{background:none;padding:0;margin-bottom:1.2rem}
.videos-page h2{font-size:1.3rem;margin-top:3rem;padding-top:1.6rem;border-top:1px solid var(--rule)}
.videos-page .vids{margin:0 0 1rem}
.videos-page .vids li{margin:0}
/* ---------- article pages ---------- */
.article{max-width:var(--measure);margin:0 auto;padding:4.5rem 0 4rem}
.article .kicker{font-family:var(--sans);font-size:.95rem;color:var(--muted)}
.article h1{font-family:var(--sans);font-weight:700;letter-spacing:-.035em;line-height:1.02;
  font-size:clamp(2.3rem,6vw,3.6rem);margin:.6rem 0 2.2rem}
.article p{margin-bottom:1.15rem;line-height:1.75}
.article .note{font-family:var(--sans);font-size:.95rem;color:var(--muted);background:var(--paper-2);
  padding:1rem 1.2rem;border-radius:8px;margin-bottom:2.2rem;line-height:1.55}
.article h2{font-family:var(--sans);font-weight:600;font-size:1.15rem;margin:2.4rem 0 1rem}
.article .refs p{font-size:.95rem;line-height:1.55;padding-left:1.6rem;text-indent:-1.6rem;margin-bottom:.7rem;overflow-wrap:anywhere}
.article h3{font-family:var(--sans);font-weight:600;font-size:1.02rem;margin:2rem 0 .8rem}
.article ul,.article ol{margin:0 0 1.15rem 1.4rem;line-height:1.7}
.article li{margin-bottom:.45rem}
.article figure{margin:1.8rem 0}
.article figure img{display:block;max-width:100%;height:auto;border-radius:8px}
.article .video{position:relative;aspect-ratio:16/9;margin:1.8rem 0}
.article .video iframe{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:8px}
.article p,.article li{overflow-wrap:break-word}
.back{font-family:var(--sans);font-size:.95rem}

/* ---------- responsive ---------- */
@media (max-width:820px){
  .sec{grid-template-columns:1fr;gap:1.2rem;padding:3.2rem 0}
  .sec > h2{position:static}
  .built{grid-template-columns:1fr}
  .hero .intro{grid-template-columns:1fr;gap:1.6rem}
  .portrait{order:-1;width:104px;height:138px}
  .journey-desktop{display:none}
  .journey-mobile{display:block;max-width:26rem;margin:0 auto}
}
@media (max-width:420px){
  body{font-size:1.06rem}
  .entries li{grid-template-columns:1fr;gap:.1rem}
}

/* ================= links people can actually see ================= */
.top nav a[aria-current="page"]{color:var(--ink);box-shadow:inset 0 -2px 0 var(--blush)}
.pill{display:inline-flex;align-items:center;gap:.35em;font-family:var(--sans);font-size:.86rem;font-weight:600;line-height:1.2;
  color:var(--wigeon-deep);background:#DCEAE3;border:1.5px solid rgba(30,107,87,.28);border-radius:999px;padding:.4em .85em;
  text-decoration:none;transition:background .2s,color .2s,border-color .2s,transform .2s}
.pill:hover{background:var(--wigeon);border-color:var(--wigeon);color:#fff;transform:translateY(-1px)}
.pill-vid::before{content:"\25B6";font-size:.7em}
.pill-ext::after,.pill-pdf::after,.pill-ppt::after{content:"↗";transition:transform .2s}
.pill:hover::after{transform:translate(2px,-2px)}
.lede-links{margin:-.8rem 0 1.8rem;display:flex;flex-wrap:wrap;gap:.5rem}
.where-links{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.45rem}
.sec .body p a:not(.pill),.article p a:not(.pill),.contact a,.sj-text a{color:var(--wigeon-deep);font-weight:600;text-decoration:none;
  background:linear-gradient(#CFE3DA,#CFE3DA) 0 100%/100% .42em no-repeat;transition:background-size .25s ease}
.sec .body p a:not(.pill):hover,.article p a:not(.pill):hover,.contact a:hover{background-size:100% 100%}
.entries .what > a{text-decoration:none}
.entries .what > a b{color:var(--wigeon-deep);background:linear-gradient(#D7E7E0,#D7E7E0) 0 100%/100% .4em no-repeat;
  transition:background-size .25s ease}
.entries .what > a b::after{content:" →";font-family:var(--sans);font-weight:600;color:var(--blush);display:inline-block;transition:transform .2s}
.entries .what > a:hover b{background-size:100% 100%}
.entries .what > a:hover b::after{transform:translateX(3px)}

/* project tiles */
.tile{position:relative;display:flex;flex-direction:column;gap:.35rem;height:100%;padding:1.1rem 1.2rem 1rem;border-radius:14px;
  background:#F5F7F3;border:1px solid var(--rule);color:var(--ink);text-decoration:none;overflow:hidden;
  transition:transform .3s cubic-bezier(.22,.61,.36,1),box-shadow .3s,border-color .3s}
.tile::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(var(--wigeon),var(--blush));
  transform:scaleY(.25);transform-origin:top;transition:transform .35s cubic-bezier(.22,.61,.36,1)}
.tile-k{font-family:var(--sans);font-size:.74rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--blush)}
.tile h3{font-family:var(--sans);font-weight:700;font-size:1.18rem;letter-spacing:-.015em}
.tile p{font-size:.98rem;line-height:1.5;color:var(--muted)}
.tile-go{margin-top:auto;padding-top:.5rem;font-family:var(--sans);font-size:.86rem;font-weight:600;color:var(--wigeon-deep)}
.tile-go span{display:inline-block;transition:transform .2s}
.tile:hover{transform:translateY(-3px);box-shadow:0 14px 28px -18px rgba(26,43,47,.55);border-color:rgba(30,107,87,.4)}
.tile:hover::before{transform:none}
.tile:hover .tile-go span{transform:translate(3px,-3px)}

/* "more to explore" doors */
.doors{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.door{position:relative;display:flex;flex-direction:column;gap:.4rem;height:100%;padding:1.3rem 1.3rem 3.4rem;border-radius:16px;
  color:#F1F6F2;text-decoration:none;background:var(--wigeon);overflow:hidden;
  transition:transform .3s cubic-bezier(.22,.61,.36,1),box-shadow .3s}
.doors li:nth-child(2) .door{background:#7E4A57}
.doors li:nth-child(3) .door{background:#2E4A50}
.door::after{content:"";position:absolute;right:-30px;top:-30px;width:120px;height:120px;border-radius:50%;
  background:rgba(255,255,255,.08);transition:transform .5s cubic-bezier(.22,.61,.36,1)}
.door-k{font-family:var(--sans);font-size:.74rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;opacity:.75}
.door b{font-family:var(--sans);font-size:1.2rem;letter-spacing:-.015em;line-height:1.25}
.door-s{font-size:.95rem;line-height:1.45;opacity:.85}
.door-go{position:absolute;left:1.3rem;bottom:1rem;font-family:var(--sans);font-size:1.3rem;transition:transform .25s}
.door:hover{transform:translateY(-4px) rotate(-.4deg);box-shadow:0 18px 30px -18px rgba(26,43,47,.7)}
.door:hover::after{transform:scale(1.8)}
.door:hover .door-go{transform:translateX(6px)}

/* ================= published research: folders ================= */
.papers{list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(15.5rem,1fr));gap:2.4rem 1.6rem}
.paper{display:flex;flex-direction:column}
.folder{position:relative;aspect-ratio:318/320;min-height:16rem;perspective:1200px;cursor:pointer;margin-top:.6rem;--sp:cubic-bezier(.34,1.42,.64,1)}
.folder > span{position:absolute;display:block}
.f-back{inset:6% 4% 4% 4%;border-radius:18px;background:linear-gradient(165deg,var(--fd),color-mix(in srgb,var(--fd) 82%,#000));
  box-shadow:0 14px 28px rgba(61,41,20,.22)}
.f-tab{top:1%;left:10%;width:40%;height:13%;border-radius:12px 12px 0 0;background:var(--fd);
  font-family:var(--sans);font-size:.72rem;font-weight:700;letter-spacing:.08em;color:var(--fi);padding:.35rem .8rem;opacity:.95}
.f-page{left:10%;right:10%;top:14%;bottom:18%;border-radius:12px;transform-style:preserve-3d;z-index:1;transform-origin:50% 90%;
  transform:translateY(4px);transition:transform .55s var(--sp),left .5s var(--sp),right .5s var(--sp),top .5s var(--sp),bottom .5s var(--sp),box-shadow .4s}
.pg{position:absolute;inset:0;display:flex;flex-direction:column;gap:.45rem;padding:.95rem .95rem .8rem;border-radius:12px;
  background:linear-gradient(180deg,#FFFEFA,#F7F1E6);border:1px solid rgba(61,41,20,.1);color:var(--fi);
  backface-visibility:hidden;-webkit-backface-visibility:hidden;overflow:hidden}
.pg-back{transform:rotateY(180deg)}
.pg-k{font-family:var(--sans);font-size:.66rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;opacity:.7}
.pg-t{font-family:var(--sans);font-size:.92rem;font-weight:650;line-height:1.3;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.pg-s{font-family:var(--sans);font-size:.74rem;opacity:.65;line-height:1.35}
.pg-b{font-size:.9rem;line-height:1.5;overflow:auto}
.pg-h{margin-top:auto;font-family:var(--sans);font-size:.66rem;opacity:.5}
.f-front{left:4%;right:4%;bottom:4%;height:62%;border-radius:16px;z-index:2;padding:1rem 1.1rem 1.05rem;color:var(--fi);
  display:flex;flex-direction:column;justify-content:flex-end;
  background:linear-gradient(165deg,color-mix(in srgb,var(--fa) 88%,#fff),var(--fa) 45%,color-mix(in srgb,var(--fa) 90%,#000)),
    repeating-linear-gradient(18deg,transparent 0 3px,rgba(61,41,20,.03) 3px 4px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35);transition:height .55s var(--sp),transform .55s var(--sp),opacity .3s}
.ff-k{font-family:var(--sans);font-size:.68rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;opacity:.7}
.ff-t{font-family:var(--sans);font-size:.98rem;font-weight:650;line-height:1.25;margin-top:.25rem;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ff-s{font-family:var(--sans);font-size:.72rem;opacity:.6;margin-top:.35rem}
.f-stamp{right:8%;top:20%;z-index:4;background:rgba(255,250,240,.96);color:var(--fi);font-family:var(--sans);font-size:.62rem;font-weight:800;
  letter-spacing:.06em;text-transform:uppercase;padding:.35rem .5rem;border-radius:6px;transform:rotate(-6deg);
  box-shadow:0 4px 10px rgba(61,41,20,.16);border:1px solid rgba(61,41,20,.1);transition:opacity .25s,transform .25s}
.folder-hit{position:absolute;inset:0;z-index:6;background:none;border:0;cursor:pointer;border-radius:18px}
.folder-hit:focus-visible{outline:2px solid var(--blush);outline-offset:4px}
.folder:hover .f-page{transform:translate(6px,-10px) rotate(6deg);box-shadow:0 6px 16px rgba(61,41,20,.14)}
.folder[data-phase="open"] .f-page{z-index:3;transform:translate(8px,-38px) rotate(4deg);box-shadow:0 -4px 8px rgba(61,41,20,.12),0 -14px 28px rgba(61,41,20,.16)}
.folder[data-phase="open"] .f-front{height:40%;transform:translateY(6px)}
.folder[data-phase="flipped"] .f-page{z-index:3;left:4%;right:4%;top:0;bottom:4%;transform:rotateY(180deg);transition-duration:.75s}
.folder[data-phase="flipped"] .f-front{height:14%;opacity:.9}
.folder[data-phase="flipped"] .ff-t,.folder[data-phase="flipped"] .ff-s{display:none}
.folder[data-phase="open"] .ff-t{-webkit-line-clamp:1}
.folder[data-phase="open"] .ff-s{display:none}
.folder:not([data-phase="closed"]) .f-stamp{opacity:0;transform:rotate(-6deg) scale(.85)}
.paper-auth{font-family:var(--sans);font-size:.84rem;color:var(--muted);margin-top:.7rem;line-height:1.4}
.paper-links{display:flex;flex-wrap:wrap;gap:.45rem;margin-top:.55rem}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ================= writing page ================= */
.article.writing-page{max-width:44rem}
.filters{display:flex;flex-wrap:wrap;gap:.5rem;margin:1.6rem 0 .4rem}
.chip{font-family:var(--sans);font-size:.88rem;font-weight:600;color:var(--ink);background:#F5F7F3;border:1.5px solid var(--rule);
  border-radius:999px;padding:.42em .95em;cursor:pointer;transition:background .2s,color .2s,border-color .2s,transform .2s}
.chip span{font-weight:500;color:var(--muted);margin-left:.15em}
.chip:hover{border-color:var(--wigeon);transform:translateY(-1px)}
.chip[aria-pressed="true"]{background:var(--wigeon);border-color:var(--wigeon);color:#fff}
.chip[aria-pressed="true"] span{color:#CFE3DA}
.wgroup{margin-top:2.6rem}
.wgroup h2{margin-top:0}
.wgroup .note{background:none;padding:0;margin-bottom:1.2rem}
.wgroup[hidden]{display:none}

/* ================= journey page ================= */
.sj{padding:4rem 0 3rem}
.sj-head{max-width:46rem}
.sj-head h1{font-family:var(--sans);font-weight:700;letter-spacing:-.04em;line-height:.98;font-size:clamp(2.6rem,7vw,5rem);margin:.6rem 0 1.4rem}
.sj-head .lede{font-size:1.2rem;color:var(--muted)}
.sj-track{position:relative;margin-top:3.2rem;padding-left:4.5rem}
.sj-rail{position:absolute;left:1.6rem;top:0;bottom:0;width:4px;border-radius:2px;
  background:repeating-linear-gradient(var(--rule) 0 8px,transparent 8px 14px)}
.sj-fill{position:absolute;left:0;top:0;width:100%;height:calc(var(--p,1) * 100%);border-radius:2px;background:linear-gradient(var(--wigeon),var(--blush))}
.sj-walker{position:absolute;left:50%;top:calc(var(--p,1) * 100%);width:18px;height:18px;margin:-9px 0 0 -9px;border-radius:50%;
  background:var(--paper);border:3px solid var(--blush);box-shadow:0 0 0 6px rgba(184,104,122,.15)}
.sj-stop{position:relative;display:grid;grid-template-columns:8.5rem minmax(0,1fr);gap:2rem;padding:2.4rem 0 3.4rem}
.sj-stop::before{content:"";position:absolute;left:-3.25rem;top:3.6rem;width:14px;height:14px;border-radius:50%;
  background:var(--paper);border:3px solid var(--wigeon)}
.crest{width:100%;height:auto;display:block;filter:drop-shadow(0 10px 14px rgba(26,43,47,.18))}
.cr-shield{fill:var(--c)}
.cr-inner{fill:none;stroke:rgba(255,255,255,.55);stroke-width:2;stroke-dasharray:4 4}
.cr-ribbon{fill:color-mix(in srgb,var(--c) 70%,#000)}
.cr-mono{font-family:var(--serif);font-style:italic;font-size:46px;fill:#fff}
.cr-icon path{fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cr-icon .cr-dot{fill:#fff}
.sj-crest{position:sticky;top:5rem;align-self:start}
.sj-when{display:flex;flex-wrap:wrap;gap:.4rem .9rem;font-family:var(--sans);font-size:.86rem;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;color:var(--blush)}
.sj-pin{color:var(--muted);font-weight:600}
.sj-pin::before{content:"";display:inline-block;width:.55em;height:.55em;margin-right:.4em;border-radius:50% 50% 50% 0;
  background:var(--muted);transform:rotate(-45deg)}
.sj-card h2{font-family:var(--sans);font-weight:700;font-size:clamp(1.6rem,3.4vw,2.3rem);letter-spacing:-.03em;line-height:1.1;margin:.45rem 0 .8rem}
.sj-text{font-size:1.12rem;line-height:1.65;max-width:40rem}
.sj-chips{list-style:none;display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1.3rem}
.sj-chips li{font-family:var(--sans);font-size:.88rem;font-weight:500;background:#F5F7F3;border:1px solid var(--rule);border-radius:999px;padding:.4em .85em}
.sj-chips li:has(a){padding:0;border:0;background:none}
.chip-link{display:inline-block;font-weight:600;color:var(--wigeon-deep);background:#DCEAE3;border:1.5px solid rgba(30,107,87,.28);
  border-radius:999px;padding:.38em .85em;text-decoration:none;transition:background .2s,color .2s,transform .2s}
.chip-link:hover{background:var(--wigeon);color:#fff;transform:translateY(-1px)}
.sj-sub{font-family:var(--sans);font-weight:600;font-size:1.05rem;margin:2.2rem 0 1rem}
.courses{list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(11.5rem,1fr));gap:.75rem}
.cc{position:relative;display:flex;flex-direction:column;gap:.3rem;height:100%;min-height:6.6rem;padding:.8rem .85rem;border-radius:10px;
  background:#FFFEFA;border:1px solid var(--rule);color:var(--ink);text-decoration:none;
  box-shadow:0 1px 0 var(--rule);background-image:repeating-linear-gradient(transparent 0 21px,rgba(30,107,87,.08) 21px 22px);
  background-position:0 34px;transition:transform .25s cubic-bezier(.22,.61,.36,1),box-shadow .25s}
.cc::before{content:"";position:absolute;left:0;top:0;right:0;height:5px;border-radius:10px 10px 0 0;background:var(--dc,var(--muted))}
.cc-bio{--dc:#1E6B57}.cc-sci{--dc:#3F6F8C}.cc-phl{--dc:#7E4A57}.cc-eng{--dc:#B8893F}.cc-rel{--dc:#B8687A}.cc-art{--dc:#55666A}
.cc-code{font-family:var(--sans);font-size:.72rem;font-weight:700;letter-spacing:.08em;color:var(--dc)}
.cc-name{font-family:var(--serif);font-size:1rem;line-height:1.3}
.cc-read{margin-top:auto;font-family:var(--sans);font-size:.76rem;font-weight:600;color:var(--wigeon-deep)}
a.cc:hover{transform:translateY(-3px) rotate(-.6deg);box-shadow:0 12px 22px -16px rgba(26,43,47,.6)}
.sj-end{padding:1rem 0 0;font-family:var(--sans)}
.sj-end p{display:flex;flex-wrap:wrap;align-items:center;gap:.8rem;color:var(--muted)}

@media (max-width:820px){
  .doors{grid-template-columns:1fr}
  .sj-track{padding-left:2.4rem}
  .sj-rail{left:.55rem}
  .sj-stop{grid-template-columns:1fr;gap:1rem}
  .sj-stop::before{left:-2.25rem}
  .sj-crest{position:static;width:6.5rem}
}
@media (max-width:620px){
  .built{grid-template-columns:1fr}
}

/* screenshots on project tiles */
.tile-shot{display:block;margin:-1.1rem -1.2rem .6rem;aspect-ratio:16/10;overflow:hidden;background:var(--paper-2);border-bottom:1px solid var(--rule)}
.tile-shot img{display:block;width:100%;height:100%;object-fit:cover;object-position:top center;
  transition:transform .6s cubic-bezier(.22,.61,.36,1),filter .3s;filter:saturate(.9)}
.tile:hover .tile-shot img{transform:scale(1.045);filter:none}

/* dropdowns for longer lists */
details.more{margin-top:1rem;border-top:1px solid var(--rule)}
details.more > summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:.55rem;margin-top:1rem;
  font-family:var(--sans);font-size:.92rem;font-weight:600;color:var(--wigeon-deep);background:#F5F7F3;
  border:1.5px solid var(--rule);border-radius:999px;padding:.5em 1em;transition:background .2s,border-color .2s,color .2s}
details.more > summary::-webkit-details-marker{display:none}
details.more > summary::before{content:"";width:.5em;height:.5em;border-right:2px solid currentColor;border-bottom:2px solid currentColor;
  transform:rotate(45deg) translate(-1px,-1px);transition:transform .25s}
details.more[open] > summary::before{transform:rotate(-135deg) translate(-1px,-1px)}
details.more > summary span{font-weight:500;color:var(--muted)}
details.more > summary:hover{border-color:var(--wigeon);background:#E7F0EB}
details.more[open] > summary{background:var(--wigeon);border-color:var(--wigeon);color:#fff}
details.more[open] > summary span{color:#CFE3DA}
.more-body{padding-top:1.3rem}
details.more-vids{border-top:0;margin-top:2rem}

/* talks: a little stage per talk */
.entries.talks li{grid-template-columns:7.4rem minmax(0,1fr);align-items:start;gap:1.2rem}
.stage{display:flex;flex-direction:column;align-items:center;gap:.15rem}
.stage .when{padding-top:0}
.stg{width:7rem;height:auto;overflow:visible}
.stg-floor{stroke:var(--rule);stroke-width:1.5;stroke-linecap:round}
.stg-skin{fill:#E8C9A8;stroke:var(--ink);stroke-width:1.2}
.stg-body{fill:var(--ink)}
.stg-arm,.stg-mic,.stg-legs{fill:none;stroke:var(--ink);stroke-width:2.4;stroke-linecap:round}
.stg-mic{stroke-width:1.4}
.stg-micb{fill:var(--ink)}
.stg-desk{fill:var(--wigeon)}
.stg-top{fill:var(--wigeon-deep)}
.stg-board{fill:#FFFEFA;stroke:var(--ink);stroke-width:1.4}
.stg-bar.a{fill:var(--wigeon)}.stg-bar.b{fill:#DCEAE3}.stg-bar.c{fill:var(--blush);opacity:.7}.stg-bar.d{fill:#E8D3A8}
.stg-bubble rect,.stg-bubble path{fill:#FFFEFA;stroke:var(--ink);stroke-width:1.1;stroke-linejoin:round}
.stg-bubble circle{fill:var(--blush)}
.stg-waves path{fill:none;stroke:var(--wigeon);stroke-width:1.8;stroke-linecap:round}
.stg-panel .p2 .stg-body{fill:var(--wigeon-deep)}
.stg-panel .p3 .stg-body{fill:#7E4A57}
@media (max-width:420px){
  .entries.talks li{grid-template-columns:4.4rem minmax(0,1fr);gap:.8rem}
  .stg{width:4.2rem}
}
