:root {
  --navy: #122b42;
  --text: #202124;
  --muted: #6d747b;
  --line: #e9edf1;
  --page-width: 700px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

a {
  color: inherit;
}

.site-header {
  background: var(--navy);
  color: #fff;
}

.nav-wrap {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--page-width);
  min-height: 56px;
  padding: 0 18px;
}

.site-name {
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.site-name:hover {
  text-decoration: underline;
}

.page-wrap {
  margin: 0 auto;
  max-width: var(--page-width);
  min-height: calc(100vh - 136px);
  padding: 32px 18px 22px;
}

.intro {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: 180px 1fr;
  margin-bottom: 48px;
}

.profile-image {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 8px rgba(10, 30, 45, 0.2);
  height: 180px;
  object-fit: contain;
  padding: 10px;
  width: 180px;
}

h1,
h2 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 8px;
}

h2 {
  margin-top: 0;
}

p {
  margin: 0 0 12px;
}

section:not(.intro) {
  margin-bottom: 22px;
  scroll-margin-top: 18px;
}

ul {
  margin: 4px 0 0;
  padding-left: 32px;
}

li {
  margin-bottom: 2px;
}

.site-footer {
  background: #f7f8fa;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  min-height: 80px;
  padding: 10px 18px;
  text-align: center;
}

.site-footer p {
  margin: 0 0 4px;
}

.site-footer div {
  display: flex;
  gap: 8px;
  justify-content: center;
}

@media (max-width: 560px) {
  .page-wrap {
    padding-top: 24px;
  }

  .intro {
    display: block;
    margin-bottom: 32px;
  }

  .profile-image {
    display: block;
    height: 160px;
    margin-bottom: 20px;
    width: 160px;
  }
}
