/* ==========================================================================
   Chuanting Zhang — homepage
   Editorial: warm paper, serif text, Shandong University crimson.
   ========================================================================== */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-var-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper:   #FAF8F3;
  --paper-2: #F3EFE6;
  --paper-3: #ECE6D9;
  --ink:     #1B1915;
  --ink-2:   #48433A;
  --muted:   #736D60;
  --faint:   #B3AB9B;
  --rule:    #E3DDD0;
  --crimson: #8E1B2B;
  --crimson-2: #6F1421;
  --crimson-soft: rgba(142, 27, 43, 0.075);

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia,
           "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
           "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono:  ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --cjk-serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC",
               "SimSun", serif;

  --aside: 272px;
  --gap: 88px;
  --main: 700px;
}

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.62;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(142, 27, 43, 0.16); }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 3px;
  border-radius: 2px;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.sprite { display: none; }

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px; top: -48px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper);
  font: 500 13px/1 var(--sans);
  transition: top 0.15s;
}
.skip:focus { top: 16px; }

/* Links inside running text: ink, with a hairline crimson underline. */
.about p a, .themes a, .examples a, .callout a, .by a {
  background-image: linear-gradient(rgba(142, 27, 43, 0.38), rgba(142, 27, 43, 0.38));
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: color 0.15s;
}
.about p a:hover, .themes a:hover, .examples a:hover, .callout a:hover {
  color: var(--crimson);
  background-image: linear-gradient(var(--crimson), var(--crimson));
}

/* ---------------------------------------------------------------- layout */

.page {
  max-width: calc(var(--aside) + var(--gap) + var(--main) + 96px);
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: var(--aside) minmax(0, var(--main));
  gap: var(--gap);
}

/* ------------------------------------------------------ profile column */

.profile {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  height: 100dvh;
  padding: 56px 0 36px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: none;
}
.profile::-webkit-scrollbar { display: none; }

.portrait {
  width: 168px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 0 var(--rule), 0 22px 44px -26px rgba(60, 30, 10, 0.5);
}

.name {
  margin: 28px 0 0;
  font-size: 36px;
  line-height: 1.04;
  font-weight: 560;
  letter-spacing: -0.018em;
}

.name-cn {
  display: block;
  margin-top: 8px;
  font-family: var(--cjk-serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--ink-2);
}

.role {
  margin: 18px 0 0;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}
.role strong { color: var(--ink); font-weight: 600; }

.contact {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  font-family: var(--sans);
  font-size: 13px;
}
.contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  color: var(--ink-2);
  transition: color 0.15s;
}
.contact a:hover { color: var(--crimson); }
.contact a:hover span { box-shadow: 0 1px 0 currentColor; }
.contact .icon { width: 15px; height: 15px; color: var(--muted); }
.contact a:hover .icon { color: var(--crimson); }

.toc {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 13px;
}
.toc a {
  display: flex;
  gap: 12px;
  padding: 3px 0;
  color: var(--muted);
  transition: color 0.15s;
}
.toc-no {
  width: 18px;
  font-variant-numeric: tabular-nums;
  color: var(--faint);
  transition: color 0.15s;
}
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); font-weight: 500; }
.toc a.is-active .toc-no { color: var(--crimson); }

/* Mobile top bar — hidden on wide screens. */
.topbar { display: none; }

/* ---------------------------------------------------------------- main */

main { padding: 64px 0 56px; min-width: 0; }

section { scroll-margin-top: 28px; }

h2 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 96px 0 30px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crimson);
}
h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.subhead {
  margin: 40px 0 4px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
h2 + .subhead { margin-top: 0; }

p { margin: 0 0 16px; color: var(--ink-2); }

/* --------------------------------------------------------------- about */

.lede {
  margin: 0 0 28px;
  font-size: 29px;
  line-height: 1.34;
  font-weight: 400;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: pretty;
}
.lede em { font-style: italic; color: var(--crimson); }

.callout {
  margin: 30px 0 0;
  padding: 18px 22px 18px;
  background: var(--paper-2);
  border-left: 2px solid var(--crimson);
}
.callout h3 {
  margin: 0 0 6px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crimson);
}
.callout p { margin: 0; font-size: 16.5px; line-height: 1.6; }

/* ------------------------------------------------------------ research */

.themes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.themes li { border-top: 1px solid var(--ink); padding-top: 16px; }
.theme-no {
  font-style: italic;
  font-size: 17px;
  color: var(--crimson);
}
.themes h3 {
  margin: 4px 0 8px;
  font-size: 20.5px;
  line-height: 1.25;
  font-weight: 560;
  letter-spacing: -0.01em;
}
.themes p { margin: 0; font-size: 16px; line-height: 1.55; }

.examples-intro {
  margin: 40px 0 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.examples {
  list-style: none;
  margin: 0;
  padding: 0;
}
.examples li {
  position: relative;
  padding: 6px 0 6px 28px;
  color: var(--ink-2);
}
.examples li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--crimson);
  font-family: var(--sans);
}

/* --------------------------------------------------------------- talks */

