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

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.1rem;
  color: #1c1c1c;
  background-color: #f4f3ef;
  line-height: 1.78;
}

/* ── Site header ── */

.site-header {
  background: #1a1a2e;
  color: #fff;
  padding: 1.75rem 0 0;
  border-bottom: 3px solid #8B0000;
}

.site-header h1 {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.9rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #fff;
}

.site-header p.tagline {
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  color: #9aa;
  margin-top: 0.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

nav {
  margin-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

nav a {
  text-decoration: none;
  color: #b8bcc8;
  margin-right: 1.75rem;
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.15s ease;
}

nav a:hover,
nav a.active {
  color: #fff;
  border-bottom: 2px solid #8B0000;
  padding-bottom: 3px;
}

/* ── Layout ── */

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

main {
  min-height: 60vh;
  padding: 2.5rem 0;
}

/* White content card — used on most pages */
main.content-block {
  background: #fff;
  border-radius: 3px;
  padding: 2.5rem 2.75rem;
  margin: 2rem 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* ── Homepage two-column layout ── */

.home-hero {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.75rem;
  align-items: start;
}

.home-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.home-sidebar img {
  width: 175px;
  height: 175px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  display: block;
}

.home-sidebar-info {
  width: 100%;
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.8rem;
  color: #444;
  line-height: 1.6;
}

.home-sidebar-info .sidebar-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: #1a1a2e;
  margin-bottom: 0.2rem;
}

.home-sidebar-info .sidebar-dept {
  color: #666;
  margin-bottom: 0.6rem;
}

.home-sidebar-info a {
  color: #8B0000;
  text-decoration: none;
  display: block;
  margin-bottom: 0.2rem;
}

.home-sidebar-info a:hover {
  text-decoration: underline;
}

.sidebar-divider {
  border: none;
  border-top: 1px solid #e0ddd8;
  margin: 0.5rem 0;
  width: 100%;
}

.home-bio p {
  margin-bottom: 1rem;
}

.home-bio p:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .home-hero {
    grid-template-columns: 1fr;
  }
  .home-sidebar {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }
  .home-sidebar img {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
  }
}

/* ── Section headings ── */

h2 {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #1a1a2e;
  border-left: 3px solid #8B0000;
  padding-left: 0.65rem;
  margin-bottom: 1.4rem;
  margin-top: 2.25rem;
}

h2:first-child {
  margin-top: 0;
}

h3 {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
  color: #1a1a2e;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #8B0000;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

ul li {
  margin-bottom: 0.75rem;
  padding-left: 1rem;
  position: relative;
}

ul li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: #8B0000;
}

/* ── Publication cards ── */

.pub-item {
  background: #fff;
  border-radius: 3px;
  border-left: 3px solid #8B0000;
  padding: 1.1rem 1.3rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.pub-journal {
  font-family: "Inter", Arial, sans-serif;
  color: #555;
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  margin-bottom: 0.3rem;
}

.pub-links {
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.pub-links a {
  margin-right: 0.6rem;
  background: #f5eaea;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  text-decoration: none;
  color: #8B0000;
  transition: background 0.15s, color 0.15s;
}

.pub-links a:hover {
  background: #8B0000;
  color: #fff;
}

/* ── Blog post cards ── */

.blog-post-item {
  background: #fff;
  border-radius: 3px;
  padding: 1.1rem 1.3rem;
  margin-bottom: 0.9rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border-left: 3px solid #8B0000;
  transition: box-shadow 0.15s;
}

.blog-post-item:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.blog-date {
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 300;
  color: #888;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.blog-post-item h3 {
  margin-bottom: 0;
  font-size: 1.05rem;
}

/* ── Course cards ── */

.course-item {
  background: #fff;
  border-radius: 3px;
  padding: 1.1rem 1.3rem;
  margin-bottom: 0.9rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border-left: 3px solid #1a1a2e;
}

.course-item h3 {
  color: #1a1a2e;
}

/* ── CV page ── */

.cv-download {
  display: inline-block;
  background: #8B0000;
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1.2rem;
  border-radius: 2px;
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin-bottom: 1.75rem;
  transition: background 0.15s;
}

.cv-download:hover {
  background: #6a0000;
  text-decoration: none;
  color: #fff;
}

/* ── Footer ── */

footer {
  background: #1a1a2e;
  color: #7a7d8a;
  margin-top: 3rem;
  padding: 1.5rem 0;
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  border-top: 3px solid #8B0000;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

footer a {
  color: #9aa;
  text-decoration: none;
}

footer a:hover {
  color: #fff;
}
