/* ==========================================================================
   qianwen.info — site stylesheet
   One file, no framework. Colors and type live in the variables below.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-var-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, "Songti SC", serif;

  --bg: #ffffff;
  --bg-tint: #f7f6f3;
  --surface: #ffffff;
  --surface-2: #f1efeb;
  --text: #1b1b1f;
  --text-2: #43434b;
  --muted: #6b6b75;
  --border: #e6e3dd;
  --border-strong: #d4d0c8;

  /* Accent color: override in _config.yml (appearance.accent / appearance.accent_dark) */
  --accent: #1f2a37;          /* ink */
  --accent-hover: color-mix(in srgb, var(--accent) 78%, #000);
  --accent-soft: color-mix(in srgb, var(--accent) 7%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 28%, transparent);
  --on-accent: #ffffff;       /* text on accent-filled buttons */
  --gold: #e8b100;            /* UMN gold, used sparingly */

  --award: #8a5a00;
  --award-bg: #fff4d6;
  --highlight: rgba(232, 177, 0, 0.32);   /* gold marker behind About keywords */
  --kw-underline: #e8b100;                /* thin gold underline for secondary keywords */

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 20, 30, 0.04), 0 4px 16px rgba(20, 20, 30, 0.05);
  --shadow-hover: 0 2px 4px rgba(20, 20, 30, 0.05), 0 10px 28px rgba(20, 20, 30, 0.09);
  --header-h: 64px;
  color-scheme: light;
  --container: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
}

/* Dark theme. <html data-theme="dark"> is set by the small script in _includes/head.html
   (visitor's saved choice, otherwise appearance.default in _config.yml, otherwise their system setting). */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121316;
  --bg-tint: #17181c;
  --surface: #1b1c21;
  --surface-2: #24252b;
  --text: #ececf0;
  --text-2: #c6c6ce;
  --muted: #9a9aa6;
  --border: #2c2d34;
  --border-strong: #3a3b44;

  --accent: #e7c46a;          /* gold */
  --accent-hover: color-mix(in srgb, var(--accent) 72%, #fff);
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 40%, transparent);
  --on-accent: #1b0b0f;
  --gold: #f2c94c;

  --award: #f2c45a;
  --award-bg: rgba(242, 196, 90, 0.12);
  --highlight: rgba(231, 196, 106, 0.26);
  --kw-underline: rgba(231, 196, 106, 0.75);

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .15s ease, text-decoration-color .15s ease;
}
a:hover { color: var(--accent-hover); text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; color: var(--text); }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: var(--surface-2);
  padding: 0.12em 0.4em;
  border-radius: 6px;
}
strong, b { font-weight: 600; color: var(--text); }

.icon { width: 1em; height: 1em; flex: none; vertical-align: -0.125em; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ---- Buttons & links ------------------------------------------------------ */
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: 600 0.92rem/1.2 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.button:hover { border-color: var(--accent); color: var(--accent); }
.button .icon { font-size: 0.85em; transition: transform .2s ease; }
.button.is-expanded .icon { transform: rotate(180deg); }
.button--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.button--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }

.text-button {
  margin-top: 14px; padding: 0;
  background: none; border: 0;
  color: var(--accent);
  font: 600 0.9rem var(--font-sans);
  cursor: pointer;
}
.text-button:hover { color: var(--accent-hover); }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 0.92rem;
  text-decoration: none;
}
.text-link .icon { font-size: 0.8em; transition: transform .2s ease; }
.text-link:hover .icon { transform: translateX(3px); }