.talks { list-style: none; margin: 0; padding: 0; }

.talk {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}
.talk:last-child { border-bottom: 1px solid var(--rule); }

.when {
  padding-top: 4px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.talk-title { font-size: 18px; line-height: 1.38; color: var(--ink); }
.kind {
  margin-left: 4px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--crimson);
  vertical-align: 2px;
}
.talk-where {
  margin-top: 3px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
}
.talk-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 12.5px;
}

.talk-links a, .pub-actions a {
  color: var(--ink-2);
  box-shadow: 0 1px 0 var(--rule);
  transition: color 0.15s, box-shadow 0.15s;
}
.talk-links a:hover, .pub-actions a:hover {
  color: var(--crimson);
  box-shadow: 0 1px 0 var(--crimson);
}

.js .talks:not(.is-expanded) .is-extra { display: none; }
.more { display: none; }
.js .more {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--crimson);
  box-shadow: 0 1px 0 currentColor;
}
.js .more:hover { color: var(--crimson-2); }

/* -------------------------------------------------------- publications */

.pub {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.subhead + .pub, .year-head + .pub { border-top: 1px solid var(--rule); }

.pub-venue {
  margin-bottom: 8px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crimson);
}
.pub-venue span {
  margin-left: 6px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.pub-title {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 560;
  letter-spacing: -0.008em;
  text-wrap: pretty;
}
.pub-title a { transition: color 0.15s; }
.pub-title a:hover { color: var(--crimson); }

.pub-authors {
  margin: 0 0 2px;
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.pub-authors .me {
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 0 var(--crimson);
}
.pub-authors sup { color: var(--crimson); font-weight: 600; }

.pub-where {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}
.pub-where cite { font-style: italic; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 6px 12px 0;
  padding: 3px 10px;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.5;
  color: var(--crimson);
  background: var(--crimson-soft);
  border-radius: 2px;
  transition: background-color 0.15s;
}
.badge:hover { background: rgba(142, 27, 43, 0.13); }

.pub-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  font-family: var(--sans);
  font-size: 12.5px;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.15s;
}
.toggle .icon {
  width: 13px;
  height: 13px;
  stroke-width: 2;
  transition: transform 0.2s;
}
.toggle:hover, .toggle[aria-expanded="true"] { color: var(--crimson); }
.toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.panel {
  position: relative;
  margin-top: 16px;
  background: var(--paper-2);
  border-left: 2px solid var(--crimson);
}
.js .panel:not(.is-open) { display: none; }

.panel-abstract p {
  margin: 0;
  padding: 16px 20px;
  font-size: 16px;
  line-height: 1.66;
  color: var(--ink-2);
}

.panel-bibtex pre {
  margin: 0;
  padding: 44px 20px 16px;   /* top row is left clear for the Copy button */
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-2);
}

.copy {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.copy .icon { width: 12px; height: 12px; }
.copy:hover { color: var(--crimson); border-color: var(--crimson); }
.copy.is-done { color: var(--crimson); }

.pub-thumb {
  display: block;
  align-self: start;
  margin-top: 26px;
  cursor: zoom-in;
}
.pub-thumb img {
  width: 148px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 2px;
  filter: saturate(0.85);
  transition: filter 0.3s, border-color 0.3s;
}
.pub:hover .pub-thumb img { filter: none; border-color: var(--faint); }

.year-head {
  margin: 30px 0 12px;
  font-size: 22px;
  font-style: italic;
  color: var(--muted);
}

.full-list {
  margin: 28px 0 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
}
.full-list a, .resources a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--crimson);
  box-shadow: 0 1px 0 currentColor;
}
.full-list a:hover, .resources a:hover { color: var(--crimson-2); }
.full-list .icon, .resources .icon { width: 13px; height: 13px; stroke-width: 1.8; }

/* --------------------------------------------------------------- group */

.members {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 22px;
}
.member img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 15%;
  border-radius: 2px;
  background: var(--paper-2);
}
.member-name {
  margin-top: 11px;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 560;
}
.member-role {
  margin-top: 3px;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

/* ------------------------------------------------------------ teaching */

.courses { list-style: none; margin: 0; padding: 0; }
.courses li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 13px 0;
  border-top: 1px solid var(--rule);
}
.courses li:last-child { border-bottom: 1px solid var(--rule); }
.course { font-size: 18px; color: var(--ink); }
.terms {
  flex: none;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--muted);
  text-align: right;
}

/* ------------------------------------------------------------- service */

.service { margin: 0; }
.service-row {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}
.service-row:last-child { border-bottom: 1px solid var(--rule); }
.service dt {
  padding-top: 4px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}
