:root {
  --bg: #ffffff;
  --text: #1f2937;
  --muted: #5d6674;
  --line: #e7ebf0;
  --accent: #256f91;
  --personal-bg: #fbfaf6;
  --personal-line: #dfd6be;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
}

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

a:hover {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
.identity-name,
.identity-role,
.sidebar-label,
.sidebar-nav a,
.page-lead,
.identity-email {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.site-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 30px 22px 48px;
}

.site-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 44px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 24px;
}

.profile-photo {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 16px;
}

.sidebar-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sidebar-section {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.sidebar-nav {
  display: grid;
  gap: 6px;
}

.sidebar-nav a {
  display: block;
  padding: 4px 0;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 500;
}

.sidebar-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.main {
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.profile-strip {
  display: flex;
  align-items: center;
  min-height: 34px;
}

.profile-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.profile-icons img {
  width: 30px;
  height: 30px;
}

.identity {
  text-align: left;
}

.identity-name {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.1;
  font-weight: 700;
}

.identity-role {
  margin: 6px 0 2px;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 500;
}

.identity-email {
  font-size: 0.95rem;
}

.section {
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.section:last-child {
  margin-bottom: 0;
}

.section h2 {
  margin: 0 0 12px;
  font-size: 1.16rem;
}

.section h3 {
  margin: 18px 0 10px;
  font-size: 1rem;
}

.section p,
.section ul,
.section ol {
  max-width: 50rem;
}

.page-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.simple-list,
.pub-list {
  margin: 0;
  padding-left: 1.15rem;
}

.simple-list li,
.pub-list li {
  margin-bottom: 0.55rem;
}

.resource-list {
  display: grid;
  gap: 14px;
}

.resource-item {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.resource-item:last-child {
  border-bottom: 0;
}

.resource-item strong {
  display: block;
  margin-bottom: 4px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.resource-item span,
.pub-meta {
  color: var(--muted);
}

.pub-title {
  font-weight: 700;
}

.section--personal {
  background: var(--personal-bg);
  border-bottom: 0;
  border-top: 1px solid var(--personal-line);
  border-left: 0;
  padding: 16px 18px;
}

.section--personal p {
  color: var(--muted);
}

@media (max-width: 920px) {
  .site-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .sidebar {
    position: static;
  }

  .topbar {
    flex-direction: column;
  }

  .identity {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .site-shell {
    padding: 20px 14px 34px;
  }

  .identity-name {
    font-size: 1.6rem;
  }
}
