/* Allura, subset for the motto.
Copyright 2010 The Allura Project Authors (https://github.com/googlefonts/allura)

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
*/
@font-face {
  font-family: Allura;
  src: url("./assets/fonts/allura-homepage.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Homepage Song";
  src: url("./assets/fonts/homepage-song.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+513F, U+8096, U+8D1D;
}
:root {
  color-scheme: light;
  --paper: #fff6f8;
  --ink: #3d2a22;
  --muted: #775445;
  --accent: #8a365a;
  --line: #ead6dd;
  --tint: #fcebf0;
  --card: #fffdfb;
  --petal: #f8d3df;
  --hairline: #e3bcc8;
  --soft-shadow: 0 1.1rem 2rem -1.3rem #8a365a59, 0 .25rem .7rem -.3rem #8a365a24;
  --botanical-sheet: url("./assets/illustrations/botanical-sprigs.webp");
  --watercolor-sheet: url("./assets/illustrations/watercolor-sprites.webp");
  --heading: Quicksand, "Arial Rounded MT Bold", ui-rounded, system-ui, sans-serif;
  --sans: Nunito, "Trebuchet MS", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(58rem 32rem at 6% -4rem, #fde1e9 0%, transparent 64%),
    radial-gradient(46rem 30rem at 98% 2rem, #efe5fa 0%, transparent 62%),
    radial-gradient(54rem 30rem at 50% 100%, #fdeedd 0%, transparent 66%),
    var(--paper);
  color: var(--ink);
  font: 1.04rem/1.72 var(--sans);
  -webkit-font-smoothing: antialiased;
}
/* Paper grain over the washes. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .08;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5  0 0 0 0 .28  0 0 0 0 .34  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--petal); color: var(--ink); }
.icon-sprite { position: absolute; }
.icon {
  flex: none;
  width: 1.05em;
  height: 1.05em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ext { font-size: .86em; opacity: .62; }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .13em; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.frame { width: min(100% - 3rem, 59rem); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 1; padding: .4rem .7rem; background: var(--paper); }
.skip:not(:focus) { clip-path: inset(50%); }
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem 1.25rem;
  flex-wrap: wrap;
  min-height: 4.25rem;
  padding-block: .7rem;
  background: linear-gradient(90deg, transparent, var(--hairline) 16%, var(--hairline) 84%, transparent) bottom / 100% 1px no-repeat;
}
.wordmark { display: block; color: var(--ink); font: 700 1.23rem var(--heading); white-space: nowrap; }
.wordmark-motto {
  margin: .14rem 0 0;
  color: #a23c61;
  font: 1.44rem/1.05 Allura, "Snell Roundhand", "Segoe Script", cursive;
  white-space: nowrap;
}
.header a, .footer a, .links a { text-decoration: none; }
.header a:hover, .footer a:hover, .links a:hover { text-decoration: underline; }
.primary-nav, .links { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.2rem; }
.primary-nav { font-size: .9rem; font-weight: 700; }
.primary-nav { isolation: isolate; }
.primary-nav > a { position: relative; color: var(--muted); transition: color .25s; }
@media (hover: hover) {
  .primary-nav > a::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: auto -.2rem .12rem;
    height: .42rem;
    border-radius: 1rem;
    background: var(--petal);
    opacity: 0;
    transform: scaleX(.4);
    transition: opacity .25s, transform .3s cubic-bezier(.3, 1.3, .5, 1);
  }
  .primary-nav > a:hover { color: var(--accent); text-decoration: none; }
  .primary-nav > a:hover::after { opacity: 1; transform: none; }
}
button {
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--paper);
  color: var(--accent);
  font: inherit;
  padding: .24rem .67rem;
  cursor: pointer;
}
button:hover { background: var(--tint); border-color: var(--accent); }
.profile {
  --gallery-width: 14.5rem;
  --frame-width: 3;
  --frame-height: 4;
  display: grid;
  grid-template-columns: minmax(0, min(var(--gallery-width), 33%)) minmax(0, 1fr);
  gap: clamp(1.55rem, 4.5vw, 2.8rem);
  align-items: start;
  padding-block: clamp(1.8rem, 4vw, 2.85rem) clamp(1.6rem, 3.8vw, 2.4rem);
}
.profile[data-gallery-orientation="landscape"] {
  --gallery-width: 18.75rem;
  --frame-width: 4;
  --frame-height: 3;
}
.gallery { margin: 0; min-width: 0; }
.gallery-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
}
.photo-frame {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: var(--frame-width) / var(--frame-height);
  border: .36rem solid var(--card);
  border-radius: 1.55rem;
  background: var(--tint);
  color: var(--muted);
  box-shadow: 0 0 0 1px var(--line), var(--soft-shadow);
}
.photo-frame img { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; animation: photo-in .9s ease both; }
@keyframes photo-in { from { opacity: 0; filter: blur(6px) saturate(.8); } }
.gallery-dots { display: flex; justify-content: center; gap: .32rem; margin-top: .8rem; }
.gallery-dots span {
  width: .32rem;
  height: .32rem;
  border-radius: 1rem;
  background: #e6c3ce;
  transition: width .45s ease, background-color .45s;
}
.gallery-dots .is-current { width: 1rem; background: #c06a8e; }
.photo-frame img.rotated-left {
  /* Swap the frame axes before applying the EXIF quarter turn. */
  inset: 50% auto auto 50%;
  width: calc(100% * var(--frame-height) / var(--frame-width));
  height: calc(100% * var(--frame-width) / var(--frame-height));
  transform: translate(-50%, -50%) rotate(-90deg);
}
.photo-placeholder { text-align: center; font-size: .85rem; padding: 1rem; }
.meta { margin: 0; color: var(--muted); font-size: .78rem; font-weight: 700; line-height: 1.4; letter-spacing: .07em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: var(--heading); font-weight: 700; }
h1 { margin-block: .38rem .24rem; font-size: clamp(2.05rem, 4.4vw, 3.3rem); letter-spacing: -.038em; line-height: 1.03; color: var(--accent); }
.nameplate {
  display: inline-grid;
  grid-template-areas: "lily name stars" "lily name hyacinth";
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(.22rem, 1.15vw, .65rem);
  max-width: 100%;
  margin-top: .3rem;
}
.nameplate h1 {
  grid-area: name;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .18em .4em;
  margin: 0;
}
.name-en {
  background: linear-gradient(115deg, #8a365a 10%, #b24f7c 55%, #9160a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: .08em;
}
.name-zh {
  color: var(--muted);
  letter-spacing: .12em;
  font-family: "Homepage Song", "Songti SC", SimSun, "Noto Serif CJK SC", serif;
  font-size: .5em;
  font-weight: 400;
  white-space: nowrap;
}
.watercolor {
  display: block;
  aspect-ratio: 1;
  background-image: var(--watercolor-sheet);
  background-size: 300% 200%;
  background-repeat: no-repeat;
  pointer-events: none;
}
.watercolor-goose { background-position: 0 0; }
.watercolor-bear { background-position: 50% 0; }
.watercolor-jar { background-position: 100% 0; }
.watercolor-stars { background-position: 50% 100%; }
.nameplate-art { user-select: none; }
.botanical-art {
  display: block;
  background-image: var(--botanical-sheet);
  background-repeat: no-repeat;
  pointer-events: none;
}
.botanical-lily, .education > .section-title::before {
  aspect-ratio: 202 / 359;
  background-size: 285.1485% 106.9638%;
  background-position: 7.2193% 72.0000%;
}
.botanical-hyacinth {
  aspect-ratio: 160 / 279;
  background-image: url("./assets/illustrations/hyacinth.webp");
  background-size: 137.50000% 105.37634%;
  background-position: 78.33333% 40.00000%;
}
button.nameplate-photo-control {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: .6rem;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}
.nameplate-photo-control::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  width: max(100%, 44px);
  transform: translateX(-50%);
}
.nameplate-photo-control:disabled { cursor: default; }
.nameplate-photo-control .botanical-art { transform-origin: 50% 96%; transition: rotate .6s cubic-bezier(.3, 1.5, .5, 1), filter .3s; }
.nameplate-stars { animation: twinkle 3.8s ease-in-out infinite; }
.petal {
  position: fixed;
  z-index: 3;
  border-radius: 85% 10% 85% 10%;
  background: linear-gradient(135deg, var(--petal-light, #d9c8f4), var(--petal-deep, #a98bdb));
  pointer-events: none;
}
@keyframes twinkle { 50% { opacity: .55; scale: .9; } }
@media (hover: hover) {
  .nameplate-photo-control:enabled:hover .botanical-art { filter: saturate(1.3) contrast(1.06) drop-shadow(0 .2rem .3rem #8a365a2e); }
  .nameplate-lily:enabled:hover .botanical-art { rotate: -7deg; }
}
.nameplate-photo-control:enabled:active .botanical-art { filter: brightness(.9); }
.nameplate-lily { grid-area: lily; width: clamp(2.4rem, 5.15vw, 3.15rem); }
.nameplate-stars { grid-area: stars; width: clamp(1.85rem, 4.4vw, 2.8rem); justify-self: end; align-self: end; }
.nameplate-hyacinth { grid-area: hyacinth; width: clamp(2.15rem, 4.65vw, 3rem); align-self: start; justify-self: end; }
.scene {
  position: relative;
  width: min(100%, 13.5rem);
  min-height: 8.1rem;
  isolation: isolate;
}
.pond-water {
  position: absolute;
  inset: 3.75rem .1rem .15rem;
  border-radius: 52% 46% 50% 44%;
  background: radial-gradient(ellipse at 30% 16%, #eef6ed 6%, #ddebe5 58%, #cae2dc 100%);
  box-shadow: inset 0 0 0 1px #b9d8cf80;
  transform: rotate(-3deg);
}
.pond-water::before, .pond-water::after {
  content: "";
  position: absolute;
  width: 2.3rem;
  height: .43rem;
  border-bottom: 1px solid #fbfffd;
  border-radius: 50%;
}
.pond-water::before { left: 17%; bottom: 24%; }
.pond-water::after { right: 14%; top: 34%; }
.scene button {
  padding: 0;
  border: 0;
  border-radius: .65rem;
  background: transparent;
}
.pond-bird {
  --goose-size: 4.5rem;
  position: absolute;
  left: 10%;
  bottom: .8rem;
  width: var(--goose-size);
  transition: left 1.1s cubic-bezier(.27, .72, .4, 1);
}
.pond-bird .watercolor { width: 100%; transition: transform 0s 1.1s; animation: bob 3.6s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -.14rem; } }
.pond-scene.is-across .pond-bird { left: calc(90% - var(--goose-size)); }
.pond-scene.is-across .pond-bird .watercolor { transform: scaleX(-1); }
.bear-scene { min-height: 9.05rem; }
.bear-art {
  position: absolute;
  width: 7.15rem;
  bottom: 0;
  left: 48%;
  transform: translateX(-50%);
}
.bear-head {
  position: absolute;
  left: 48%;
  bottom: 3.25rem;
  width: 4.1rem;
  height: 3.15rem;
  transform: translateX(-50%);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.bear-head:focus-visible { border-radius: 50%; }
.honey-jar {
  position: absolute;
  left: 50%;
  bottom: .85rem;
  width: 3.55rem;
  transform: translateX(-50%) rotate(-7deg);
}
.honey-jar .watercolor { width: 100%; filter: drop-shadow(0 .09rem .1rem #79522b33); }
.honey-jar:hover .watercolor { filter: brightness(1.08) drop-shadow(0 .1rem .12rem #79522b55); }
.scene-bubble {
  position: absolute;
  z-index: 2;
  top: 0;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - .3rem);
  padding: .32rem .55rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: #fffdfa;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 .55rem 1rem -.65rem #8a365a55;
  animation: bubble-in .4s cubic-bezier(.3, 1.5, .5, 1) both;
}
@keyframes bubble-in { from { opacity: 0; scale: .7; translate: 0 .3rem; } }
.scene-bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 52%;
  width: .32rem;
  height: .32rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fffdfa;
  transform: translate(-50%, -50%) rotate(45deg);
}
.pond-scene .scene-bubble {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 1.38rem;
  border-radius: 999px;
}
.pond-scene .scene-bubble::before {
  content: "";
  width: .19rem;
  height: .19rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: -.36rem 0 currentColor, .36rem 0 currentColor;
}
.pond-scene .scene-bubble::after {
  width: .25rem;
  height: .25rem;
  top: calc(100% + .25rem);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: -.25rem .29rem 0 -.035rem #fffdfa;
  transform: none;
}
h2 { font-size: clamp(1.8rem, 3.4vw, 2.45rem); letter-spacing: -.035em; line-height: 1.18; }
h3 { font-size: clamp(1.23rem, 2.25vw, 1.52rem); letter-spacing: -.014em; line-height: 1.39; text-wrap: pretty; }
.intro { margin: 1rem 0 1.6rem; max-width: 57ch; }
.intro strong {
  background: linear-gradient(transparent 60%, var(--petal) 60%, var(--petal) 93%, transparent 93%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: .08em;
}
.detail-title { font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.contact {
  display: grid;
  gap: .42rem;
  max-width: 57ch;
  background: linear-gradient(90deg, var(--hairline), var(--line) 55%, transparent) top / 100% 1px no-repeat;
  padding-top: 1rem;
  font-size: .94rem;
  line-height: 1.55;
}
.education > .section-title::before {
  flex-basis: 1.05rem;
  background-image: var(--botanical-sheet);
}
.timeline-list { position: relative; margin: 0; padding-inline-start: 1.5rem; list-style: none; }
.timeline-list::before {
  content: "";
  position: absolute;
  inset: .9rem auto .9rem .36rem;
  width: 1px;
  background: var(--hairline);
}
.timeline-list li { position: relative; }
.timeline-list li::before {
  content: "";
  position: absolute;
  top: .62rem;
  left: -1.4rem;
  width: .56rem;
  height: .56rem;
  border: 1.5px solid #c06a8e;
  border-radius: 50%;
  background: #fde7ee;
}
.timeline-list li + li { margin-top: .55rem; }
.timeline-list strong { margin-inline-end: .42em; }
.timeline-list span { color: var(--muted); }
.timeline-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: .75rem;
}
.timeline-list .timeline-date { color: #8f5f72; font-size: .88em; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .02em; text-align: end; white-space: nowrap; }
.contact ul { display: flex; flex-wrap: wrap; gap: .5rem .55rem; margin: .1rem 0 0; padding: 0; list-style: none; }
.contact a { overflow-wrap: anywhere; }
.contact a, .entry .links a {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: .3rem .8rem .3rem .62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdfbcc;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
  transition: translate .25s, border-color .25s, background-color .25s, box-shadow .25s;
}
.contact a:hover, .entry .links a:hover {
  border-color: #d7a2b5;
  background: #fff;
  box-shadow: 0 .5rem .9rem -.6rem #8a365a59;
  text-decoration: none;
  translate: 0 -1px;
}
.section { display: grid; gap: 1.05rem; padding-block: clamp(1.45rem, 3.1vw, 2rem); scroll-margin-top: 1rem; }
.section-title {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  letter-spacing: -.012em;
}
.section-title::before {
  content: "";
  flex: 0 0 1.9rem;
  aspect-ratio: 1;
  background: var(--watercolor-sheet) 50% 100% / 300% 200% no-repeat;
}
.experience > .section-title::before {
  background: url("./assets/illustrations/sunflower.webp") center / contain no-repeat;
}
.section-title::after {
  content: "";
  flex: 1 1 1.5rem;
  height: 1px;
  margin-inline-start: .15rem;
  background: linear-gradient(90deg, #dcb3bd, #eedbe0 45%, transparent);
}
.section-title { letter-spacing: .005em; }
.research {
  grid-template-areas: "title title title" "pond work bear";
  grid-template-columns: clamp(7rem, 14vw, 9rem) minmax(0, 1fr) clamp(7rem, 14vw, 9rem);
  column-gap: clamp(.7rem, 2.5vw, 1.45rem);
}
.research > .section-title { grid-area: title; }
.research > .section-title::before { flex-basis: 2.1rem; background-position: 0 100%; }
.research > .entries { grid-area: work; }
.research > .pond-scene { grid-area: pond; justify-self: start; align-self: start; }
.research > .bear-scene { grid-area: bear; justify-self: end; align-self: end; }
.entries { display: grid; gap: clamp(.85rem, 2vw, 1.15rem); }
.entry + .entry {
  background: linear-gradient(90deg, var(--line), var(--line) 50%, transparent) top / 100% 1px no-repeat;
  padding-top: clamp(1rem, 2.2vw, 1.3rem);
}
.meta { margin-bottom: .52rem; }
.entry .meta {
  width: fit-content;
  padding: .2rem .66rem;
  border-radius: 999px;
  background: #fbe2ea;
  color: var(--accent);
  font-size: .7rem;
}
.description, .authors { margin-block: .55rem 0; max-width: 66ch; }
.authors { color: var(--muted); font-size: .91rem; line-height: 1.6; }
.authors strong { color: var(--ink); }
.entry .links { gap: .45rem .5rem; font-size: .86rem; margin-top: .85rem; }
.publications { grid-template-columns: minmax(0, 1fr); row-gap: clamp(1rem, 2vw, 1.45rem); }
.paper { display: grid; grid-template-columns: minmax(0, 15.75rem) minmax(0, 1fr); gap: .8rem clamp(1rem, 3vw, 1.8rem); align-items: stretch; }
.paper-figure { position: relative; margin: 0; min-width: 0; }
.paper-figure > button {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  overflow: hidden;
  padding: .5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
  box-shadow: var(--soft-shadow);
  transition: translate .35s, box-shadow .35s, border-color .35s;
}
.paper-figure > button:hover {
  border-color: #dcb3bd;
  background: var(--card);
  box-shadow: 0 1.5rem 2.2rem -1.3rem #8a365a66, 0 .3rem .8rem -.3rem #8a365a2e;
  translate: 0 -2px;
}
.paper-figure img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.figure-preview {
  width: min(91vw, 70rem);
  max-width: none;
  max-height: 91dvh;
  padding: clamp(.7rem, 2.4vw, 1.35rem);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 2rem 4rem -1.5rem #3d2a2280;
}
.figure-preview[open] { animation: bubble-in .3s ease both; }
.figure-preview::backdrop { background: #3d2a2280; backdrop-filter: blur(4px); }
.figure-preview form { display: flex; justify-content: flex-end; margin-bottom: .7rem; }
.figure-preview img { display: block; width: 100%; max-height: 76dvh; object-fit: contain; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .65rem 2rem; position: relative; margin-top: 1.6rem; background: linear-gradient(90deg, transparent, var(--hairline) 14%, var(--hairline) 45%, transparent 47.5%, transparent 52.5%, var(--hairline) 55%, var(--hairline) 86%, transparent) top / 100% 1px no-repeat; padding-block: 1.6rem 2.2rem; color: var(--muted); font-size: .83rem; }
.footer::before {
  content: "";
  position: absolute;
  top: -1.05rem;
  left: 50%;
  width: 2.1rem;
  aspect-ratio: 1;
  translate: -50% 0;
  background: var(--watercolor-sheet) 100% 100% / 300% 200% no-repeat;
}
.footer-meta { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; }
@media (prefers-reduced-motion: no-preference) {
  .profile, .section { animation: rise .9s cubic-bezier(.2, .7, .3, 1) both; }
  .education { animation-delay: .12s; }
  .experience { animation-delay: .2s; }
  .publications, .research { animation-delay: .28s; }
}
@keyframes rise { from { opacity: 0; translate: 0 .7rem; } }
@media (max-width: 42rem) {
  .profile {
    gap: clamp(1rem, 3vw, 1.5rem);
    padding-block: 1.2rem 1.45rem;
  }
  .paper { grid-template-columns: minmax(0, 1fr); }
  .paper-figure { width: min(100%, 26rem); }
  .paper-figure > button { position: relative; inset: auto; height: auto; aspect-ratio: 3 / 2; }
  .contact a, .entry .links a { min-height: 44px; padding-inline: .8rem 1rem; }
  .figure-preview button { min-height: 44px; }
  .research {
    grid-template-areas: "title title" "work work" "pond bear";
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .research > .bear-scene { align-self: start; margin-top: 1.45rem; }
}
@media (max-width: 32rem) {
  .profile { grid-template-columns: minmax(0, 1fr); }
  .gallery { width: min(100%, clamp(10rem, 44vw, 12rem)); justify-self: center; }
  .profile[data-gallery-orientation="landscape"] .gallery { width: min(100%, clamp(13rem, 59vw, 16rem)); }
  .nameplate { display: grid; width: fit-content; margin-inline: auto; }
  .timeline-row { grid-template-columns: minmax(0, 1fr); row-gap: .1rem; }
  .timeline-list .timeline-date { text-align: start; white-space: normal; }
}
@media (max-width: 28rem) {
  .frame { width: calc(100% - 2rem); }
  .header { gap: .35rem; padding-block: .65rem .35rem; }
  .primary-nav { width: 100%; justify-content: center; align-items: stretch; gap: 0; line-height: 1.25; }
  .primary-nav > a {
    display: grid;
    place-items: center;
    flex: 0 0 33%;
    min-width: max-content;
    min-height: 44px;
    padding-inline: .15rem;
    text-align: center;
  }
  .nameplate h1 { font-size: clamp(1.9rem, 7.5vw, 2.32rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pond-bird, .pond-bird .watercolor { transition: none; }
  .pond-bird .watercolor, .nameplate-stars, .photo-frame img, .scene-bubble, .figure-preview[open] { animation: none; }
}