.service dd { margin: 0; }
.service ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.service ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 28px;
}
@media (max-width: 720px) {
  .service ul { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------- honors */

.honors { list-style: none; margin: 0; padding: 0; }
.honors li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 20px;
  padding: 11px 0;
  border-top: 1px solid var(--rule);
  color: var(--ink);
}
.honors li:last-child { border-bottom: 1px solid var(--rule); }
.honors li.same-year { border-top-color: transparent; padding-top: 0; }
.honors li.same-year .when { visibility: hidden; }
.honors a { box-shadow: 0 1px 0 var(--crimson); transition: color 0.15s; }
.honors a:hover { color: var(--crimson); }
.by { color: var(--muted); }

.resources { list-style: none; margin: 10px 0 0; padding: 0; }
.resources li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 7px 0;
  font-family: var(--sans);
  font-size: 13.5px;
}
.resources .note { font-size: 12px; color: var(--muted); }

/* -------------------------------------------------------------- footer */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 104px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
}

/* ------------------------------------------------------------ lightbox */

.lightbox {
  max-width: min(92vw, 1100px);
  max-height: 90vh;
  padding: 16px;
  border: 0;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.45);
}
.lightbox::backdrop {
  background: rgba(27, 25, 21, 0.72);
  backdrop-filter: blur(2px);
}
.lightbox img {
  max-width: 100%;
  max-height: calc(90vh - 32px);
  object-fit: contain;
  margin: 0 auto;
}
.lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
}
.lightbox-close .icon { width: 18px; height: 18px; stroke-width: 2; }

/* ---------------------------------------------------------- responsive */

/* Shorter laptop screens: keep the whole profile column in view. */
@media (min-width: 1025px) and (max-height: 899px) {
  .profile { padding-top: 36px; padding-bottom: 24px; }
  .portrait { width: 128px; }
  .name { margin-top: 18px; font-size: 31px; }
  .name-cn { margin-top: 6px; }
  .role { margin-top: 10px; }
  .contact { margin-top: 12px; }
  .contact a { padding: 2px 0; }
  .toc { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .toc a { padding: 2px 0; }
}
@media (min-width: 1025px) and (max-height: 700px) {
  .profile { padding-top: 28px; }
  .portrait { width: 96px; }
  .name { margin-top: 14px; font-size: 28px; }
}

@media (max-width: 1180px) {
  :root { --aside: 240px; --gap: 56px; }
}

@media (max-width: 1024px) {
  html { scroll-padding-top: 64px; }
  section { scroll-margin-top: 64px; }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 18px;
    height: 52px;
    padding: 0 24px;
    background: rgba(250, 248, 243, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rule);
    font-family: var(--sans);
  }
  .topbar-brand {
    flex: none;
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 560;
  }
  .topbar-links {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
    font-size: 13px;
    mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent);
    padding: 0 16px;
  }
  .topbar-links::-webkit-scrollbar { display: none; }
  .topbar-links a { flex: none; color: var(--muted); padding: 4px 0; }
  .topbar-links a.is-active { color: var(--crimson); box-shadow: 0 1px 0 currentColor; }

  .page {
    display: block;
    max-width: 760px;
    padding: 0 24px;
  }
  .profile {
    position: static;
    height: auto;
    overflow: visible;
    padding: 40px 0 0;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 4px 24px;
    align-items: end;
  }
  .portrait { width: 120px; grid-row: span 1; }
  .name { margin-top: 0; font-size: 32px; }
  .role { margin-top: 10px; }
  .contact {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 2px 20px;
    margin-top: 20px;
  }
  .toc { display: none; }
  main { padding-top: 36px; }
  h2 { margin-top: 72px; }
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  .lede { font-size: 24px; }
  .themes { grid-template-columns: 1fr; gap: 22px; }
  .members { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; }
  .service-row { grid-template-columns: 1fr; gap: 4px; }
  .courses li { flex-direction: column; gap: 2px; }
  .terms { text-align: left; }
}

@media (max-width: 560px) {
  .topbar { padding: 0 16px; gap: 12px; }
  .topbar-brand { display: none; }
  .topbar-links { padding-left: 0; mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
  .page { padding: 0 18px; }
  .profile { grid-template-columns: 92px minmax(0, 1fr); gap: 4px 18px; padding-top: 28px; }
  .portrait { width: 92px; }
  .name { font-size: 27px; }
  .name-cn { font-size: 16px; margin-top: 4px; }
  .role { font-size: 12.5px; }
  .contact { gap: 0 18px; }

  .pub { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 24px 0; }
  .pub-thumb { order: -1; margin-top: 0; }
  .pub-thumb img { width: 100%; aspect-ratio: 16 / 9; }
  .pub-title { font-size: 19.5px; }

  .talk, .honors li { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
  .members { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer { margin-top: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* --------------------------------------------------------------- print */

@media print {
  body { background: #fff; font-size: 11pt; }
  .topbar, .toc, .pub-thumb, .pub-actions, .panel, .more, .skip, .lightbox { display: none !important; }
  .js .talks .is-extra { display: grid !important; }
  .page { display: block; padding: 0; max-width: none; }
  .profile { position: static; height: auto; padding: 0 0 12pt; display: block; }
  .portrait { width: 90px; float: right; }
  h2 { margin-top: 24pt; break-after: avoid; }
  .pub, .talk, .member { break-inside: avoid; }
  .pub { grid-template-columns: 1fr; padding: 10pt 0; }
  .members { grid-template-columns: repeat(6, 1fr); }
}
