:root {
  color-scheme: light;
  --green: #1c4b3a;
  --text: #46564e;
  --muted: #647169;
  --paper: #fafbf8;
  --line: #dde3db;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  border-top: 4px solid var(--green);
}

.page {
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 4px);
  max-width: 1000px;
  margin-inline: auto;
  padding-inline: clamp(24px, 6vw, 64px);
}

main {
  flex: 1;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: clamp(48px, 8vh, 88px);
  text-align: center;
}

.logo {
  display: block;
  width: 112px;
  height: 112px;
  margin-bottom: 26px;
}

h1 {
  margin: 0;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.12;
}

.tagline {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--green);
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.4;
}

.intro {
  max-width: 490px;
  margin: 18px 0 0;
  font-size: 1.125rem;
  line-height: 1.75;
  text-wrap: pretty;
}

.contact {
  padding-block: 48px 64px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.contact p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.contact a,
.team-link {
  display: inline-block;
  padding-block: 8px;
  color: var(--green);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.6;
  text-decoration-color: #9caea2;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  overflow-wrap: anywhere;
}

.contact a:hover,
.team-link:hover {
  text-decoration-color: var(--green);
  text-decoration-thickness: 2px;
}

.contact a:focus-visible,
.team-link:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 5px;
  border-radius: 2px;
}

.team-link {
  margin-top: 28px;
  font-size: 0.9375rem;
}

.team-link span {
  margin-left: 6px;
}

.team {
  padding-top: 48px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.team h2,
.person h3 {
  margin: 0;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.team h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 2.5rem);
  text-align: center;
}

.person {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  align-items: start;
  gap: 40px;
  padding-block: 44px;
}

.person + .person {
  border-top: 1px solid var(--line);
}

.portrait {
  display: block;
  width: 176px;
  height: 220px;
  border-radius: 4px;
  object-fit: cover;
}

.person h3 {
  margin-bottom: 16px;
  font-size: 2rem;
}

.person p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
}

.person p + p {
  margin-top: 16px;
}

.person .education {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 23px 27px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}

footer p {
  margin: 0;
}

::selection {
  color: var(--green);
  background: #eee0ae;
}

@media (max-width: 540px) {
  .logo {
    width: 88px;
    height: 88px;
    margin-bottom: 24px;
  }

  .tagline {
    margin-top: 24px;
  }

  .intro {
    font-size: 1.0625rem;
    line-height: 1.7;
  }

  .contact {
    padding-block: 36px 44px;
  }

  footer {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
  }
}

@media (max-width: 680px) {
  .team {
    padding-top: 36px;
  }

  .person {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-block: 36px;
  }

  .portrait {
    width: 128px;
    height: 160px;
  }
}
