:root {
  --text: #2a2a2a;
  --muted: #6b6b6b;
  --link: #1a5fb4;
  --border: #e3e3e3;
  --max-width: 760px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.site-header nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.site-header nav a {
  color: var(--text);
}

/* Main */

main.container {
  padding-top: 40px;
  padding-bottom: 60px;
  min-height: 60vh;
}

/* Profile (home page) */

.profile {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 32px;
}

.profile-photo img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
  border: 4px solid #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.profile-info h1 {
  margin: 0 0 4px 0;
  font-size: 1.6rem;
}

.profile-info .role,
.profile-info .org {
  margin: 0;
  color: var(--muted);
}

.profile-info .links {
  margin-top: 12px;
}

.bio p:first-child {
  margin-top: 0;
}

/* News */

.news {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.news h2 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 16px;
}

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

.news li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

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

.news .date {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-right: 10px;
}

/* Generic page */

.page h1 {
  margin-top: 0;
}

.page .date {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Blog list */

.blog-list {
  list-style: none;
  margin: 24px 0 0 0;
  padding: 0;
}

.blog-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.blog-list li:first-child {
  padding-top: 0;
}

.blog-list a {
  font-weight: 600;
  font-size: 1.1rem;
}

.blog-list .date {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 2px;
}

.blog-list .summary {
  margin: 8px 0 0 0;
  color: var(--muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 20px 0;
}

/* Mobile */

@media (max-width: 480px) {
  .profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
