@font-face {
  font-family: "Fumitsuki Wordmark";
  src: url("fonts/fumitsuki-cormorant-garamond.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fcfbf8;
  --ink: #302d38;
  --muted: #67616f;
  --purple: #675181;
  --moon: #efedf6;
  --line: #dfdae7;
  --width: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
a { color: inherit; text-underline-offset: .22em; }
button { font: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, [tabindex="-1"]:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 5px;
}
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
h1, h2, h3, p, figure { margin: 0; }
h2, h3 { line-height: 1.5; text-wrap: pretty; }
button, a { touch-action: manipulation; }
.container { width: min(calc(100% - 48px), var(--width)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: 0; transform: translateY(-150%); z-index: 10; padding: 10px 16px; background: white; }
.skip-link:focus { transform: translateY(10px); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.brand { font-size: 13px; letter-spacing: .1em; font-weight: 650; text-decoration: none; }
.site-nav { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; text-decoration: none; }
.site-nav a:hover, .text-link:hover { color: var(--purple); text-decoration: underline; }
.hero { background: var(--moon); border-block: 1px solid var(--line); }
.hero-art { height: 290px; position: relative; display: grid; place-items: center; isolation: isolate; }
.hero-moon { position: absolute; width: 225px; height: 225px; top: 21px; left: calc(50% - 112.5px); color: #9b8db8; z-index: -1; }
.hero h1 { font-family: "Fumitsuki Wordmark", Georgia, serif; font-weight: 400; font-size: clamp(58px, 10vw, 112px); line-height: 1.25; letter-spacing: .025em; padding-top: 38px; color: #44375c; }
.hero-star { position: absolute; color: #8b77a6; }
.star-one { top: 24%; left: 25%; font-size: 22px; }
.star-two { right: 25%; bottom: 23%; font-size: 13px; }
.hero-caption { position: absolute; bottom: 21px; left: 0; width: 100%; text-align: center; font-size: 10px; letter-spacing: .23em; color: var(--purple); }
.intro { text-align: center; max-width: 660px; padding-block: 28px 38px; }
.intro-role { font-size: 14px; letter-spacing: .04em; color: var(--purple); margin-bottom: 10px; }
.intro-copy { font-size: 17px; }
.intro-note { margin-top: 12px; font-size: 13px; color: var(--muted); }
.section { padding-block: 64px; }
.section + .section { border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.eyebrow { color: var(--purple); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 5px; }
h2 { font-size: 27px; font-weight: 550; letter-spacing: .03em; }
.section-heading > p { color: var(--muted); font-size: 14px; max-width: 28em; }
.text-link { color: var(--purple); font-size: 14px; }
.featured { background: white; border: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.featured-photo { align-self: center; padding: 24px; }
.photo-link { display: block; position: relative; }
.photo-link::after { content: "↗"; position: absolute; bottom: 10px; right: 10px; width: 30px; height: 30px; display: grid; place-items: center; line-height: 1; background: #ffffffeb; color: #44375c; border-radius: 50%; }
.photo-link img { transition: opacity .2s; }
.photo-link:hover img { opacity: .88; }
.featured-copy { padding: 32px 32px 32px 16px; align-self: center; }
.event { font-size: 12px; color: var(--purple); letter-spacing: .07em; margin-bottom: 10px; }
.featured h3 { font-size: clamp(23px, 3vw, 30px); font-weight: 550; }
.featured-copy > p:not(.event) { margin-top: 16px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 8px 18px; border: 1px solid #9c8eac; text-decoration: none; font-size: 14px; border-radius: 3px; color: var(--purple); background: transparent; }
.button:hover { background: var(--moon); }
.button-primary { background: var(--purple); border-color: var(--purple); color: white; }
.button-primary:hover { background: #514065; }
.interests { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.interest-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.interest h3 { font-size: 19px; font-weight: 550; margin-block: 22px 12px; }
.interest p { color: var(--muted); }
.interest p + p { margin-top: 1em; }
.experience-group { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 32px; margin-top: 32px; }
.experience-group > h3 { font-weight: 500; font-size: 15px; color: var(--purple); padding-top: 19px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 18px 0; border-top: 1px solid var(--line); }
.job { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 20px; }
.job h4 { font-size: 16px; font-weight: 550; margin: 0; }
.job .date { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.job .role { color: var(--muted); font-size: 14px; }
.lab-description { margin-top: 10px; font-size: 14px; color: var(--muted); max-width: 46em; }
.talk-list { list-style: none; margin: 0; padding: 0; }
.talk { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 30px; padding-block: 30px; border-top: 1px solid var(--line); }
.talk > .photo-link { align-self: start; }
.talk h3 { font-size: 21px; font-weight: 550; }
.talk .summary { margin-top: 12px; color: var(--muted); max-width: 48em; }
.talk .event { margin-bottom: 8px; }
.talk .actions { margin-top: 16px; }
.site-footer { border-top: 1px solid var(--line); padding-block: 38px 28px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-top p { font-size: 16px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; display: inline-flex; align-items: center; min-height: 44px; }
.colophon { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; font-size: 11px; color: var(--muted); }
.colophon a { color: var(--muted); }
.lightbox { border: 0; padding: 16px; background: #19161e; color: #fff; width: min(1100px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 32px); border-radius: 6px; }
.lightbox::backdrop { background: #16131ded; }
.lightbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.lightbox button { color: white; background: transparent; border: 1px solid #82778f; border-radius: 3px; min-width: 44px; min-height: 44px; padding: 5px 12px; }
.lightbox button:hover { background: #43394f; }
.lightbox img { width: 100%; max-height: calc(100dvh - 210px); object-fit: contain; }
.lightbox figcaption { font-size: 14px; padding-top: 12px; }
.lightbox-bottom { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; }
.lightbox-status { font-size: 12px; color: #ddd4e8; }
.lightbox button:focus-visible { outline-color: #dfc6ff; }

@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: name-arrive 1.8s .15s both; }
  .hero-moon { animation: moon-rise 2s both; }
  .hero-star { animation: twinkle 2.1s ease-in-out 2 alternate both; }
  .star-two { animation-delay: .4s; }
  .hero-caption { animation: name-arrive 1.5s .7s both; }
}
@keyframes name-arrive { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes moon-rise { from { opacity: 0; transform: translateY(24px) rotate(-35deg); } to { opacity: 1; transform: none; } }
@keyframes twinkle { from { opacity: .4; transform: scale(.8); } to { opacity: .9; transform: scale(1.2); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .photo-link img { transition: none; }
}
@media (max-width: 760px) {
  .container { width: min(calc(100% - 40px), var(--width)); }
  .site-header { padding-block: 12px; gap: 8px 16px; flex-wrap: wrap; }
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 12px; }
  .hero-art { height: 260px; }
  .hero-moon { width: 200px; height: 200px; left: calc(50% - 100px); top: 15px; }
  .hero h1 { padding-top: 28px; font-size: clamp(56px, 13vw, 85px); }
  .hero-caption { font-size: 9px; letter-spacing: .17em; }
  .star-one { left: 15%; }
  .star-two { right: 17%; }
  .intro { padding-block: 24px 32px; }
  .intro-copy { font-size: 16px; }
  .intro-role { font-size: 13px; }
  .section { padding-block: 40px; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; margin-bottom: 22px; }
  h2 { font-size: 24px; }
  .featured { grid-template-columns: minmax(0, 1fr); }
  .featured-copy { padding: 24px; grid-row: 1; }
  .featured-photo { padding: 0 24px 24px; }
  .interests { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .interest { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: start; }
  .interest h3 { margin-top: 0; }
  .interest-photo img { aspect-ratio: 1; }
  .experience-group { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 28px; }
  .experience-group > h3 { padding-top: 0; }
  .job { grid-template-columns: minmax(0, 1fr); }
  .job .date { grid-column: auto; grid-row: auto; margin-top: 4px; }
  .talk { grid-template-columns: 150px minmax(0, 1fr); gap: 22px; }
  .talk h3 { font-size: 19px; }
}
@media (max-width: 480px) {
  .site-nav { gap: 16px; }
  .interest { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .interest-photo img { aspect-ratio: 3 / 2; }
  .interest h3 { margin-bottom: 8px; }
  .talk { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .talk > .photo-link { max-width: 260px; }
  .talk-copy { grid-row: 1; }
  .featured-copy { padding: 22px; }
  .featured-photo { padding: 0 22px 22px; }
  .lightbox { padding: 12px; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; border: 0; }
