/* =========================
   Global variables
========================= */

:root {
  --color-bg: #fffdf9;
  --color-text: #1f1f1f;
  --color-muted: #666666;
  --color-border: #e7e0d8;
  --color-accent: #8a5f5a;

  /* --color-bg: #181514;
  --color-text: #f4eee8;
  --color-muted: #b8aaa3;
  --color-border: #342d2a;
  --color-accent: #d49a91; */

  /* --color-bg: #1f1b19;
  --color-text: #efe7df;
  --color-muted: #a99b94;
  --color-border: #3a322f;
  --color-accent: #c98f86; */

  --font-main: "Inter", Arial, Helvetica, sans-serif;

  --container-width: 620px;
  --space-page: 2rem;
  --space-section: 4rem;
}

/* =========================
   Base styles
========================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

a:hover {
  color: var(--color-accent);
}

.container {
  max-width: 620px;
  margin: 0 auto;
  padding-left: var(--space-page);
  padding-right: var(--space-page);
}

/* =========================
   Navbar
========================= */

.site-header {
  border-bottom: 1px solid var(--color-border);
  background: rgba(255, 253, 249, 0.9);
}

.navbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  border-bottom: none;
}

.nav-links a:hover {
  color: var(--color-accent);
}

/* =========================
   Hero / Home
========================= */

.hero {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Fun version: */
/* .hero-image {
  width: 100%;
  height: 700px;
  object-fit: cover;
  background-color: #d9d9d9;
  display: block;
  margin-bottom: 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
} */

/* .hero h1 {
  font-size: 1.6rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
} */

/* Professional version: */
.hero-image {
  width: 175px;
  height: 175px;
  object-fit: cover;
  background-color: #d9d9d9;
  margin-bottom: 1.25rem;
  border-radius: 5%;
  border: 1px solid var(--color-border);
}

.hero-heading {
  display: flex;
  align-items: start;
  gap: 1.75rem;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin: 0;
}

.hero-title p {
  color: var(--color-muted);
  margin-top: 0.4rem;
  font-size: 1rem;
}

/* ---------- */

.hero-text {
  max-width: 590px;
  color: var(--color-muted);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* =========================
   General sections
========================= */

.section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.section h2::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

.section-text {
  max-width: 700px;
  color: var(--color-muted);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

/* =========================
   News
========================= */

.news-list {
  max-width: 650px;
  max-height: 180px;
  overflow-y: auto;

  border-left: 1px solid var(--color-border);
  padding-left: 1.25rem;
  padding-right: 0.75rem;
}

.news-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;

  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border);
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  color: var(--color-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.news-text {
  color: var(--color-text);
  font-size: 1rem;
}

/* =========================
   Publications
========================= */

.section-intro {
  max-width: 650px;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.publication-list {
  max-width: 750px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.publication-item {
  padding: 1.25rem 0;
  border-top: 1px solid var(--color-border);
}

.publication-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.publication-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.publication-venue,
.publication-status {
  font-size: 0.8rem;
  line-height: 1;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-muted);
}

.publication-title {
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 500;
  max-width: 680px;
  margin-bottom: 0.4rem;
}

.publication-authors {
  color: var(--color-text);
  margin-bottom: 0.2rem;
}

.publication-details {
  color: var(--color-muted);
  margin-bottom: 0.45rem;
}

.publication-links {
  display: flex;
  gap: 1rem;
}

.publication-links a {
  font-size: 0.95rem;
}


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

@media (max-width: 650px) {
  .navbar {
    min-height: auto;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-heading {
    gap: 1.25rem;
  }

  /* .hero-image {
    width: 100%;
    max-width: 250px;
  } */

  .hero-image {
    width: 140px;
    height: 140px;
  }
  .hero h1 {
    font-size: 1.65rem;
  }
}