@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap");

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background-color: #100f0d;
  color: #ebe7df;
  font-family: "EB Garamond", "Iowan Old Style", "Sitka Text", Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
  font-variant-ligatures: common-ligatures contextual;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
}

/* ----- Layout ----- */
.layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: max(48px, 5vw);
  max-width: 1080px;
  height: 100vh;
  margin: 0 auto;
  padding: 0 max(40px, 6vw);
  box-sizing: border-box;
}

/* ----- Sidebar ----- */
.sidebar {
  text-align: center;
  padding-top: 88px;
}

/* Right column is the only scroll region, so the sidebar never moves. */
.content {
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 88px 0 96px;
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.content::-webkit-scrollbar {
  display: none;
}

.avatar {
  width: 200px;
  height: 200px;
  margin: 0 auto 26px;
  border-radius: 50%;
  overflow: hidden;
  background: #1c1a17;
  border: 1px solid rgba(235, 231, 223, 0.14);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.2);
}

.name {
  font-size: 1.6rem;
  line-height: 1.15;
  margin: 0 0 0.35em;
}

.tagline {
  margin: 0 0 1.1em;
  color: #9a958a;
  font-size: 0.95rem;
  line-height: 1.5;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cfc9bd;
}

.socials a:hover {
  color: #e0b877;
  transform: translateY(-2px);
}

/* ----- Content ----- */
.content {
  max-width: 680px;
}

h1, h2, h3 {
  font-weight: 500;
  color: #f3efe6;
  letter-spacing: -0.005em;
  font-feature-settings: "kern" 1, "liga" 1, "lnum" 1;
}

h2 {
  font-size: 1.25rem;
  margin: 0 0 0.6em;
}

.block {
  margin-bottom: 2.6rem;
}

.block:last-child {
  margin-bottom: 0;
}

p {
  margin: 0 0 1.1em;
  color: #e3ddd2;
  hyphens: auto;
  -webkit-hyphens: auto;
}

a {
  color: #ebe7df;
}

a:hover {
  color: #ffffff;
}

/* ----- Publications ----- */
.pub {
  padding: 20px 0;
  border-bottom: 1px solid rgba(235, 231, 223, 0.12);
}

.pub:first-of-type {
  padding-top: 0;
}

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

.pub-title {
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 0 0 0.35em;
  color: #e0b877;
  letter-spacing: 0.005em;
}

.pub-authors {
  margin: 0 0 0.2em;
  font-size: 0.95rem;
  color: #d6d1c6;
}

.pub-authors strong {
  color: #f3efe6;
  font-weight: 600;
}

.pub-venue {
  margin: 0;
  font-size: 0.88rem;
  color: #9a958a;
  font-style: italic;
}

.pub-links {
  margin: 0.7em 0 0;
  display: flex;
  gap: 10px;
}

.pub-btn {
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.78rem;
  color: #e0b877;
  text-decoration: none;
  border: 1px solid rgba(224, 184, 119, 0.5);
  border-radius: 3px;
}

.pub-btn:hover {
  color: #100f0d;
  background-color: #e0b877;
}

/* ----- Responsive ----- */
@media (max-width: 820px) {
  html, body {
    font-size: 18px;
    height: auto;
    overflow: auto;
  }
  .layout {
    grid-template-columns: 1fr;
    gap: 40px;
    height: auto;
    padding: 48px 28px 72px;
  }
  .sidebar {
    padding-top: 0;
  }
  .content {
    height: auto;
    overflow: visible;
    max-width: none;
    padding: 0;
  }
  .avatar {
    width: 160px;
    height: 160px;
  }
}
