:root {
  --text: #222;
  --muted: #666;
  --border: #d8d8d8;
  --accent: #24527a;
  --background: #fff;
  --soft: #f6f6f6;
  --font-main: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 24px;
  line-height: 1.65;
}

a {
  color: var(--accent);
}

a:hover {
  text-decoration-thickness: 2px;
}

.container {
  width: min(1050px, calc(100% - 56px));
  margin: 0 auto;
}

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

.site-name {
  margin: 0 0 22px;
  font-family: inherit;
  font-size: 30px;
  font-weight: normal;
}

.site-name a {
  color: var(--text);
  text-decoration: none;
}

.nav-list {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
}

.nav-list a {
  display: block;
  padding: 0 0 11px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

main {
  min-height: calc(100vh - 210px);
  padding: 54px 0 80px;
}

h1,
h2,
h3 {
  font-family: inherit;
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  margin: 0 0 24px;
  font-size: 36px;
}

h2 {
  margin: 48px 0 16px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--border);
  font-size: 28px;
}

h3 {
  margin: 0 0 5px;
  font-size: 24px;
}

p {
  margin: 0 0 24px;
}

.intro {
  max-width: 700px;
  font-family: inherit;
  font-size: 24px;
  line-height: 1.55;
}

.muted,
.meta {
  color: var(--muted);
}

.meta {
  margin-bottom: 6px;
  font-size: 20px;
}

.plain-list {
  padding-left: 21px;
}

.plain-list li {
  margin-bottom: 7px;
}

.entry {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.entry:first-child {
  padding-top: 0;
}

.entry:last-child {
  border-bottom: 0;
}

.entry p:last-child {
  margin-bottom: 0;
}

.citation {
  padding-left: 22px;
  text-indent: -22px;
}

.button {
  display: inline-block;
  padding: 8px 13px;
  color: #fff;
  background: var(--accent);
  border-radius: 2px;
  text-decoration: none;
}

.note {
  margin: 26px 0;
  padding: 13px 16px;
  background: var(--soft);
  border-left: 3px solid var(--border);
  color: var(--muted);
  font-size: 18px;
}

.contact-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  margin-bottom: 10px;
}

.site-footer {
  padding: 22px 0 30px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.profile-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 356px;
  gap: 48px;
  align-items: start;
}

.profile-photo {
  width: 356px;
  height: 428px;
  object-fit: cover;
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 28px, 860px);
  }

  .site-header {
    padding-top: 24px;
  }

  .nav-list {
    gap: 18px;
  }

  main {
    padding-top: 38px;
  }

  h1 {
    font-size: 31px;
  }

  .intro {
    font-size: 19px;
  }

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

  .profile-photo {
    width: 187px;
    height: 225px;
  }
}