/* ---- Header & navigation -------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.site-header__inner {
  height: 100%;
  display: flex; align-items: center; gap: 16px;
}
.site-nav { margin-left: auto; }
.header-actions { display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--border); border-radius: 50%;
  color: var(--text-2); font-size: 0.95rem; cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
:root[data-theme="dark"] .theme-toggle__moon,
:root:not([data-theme="dark"]) .theme-toggle__sun { display: none; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-weight: 650; font-size: 0.98rem; letter-spacing: -0.01em;
}
.brand:hover { color: var(--text); }
.brand img { border-radius: 6px; }

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 4px;
}
.site-nav a {
  position: relative;
  display: block;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.92rem; font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a[aria-current] { color: var(--accent); }
.site-nav a[aria-current]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 2px; border-radius: 2px; background: currentColor;
}
.site-nav__extra.is-first { margin-left: 8px; padding-left: 12px; border-left: 1px solid var(--border); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-size: 1.05rem; cursor: pointer;
}
.nav-toggle__close { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .theme-toggle { width: 40px; height: 40px; border-radius: 10px; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    display: none;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-hover);
  }
  .site-header.is-open .site-nav { display: block; }
  .site-header.is-open .nav-toggle__open { display: none; }
  .site-header.is-open .nav-toggle__close { display: inline; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 16px; gap: 0; }
  .site-nav a { padding: 12px 8px; font-size: 1rem; }
  .site-nav a[aria-current]::after { display: none; }
  .site-nav__extra.is-first { margin: 8px 0 0; padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--border); }
}

/* ---- Hero ---------------------------------------------------------------- */
.hero { padding: clamp(48px, 8vw, 88px) 0 clamp(24px, 4vw, 40px); }
.hero + .section { padding-top: clamp(32px, 5vw, 56px); }
.hero__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.hero__photo {
  width: 184px; height: 184px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border), var(--shadow);
}
.hero__name {
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.hero__cjk {
  font-family: var(--font-sans);
  font-size: 0.42em;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.04em;
  vertical-align: middle;
  margin-left: 6px;
}
.hero__role { margin: 14px 0 0; color: var(--text-2); font-size: 1.06rem; line-height: 1.55; }
.hero__role a { font-weight: 500; }
.hero__keywords {
  margin: 16px 0 0;
  display: flex; flex-wrap: wrap; gap: 6px 0;
  color: var(--muted); font-size: 0.95rem;
}
.hero__keywords span:not(:last-child)::after { content: "·"; margin: 0 10px; color: var(--border-strong); }
.hero__actions {
  margin-top: 24px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
}

.contact-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.contact-links a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-2);
  font-size: 1rem;
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.contact-links a:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.9rem; font-weight: 600;
  text-decoration: none;
}
.pill:hover { color: var(--accent-hover); }
.pill .icon { font-size: 0.8em; transition: transform .2s ease; }
.pill:hover .icon { transform: translateX(3px); }
.pill__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 30%, transparent);
}

@media (max-width: 640px) {
  .hero__inner { grid-template-columns: 1fr; text-align: left; }
  .hero__keywords { flex-direction: column; gap: 2px; }
  .hero__keywords span::after { display: none; }
  .hero__photo { width: 120px; height: 120px; }
}

