@font-face { font-family: 'Computer Modern'; src: url('/assets/fonts/cmunrm.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Computer Modern'; src: url('/assets/fonts/cmunti.woff') format('woff'); font-style: italic; font-display: swap; }
:root {
  --paper: #09223f; --ink: #fff; --muted: #fff; --line: #ffffff30;
  --accent: #fff; --ml: #73b9ff; --vlsi: #cfdeef;
  --serif: 'Computer Modern', Georgia, serif; --column: 760px; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--serif); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, pre, code { font: inherit; }
button { color: inherit; cursor: pointer; border: 0; background: none; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: #285b91; color: #fff; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 400; }
#stream-canvas, #ripple-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#stream-canvas { z-index: 0; }
#ripple-canvas { z-index: 4; }
main, .site-header, footer { position: relative; z-index: 1; }
.skip { position: fixed; z-index: 10; top: -100px; left: 20px; padding: 12px; background: var(--paper); }
.skip:focus { top: 12px; }
.site-header { max-width: 1280px; padding: 0 5%; height: 88px; margin: auto; display: flex; align-items: center; gap: 30px; }
.wordmark { display: flex; align-items: center; font-size: 29px; font-style: italic; letter-spacing: -1px; }
.water-mark { width: 23px; height: 9px; border: 1px solid var(--accent); border-radius: 50%; margin-right: 12px; }
.site-header nav { display: flex; margin-left: auto; gap: 26px; font-size: 15px; }
.site-header a:hover, .text-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.preferences { display: flex; align-items: center; gap: 17px; border-left: 1px solid var(--line); padding-left: 24px; }
.preferences button { display: flex; align-items: center; gap: 7px; padding: 6px 0; font-size: 14px; }
.motion-symbol { font-size: 24px; line-height: 1; }
.eyebrow { font-size: 12px; letter-spacing: .8px; color: var(--muted); }
.bio-section { padding: 75px 44px 32px; position: relative; }
.bio-content { max-width: var(--column); margin: auto; }
h1 { font-size: clamp(43px, 5.5vw, 74px); line-height: 1.1; letter-spacing: -2px; margin: 18px 0 30px; }
.bio-copy p { margin-bottom: 20px; font-size: 18px; line-height: 1.8; }
.bio-copy a, .about-content p a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.text-link { display: inline-flex; align-items: center; gap: 16px; font-size: 15px; }
.bio-content > .text-link { margin-top: 5px; }
.research { position: relative; padding-bottom: 50px; }
.research-content, .section { max-width: var(--column); width: calc(100% - 88px); margin: auto; }
.filters { display: grid; grid-template-columns: 1fr 1fr 1fr; border-bottom: 1px solid var(--line); gap: 10px; padding-bottom: 22px; }
.filters button { font-size: 17px; padding: 10px 5px; border: 1px solid transparent; border-radius: 4px; }
.filters button.active { border-color: #ffffff70; background: #377dcc30; }
.filters button:hover { background: #377dcc24; }
.filters button span { font-size: 13px; margin-left: 9px; color: var(--muted); }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin: 36px 0 10px; }
h2 { font-size: 41px; line-height: 1.2; letter-spacing: -1px; }
#work-count { font-size: 14px; color: var(--muted); }
.paper { padding: 29px 0; border-bottom: 1px solid var(--line); }
.paper-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.topic-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--ml); }
.topic-dot.vlsi { background: var(--vlsi); }
.paper-top { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.paper h3 { font-size: 28px; line-height: 1.24; }
.paper h3 a:hover { color: var(--accent); }
.paper-arrow { font-size: 24px; }
.paper-authors, .paper-venue { font-size: 16px; color: var(--muted); line-height: 1.65; margin-top: 10px; }
.paper-venue { margin-top: 3px; }
.paper-actions { margin-top: 17px; }
.paper-actions details { margin-top: 9px; }
.paper summary { font-size: 16px; list-style: none; display: inline-flex; align-items: center; gap: 16px; cursor: pointer; }
.paper summary::-webkit-details-marker { display: none; }
.paper summary:after { content: '+'; font-size: 20px; line-height: 1; }
.paper details[open] > summary:after { content: '−'; }
.abstract-basin { position: relative; margin-top: 14px; padding: 24px; border: 1px solid var(--line); border-radius: 6px; }
.abstract-basin p { font-size: 17px; line-height: 1.8; }
.abstract-basin .text-link { font-size: 13px; margin-top: 15px; }
.abstract-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 18px; }
.abstract-tools .text-link { margin: 0; font-size: 15px; }
.copy-bibtex { padding: 6px 12px; border: 1px solid var(--line); border-radius: 4px; font-size: 15px; }
.copy-bibtex:hover { border-color: #ffffff80; background: #ffffff08; }
.copy-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.bibtex-fallback { flex-basis: 100%; width: 100%; min-height: 180px; padding: 12px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); font: 14px/1.5 var(--serif); }
.publication-page .paper-abstract > summary { display: inline-flex; gap: 16px; list-style: none; }
.publication-page .paper-abstract > summary::-webkit-details-marker { display: none; }
.publication-page .paper-abstract > summary::after { content: '+'; }
.publication-page .paper-abstract[open] > summary::after { content: '−'; }
.chicago-citation { padding: 20px 22px 20px 44px; text-indent: -22px; margin-top: 14px; font-size: 16px; line-height: 1.8; border: 1px solid var(--line); border-radius: 6px; overflow-wrap: anywhere; }
.chicago-citation a { text-decoration: underline; text-underline-offset: 3px; }
.section { padding: 70px 0; }
.about { display: grid; grid-template-columns: 210px 1fr; gap: 45px; border-bottom: 1px solid var(--line); }
.portrait-frame { width: 100%; aspect-ratio: 4/5; overflow: hidden; border-radius: 45% 45% 3px 3px; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7); }
.about-content h2 { font-size: 33px; margin-bottom: 22px; }
.about-content p { font-size: 16px; line-height: 1.8; margin-bottom: 18px; }
.personal { border-top: 1px solid var(--line); padding-top: 14px; }
.personal summary { cursor: pointer; display: flex; justify-content: space-between; font-size: 17px; list-style: none; }
.personal summary::-webkit-details-marker { display: none; }
.personal[open] summary { margin-bottom: 20px; }
.personal h3 { font-size: 20px; margin: 20px 0 10px; }
.notes .section-heading { margin: 0 0 30px; align-items: end; }
.notes .eyebrow { margin-bottom: 8px; display: block; }
.note-list > a { display: grid; grid-template-columns: 110px 1fr 20px; align-items: center; gap: 15px; padding: 25px 0; border-top: 1px solid var(--line); }
.note-list > a:last-child { border-bottom: 1px solid var(--line); }
.note-list h3 { font-size: 25px; }
.note-date { font-size: 13px; color: var(--muted); }
.note-tag { display: none; }
footer { padding: 60px max(44px, calc((100% - 760px)/2)) 30px; border-top: 1px solid var(--line); }
.footer-main, .footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 25px; }
.footer-main { padding-bottom: 60px; }
.contact-link { font-size: 25px; border-bottom: 1px solid var(--line); }
.contact-link span { margin-left: 16px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 22px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.footer-bottom > span { margin-right: auto; }
.footer-bottom > div { display: flex; gap: 24px; }
.depth-indicator { position: fixed; z-index: 6; right: 10px; top: 45%; height: 80px; width: 2px; background: var(--line); }
.depth-indicator span { display: block; height: var(--depth, 0%); background: var(--accent); }
.still *, .still *:before, .still *:after { transition: none !important; animation: none !important; }
@media (max-width: 850px) {
  .site-header { gap: 18px; }
  .site-header nav { gap: 18px; }
  .preferences { padding-left: 16px; }
  .bio-section { padding-top: 55px; }
  .bio-copy p { font-size: 17px; }
  .about { grid-template-columns: 175px 1fr; gap: 30px; }
}
@media (max-width: 600px) {
  .site-header { min-height: 100px; height: auto; flex-wrap: wrap; padding: 15px 25px; gap: 8px; }
  .site-header nav { width: 100%; order: 3; justify-content: space-between; padding-top: 6px; font-size: 14px; }
  .preferences { margin-left: auto; border: 0; padding: 0; }
  .preferences button { font-size: 13px; }
  .bio-section { padding: 42px 38px 12px; }
  h1 { font-size: 47px; line-height: 1.04; letter-spacing: -1.3px; margin: 17px 0 25px; }
  .bio-copy p { font-size: 17px; line-height: 1.75; }
  .eyebrow { font-size: 10px; letter-spacing: .3px; }
  .research-content, .section { width: calc(100% - 76px); }
  .filters { gap: 2px; padding-bottom: 16px; }
  .filters button { font-size: 14px; padding: 10px 3px; }
  .filters button span { font-size: 11px; display: block; margin: 2px 0 0; }
  h2 { font-size: 34px; }
  #work-count { font-size: 12px; }
  .section-heading { gap: 12px; }
  .paper h3 { font-size: 25px; }
  .paper-top { gap: 10px; }
  .paper-authors, .paper-venue { font-size: 16px; }
  .abstract-basin { padding: 16px; margin-left: -10px; margin-right: -10px; }
  .abstract-basin p { font-size: 16px; }
  .paper .chicago-citation { font-size: 15px; padding: 16px 16px 16px 32px; text-indent: -16px; }
  .about { display: flex; flex-direction: column-reverse; gap: 25px; }
  .portrait-frame { max-width: 210px; }
  .section { padding: 50px 0; }
  .notes .section-heading { gap: 10px; }
  .notes .text-link { font-size: 13px; }
  .note-list > a { grid-template-columns: 1fr 18px; gap: 6px; }
  .note-date, .note-list h3 { grid-column: 1; }
  .note-list > a > span:last-child { grid-column: 2; grid-row: 1/3; }
  footer { padding: 40px 38px 25px; }
  .footer-main { display: block; padding-bottom: 35px; }
  .contact-link { display: inline-block; margin-top: 20px; font-size: clamp(16px, 4.7vw, 23px); }
  .footer-bottom > div { width: 100%; justify-content: space-between; gap: 12px; font-size: 12px; }
  .depth-indicator { right: 5px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *:before, *:after { animation: none !important; transition: none !important; } }

/* Center the letter ink separately; the underline is an independent overlay. */
.wordmark { position: relative; flex: none; width: 56px; height: 56px; display: block; background: url('/assets/images/moon.svg') center / contain no-repeat; border: 0; color: #09223f; }
.wordmark .moon-initials { position: absolute; inset: 0; width: 100%; height: 100%; fill: #09223f; overflow: visible; }
.moon-initials text { font-family: var(--serif); font-size: 44px; font-style: normal; letter-spacing: -2px; }
.site-header a.wordmark[aria-current=location], .site-header a.wordmark:hover, .post-header a.wordmark:hover { color: #09223f; text-decoration: none; }
.wordmark::after { content: ''; position: absolute; width: 52%; height: 1px; background: #09223f; bottom: 24%; left: 50%; transform: translateX(-50%); opacity: 0; pointer-events: none; }
.wordmark[aria-current=location]::after, .wordmark:hover::after { opacity: 1; }
@media (max-width: 600px) { .wordmark { width: 46px; height: 46px; } }

/* Attribution stays with its abstract and remains readable when expanded. */
.abstract-credit { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.abstract-basin .abstract-credit p { font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.abstract-credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
