/* Basic layout */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #111827;
  background-color: #f9fafb;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header and navigation */

.site-header {
  background: #111827;
  color: white;
  border-bottom: 1px solid #1f2933;
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.site-title {
  font-weight: 600;
  font-size: 1.2rem;
}

.site-nav a {
  margin-left: 1rem;
  font-size: 0.95rem;
  color: #e5e7eb;
}

.site-nav a:hover {
  color: white;
}

.site-nav a.active {
  font-weight: 600;
  color: #ffffff;
}

/* Main content */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

main {
  padding-bottom: 3rem;
}

h1, h2, h3 {
  margin-top: 0;
  color: #111827;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.3rem;
}

h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

/* Layout for home page */

.home-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2rem;
}

@media (max-width: 800px) {
  .home-layout {
    grid-template-columns: 1fr;
  }
}

/* Cards and boxes */

.card {
  background: white;
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  border: 1px solid #e5e7eb;
}

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

.news-item + .news-item {
  border-top: 1px solid #e5e7eb;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}

.news-date {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
}

.news-text {
  margin-top: 0.15rem;
}

/* Talks and publications */

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

.item {
  background: white;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  margin-bottom: 0.75rem;
}

.item-title {
  font-weight: 600;
}

.item-meta {
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.item-links {
  margin-top: 0.4rem;
  font-size: 0.9rem;
}

/* Talk images */

.talk-image {
  max-width: 180px;
  border-radius: 0.5rem;
  margin-top: 0.5rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid #e5e7eb;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
}
