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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #fafafa;
  color: #2c2c2c;
  line-height: 1.75;
  font-size: 17px;
  font-weight: 400;
  padding: 60px 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

/* Navigation */
nav {
  margin-bottom: 64px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e8e8e8;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

nav a {
  color: #2c2c2c;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.3px;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

nav a:hover {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

nav a.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

/* Typography */
h1 {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 16px 0;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 56px 0 24px 0;
  color: #4a5568;
  border-bottom: 1px solid #e8e8e8;
  padding-bottom: 12px;
}

h3 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 8px 0;
  color: #1a1a1a;
}

p {
  margin-bottom: 16px;
  color: #4a5568;
  font-size: 17px;
  line-height: 1.75;
}

a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s ease;
  border-bottom: 1px solid transparent;
}

a:hover {
  color: #1d4ed8;
  border-bottom-color: #2563eb;
}

/* Intro section */
.intro {
  margin-bottom: 48px;
}

.intro p {
  font-size: 18px;
  line-height: 1.8;
  color: #4a5568;
  margin-bottom: 20px;
}

.links {
  display: flex;
  gap: 20px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.links a {
  font-size: 15px;
  color: #4a5568;
  border-bottom: 1px solid #d1d5db;
}

.links a:hover {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

/* News items */
.news-item {
  margin-bottom: 16px;
  padding-left: 0;
  position: relative;
  font-size: 17px;
  line-height: 1.75;
  color: #4a5568;
}

.news-item time {
  color: #6b7280;
  font-size: 15px;
  display: inline-block;
  min-width: 90px;
  font-weight: 400;
  margin-right: 12px;
}

.news-item a {
  color: #2563eb;
}

/* Publications */
.pub {
  margin-bottom: 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 32px;
  border-bottom: 1px solid #f0f0f0;
}

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

.pub img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 4px;
  border: 1px solid #e8e8e8;
  transition: transform 0.2s ease;
}

.pub:hover img {
  transform: scale(1.02);
}

.pub-content {
  flex: 1;
}

.pub-content h3 {
  margin-bottom: 8px;
}

.pub-content h3 a {
  color: #1a1a1a;
  border-bottom: 1px solid transparent;
}

.pub-content h3 a:hover {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.pub-meta {
  font-size: 15px;
  color: #6b7280;
  margin-top: 4px;
}

.pub-meta a {
  color: #6b7280;
  margin-left: 8px;
  font-size: 15px;
}

.pub-meta a:hover {
  color: #2563eb;
}

/* Remove decorative elements */
.ethiopic-header,
.ethiopic-cross,
.side-ornament,
.cross-decoration,
.pattern-divider {
  display: none;
}

/* Footer */
footer {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid #e8e8e8;
  text-align: center;
  font-size: 14px;
  color: #9ca3af;
}

/* Code page specific styles */
.news-item strong {
  font-weight: 500;
  color: #1a1a1a;
}

.news-item strong a {
  color: #1a1a1a;
  font-weight: 500;
}

.news-item strong a:hover {
  color: #2563eb;
}

.github-stats {
  display: inline-block;
  margin-left: 12px;
  font-size: 14px;
  color: #6b7280;
  font-weight: 400;
}

.stats-separator {
  color: #d1d5db;
  margin: 0 4px;
}

.stat-item {
  margin: 0 8px 0 0;
  display: inline-block;
}

.stat-icon {
  margin-right: 4px;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 40px 20px;
    font-size: 16px;
  }

  .container {
    max-width: 100%;
  }

  nav {
    margin-bottom: 48px;
  }

  nav ul {
    gap: 20px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 16px;
    margin-top: 48px;
  }

  .pub {
    flex-direction: column;
    gap: 16px;
  }

  .pub img {
    width: 100%;
    height: 180px;
  }

  .links {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 32px 16px;
  }

  nav ul {
    gap: 16px;
    font-size: 14px;
  }

  h1 {
    font-size: 24px;
  }

  .intro p {
    font-size: 16px;
  }
}
