:root {
  --text: #2f2f2f;
  --muted: #666;
  --border: #e5e5e5;
  --link: #267cb9;
  --link-hover: #1f5f8b;
  --page-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a:hover,
a:focus {
  color: var(--link-hover);
  text-decoration: underline;
}

.site-header {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--page-width);
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.site-title {
  color: #333;
  font-size: 1.05rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: flex-end;
}

.site-nav a {
  color: #555;
  font-size: 0.95rem;
}

.page {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 3rem;
  margin: 0 auto;
  max-width: var(--page-width);
  padding: 2.25rem 1.25rem 3rem;
}

.sidebar {
  color: var(--muted);
}

.profile-image {
  display: block;
  width: 180px;
  height: 180px;
  margin-bottom: 1.2rem;
  border-radius: 50%;
  object-fit: cover;
}

.sidebar h1 {
  margin: 0 0 0.35rem;
  color: #222;
  font-size: 1.55rem;
  line-height: 1.2;
}

.role {
  margin: 0 0 1rem;
}

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

.profile-links li {
  margin: 0.25rem 0;
}

.content {
  max-width: 780px;
}

section {
  margin-bottom: 2rem;
}

h2 {
  margin: 0 0 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
  color: #222;
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.25;
}

h3 {
  margin: 0 0 0.25rem;
  color: #222;
  font-size: 1.08rem;
  line-height: 1.35;
}

p,
ul {
  margin-top: 0;
}

article {
  margin-bottom: 1.4rem;
}

.meta {
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.94rem;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .page {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-top: 1.5rem;
  }

  .profile-image {
    width: 132px;
    height: 132px;
  }
}
