:root {
  --bg: #f7f8f5;
  --panel: #ffffff;
  --ink: #1f2933;
  --muted: #66717d;
  --line: #d9ded9;
  --accent: #245f73;
  --accent-strong: #17324d;
  --warm: #8c6f45;
  --shadow: 0 18px 44px rgba(31, 41, 51, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(31, 41, 51, 0.1);
  background: rgba(247, 248, 245, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
}

.top-nav a {
  color: var(--muted);
}

.page-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 760px);
  gap: 56px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 54px 32px 72px;
}

.profile {
  position: sticky;
  top: 96px;
  align-self: start;
}

.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0 auto 1.2rem auto;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.profile-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1.2rem 0;
}

.profile-links a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.profile-links i {
  width: 1.2rem;
  text-align: center;
  font-size: 1rem;
}

.profile h1 {
  margin: 24px 0 4px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
}

.tagline,
.location {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
/* 
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 26px;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.profile-links a:hover,
.profile-links a:focus-visible {
  border-color: var(--accent);
  color: var(--accent-strong);
  text-decoration: none;
} */

.quick-facts {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.quick-facts p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.quick-facts strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.content {
  min-width: 0;
}

.section {
  padding: 0 0 38px;
  margin: 0 0 38px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 96px;
}

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

.section h2 {
  margin: 0 0 18px;
  color: var(--accent-strong);
  font-size: 28px;
  line-height: 1.2;
}

.section p {
  margin: 0 0 16px;
}

.news ul,
.awards {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.news li,
.awards li {
  position: relative;
  padding-left: 18px;
}

.news li::before,
.awards li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warm);
  content: "";
}

time {
  color: var(--accent-strong);
  font-weight: 750;
}

.entry {
  padding: 22px 0;
  border-top: 1px solid rgba(31, 41, 51, 0.12);
}

.entry:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.entry h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.entry-meta {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.entry-meta span {
  color: var(--muted);
  font-weight: 650;
}

.entry-meta time {
  color: var(--warm);
  font-size: 14px;
}

.entry.compact p {
  margin-bottom: 0;
}

.text-link {
  display: inline-flex;
  margin-top: 2px;
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 32px 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 14px 22px;
  }

  .top-nav {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .page-shell {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 34px 22px 54px;
  }

  .profile {
    position: static;
  }

  .avatar {
    width: 132px;
    height: 132px;
  }

  .profile h1 {
    max-width: 12ch;
    font-size: 26px;
  }

  .section {
    scroll-margin-top: 132px;
  }

  .section h2 {
    font-size: 24px;
  }

  .site-footer {
    flex-direction: column;
    padding-inline: 22px;
  }
}

@media (max-width: 440px) {
  .site-header {
    position: static;
  }

  .top-nav {
    width: 100%;
    justify-content: space-between;
  }

  .profile-links a {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }
}
