:root {
  color-scheme: light;
  --primary: #4A77B1;
  --muted: #5C6975;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f3f1ea;
  color: #1b1b18;
  font-family: "Noto Serif", "Times New Roman", serif;
}

html[lang="zh-CN"] body {
  font-family: "Noto Serif SC", "Noto Serif", "Times New Roman", serif;
}

html[lang="zh-CN"] .site-brand a {
  font-weight: 600;
}

/* =========================
   Shared Top Navigation
   ========================= */

  .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px;
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(34, 34, 34, 0.06);
}

.site-header-right {
  display: flex;
  align-items: center;
  gap: 0;
}

html[lang="en"] .site-header {
  font-family: "Palanquin", "Helvetica", "Arial", sans-serif;
}

.site-brand a {
  text-decoration: none;
  color: #333333;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-left: 12px;
  line-height: 1;
}

html[lang="en"] .site-brand a {
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
}

.site-nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
  margin-right: 20px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
}

html[lang="zh-CN"] .site-nav {
  font-size: 15px;
}

html[lang="en"] .site-nav {
  font-size: 14px;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 4px 0;
  transition: color 0.2s ease;
}

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

.site-nav a.active {
  color: #7ab4ff;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  font-size: 16px;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #222222;
  font-family: "Noto Serif", "Noto Serif SC", "Times New Roman", serif;
  font-weight: 400;
}

.lang-switch-handle {
  text-align: right;
  font-size: 0.95em;
}

.lang-switch-handle a {
  background: none;
  border: none;
  padding: 0 0 4px;
  font: inherit;
  color: inherit !important;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  text-decoration: none !important;
}

.lang-switch-handle a:visited,
.lang-switch-handle a:hover,
.lang-switch-handle a:active {
  color: inherit !important;
}

.lang-switch-handle a.active {
  color: #111111 !important;
  border-bottom-color: #f2d400 !important;
}

.lang-switch-handle a:focus-visible {
  outline: 2px solid #f2d400;
  outline-offset: 2px;
}

.lang-sep {
  color: currentColor;
  opacity: 0.6;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--primary);
  background: transparent;
  padding: 4px 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
  color: var(--primary);
}

.uta-page {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 40px;
  text-align: center;
}

.uta-line {
  margin: 0;
  font-size: clamp(24px, 4vw, 40px);
  letter-spacing: 0.02em;
}

.uta-cards {
  width: min(1240px, 100%);
  display: grid;
  gap: 20px;
  margin-top: 36px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: center;
}

.uta-card {
  width: 360px;
  max-width: 100%;
  aspect-ratio: 3 / 4;
  background: #ffffff;
  border: 1px solid rgba(27, 27, 24, 0.12);
  box-shadow: 0 8px 18px rgba(27, 27, 24, 0.08);
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
}

.uta-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  text-align: left;
  width: 100%;
  padding: 36px 32px;
  flex: 1;
}

.uta-card-title {
  margin: 0;
  font-size: clamp(15px, 2vw, 18px);
  letter-spacing: 0.02em;
}

.uta-card-body {
  font-size: clamp(13px, 1.8vw, 16px);
  line-height: 1.6;
}

.uta-card-body > * {
  margin: 0;
}

.uta-card-body > * + * {
  margin-top: 8px;
}

.uta-card-body a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.uta-card-body ul,
.uta-card-body ol {
  margin: 0;
  padding-left: 20px;
  text-align: left;
}

.uta-card-body li + li {
  margin-top: 6px;
}

.uta-card-body blockquote {
  margin: 0;
  padding-left: 12px;
  border-left: 2px solid rgba(27, 27, 24, 0.2);
  text-align: left;
  font-style: italic;
}

@media (min-width: 720px) {
  .uta-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .uta-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .uta-card {
    width: 420px;
  }
}

@media (min-width: 1400px) {
  .uta-cards {
    width: min(1480px, 100%);
  }

  .uta-card {
    width: 480px;
  }
}

/* =========================
   Responsive
   ========================= */

   @media (max-width: 720px) {
    .site-header {
      padding: 10px 14px;
    }
  
    .lang-switch {
      display: none;
    }
  
    .site-nav .lang-switch {
      display: inline-flex;
      margin-top: 6px;
    }
  
    .nav-toggle {
      display: inline-block;
    }
  
    .site-nav {
      position: fixed;
      top: 52px;
      left: 0;
      right: 0;
      flex-direction: column;
      gap: 10px;
      padding: 10px 18px 14px;
      background-color: rgba(255, 255, 255, 0.98);
      border-bottom: 1px solid rgba(34, 34, 34, 0.06);
      display: none;
    }
  
    .site-nav.is-open {
      display: flex;
      align-items: center;
    }
  
    .archive-hero-inner,
    .archive-inner {
      padding: 0 18px;
    }
  
    .timeline {
      padding-left: 64px;
    }
  
    .timeline::before {
      left: 24px;
    }
  
    .timeline-event {
      grid-template-columns: 1fr;
      row-gap: 10px;
    }
  }
  
