:root {
  color-scheme: dark;
  --bg: #0b1117;
  --text: #edf4f8;
  --muted: #a9b7c3;
  --subtle: #7f909d;
  --border: #263442;
  --accent: #6ee7b7;
  --focus: #f8d66d;
  --max-width: 780px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--text);
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

h1,
h2,
p {
  margin-top: 0;
}

p {
  color: var(--muted);
}

.container {
  width: min(100% - 40px, var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 8px 11px;
  background: var(--text);
  color: var(--bg);
  border-radius: 6px;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.nav,
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.nav {
  min-height: 64px;
}

.brand,
.nav-links a,
.footer-content a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a,
.footer-content a {
  color: var(--muted);
  font-size: 0.94rem;
}

.page {
  padding: 78px 0 72px;
}

.profile-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 156px;
  gap: 42px;
  align-items: start;
  margin-bottom: 52px;
}

.kicker {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

h1 {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 3.1rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.role {
  margin-bottom: 18px;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 700;
}

.description {
  max-width: 570px;
  margin-bottom: 0;
}

.avatar {
  width: 156px;
  height: 156px;
  border: 1px solid var(--border);
  border-radius: 50%;
  object-fit: cover;
  background: #101820;
}

.link-section,
.notes,
.contact {
  padding: 34px 0;
  border-top: 1px solid var(--border);
}

h2 {
  margin-bottom: 18px;
  color: var(--text);
  font-size: 1.28rem;
  line-height: 1.2;
  letter-spacing: 0;
}

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

.profile-links {
  display: grid;
  gap: 10px;
}

.profile-links li {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
}

.profile-links span {
  color: var(--subtle);
  font-weight: 700;
}

.profile-links a,
.reference-links a,
.contact a {
  overflow-wrap: anywhere;
  font-weight: 700;
}

.notes ul {
  display: grid;
  gap: 9px;
  color: var(--muted);
}

.reference-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.reference-links span {
  color: var(--subtle);
}

.contact p {
  margin-bottom: 0;
}

.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.footer-content p {
  margin: 0;
  color: var(--subtle);
  font-size: 0.92rem;
}

.footer-content nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(100% - 28px, var(--max-width));
  }

  .nav,
  .footer-content {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
  }

  .nav {
    padding: 16px 0;
  }

  .nav-links,
  .footer-content nav {
    justify-content: flex-start;
  }

  .page {
    padding: 44px 0 48px;
  }

  .profile-intro {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 34px;
  }

  .avatar {
    order: -1;
    width: 128px;
    height: 128px;
  }

  h1 {
    font-size: 2.35rem;
  }

  .profile-links li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
