:root {
  color-scheme: only light;
  --paper: #f4f8ff;
  --paper-strong: #e9f1ff;
  --ink: #1d2a3a;
  --ink-soft: #33465f;
  --muted: #6a7c95;
  --line: #c9d7ee;
  --accent: #1e5fa8;
  --accent-2: #2a7fa0;
  --accent-3: #184a7a;
  --shadow: 0 20px 60px rgba(18, 30, 60, 0.12);
  --font-display: "Fraunces", "Noto Serif SC", "Iowan Old Style", serif;
  --font-sans: "IBM Plex Sans", "Noto Sans SC", "Gill Sans", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --font-hero-zh: "Noto Serif SC", "Songti SC", "STSong", serif;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
}

body.lang-zh [data-lang="en"],
body.lang-en [data-lang="zh"] {
  display: none !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(29, 55, 96, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(29, 55, 96, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.45;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 12% 15%, rgba(46, 108, 183, 0.14), transparent 55%),
    radial-gradient(circle at 88% 20%, rgba(35, 140, 181, 0.16), transparent 52%),
    radial-gradient(circle at 70% 85%, rgba(23, 78, 132, 0.12), transparent 58%);
  z-index: -3;
}

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

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

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

::selection {
  background: rgba(46, 108, 183, 0.28);
}

.site-header {
  max-width: 1440px;
  margin: 0 auto;
  padding: 26px 72px 18px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
}

.site-nav {
  display: flex;
  gap: 14px 32px;
  font-size: 0.98rem;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

.site-nav a {
  position: relative;
  padding: 4px 6px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.site-nav a:hover::after {
  width: 100%;
}

.site-nav a.is-active {
  color: var(--accent-3);
}

.site-nav a.is-active::after {
  width: 100%;
  background: var(--accent-3);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  overflow: hidden;
}

.lang-button {
  border: none;
  background: transparent;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--muted);
}

.lang-button.is-active {
  background: var(--ink);
  color: var(--paper);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px 120px;
}

.hero {
  padding: 18px 0 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.48fr) minmax(0, 1.4fr);
  gap: 58px;
  align-items: start;
}

.profile-block {
  margin-bottom: 18px;
}

.profile-name {
  font-size: clamp(2.05rem, 3.2vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 10px;
  letter-spacing: 0.02em;
  color: #243449;
}

.profile-name[data-lang="zh"] {
  font-family: "LXGW WenKai", var(--font-hero-zh);
}

.profile-name[data-lang="en"] {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

.profile-summary {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 46rem;
}

.profile-summary:last-child {
  margin-bottom: 0;
}

.profile-alert {
  color: #c31f24;
  font-weight: 600;
}

.profile-email {
  margin: 8px 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.profile-email a {
  color: var(--ink-soft);
  font-weight: 500;
}

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

.hero-actions {
  margin: 18px 0 24px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  gap: 8px;
  border: 1.5px solid var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05em;
  height: 1.05em;
  opacity: 0.78;
}

.button-icon svg {
  width: 1.05em;
  height: 1.05em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
}

.button.ghost {
  background: transparent;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(24, 23, 19, 0.15);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 16px;
}

.hero-meta strong {
  display: block;
  font-weight: 600;
  margin-top: 6px;
}

.label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--muted);
}

.experiences-card {
  border-radius: 20px;
  border: 1px solid rgba(31, 31, 27, 0.12);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 32px rgba(20, 19, 14, 0.08);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-height: 280px;
}

.experiences-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.experience-list {
  display: grid;
  gap: 14px;
  overflow-y: auto;
  padding-right: 6px;
  min-height: 0;
  flex: 1;
  scrollbar-color: rgba(31, 31, 27, 0.3) transparent;
}

.experience-list::-webkit-scrollbar {
  width: 6px;
}

.experience-list::-webkit-scrollbar-thumb {
  background: rgba(31, 31, 27, 0.2);
  border-radius: 999px;
}

.experience-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(31, 31, 27, 0.12);
}

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

.experience-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.experience-detail {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.experience-detail strong {
  color: var(--ink-soft);
  font-weight: 500;
}

.experience-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.experience-role {
  font-weight: 600;
  color: var(--accent-3);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.experience-meta {
  color: var(--ink-soft);
}

.hero-aside {
  display: grid;
  gap: 20px;
}

.experiences-section {
  margin: 44px 0 26px;
}

.service-list {
  display: grid;
  gap: 16px;
  width: 100%;
}

.service-item {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  padding: 18px 20px;
  display: grid;
  gap: 8px;
}

.service-role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.service-text {
  margin: 0;
  color: var(--ink-soft);
}

.contact-grid {
  display: grid;
  width: 100%;
}

.contact-card {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  padding: 20px 22px;
  box-shadow: 0 16px 30px rgba(24, 38, 62, 0.08);
  display: grid;
  gap: 14px;
}

.contact-lead {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

.contact-email {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--accent-3);
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-field {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.contact-field input,
.contact-field textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(29, 42, 58, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 95, 168, 0.15);
}

.contact-button {
  justify-self: flex-start;
}

.portrait-card {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  display: grid;
  gap: 0;
  max-width: 240px;
  width: 100%;
  justify-self: start;
}

.portrait-frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  border: 1px solid rgba(31, 31, 27, 0.12);
  background: #fff;
  padding: 6px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 18px 40px rgba(18, 17, 14, 0.12);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.hero-news {
  padding: 0;
}

.hero-news {
  margin-top: 28px;
}

.news-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-color: rgba(31, 31, 27, 0.3) transparent;
}

.news-list::-webkit-scrollbar {
  width: 6px;
}

.news-list::-webkit-scrollbar-thumb {
  background: rgba(31, 31, 27, 0.25);
  border-radius: 999px;
}

.news-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  padding: 6px 0 10px;
  border-bottom: 1px solid rgba(31, 31, 27, 0.12);
  align-items: center;
}

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

.news-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
}

.news-text {
  margin: 0;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-venue {
  color: #c0392b;
}

.news-link {
  color: var(--accent-2);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(30, 95, 168, 0.35);
}

.news-link:hover {
  color: var(--accent-3);
  border-bottom-color: rgba(24, 74, 122, 0.5);
}


.section {
  padding: 25px 0 4px;
}

.section-header {
  margin-bottom: 30px;
  max-width: 680px;
}

.section-header h2 {
  margin: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 2.9vw, 2.8rem);
  margin: 0 0 12px;
  color: #243449;
}

.pub-page {
  padding-top: 12px;
}

.project-page {
  padding-top: 12px;
}

.project-section {
  padding-top: 24px;
}

.project-page .project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.page-hero {
  padding: 6px 0 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  letter-spacing: 0.04em;
}

.page-title[data-lang="zh"] {
  font-family: var(--font-hero-zh);
  letter-spacing: 0.02em;
}

.page-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.page-note[data-lang="en"] {
  text-transform: uppercase;
}

.pub-groups {
  display: grid;
  gap: 32px;
}

[data-publications-page] {
  display: grid;
  gap: 32px;
}

.pub-year-block {
  display: grid;
  grid-template-columns: minmax(90px, 150px) minmax(0, 1fr);
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

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

.pub-year {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--accent-2);
  letter-spacing: 0.04em;
}

.pub-entry {
  padding: 14px 0 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
  gap: 18px;
  border-bottom: 1px dashed rgba(31, 31, 27, 0.18);
  align-items: center;
}

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

.pub-entry-content {
  display: grid;
  gap: 8px;
}

.pub-entry-media {
  border-radius: 16px;
  border: 1px solid rgba(31, 31, 27, 0.12);
  background:
    linear-gradient(135deg, rgba(30, 95, 168, 0.16), rgba(42, 127, 160, 0.12)),
    repeating-linear-gradient(
      135deg,
      rgba(31, 31, 27, 0.08) 0,
      rgba(31, 31, 27, 0.08) 6px,
      transparent 6px,
      transparent 12px
    );
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.pub-entry-media::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.pub-entry-media.has-image {
  background-color: #ffffff;
  background-image: var(--thumb);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.pub-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.4;
}

.pub-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pub-title a:hover {
  color: var(--accent-3);
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.pub-link-chip {
  appearance: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(31, 31, 27, 0.25);
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pub-link-chip:hover {
  transform: translateY(-1px);
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.pub-timeline {
  position: relative;
}

.pub-timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(30, 95, 168, 0),
    rgba(30, 95, 168, 0.55),
    rgba(30, 95, 168, 0)
  );
  pointer-events: none;
  z-index: 0;
}

.timeline-track {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 380px);
  gap: 18px;
  overflow-x: auto;
  padding: 28px 8px 28px;
  scroll-snap-type: x proximity;
  scrollbar-color: rgba(31, 31, 27, 0.3) transparent;
  cursor: grab;
  z-index: 1;
}

.timeline-track::-webkit-scrollbar {
  height: 8px;
}

.timeline-track::-webkit-scrollbar-thumb {
  background: rgba(31, 31, 27, 0.25);
  border-radius: 999px;
}

.timeline-card {
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  padding: 16px 18px 20px;
  display: grid;
  gap: 10px;
  box-shadow: 0 18px 34px rgba(20, 19, 14, 0.1);
  position: relative;
  z-index: 1;
}

.timeline-card::after {
  content: "";
  position: absolute;
  left: 24px;
  top: -20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 6px rgba(30, 95, 168, 0.14);
}

.pub-thumb {
  height: 120px;
  border-radius: 14px;
  border: 1px solid rgba(31, 31, 27, 0.12);
  background:
    linear-gradient(135deg, rgba(30, 95, 168, 0.2), rgba(42, 127, 160, 0.14)),
    repeating-linear-gradient(
      135deg,
      rgba(31, 31, 27, 0.08) 0,
      rgba(31, 31, 27, 0.08) 6px,
      transparent 6px,
      transparent 12px
    );
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.pub-thumb::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.pub-thumb.has-image {
  background-color: #ffffff;
  background-image: var(--thumb);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.timeline-date.is-hidden {
  visibility: hidden;
}

.timeline-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.3;
}

.pub-meta {
  margin: 0;
  color: var(--accent-3);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.venue-oral {
  color: #c31f24;
  font-weight: 700;
}

.pub-authors {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.45;
}

.pub-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-2);
}

.pub-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  align-items: center;
}

.pub-link-button:not(.pub-link-chip) {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.timeline-track.is-dragging {
  cursor: grabbing;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.project-grid article {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-grid article:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(18, 30, 60, 0.16);
  border-color: var(--accent-2);
}

.project-grid article:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.project-grid h3 {
  margin: 0;
  font-family: var(--font-display);
}

.project-grid a {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: var(--accent-2);
}

.project-type {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--accent-3);
  text-transform: uppercase;
}

.cite-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 20;
}

.cite-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cite-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 26, 44, 0.45);
  backdrop-filter: blur(6px);
}