/* ---- Sections ----------------------------------------------------------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tint { background: var(--bg-tint); }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}
.section-lede { max-width: 68ch; color: var(--text-2); font-size: 1.06rem; margin-bottom: 36px; }
.section-note { color: var(--muted); font-size: 0.92rem; margin: 0; max-width: 76ch; }
.subsection-title { font-size: 1.1rem; font-weight: 650; margin-bottom: 14px; }

/* ---- About + News -------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: stretch;   /* the news card takes the bio's height and scrolls inside */
}
.about__bio p { color: var(--text-2); font-size: 1.04rem; max-width: 68ch; }
/* Keywords in the bio get a gold highlighter stroke across their lower half. */
.about__bio strong {
  font-weight: 500;
  color: var(--text);
  box-shadow: inset 0 -0.45em 0 var(--highlight);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
/* The research question and the application area are plain bold, without the marker. */
.about__bio strong.kw-bold {
  box-shadow: none;
  font-weight: 600;
}

.news { padding: 24px 8px 0 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
/* The list is taken out of the layout so the card's height follows the bio, not the number of news items. */
.news__scroll { position: relative; flex: 1; min-height: 320px; }
.news__list {
  position: absolute; inset: 0;
  overflow-y: auto; overscroll-behavior: contain;
  padding-right: 14px;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent);
  scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
}
.news__list:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.news__item:last-child { padding-bottom: 28px; }
.news__title {
  font-size: 0.8rem; font-weight: 650;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.news__list { list-style: none; margin: 0; padding-left: 0; }
.news__item {
  display: block;
  padding: 7px 0;
  font-size: 0.92rem; line-height: 1.5;
  color: var(--text-2);
}
.news__date { margin-right: 6px; color: var(--muted); font-size: 0.8rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.news__date:empty { display: none; }
.news__text a, .news-link { font-weight: 500; }

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .news__scroll { min-height: 420px; }
}

/* ---- Research themes ---------------------------------------------------- */
.themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.theme { overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; }
.theme:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.theme__media { aspect-ratio: 16 / 10; background: #fff; border-bottom: 1px solid var(--border); padding: 14px; }
.theme__media img { width: 100%; height: 100%; object-fit: contain; }
.theme__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.theme__title { font-size: 1.12rem; font-weight: 650; margin-bottom: 10px; letter-spacing: -0.01em; }
.theme__body p { color: var(--text-2); font-size: 0.95rem; flex: 1; }

@media (max-width: 900px) { .themes { grid-template-columns: 1fr; max-width: 560px; } }

/* ---- Publications ------------------------------------------------------- */
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 20px 32px;
  margin-bottom: 28px;
}
.section-head .section-title { margin-bottom: 8px; }
.student { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font: 500 0.86rem/1.3 var(--font-sans);
  cursor: pointer;
  transition: all .15s ease;
}
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter.is-active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.pub-year {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 24px;
  border-top: 1px solid var(--border);
}
.pub-year__label {
  position: sticky; top: calc(var(--header-h) + 16px);
  align-self: start;
  padding-top: 22px;
  font-family: var(--font-serif);
  font-size: 1.35rem; font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.pub-list { list-style: none; margin: 0; padding: 0; }
.pub {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.pub:first-child { border-top: 0; }
.pub__thumb {
  display: block;
  aspect-ratio: 16 / 10;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: 6px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.pub__thumb:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.pub__thumb img { width: 100%; height: 100%; object-fit: contain; }
.pub__title { font-size: 1.04rem; font-weight: 600; line-height: 1.4; letter-spacing: -0.005em; margin-bottom: 6px; }
.pub__title a { color: var(--text); text-decoration: none; }
.pub__title a:hover { color: var(--accent); }
.pub__authors { margin: 0 0 4px; font-size: 0.92rem; color: var(--text-2); line-height: 1.55; }
.pub__authors .bold { font-weight: 650; color: var(--text); }
.pub__authors .underline { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--muted); }
.pub__venue { margin: 0; font-size: 0.9rem; color: var(--muted); font-style: italic; }
.pub__award {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 8px 0 0; padding: 3px 10px;
  border-radius: 999px;
  background: var(--award-bg); color: var(--award);
  font-size: 0.8rem; font-weight: 600;
}
.pub__links { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pub__links a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.8rem; font-weight: 500;
  text-decoration: none;
  transition: all .15s ease;
}
.pub__links a span { display: inline-block; }
.pub__links a span::first-letter { text-transform: uppercase; }
.pub__links a .icon { font-size: 0.85em; color: var(--muted); }
.pub__links a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.pub__links a:hover .icon { color: var(--accent); }

.pubs__more { margin-top: 28px; display: flex; justify-content: center; }
.pubs-page { padding: 16px 0 88px; }

/* Selected publications, grouped by research direction */
.section-legend { color: var(--muted); font-size: 0.85rem; margin: 4px 0 0; }
.section-links { display: flex; flex-wrap: wrap; gap: 8px; }
.button--small { padding: 6px 14px; font-size: 0.86rem; }
.pub-group {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  border-top: 1px solid var(--border);
}
.pub-group__head {
  position: sticky; top: calc(var(--header-h) + 16px);
  align-self: start;
  padding-top: 22px;
}
.pub-group__title { font-size: 1.05rem; font-weight: 600; line-height: 1.5; color: var(--text); margin: 0 0 6px; }
.pub-group__blurb { font-size: 0.88rem; color: var(--muted); line-height: 1.5; margin: 0; }
.mark--highlight {
  box-shadow: inset 0 -0.45em 0 var(--highlight);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.mark--underline {
  text-decoration: underline;
  text-decoration-color: var(--kw-underline);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
@media (max-width: 760px) {
  .pub-group { grid-template-columns: 1fr; gap: 0; }
  .pub-group__head { position: static; padding-top: 18px; }
}

@media (max-width: 760px) {
  .pub-year { grid-template-columns: 1fr; gap: 0; }
  .pub-year__label { position: static; padding-top: 18px; font-size: 1.15rem; }
  .pub { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 440px) {
  .pub { grid-template-columns: 1fr; }
  .pub__thumb { max-width: 240px; }
}

/* ---- Team -------------------------------------------------------------- */
.people {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 32px 24px;
}
.person__photo {
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-2);
  margin-bottom: 12px;
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; image-orientation: from-image; }
.person__name { margin: 0; font-weight: 600; line-height: 1.35; }
.person__name a { color: var(--text); text-decoration: none; }
.person__name a:hover { color: var(--accent); }
.person__role { margin: 2px 0 0; font-size: 0.86rem; color: var(--muted); line-height: 1.45; }

.team-extra {
  margin-top: 64px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(32px, 5vw, 64px);
}
.alumni { list-style: none; margin: 0; padding: 0; }
.alumni li {
  display: flex; flex-direction: column;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
}
.alumni li:first-child { border-top: 0; padding-top: 0; }
.alumni__name { font-weight: 600; }
.alumni__name a { color: var(--text); }
.alumni__info { color: var(--muted); font-size: 0.86rem; }
.alumni__dest { display: flex; gap: 6px; margin-top: 3px; color: var(--text-2); font-size: 0.86rem; }
.alumni__emoji { flex: none; }

.pets {
  list-style: none; margin: 16px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 20px 16px;
}
.pet img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; image-orientation: from-image; }
.pet p { margin: 8px 0 0; font-size: 0.84rem; line-height: 1.4; }

@media (max-width: 860px) { .team-extra { grid-template-columns: 1fr; } }

/* ---- Join -------------------------------------------------------------- */
.join-callout {
  padding: clamp(24px, 4vw, 36px);
}
.join-callout p { max-width: 72ch; color: var(--text-2); }
.join-callout__lead { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 600; color: var(--text) !important; margin-bottom: 10px; }
.join-callout__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.tags { list-style: none; margin: 4px 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.86rem; font-weight: 500;
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease;
}
.tag:hover { border-color: var(--accent); color: var(--accent); }
.join-email { font-size: 0.92rem; }
.join-email code { display: inline-block; margin-top: 6px; overflow-wrap: anywhere; }

/* ---- Footer ------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 28px; background: var(--bg); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.site-footer__name { margin: 0; font-family: var(--font-serif); font-weight: 600; font-size: 1.15rem; }
.site-footer__inner p.muted { margin: 2px 0 0; font-size: 0.88rem; }
.site-footer__meta { margin-top: 20px; font-size: 0.82rem; }
.site-footer__meta a { color: var(--muted); }

/* ---- Inner pages (Work with me, Life, CV) ----------------------------- */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 8px; }
.page-hero .container, .prose-page { max-width: 860px; }
.eyebrow { margin: 0 0 8px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; }
.eyebrow a { color: var(--muted); text-decoration: none; }
.eyebrow a:hover { color: var(--accent); }
.page-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 600; letter-spacing: -0.02em;
}
.page-subtitle { margin-top: 12px; color: var(--muted); font-size: 1.06rem; }
.page-subtitle p { margin: 0; }

.prose-page { padding-top: 24px; padding-bottom: 88px; color: var(--text-2); font-size: 1.03rem; }
.prose-page h2, .prose-page h3, .prose-page h4 {
  font-family: var(--font-serif); font-weight: 600; color: var(--text);
  margin: 2.2em 0 0.6em;
}
.prose-page h2 { font-size: 1.6rem; }
.prose-page h3 { font-size: 1.35rem; }
.prose-page h4 { font-size: 1.2rem; }
.prose-page hr { border: 0; border-top: 1px solid var(--border); margin: 2.5em 0; }
.prose-page ul, .prose-page ol { padding-left: 1.3em; }
.prose-page li { margin: 0.3em 0; }
.prose-page blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent-line); color: var(--muted); }

/* Life / photos */
.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.gallery a { display: block; color: var(--text-2); text-decoration: none; }
.gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-sm); image-orientation: from-image;
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery a:hover img { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.gallery span { display: block; margin-top: 8px; font-size: 0.88rem; }
.body-wide .prose-page { max-width: var(--container); }
.body-wide .page-hero .container { max-width: var(--container); }

/* CV */
.cv-frame { width: 100%; height: 82vh; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
