/* Warm paper and pixel typography, with open layouts and quiet controls. */
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/css/fonts/source-sans-3-latin.woff2") format("woff2");
}
:root {
  --realm-bg: #f5f1e8;
  --divider: rgba(96, 88, 78, 0.18);
  --paper: #fdf6e3;
  --paper-soft: rgba(255,252,246,0.82);
  --ink: #1f1b16;
  --muted: #6c6357;
  --accent: #b14d21;
  --accent-soft: rgba(177,77,33,0.12);
  --forest: #23403b;
  --concept: #6366f1;
  --insight: #f59e0b;
  --structure: #10b981;
  --guide: #0ea5e9;
}
body {
  background: radial-gradient(circle at top left, rgba(177,77,33,0.12), transparent 32%), radial-gradient(circle at right 18%, rgba(35,64,59,0.12), transparent 24%), repeating-linear-gradient(0deg, rgba(120,80,40,0.025) 0px, rgba(120,80,40,0.025) 1px, transparent 1px, transparent 8px), repeating-linear-gradient(90deg, rgba(120,80,40,0.025) 0px, rgba(120,80,40,0.025) 1px, transparent 1px, transparent 8px), linear-gradient(180deg, #f7f3ea 0%, #efe7d8 100%);
  color: var(--ink);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
}
a {
  color: inherit;
}
a:hover {
  color: var(--accent);
}
.headband {
  height: 0;
}
.header {
  background: transparent;
}
.header-inner,
.main-inner,
.footer-inner {
  width: calc(100% - 40px);
  max-width: 1180px;
}
.site-brand-container {
  margin: 0;
  padding: 6px 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.brand,
.menu .menu-item a,
.post-title-link {
  border-bottom: 0;
}
.site-title {
  color: var(--ink);
  font-family: ui-monospace, "Courier New", monospace;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: none;
}
.site-subtitle {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}
.main-menu {
  gap: 8px;
}
.menu .menu-item a {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 44px;
  margin: 0;
  padding: 9px 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-family: ui-monospace, "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: none;
  text-transform: uppercase;
}
.menu .menu-item a:hover,
.menu .menu-item-active a {
  background: var(--accent);
  color: #fffaf0;
  transform: none;
}
.main {
  padding-bottom: 0 !important;
}
.main-inner {
  padding-bottom: 0 !important;
}
.content-wrap {
  background: transparent;
}
.pixel-frame,
.posts-expand .post-block,
.page .post-block,
.archive .post-block,
.sidebar-inner {
  background: repeating-linear-gradient(45deg, rgba(120,80,40,0.009) 0 6px, transparent 6px 12px), var(--paper);
  border: 0;
  border-radius: 16px;
  box-shadow: none;
}
.post-block {
  margin-top: 24px;
  padding: 36px;
}
.post-title,
.post-title-link,
.home-title,
.home-section h2,
.section-title-row h2,
.profile-page h1,
.profile-page h2,
.territory-card h3,
.quest-card h3,
.publication-body h3 {
  color: var(--ink);
  font-family: ui-monospace, "Courier New", monospace;
  font-weight: 900;
  letter-spacing: 0;
}
.post-meta,
.post-body,
.publication-authors,
.publication-body p,
.profile-page p {
  color: var(--muted);
}
.post-body {
  font-size: 16px;
  line-height: 1.75;
}
.post-eof {
  display: none;
}
.sidebar {
  top: 124px;
}
.site-author-image {
  border: 3px solid var(--ink);
  border-radius: 0;
}
.site-author-name {
  color: var(--ink);
  font-family: ui-monospace, "Courier New", monospace;
  font-weight: 900;
}
.site-description,
.footer,
.footer a {
  color: var(--muted);
}
.footer {
  display: none !important;
  margin-top: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}
.footer-inner {
  min-height: 0;
  padding: 0 !important;
}
.pagination {
  display: none;
}
.links-of-author-item a {
  padding: 6px 10px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: #fffbf0;
}
.back-to-top {
  background: var(--accent);
  border: 3px solid var(--ink);
  border-radius: 0;
  color: #fffaf0;
  box-shadow: 3px 3px 0 rgba(31,21,8,0.28);
}
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
  gap: 28px;
  margin-top: 8px;
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.home-hero::before,
.home-hero::after {
  content: none;
}
.home-hero::before {
  left: 16px;
}
.home-hero::after {
  right: 16px;
}
.quest-tag {
  display: inline-block;
  width: fit-content;
  margin-bottom: 18px;
  padding: 5px 9px;
  border-radius: 4px;
  background: var(--accent);
  color: #fffaf0;
  font-family: ui-monospace, "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: none;
}
.home-title {
  margin: 0;
  font-size: 48px;
  line-height: 1.08;
  text-shadow: none;
}
.home-summary {
  max-width: 70ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}
.quest-actions,
.profile-actions,
.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.quest-button,
.profile-action,
.publication-links a,
.quest-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 6px;
  background: rgba(35,64,59,0.07);
  color: var(--forest);
  font-family: ui-monospace, "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: none;
  text-transform: uppercase;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.quest-button:hover,
.profile-action:hover,
.publication-links a:hover,
.quest-link:hover {
  background: rgba(35,64,59,0.12);
  color: var(--forest);
  transform: none;
  box-shadow: none;
}
.quest-button.primary,
.profile-action.primary {
  background: var(--accent);
  color: #fffaf0;
}
.quest-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.quest-stats span {
  padding: 6px 9px;
  border: 0;
  border-radius: 4px;
  background: rgba(35,64,59,0.06);
  color: var(--forest);
  font-family: ui-monospace, "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
}
.home-map-panel {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.home-hero-avatar {
  display: block;
  width: 154px;
  height: 154px;
  object-fit: cover;
  margin: 0 auto 18px;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
}
.home-map-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.blackhole-link {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding: 12px;
  background: radial-gradient(circle at 24px 24px, rgba(255,231,164,0.45), transparent 26px), #14110f;
  color: #fffaf0;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
}
.blackhole-link:hover {
  color: #fffaf0;
  transform: none;
}
.blackhole-link strong {
  display: block;
  margin-bottom: 3px;
  font-family: ui-monospace, "Courier New", monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.blackhole-link span:last-child {
  color: rgba(255,250,240,0.72);
  font-size: 13px;
  line-height: 1.35;
}
.blackhole-orbit {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at center, #030303 0 11px, transparent 12px), conic-gradient(from 20deg, #fff0a6, #e86d2f, #24100a, #fff0a6);
  box-shadow: none;
}
.home-section,
.profile-section {
  display: grid;
  gap: 18px;
  margin-top: 42px;
}
.home-section .section-title-row {
  margin-bottom: -8px;
}
.section-title-row h2,
.profile-section h2 {
  margin: 0;
  padding-left: 18px;
  font-size: 28px;
  line-height: 1.15;
  position: relative;
}
.section-title-row h2::before,
.profile-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 8px;
  background: linear-gradient(to bottom, var(--accent) 0, var(--accent) 33%, var(--ink) 33%, var(--ink) 66%, var(--accent) 66%, var(--accent) 100%);
  box-shadow: none;
}
.recent-note-list {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
}
.recent-note-link {
  display: block;
  padding: 10px 12px;
  border: 3px solid transparent;
  color: var(--ink);
  font-family: ui-monospace, "Courier New", monospace;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.3;
  text-decoration: none;
}
.recent-note-link:hover {
  border-color: var(--ink);
  background: var(--accent-soft);
  color: var(--ink);
  transform: none;
}
.recent-note-empty {
  color: var(--muted);
  font-family: ui-monospace, "Courier New", monospace;
  font-size: 14px;
}
.territory-grid,
.quest-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.territory-card,
.quest-card,
.publication-card {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.territory-card {
  padding: 8px 0;
}
.territory-card.concept {
  --topic-color: var(--concept);
}
.territory-card.insight {
  --topic-color: var(--insight);
}
.territory-card.structure {
  --topic-color: var(--structure);
}
.territory-card.guide {
  --topic-color: var(--guide);
}
.territory-card h3,
.quest-card h3,
.publication-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.25;
}
.territory-card p,
.quest-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.quest-board {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.quest-card.featured {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(0, 1fr);
  gap: 18px;
}
.quest-media {
  display: block;
  overflow: hidden;
  box-shadow: none;
}
.quest-media img {
  display: block;
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
}
.quest-label,
.publication-venue {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-family: ui-monospace, "Courier New", monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.quest-link {
  margin-top: 16px;
}
.profile-page {
  padding: 4px 0 10px;
  text-align: left;
}
.profile-page .section-kicker {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  max-width: 100%;
  padding: 6px 9px;
  border: 0;
  border-radius: 4px;
  background: var(--forest);
  color: #fffaf0;
  box-shadow: none;
  font-family: ui-monospace, "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.profile-hero .section-kicker {
  margin-bottom: 16px;
}
.profile-page .affiliation-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--divider);
}
.affiliation-mark {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.profile-page .affiliation-logo {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  object-fit: contain;
  image-rendering: pixelated;
}
.affiliation-copy {
  min-width: 0;
}
.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(240px, 0.68fr);
  gap: 36px;
  align-items: center;
  padding: 8px 0 36px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--divider);
  box-shadow: none;
}
.profile-hero-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: 38px;
  line-height: 1.12;
  text-shadow: none;
}
.profile-lead,
.profile-hero-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}
.profile-hero-media img {
  display: block;
  width: 100%;
  max-width: 260px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
}
.publication-card {
  display: grid;
  grid-template-columns: minmax(210px, 0.58fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-top: 0;
  padding: 24px 0;
  border-bottom: 1px solid var(--divider);
}
.publication-media img {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}
.profile-footnote {
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 991px) {
  .header-inner,
  .main-inner,
  .footer-inner {
    width: calc(100% - 24px);
  }
  .home-hero,
  .profile-hero,
  .quest-card.featured,
  .publication-card {
    grid-template-columns: 1fr;
  }
  .territory-grid,
  .quest-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-title {
    font-size: 38px;
  }
}
@media (max-width: 767px) {
  .header-inner,
  .main-inner,
  .footer-inner {
    width: calc(100% - 16px);
  }
  .site-brand-container,
  .home-hero,
  .profile-hero {
    margin-top: 14px;
    padding: 18px;
  }
  .territory-grid,
  .quest-board {
    grid-template-columns: 1fr;
  }
  .home-title,
  .profile-hero-copy h1 {
    font-size: 30px;
  }
  .home-summary,
  .profile-lead,
  .profile-hero-copy p,
  .post-body {
    font-size: 15px;
  }
  .quest-button,
  .profile-action,
  .publication-links a {
    width: 100%;
  }
  .profile-page .section-kicker {
    font-size: 12px;
  }
  .profile-page .affiliation-card {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 16px 0;
  }
  .affiliation-mark {
    width: 60px;
    height: 60px;
    padding: 4px;
  }
  .affiliation-copy h3 {
    font-size: 16px;
    overflow-wrap: anywhere;
  }
}

/* Keep the established pixel identity; refine density and interaction. */
:root {
  --font-body: "Source Sans 3", "PingFang SC", "Microsoft YaHei", sans-serif;
  --muted: #60584e;
}
html { height: auto; min-height: 100%; }
body { height: auto; min-height: 100vh; font-family: var(--font-body); color: var(--ink); }
strong, b { font-family: inherit; font-size: inherit; font-weight: 700; }
::selection { background: #e9c39c; color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--forest); outline-offset: 5px; }
a { text-underline-offset: 3px; touch-action: manipulation; }
[id] { scroll-margin-top: 20px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 1000; padding: 10px 16px; background: var(--forest); color: #fffaf0; border: 2px solid var(--ink); }
.skip-link:focus { top: 12px; color: #fffaf0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; }
.site-brand-container { flex: 0 0 auto; margin: 0; }
.site-nav { display: block !important; flex: 0 0 auto; width: auto; margin: 0 0 0 auto; padding: 0; }
.main-menu { display: flex; gap: 12px; margin: 0; padding: 0; }
.menu .menu-item { margin: 0; }
.site-nav-toggle, .site-nav-right, .sidebar-toggle, .sidebar, #sidebar-dimmer, .back-to-top { display: none !important; }
.content { padding-top: 0; }
.content-wrap { padding: 0; }
.main-inner { padding-bottom: 48px !important; }
.post-body { font-family: var(--font-body); font-size: 17px; line-height: 1.75; text-align: left; }
.home-summary, .home-map-panel p, .profile-page p { font-family: var(--font-body); }
.home-role { margin: 16px 0 0; color: var(--forest); font-size: 17px; font-weight: 600; }
.home-summary { margin-top: 14px; }
.publication-venue { font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.publication-authors { font-size: 15px; line-height: 1.6; }
.profile-lead { max-width: 74ch; }
.profile-hero-media img, .publication-media img { height: auto; }
.native-name { font-size: .65em; white-space: nowrap; }
.contribution-note { margin: 0; color: var(--muted); font-size: 14px; }
.research-direction { margin: 0; color: var(--muted); line-height: 1.7; }
.quest-button, .profile-action, .publication-links a { min-height: 44px; }
@media (max-width: 767px) {
  .header-inner, .main-inner, .footer-inner { width: calc(100% - 32px); }
  .header-inner { flex-wrap: wrap; gap: 8px; padding: 20px 0 10px; }
  .site-brand-container { margin: 0; padding: 6px 0; border: 0; box-shadow: none; }
  .site-title { font-size: 18px; }
  .main-menu { gap: 8px; }
  .menu .menu-item a { box-sizing: border-box; min-height: 44px; display: inline-flex; align-items: center; padding: 8px; font-size: 11px; }
  .menu .menu-item .fa { display: none; }
  .post-block { margin-top: 20px; padding: 24px 20px; }
  .post-body, .home-summary, .profile-lead, .profile-hero-copy p { font-size: 16px; line-height: 1.7; }
  .profile-hero { padding: 0 0 28px; }
  .home-hero { margin-top: 12px; padding: 28px 22px; }
  .home-hero::before, .home-hero::after { top: 12px; width: 8px; height: 8px; box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
  .home-hero::before { left: 12px; }
  .home-hero::after { right: 12px; }
  .home-map-panel { padding: 0; }
  .home-hero-avatar, .profile-hero-media img { width: 140px; height: 140px; margin: 0 auto 16px; object-fit: cover; }
  .home-role { font-size: 15px; }
  .quest-actions, .profile-actions, .publication-links { gap: 10px; }
  .quest-actions .quest-button, .profile-actions .profile-action, .publication-links a { width: auto; padding: 10px 12px; font-size: 11px; }
  .profile-page .affiliation-card { grid-template-columns: 52px minmax(0, 1fr); gap: 16px; padding: 16px 0; }
  .affiliation-mark { width: 52px; height: 52px; padding: 0; }
  .profile-section { margin-top: 36px; }
  .native-name { display: inline-block; margin-top: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Open rows separate content; borders no longer enclose every level. */
.logo-line-before, .logo-line-after { display: none; }
.profile-section { margin-top: 56px; }
.profile-section > .affiliation-card:last-child,
.profile-section > .publication-card:last-child { border-bottom: 0; }
.profile-section[aria-labelledby="publications"] { gap: 16px; }
.profile-section[aria-labelledby="education"],
.profile-section[aria-labelledby="internships"] { gap: 12px; }
.profile-page .publication-media img { margin: 0; }
.profile-page .profile-hero-media img { margin-left: auto; margin-right: auto; }
.publication-body { min-width: 0; }
.publication-body h3 { line-height: 1.4; }
.publication-links { gap: 24px; margin-top: 8px; }
.publication-links a, .publication-links a:hover {
  width: auto;
  min-height: 44px;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--forest);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  box-shadow: none;
  transform: none;
}
.publication-links a:hover { color: var(--accent); }
.quest-button.primary:hover, .profile-action.primary:hover { background: #94401b; color: #fffaf0; }
.quest-board .quest-card { padding-top: 20px; border-top: 1px solid var(--divider); }
.territory-card h3::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 9px; background: var(--topic-color); vertical-align: middle; }
@media (max-width: 767px) {
  .profile-section { margin-top: 40px; }
  .publication-card { gap: 20px; padding: 20px 0; }
}
