:root {
  --bg: #f4f1ea;
  --paper: #fffcf7;
  --ink: #1c1b18;
  --muted: #5f5c55;
  --line: #ddd6c8;
  --accent: #8c1d18;
  --link: #1f4e79;
  --chip: #efe8db;
}

* {
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 56px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.55;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header .inner,
main,
footer {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header .inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.brand {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 15px;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--accent);
}

main {
  padding: 36px 0 64px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 168px;
  gap: 36px;
  align-items: start;
  padding-bottom: 8px;
}

.kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 10px;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.cn-name {
  margin-left: 8px;
  color: var(--muted);
  font-size: 0.62em;
  font-weight: 500;
}

.identity {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
}

.hero p {
  margin: 0 0 12px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.links a {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--link);
  font-size: 15px;
  text-decoration: none;
}

.links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.links a:not([href]) {
  color: var(--muted);
  cursor: default;
}

.links a:not([href]):hover {
  border-color: var(--line);
  color: var(--muted);
}

.portrait {
  margin: 0;
}

.portrait img {
  display: block;
  width: 168px;
  height: 210px;
  object-fit: cover;
  background: var(--paper);
  border: 1px solid var(--line);
}

.pub > a {
  line-height: 0;
  text-decoration: none;
}

.pub-teaser {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: contain;
  background: var(--paper);
  border: 1px solid var(--line);
}

h2 {
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 22px;
  letter-spacing: -0.02em;
}

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

.news li {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.news li:last-child {
  border-bottom: none;
}

.news time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.pub {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.pub:last-child {
  border-bottom: none;
}

.pub-venue {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  padding: 8px 6px;
  background: var(--chip);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.pub-body h3 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.35;
}

.pub-body h3 a {
  color: inherit;
  text-decoration: none;
}

.pub-body h3 a:hover {
  color: var(--accent);
}

.authors,
.venue,
.highlight,
.where {
  margin: 0 0 4px;
  font-size: 15px;
}

.authors,
.venue,
.highlight,
.where,
.item p {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
}

.authors {
  color: var(--muted);
}

.me {
  color: var(--ink);
  font-weight: 700;
}

.venue {
  color: var(--accent);
  font-style: italic;
}

.highlight {
  color: #3f3d38;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

.pub-links a:not([href]) {
  color: var(--muted);
  text-decoration: none;
  cursor: default;
}

.item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.item:last-child {
  border-bottom: none;
}

.item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.item h3 {
  margin: 0 0 2px;
  font-size: 18px;
}

.when {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.item p {
  margin: 0 0 6px;
  font-size: 15px;
}

footer {
  padding: 0 0 40px;
  color: var(--muted);
  font-size: 14px;
}

.paper-hero {
  text-align: center;
  padding-bottom: 8px;
  overflow: hidden;
}

.paper-hero h1 {
  max-width: 100%;
  margin: 0 auto 16px;
  font-size: 32px;
}

.paper-authors {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 16px;
}

.paper-affiliations,
.paper-note {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.paper-note {
  margin-bottom: 12px;
}

.paper-authors a {
  color: var(--ink);
  text-decoration: none;
}

.paper-authors a:hover {
  color: var(--accent);
}

.paper-venue {
  margin: 0 0 20px;
  color: var(--accent);
  font-style: italic;
  font-size: 16px;
}

.paper-hero .links {
  justify-content: center;
}

.paper-teaser {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 28px 0 0;
  box-sizing: border-box;
  object-fit: contain;
  background: var(--paper);
  border: 1px solid var(--line);
}

.paper-page h2 {
  margin-top: 32px;
}

.video-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 12px;
}

.video-switch button {
  padding: 4px 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--link);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.video-switch button.is-active,
.video-switch button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.video-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1c1b18;
  border: 1px solid var(--line);
}

.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-empty {
  margin: 0;
  padding: 16px;
  color: #efe8db;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  text-align: center;
}

.paper-local-video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  background: #1c1b18;
  border: 1px solid var(--line);
}

.paper-page .abstract,
.paper-page .method {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  font-size: 16px;
}

.paper-page .abstract p,
.paper-page .method p,
.paper-page .method li {
  margin: 0 0 12px;
}

.paper-page .method ul {
  margin: 0 0 12px;
  padding-left: 1.2em;
}

.bibtex {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  white-space: pre;
}

@media (max-width: 700px) {
  body {
    font-size: 17px;
  }

  .site-header .inner,
  main,
  footer {
    width: calc(100% - 28px);
  }

  .site-header nav {
    display: none;
  }

  .hero,
  .news li,
  .pub {
    grid-template-columns: 1fr;
  }

  .item-head {
    flex-direction: column;
    gap: 2px;
  }

  .hero {
    gap: 20px;
  }

  h1 {
    font-size: 32px;
  }

  .paper-hero h1 {
    font-size: 26px;
  }

  .portrait img {
    width: 132px;
    height: 165px;
  }

  .pub-venue,
  .pub-teaser {
    width: 150px;
    height: 150px;
  }
}
