:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  color: #fff;
  background: #1256a0;
  line-height: 1.5;
  letter-spacing: 0;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.masthead { border-bottom: 1px solid #ffffff33; }
.navigation { max-width: 1280px; min-height: 73px; margin: auto; padding: 18px; display: flex; justify-content: flex-end; align-items: center; gap: 36px; }
.navigation a { position: relative; color: #ffb366; text-decoration: none; padding: 0 0 4px; }
.navigation a:last-child { margin-right: 18px; }
.navigation a::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 44px; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 10'%3E%3Cpath d='M1 5h3l2-2 2 4 3-6 3 8 3-7 3 6 2-3 2-3 3 7 3-8 3 6 2-4 2 2h6' fill='none' stroke='%23ffb366' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; opacity: 0; transform: translateX(-50%) scaleX(0); transition: transform 150ms ease, opacity 150ms ease; }
.navigation a:hover::after, .navigation a:focus-visible::after { opacity: 1; transform: translateX(-50%) scaleX(1); }
a:focus-visible { outline: 2px solid #ffb366; outline-offset: 5px; }
.layout { width: 100%; max-width: 1280px; margin: 36px auto 0; padding: 0 18px; display: grid; grid-template-columns: 282px minmax(0, 1fr); gap: 18px; flex: 1; }
.profile { min-width: 0; }
.profile img { width: 110px; height: 110px; object-fit: cover; border-radius: 50%; padding: 5px; border: 1px solid #f2f3f3; }
.profile h2 { font-size: 18px; margin-bottom: 0; }
.profile p, .profile ul { font-size: 14px; }
main { min-width: 0; padding-right: 200px; }
main p { margin: 0 0 24px; }
.home-page { background: #1256a0; color: #fff; }
.home-page .masthead { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 28px; background: #1256a0; border-bottom: 0; }
.site-name { color: #ffb366; font-size: 24px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.home-page .navigation { margin: 0; padding: 18px 0; }
.home-page .navigation a { color: #ffb366; }
.home-main { flex: 1; padding: 0; }
.home-banner { height: clamp(120px, 15vw, 200px); overflow: hidden; background: #fff; }
.fourier-figure { width: min(100%, 1150px); height: 100%; margin: 0 auto; opacity: .65; }
.fourier-figure svg { display: block; width: 100%; height: 100%; }
.fourier-title, .fourier-axis-label { fill: #12365b; font-family: inherit; }
.fourier-title { font-size: 8px; font-weight: 700; }
.fourier-axis-label { font-size: 7px; font-weight: 600; }
.home-content { position: relative; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; max-width: 1120px; margin: 0 auto; padding: 0 28px 48px; }
.home-profile { margin-top: 28px; }
.home-portrait { display: block; width: 240px; height: 240px; margin-left: -24px; object-fit: cover; border: 6px solid #ffb366; border-radius: 50%; }
.home-profile h1 { margin: 22px 0 18px; font-size: 30px; line-height: 1.2; letter-spacing: -.02em; }
.profile-roles { display: grid; gap: 18px; }
.profile-role { position: relative; padding-left: 18px; }
.profile-role::before { content: ""; position: absolute; top: 7px; bottom: 6px; left: 0; width: 3px; border-radius: 2px; background: #ffb366; }
.home-profile .profile-role p { margin: 0; }
.home-profile .role-title { font-size: 16px; font-weight: 700; line-height: 1.35; }
.home-profile .role-team { margin-top: 2px; color: #ffffffd9; font-size: 15px; line-height: 1.4; }
.home-profile .role-organization { margin-top: 4px; color: #ffca94; font-size: 14px; font-weight: 600; letter-spacing: .01em; }
.home-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 26px; padding-top: 20px; border-top: 1px solid #ffffff33; }
.home-links a { color: #ffca94; font-size: 15px; font-weight: 600; text-decoration-color: #ffca9499; text-underline-offset: 3px; }
.home-links a:hover { color: #ffe0bf; text-decoration-color: currentColor; }
.home-about { padding-top: 48px; }
.home-about h2 { margin: 0 0 20px; font-size: clamp(32px, 4vw, 48px); line-height: 1.15; letter-spacing: -.025em; }
.home-about p { max-width: 720px; line-height: 1.7; }
.home-about .about-intro { font-size: 22px; line-height: 1.5; }
.home-about a { color: #ffca94; font-weight: 600; text-decoration-color: #ffca9499; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.home-about a:hover { color: #ffe0bf; text-decoration-color: currentColor; }
.publications-layout { width: 100%; max-width: 960px; margin: 48px auto 0; padding: 0 28px; flex: 1; }
.publications-page { padding: 0; }
.publications-page h1 { margin: 0 0 42px; font-size: clamp(34px, 5vw, 48px); line-height: 1.15; }
.publication-group { margin-top: 38px; }
.publication-group h2 { margin: 0 0 20px; padding-bottom: 9px; border-bottom: 1px solid #ffffff33; color: #ffb366; font-size: clamp(20px, 3vw, 26px); }
.publication-list p { margin: 0 0 22px; padding-left: 36px; text-indent: -36px; line-height: 1.7; }
.resume-page { width: 100%; flex: 1; padding: 36px 20px; background: #525659; }
.resume-page img { display: block; width: min(100%, 900px); height: auto; margin: 0 auto; box-shadow: 0 4px 24px #0006; }
.resume-page + .footer { display: none; }
.contact-copy { max-width: 720px; line-height: 1.7; }
.contact-copy a { color: #ffca94; font-weight: 600; text-underline-offset: 3px; }
.personal-page { width: 100%; max-width: 1240px; margin: 0 auto; padding: 40px 28px 0; }
.personal-intro { max-width: 760px; margin: 0 0 30px; font-size: 20px; line-height: 1.7; }
.personal-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.personal-gallery figure { min-width: 0; margin: 0; overflow: hidden; border-radius: 8px; background: #104b8c; }
.personal-gallery-wide { grid-column: 1 / -1; }
.personal-gallery img, .personal-gallery video { display: block; width: 100%; height: auto; }
.personal-gallery figcaption { padding: 12px 15px 14px; color: #ffffffd9; font-size: 15px; line-height: 1.45; }
.personal-gallery figcaption a { color: #ffca94; font-weight: 600; text-underline-offset: 3px; }
.projects-intro { max-width: 760px; margin-bottom: 32px; }
.projects-intro h1 { margin: 0 0 18px; font-size: clamp(34px, 5vw, 48px); line-height: 1.15; }
.projects-intro p { line-height: 1.7; }
.project-group { margin-top: 44px; }
.project-group > h2 { margin: 0; padding-bottom: 10px; border-bottom: 1px solid #ffffff66; color: #fff; font-size: clamp(24px, 3.5vw, 32px); }
.project-group-description { max-width: 760px; margin: 16px 0 6px; line-height: 1.7; }
.project-group-empty { min-height: 90px; }
.project-section { display: flex; align-items: center; gap: 24px; padding: 24px 0; border-bottom: 1px solid #ffffff33; }
.project-section h3 { margin: 0; min-width: 0; font-size: clamp(20px, 3vw, 26px); color: #ffb366; }
.project-section h3 a { color: inherit; text-decoration: none; }
.project-section h3 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.project-status { color: #ffffffbf; font-size: .7em; font-weight: 500; white-space: nowrap; }
.project-image-placeholder { width: clamp(100px, 20vw, 180px); aspect-ratio: 4 / 3; flex-shrink: 0; display: grid; place-items: center; padding: 12px; border: 1px dashed #ffffff80; border-radius: 6px; background: #ffffff0d; color: #ffffffb3; text-align: center; font-size: 14px; }
.project-card-placeholder { color: #ffca94; font-size: clamp(22px, 4vw, 34px); font-weight: 800; letter-spacing: .08em; text-decoration: none; }
.project-card-placeholder-wide { font-size: clamp(14px, 2.2vw, 19px); letter-spacing: .03em; }
.project-card-image { width: clamp(100px, 20vw, 180px); aspect-ratio: 4 / 3; flex-shrink: 0; overflow: hidden; border-radius: 6px; background: #fff; }
.project-card-image img { width: 100%; height: 100%; object-fit: cover; }
.project-card-image-contain img { object-fit: contain; }
.project-feature { display: block; padding-bottom: 44px; }
.project-feature h2 { margin-bottom: 18px; font-size: clamp(25px, 4vw, 34px); }
.project-copy { max-width: 760px; }
.project-copy p { line-height: 1.7; }
.project-copy a { color: #ffca94; font-weight: 600; text-underline-offset: 3px; }
.project-resource { margin: -8px 0 28px; color: #ffffffd9; }
.project-resource a { color: #ffca94; font-weight: 700; text-underline-offset: 3px; }
.voice-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.voice-example { padding: 18px; border: 1px solid #ffffff33; border-radius: 8px; background: #ffffff0d; }
.voice-example h3 { margin: 0 0 12px; color: #ffca94; font-size: 17px; }
.voice-example audio { display: block; width: 100%; }
.accent-examples .voice-example { min-width: 0; }
.accent-examples .audio-label { display: block; margin: 16px 0 6px; font-size: 15px; }
.voice-note { margin: 10px 0 32px; color: #ffffffbf; font-size: 14px; }
.project-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.project-figures figure { margin: 0; }
.project-figures img { display: block; width: 100%; height: auto; border-radius: 6px; background: #fff; }
.project-figures figcaption { margin-top: 9px; color: #ffffffbf; font-size: 14px; line-height: 1.45; }
.project-figures-stacked { grid-template-columns: minmax(0, 1fr); margin-top: 34px; }
.project-figures-stacked figure { margin-bottom: 22px; }
.project-figures-stacked .narrow-figure { max-width: 320px; }
.accent-conversion-figures { max-width: 900px; }
.lishan-didan-figures { max-width: 560px; }
.language-recordings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 18px 0 34px; }
.language-recordings .voice-example { min-width: 0; }
.recording-definition { margin: -6px 0 12px; color: #ffffffbf; font-size: 15px; }
.project-link { margin: 28px 0 0; }
.project-link a { color: #ffca94; font-weight: 700; text-underline-offset: 4px; }
.project-credit { max-width: 760px; margin-top: 36px; padding-top: 20px; border-top: 1px solid #ffffff33; }
.project-credit a { color: #ffca94; font-weight: 600; text-underline-offset: 3px; }
.project-detail { width: 100%; max-width: 1040px; margin: 0 auto; padding: 48px 28px 20px; }
.project-detail h1 { max-width: 820px; margin: 20px 0 24px; font-size: clamp(34px, 5vw, 50px); line-height: 1.12; }
.project-detail-status { display: inline-block; color: #ffffffbf; font-size: .5em; font-weight: 500; white-space: nowrap; }
.listen-heading { margin: 32px 0 0; color: #ffb366; font-size: clamp(22px, 3vw, 28px); }
.back-link { color: #ffca94; font-weight: 700; text-decoration: none; }
.back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer { margin-top: 54px; background: #104b8c; color: #fff; }
.footer-inner { max-width: 1280px; min-height: 90px; padding: 36px 18px; margin: auto; font-size: 13px; }
.footer-inner a { color: #ffb366; }
.skip-link { position: fixed; top: 8px; left: 8px; padding: 8px 16px; background: #fff; color: #3d4144; transform: translateY(-200%); z-index: 10; }
.skip-link:focus { transform: translateY(0); }
@media (max-width: 1199px) {
  .layout { grid-template-columns: 182px minmax(0, 1fr); }
  main { padding-right: 0; }
}
@media (max-width: 767px) {
  .home-page .masthead { flex-wrap: wrap; gap: 0; padding: 16px 18px 0; }
  .home-page .navigation { justify-content: flex-start; }
  .home-content { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 0 22px 32px; }
  .home-profile { margin-top: 24px; }
  .home-portrait { width: 180px; height: 180px; margin-left: 0; }
  .home-about { padding-top: 0; }
  .layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 24px; }
  .profile:empty { display: none; }
  .navigation { flex-wrap: wrap; gap: 20px 24px; }
  .navigation a:last-child { margin-right: 0; }
  .publications-layout { margin-top: 32px; padding: 0 22px; }
  .publications-page h1 { margin-bottom: 32px; }
  .publication-list p { padding-left: 24px; text-indent: -24px; }
  .personal-page { padding: 26px 18px 0; }
  .personal-gallery { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .personal-gallery-wide { grid-column: auto; }
  .voice-comparison, .project-figures, .language-recordings { grid-template-columns: minmax(0, 1fr); }
  .project-detail { padding: 32px 22px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .navigation a::after { transition: none; }
}
