/* Homepage and site polish for Yongjie Yang */

:root {
  --ink: #1c2430;
  --muted: #5c6573;
  --navy: #1e3a5f;
  --navy-soft: #e8eef6;
  --gold: #9a6b2f;
  --gold-soft: #f4ead8;
  --paper: #f6f3ee;
  --card: #fffdf9;
  --line: #e6e0d6;
  --award: #9b2c2c;
  --award-soft: #f8e8e8;
  --shadow: 0 8px 24px rgba(28, 36, 48, 0.06);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

#main,
.masthead,
.page__footer {
  animation: none;
}

.masthead {
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.masthead a,
.masthead__menu-item a {
  color: var(--ink) !important;
  font-weight: 600;
}

.masthead__menu-item--lg a {
  letter-spacing: 0.01em;
}

.is-home .page__title {
  display: none;
}

.is-home #main {
  margin-top: 1.25rem;
}

.page__content a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid rgba(30, 58, 95, 0.25);
}

.page__content a:hover {
  border-bottom-color: var(--navy);
}

.page__content h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  border-bottom: none;
  padding-bottom: 0;
  margin: 2.4rem 0 1rem;
  letter-spacing: -0.02em;
}

.author__avatar img {
  object-fit: cover;
  object-position: center 18%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--navy-soft);
}

.sidebar .author__name {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.35;
}

.author__job-market {
  display: inline-block;
  margin: 0.55rem 0 0.85rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #6d4a1c;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-lead {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink);
}

.job-banner {
  display: grid;
  gap: 0.35rem;
  margin: 1.4rem 0 1.5rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, var(--navy-soft), #f7f1e6);
  border: 1px solid #d9c9a8;
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.job-banner p {
  margin: 0;
  color: var(--ink);
}

.job-banner__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.job-banner__hint {
  color: var(--muted);
  font-size: 0.95rem;
}

.research-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 1.25rem;
}

.research-tags span {
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--navy-soft);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
}

.home-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.4rem 0 0.6rem;
}

.home-links a {
  display: inline-block;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff !important;
  border-bottom: none !important;
  font-weight: 600;
  font-size: 0.9rem;
}

.home-links a:hover {
  background: #16304e;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line);
}

.news-list li {
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  gap: 0.85rem;
  margin: 0 0 0.85rem;
  padding: 0 0 0.85rem 1rem;
  position: relative;
}

.news-list li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.45rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy);
}

.news-list time {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.news-list p {
  margin: 0;
  color: var(--ink);
}

.pub-note {
  margin: -0.4rem 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.pub-card,
.archive__item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem 1.05rem;
  margin: 0 0 0.9rem;
  box-shadow: var(--shadow);
}

.pub-card--featured {
  border-color: #d8c39a;
  background: linear-gradient(180deg, #fffdf8 0%, #f8f1e4 100%);
}

.pub-card h3,
.archive__item-title {
  margin: 0.35rem 0 0.35rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.12rem;
  line-height: 1.4;
  font-weight: 600;
}

.pub-card__top,
.pub-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.pub-venue {
  display: inline-block;
  padding: 0.16rem 0.5rem;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.pub-chip {
  display: inline-block;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.pub-chip--new {
  background: var(--navy-soft);
  color: var(--navy);
}

.pub-chip--award {
  background: var(--award-soft);
  color: var(--award);
}

.pub-authors,
.pub-meta,
.archive__item p {
  margin: 0.15rem 0;
}

.pub-authors {
  color: var(--ink);
}

.pub-meta,
.archive__item em {
  color: var(--muted);
  font-size: 0.92rem;
}

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

.award-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  margin: 0 0 0.65rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

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

.award-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.teaching__item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin: 0 0 0.9rem;
  box-shadow: var(--shadow);
}

.cv-container {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.3rem;
  box-shadow: var(--shadow);
}

.page__footer {
  background: #ece7de;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.archive__item hr {
  display: none;
}

@media (max-width: 700px) {
  .news-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