.cite-dialog {
  position: relative;
  width: min(720px, calc(100% - 48px));
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 20px 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  z-index: 1;
}

.cite-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cite-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.cite-close {
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  cursor: pointer;
  color: var(--muted);
}

.cite-content {
  margin: 0;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.5;
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
}

.cite-actions {
  display: flex;
  justify-content: flex-end;
}

.cite-copy.is-copied::after {
  content: "OK";
  margin-left: 6px;
  font-weight: 600;
}

body.modal-open {
  overflow: hidden;
}


.site-footer {
  padding: 40px 48px 60px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal].reveal-in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-meta,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-page .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(150px, 0.5fr) minmax(0, 1fr);
    gap: 34px;
  }

  .portrait-card {
    max-width: 200px;
  }

  .pub-year-block {
    grid-template-columns: 1fr;
  }

  .pub-year {
    margin-bottom: 6px;
  }

  .pub-entry {
    grid-template-columns: 1fr;
  }

  .pub-entry-media {
    max-width: 320px;
  }
}

@media (max-width: 720px) {
  .hero-grid {
    grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1fr);
    gap: 28px;
  }

  .portrait-card {
    max-width: 170px;
  }

  main,
  .site-header,
  .site-footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero {
    padding-top: 20px;
  }

  .hero-meta {
    gap: 12px;
  }

  .hero-meta strong {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .timeline-track {
    grid-auto-columns: minmax(220px, 80vw);
  }

  .pub-thumb {
    height: 100px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }

  [data-reveal] {
    transition: none;
    opacity: 1;
    transform: none;
  }
}
