:root {
  --bg: #fcfcfc;
  --text: #2d2d2d;
  --muted: #666;
  --line: #e5e5e5;
  --accent: #1f6fb2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Lato", sans-serif;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(252, 252, 252, 0.96);
  backdrop-filter: blur(6px);
}

.masthead-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0.75rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-title {
  font-family: "Merriweather", serif;
  font-weight: 700;
  color: #222;
  font-size: 1.05rem;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 1rem;
  margin-left: auto;
}

.site-nav a {
  color: #3c3c3c;
  font-size: 0.95rem;
}

.site-nav a.active {
  color: var(--accent);
  font-weight: 700;
}

.lang-toggle {
  border: 1px solid var(--line);
  background: #fff;
  color: #333;
  padding: 0.28rem 0.62rem;
  border-radius: 2px;
  cursor: pointer;
  font-size: 0.85rem;
}

#main {
  max-width: 1220px;
  margin: 0 auto;
  padding: 2rem 1.2rem 3rem;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 2.2rem;
}

.sidebar {
  position: sticky;
  top: 4.4rem;
  align-self: start;
}

.author-avatar {
  width: 132px;
  height: 132px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: "Merriweather", serif;
  font-size: 2rem;
  letter-spacing: 0.05em;
  color: #fff;
  background: linear-gradient(140deg, #1f6fb2, #0f4e83);
  margin-bottom: 1rem;
}

.author-name {
  margin: 0 0 0.25rem;
  font-family: "Merriweather", serif;
  font-size: 1.48rem;
  line-height: 1.15;
}

.author-affiliation {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.author-bio {
  margin: 0.85rem 0 0;
  color: #3c3c3c;
  font-size: 0.95rem;
}

.author-meta {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.93rem;
  color: var(--muted);
}

.author-meta li {
  margin-bottom: 0.3rem;
}

.author-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.author-actions a {
  border: 1px solid var(--line);
  padding: 0.26rem 0.58rem;
  color: #333;
  font-size: 0.84rem;
}

.page-content {
  min-width: 0;
}

.page-section {
  margin-bottom: 2.1rem;
}

.page-section h2 {
  margin: 0 0 0.65rem;
  font-family: "Merriweather", serif;
  font-size: 1.45rem;
  line-height: 1.2;
  padding-bottom: 0.42rem;
  border-bottom: 1px solid var(--line);
}

.page-section p,
.page-section li {
  font-size: 1rem;
}

.page-section ul {
  margin: 0;
  padding-left: 1.1rem;
}

.hint {
  color: #555;
  font-size: 0.92rem;
  margin-top: 0.2rem;
}

.pub-list {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.pub-list li {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 0.9rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.pub-year {
  font-family: "Merriweather", serif;
  color: var(--muted);
  font-size: 1.02rem;
  padding-top: 0.2rem;
}

.pub-list h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.34;
}

.pub-list p {
  margin: 0.25rem 0 0.3rem;
  color: #4e4e4e;
  font-size: 0.93rem;
}

.page-footer {
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

@media (max-width: 980px) {
  #main {
    grid-template-columns: 1fr;
    gap: 1.35rem;
    padding-top: 1.35rem;
  }

  .sidebar {
    position: static;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1rem;
  }

  .author-avatar {
    width: 104px;
    height: 104px;
    font-size: 1.6rem;
  }
}

@media (max-width: 760px) {
  .masthead-inner {
    flex-wrap: wrap;
    row-gap: 0.45rem;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .site-nav a {
    font-size: 0.9rem;
  }

  .pub-list li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}
