:root {
  --text: #222;
  --muted: #666;
  --accent: #f39205;
  --content-width: 960px;
}

* {
  box-sizing: border-box;
}

html {
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

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

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

.home-main {
  width: 100%;
  margin: 0;
  padding: 0;
}

.site-header {
  width: 100%;
  background: #fff;
}

.site-header-inner {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 10px 20px 10px 30px;
}

.site-header img {
  width: 350px;
}

.profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
  align-items: start;
  padding: 0;
  overflow: hidden;
  background: #fff6ec;
  box-shadow: 3px 2px 10px #f0f0f0;
}

.portrait {
  width: 100%;
  border: 5px solid #f7f8f9;
  border-radius: 5px;
  box-shadow: 3px 3px 10px #b2b2be;
}

.portrait-column {
  padding: 30px 50px 50px;
}

.profile-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 50px 100px 30px;
}

.wordmark {
  width: min(100%, 600px);
  margin-bottom: 20px;
}

.profile-links {
  width: max-content;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 60px;
  border-radius: 5px;
  background: #fff;
  box-shadow: 3px 3px 10px #b2b2be;
}

.profile-link {
  display: block;
  transition: opacity 150ms ease;
}

.profile-link:hover,
.profile-link:focus-visible {
  opacity: 0.65;
}

.profile-link img {
  max-height: 62px;
  width: auto;
}

.vita-link {
  font-size: 17px;
  font-weight: 400;
  text-align: center;
}

.agency-logo {
  width: 300px;
  margin-top: 30px;
  box-shadow: 3px 3px 10px #b2b2be;
}

.text-main {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 0 40px;
  font-size: 17px;
  line-height: 1.5;
}

.text-main h1,
.text-main h2 {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.text-main p,
.text-main ol {
  margin-top: 0;
  margin-bottom: 1.5em;
}

.text-main li + li {
  margin-top: 0.35em;
}

.site-footer {
  width: 100%;
  padding: 22px 30px;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

.site-footer a {
  color: var(--accent);
}

.site-footer span {
  margin: 0 0.45em;
}

@media (max-width: 1024px) {
  .profile {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .portrait-column {
    padding: 0;
  }

  .profile-content {
    padding: 30px 10px;
  }

  .wordmark {
    display: none;
  }

  .profile-links {
    padding: 20px 60px;
  }
}

@media (max-width: 720px) {
  .site-header-inner {
    padding: 10px 30px;
  }

  .site-header img {
    width: min(350px, 100%);
    margin: 0 auto;
  }

  .text-main {
    padding: 10px 30px 30px;
  }

  .profile-links {
    width: 100%;
    padding: 20px;
  }
}
