:root {
  color-scheme: light;
  --paper: #f7f4eb; --ink: #294946; --muted: #5d7067; --line: #d9ded2; --accent: #a95139;
  --sea-top: #b5d5ce; --sea-bottom: #d1e2d6; --sky-bottom: #eef0e4;
  --island: #c6d4bd; --island-far: #bdceba; --dune: #d9ddbc; --sand: #ece4ca;
  --road: #e3ddca; --road-line: #c1bea3; --foreground: #f0eddf; --foam: #f7f5df;
  --grass: #80936b; --cloud: #fffdf6; --surface: #eeeede;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
:root[data-theme=night] {
  color-scheme: dark;
  --paper: #182b30; --ink: #e6e8d6; --muted: #a6bcb4; --line: #385056; --accent: #efac87;
  --sea-top: #365f66; --sea-bottom: #294d57; --sky-bottom: #213c45;
  --island: #38534e; --island-far: #314c48; --dune: #4a6052; --sand: #626956;
  --road: #4c5950; --road-line: #6a7560; --foreground: #223b39; --foam: #91b8b1;
  --grass: #83987b; --cloud: #49646a; --surface: #20383d;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; scrollbar-gutter: stable; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; transition: background-color .55s, color .55s; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
button[hidden] { display: none; }
::selection { background: #dfba83; color: #243e39; }
.site-shell { max-width: 1380px; min-height: 100svh; margin: auto; padding: 30px 58px 22px; display: flex; flex-direction: column; }
.site-shell > main { flex: 1; min-width: 0; }
.masthead { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding: 0 0 23px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 17px; letter-spacing: .025em; white-space: nowrap; }
.brand-avatar { display: block; width: 44px; height: 44px; flex: 0 0 auto; object-fit: cover; border: 1px solid var(--line); border-radius: 50%; }
.brand-cn { font-size: 12px; letter-spacing: .18em; color: var(--muted); margin-left: 15px; }
.header-right { display: flex; gap: 34px; align-items: center; }
nav { display: flex; gap: 32px; align-items: center; }
nav a { position: relative; font-size: 14px; padding: 10px 0; color: var(--muted); transition: color .2s; }
nav a:hover, nav a[aria-current] { color: var(--ink); }
nav a[aria-current]::after { content: ''; position: absolute; height: 2px; bottom: 0; left: 0; right: 0; background: var(--accent); }
.theme-toggle { display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--line); border-radius: 24px; background: transparent; font-size: 13px; min-height: 42px; min-width: 91px; padding: 8px 13px; }
.theme-toggle:hover { background: var(--surface); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.moon-icon { display: none; }
[data-theme=night] .moon-icon { display: block; }
[data-theme=night] .sun-icon { display: none; }
.eyebrow { font-size: 12px; letter-spacing: .2em; font-weight: 500; color: var(--accent); margin: 0 0 17px; }
.home-intro { position: relative; z-index: 1; pointer-events: none; margin: 48px 0 0 18px; }
.home-intro h1 { font-size: clamp(32px,3.35vw,48px); font-weight: 500; letter-spacing: .12em; line-height: 1.5; margin: 0; }
.home-subtitle { font-size: 14px; letter-spacing: .12em; color: var(--muted); margin: 13px 0 0; }
.coastal-scene { position: relative; margin: -124px -18px 0; mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent); }
.coastal-scene>svg { display: block; width: 100%; height: auto; overflow: visible; }
.home-bottom { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 5px 18px 35px; }
.home-note { display: flex; gap: 14px; align-items: center; font-family: var(--serif); font-size: 16px; line-height: 1.5; }
.home-note p { margin: 0; }
.home-note p span { color: var(--muted); font-style: italic; }
.small-rule { width: 26px; height: 1px; background: var(--accent); }
.text-link { font-size: 14px; display: inline-flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); padding: 5px 0; }
.text-link:hover { border-color: var(--accent); color: var(--accent); }
.text-link span { font-size: 20px; }
.ride-toggle { background: transparent; border: 1px solid var(--line); border-radius: 24px; display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); min-height: 42px; padding: 8px 17px; transition: border-color .2s, background-color .2s; }
.ride-toggle:hover { color: var(--ink); background: var(--surface); border-color: var(--muted); }
.playback-icon { font-size: 14px; width: 17px; }
.site-footer { border-top: 1px solid var(--line); padding: 21px 0 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); font-size: 12px; }
.footer-motto { letter-spacing: .18em; }
.site-footer>a { font-family: var(--serif); font-style: italic; font-size: 14px; }
.site-footer>a:hover { color: var(--accent); }
.skip-link { position: absolute; left: 20px; top: -100px; z-index: 10; padding: 12px 20px; background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 12px; }
.page-heading { padding: 55px 0 38px; }
.page-heading h1 { font-family: var(--serif); font-size: clamp(44px,5vw,66px); font-weight: 400; line-height: 1.08; letter-spacing: -.04em; margin: 0; }
.page-heading h1 span { font-family: var(--sans); font-size: 22px; letter-spacing: .13em; color: var(--muted); margin-left: 20px; }
.page-heading .deck { max-width: 42em; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.6; margin: 18px 0 0; text-wrap: pretty; }
.content-wrap { max-width: 1080px; margin: auto; }
.intro-row, .section-row { display: grid; grid-template-columns: 178px minmax(0,1fr); column-gap: 44px; }
.intro-row { padding-bottom: 36px; }
.section-row { border-top: 1px solid var(--line); padding: 30px 0 36px; }
.section-label { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.7; }
.section-label .section-no { color: var(--accent); font-family: var(--serif); font-size: 13px; display: block; margin-bottom: 8px; }
.bio { max-width: 720px; font-size: 17px; line-height: 1.95; margin: 0; text-wrap: pretty; }
.prose-link { border-bottom: 1px solid var(--line); }
.prose-link:hover { color: var(--accent); border-color: var(--accent); }
.interests { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 0; padding: 0; list-style: none; }
.interests li { max-width: 100%; border: 1px solid var(--line); border-radius: 4px; background: color-mix(in srgb, var(--surface) 40%, transparent); padding: 8px 13px; font-size: 15px; }
.publication-top { display: flex; flex-wrap: wrap; gap: 9px 22px; align-items: center; }
.publication-top a { font-size: 14px; }
.publication-note { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 13px 0 25px; }
.publication-group { border-top: 1px solid var(--line); }
.publication-group:last-child { border-bottom: 1px solid var(--line); }
.publication-group summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; list-style: none; cursor: pointer; padding: 21px 0; border-radius: 3px; }
.publication-group summary::-webkit-details-marker { display: none; }
.publication-group summary:hover { color: var(--accent); }
.group-summary { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0; font-family: var(--sans); font-weight: 400; }
.group-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 16px; font-family: var(--serif); font-size: 27px; line-height: 1.4; }
.paper-count { font: 12px var(--sans); color: var(--muted); white-space: nowrap; }
.group-action { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.group-action svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.when-open { display: none; }
.publication-group[open] .when-open { display: inline; }
.publication-group[open] .when-closed { display: none; }
.publication-group[open] .group-action svg { transform: rotate(180deg); }
.publication-group[open] > summary { border-bottom: 1px solid var(--line); }
.paper-list { list-style: none; margin: 0; padding: 0; }
.paper { position: relative; padding: 22px 0 24px 39px; border-bottom: 1px solid var(--line); }
.paper-number { position: absolute; left: 0; top: 25px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.paper h4 { font-family: var(--serif); font-size: 21px; font-weight: 400; line-height: 1.5; margin: 0 0 9px; text-wrap: pretty; }
.paper h4 a:hover { color: var(--accent); }
.paper-authors { font-size: 14px; line-height: 1.75; color: var(--muted); margin: 0 0 8px; overflow-wrap: anywhere; }
.paper-authors strong { color: var(--ink); font-weight: 600; }
.paper-authors sup { font-size: .72em; }
.paper-venue { font-size: 14px; color: var(--accent); margin: 0 0 8px; }
.paper-links { display: flex; gap: 7px 18px; flex-wrap: wrap; }
.paper-links a { font-size: 13px; border-bottom: 1px solid var(--line); line-height: 1.65; }
.paper-links a:hover { color: var(--accent); border-color: var(--accent); }
.paper:last-child { border-bottom: 0; }
.contact-details { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 30px 42px; }
.detail-label { font-size: 12px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.email-list { display: flex; flex-direction: column; gap: 21px; }
.email-entry { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.email-kind { font-size: 16px; }
.email-address { display: block; max-width: 100%; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.email-address a { color: var(--ink); font-size: 15px; }
.email-reveal { margin-top: 2px; padding: 5px 0; display: flex; align-items: center; gap: 13px; font-size: 13px; color: var(--accent); background: none; border: 0; border-bottom: 1px solid var(--line); }
.email-reveal:hover { border-color: var(--accent); }
.email-note { color: var(--muted); font-size: 14px; }
.address { font-style: normal; font-size: 16px; line-height: 1.85; }
.social-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.social-links a { border-bottom: 1px solid var(--line); }
.social-links a:hover { color: var(--accent); }
.recommendation-group h3 { font-family: var(--serif); font-size: 24px; font-weight: 400; margin: 0 0 12px; }
.recommendation-group+.recommendation-group { margin-top: 34px; }
.recommendations { list-style: none; padding: 0; margin: 0; }
.recommendations li+li { border-top: 1px solid var(--line); }
.recommendations a { display: grid; grid-template-columns: 106px 1fr 20px; gap: 16px; padding: 18px 0; align-items: baseline; transition: color .2s; }
.recommendations a:hover .rec-name, .recommendations a:hover .rec-arrow { color: var(--accent); }
.rec-name { font-size: 17px; }
.rec-desc { font-size: 14px; color: var(--muted); }
.rec-arrow { font-size: 19px; color: var(--muted); }
.inner-page .site-footer { margin-top: 22px; }
.not-found { max-width: 650px; padding: 80px 0 140px; }
.not-found h1 { font-family: var(--serif); font-size: 55px; font-weight: 400; line-height: 1.2; }
.not-found p { color: var(--muted); }
/* Coastline adapted from the supplied pelican-ride illustration. */
#sky stop:first-child { stop-color: var(--paper); }
#sky stop:last-child { stop-color: var(--sky-bottom); }
#sea stop:first-child { stop-color: var(--sea-top); }
#sea stop:last-child { stop-color: var(--sea-bottom); }
.scene-island { fill: var(--island); }.scene-island-far { fill: var(--island-far); }
.scene-dune { fill: var(--dune); }.scene-sand { fill: var(--sand); }
.scene-road { fill: var(--road); }.scene-road-edge { stroke: var(--road-line); }
.scene-foreground { fill: url(#shore-fade); }#cloud { fill: var(--cloud); }
#grass { stroke: var(--grass); }#water, #road-marks { stroke: var(--foam); }
.coastal-scene path, .coastal-scene circle { transition: fill .65s, stroke .65s; }
.coastal-scene stop { transition: stop-color .65s; }
.day-sky, .night-sky { transition: opacity .65s, fill .65s, stroke .65s; }.night-sky { opacity: 0; }
[data-theme=night] .night-sky { opacity: 1; }[data-theme=night] .day-sky { opacity: 0; }
#riders { transition: filter .65s; }
[data-theme=night] #lighthouse { filter: brightness(.8); }[data-theme=night] #riders { filter: brightness(.87) saturate(.87); }
@media(min-width:1600px) { .site-shell { padding-top: 42px; }.home-intro { margin-top: 66px; } }
@media(max-width:1000px) {
  .site-shell { padding: 26px 36px 22px; }.brand-cn { display: none; }.header-right { gap: 24px; }nav { gap: 25px; }
  .intro-row,.section-row { grid-template-columns: 155px minmax(0,1fr); gap: 30px; }.home-intro { margin-left: 0; }
  .coastal-scene { margin-top: -80px; }.contact-details { grid-template-columns: 1fr; gap: 28px; }
}
@media(max-width:700px) {
  .site-shell { padding: 21px 22px; }.masthead { gap: 16px; padding-bottom: 17px; }.brand { font-size: 16px; gap: 8px; }
  .brand-avatar { width: 36px; height: 36px; }.header-right { gap: 14px; }nav { gap: 16px; }nav a { font-size: 14px; }
  .theme-toggle { min-width: 40px; width: 40px; min-height: 40px; padding: 8px; }.theme-label { display: none; }
  .home-intro { margin: 39px 0 0; }.eyebrow { font-size: 12px; letter-spacing: .13em; }
  .home-intro h1 { font-size: 34px; letter-spacing: .08em; }.home-subtitle { font-size: 13px; }
  .coastal-scene { margin: -15px -20px 0; overflow: hidden; }.coastal-scene>svg { width: 145%; max-width: none; margin-left: -22.5%; }
  .home-bottom { padding: 16px 0 27px; flex-wrap: wrap; gap: 18px; }.home-note { font-size: 15px; }
  .ride-toggle { order: 3; margin: 0 auto; justify-content: center; padding: 8px 17px; }.home-link { font-size: 13px; gap: 12px; }
  .site-footer { flex-wrap: wrap; font-size: 12px; row-gap: 11px; }.footer-motto { font-size: 12px; }
  .site-footer>a { width: 100%; text-align: center; font-size: 13px; }.page-heading { padding: 46px 0 32px; }
  .page-heading h1 { font-size: 46px; }.page-heading h1 span { font-size: 18px; margin-left: 13px; }.page-heading .deck { font-size: 18px; }
  .intro-row,.section-row { grid-template-columns: 1fr; gap: 20px; }.intro-row { padding-bottom: 30px; }.section-row { padding: 27px 0 32px; }
  .section-label { display: flex; align-items: baseline; gap: 12px; }.section-label .section-no { margin: 0; }
  .bio { font-size: 16px; line-height: 1.9; }.interests { gap: 8px; }.interests li { font-size: 14px; padding: 8px 11px; }
  .paper { padding-left: 29px; }.paper h4 { font-size: 20px; }.group-heading { font-size: 25px; gap: 12px; }.group-summary { gap: 12px; }.group-action { gap: 9px; }.publication-group summary { gap: 12px; padding: 19px 0; }
  .recommendations a { grid-template-columns: 87px 1fr 15px; gap: 12px; }.rec-name { font-size: 16px; }.rec-desc { font-size: 14px; }
  .email-address a { font-size: 15px; }.inner-page .site-footer { margin-top: 14px; }
}
@media(max-width:400px) { .masthead { gap: 8px; }.header-right { gap: 8px; }nav { gap: 12px; } }
@media(max-width:380px) { .site-shell { padding: 18px 16px; }.brand { font-size: 14px; gap: 6px; }.brand-avatar { width: 28px; height: 28px; }nav { gap: 6px; }nav a { font-size: 13px; }.theme-toggle { min-width: 34px; width: 34px; min-height: 36px; }.home-intro h1 { font-size: 30px; }.home-note { font-size: 14px; }.group-action>span { display: none!important; }.group-heading { gap: 10px; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; }*,*::before,*::after { animation: none!important; transition: none!important; } }
