html {
  scroll-padding-top: 6rem;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0 auto;
  font-family: Arial, sans-serif;
}

.center {
  margin: 0 auto;
  min-width: 350px;
  max-width: 995px;
}

.hidden {
  display: none;
}

header.top {
  position: sticky;
  top: 0;
  height: 6rem;
  background: #2f5d62;
  color: white;
  padding: 0rem 1rem;
}

header.top a {
  color: white;
  text-decoration: none;
}

header.top a:hover {
  text-decoration: underline;
}

header.top > div {
  display: flex;
  height: 100%;
  width: 100%;
  column-gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

header .logo h1 {
  font-size: 2rem;
  margin: 0 0 0.2rem 0;
}

header .menu ul {
  display: flex;
  column-gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: space-between;
}

header .menu li {
  margin: 0;
}

header .menu button {
  display: none;
  appearance: none;
  background: transparent;
  border: none;
  color: white;
  width: 2rem;
  height: 2rem;
  background: no-repeat center/100%;
  background-image: url("/img/menu.svg");
  cursor: pointer;
}

header .menu.opened button {
  background-image: url("/img/close.svg");
}

@media (max-width: 700px) {
  header .menu ul {
    display: none;
  }

  header .menu.opened ul {
    display: block;
  }

  header .menu button {
    display: block;
  }

  header .menu ul {
    background: #2f5d62;
    position: fixed;
    inset: 5rem 0 auto 0;
    padding: 1rem;
    text-align: right;

    flex-direction: column;
    row-gap: 1rem;
  }

  header .menu a {
    display: block;
    padding: 0.5rem;
  }
}

main {
  line-height: 1.2;
}

main a {
  color: black;
}

main a:hover {
  background: rgba(0, 0, 0, 0.1);
}

main section {
  padding: 0 1rem;
  display: flow-root;
}

main section:nth-child(even) {
  background: #e3f6f5;
}

main h2 {
  margin: 1rem 0;
}

main p {
  margin: 1rem 0;
}

.bio {
  display: grid;
  grid-template-columns: 325px 1fr;
  grid-row-gap: 1rem;
  grid-column-gap: 1rem;
  margin: 1rem 0;
}

.bio h2 {
  margin: 0 0 1rem 0;
}

.bio .photo {
  grid-row-start: 1;
  grid-row-end: 4;
}

.bio .photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 827 / 1102;
}

.bio .certs {
  text-align: center;
}

.bio > h2 {
  margin: 0;
}

.bio ul {
  margin: 0;
}

.bio li {
  margin: 0 0 1rem 0;
}

.bio li:last-child {
  margin: 0;
}

@media (max-width: 600px) {
  .bio {
    grid-template-columns: 1fr;
  }
  .bio .photo {
    grid-row-start: 2;
    grid-row-end: 2;
  }
}

main ul {
  list-style: "→";
  padding: 0 1rem;
}

main li {
  padding-left: 1rem;
  margin: 1rem 0;
}

.contact {
  display: flex;
  align-items: center;
  column-gap: 3rem;
}

.contact form {
  flex: 1 1 0;
}

.contact address {
  flex: 1 1 0;
  font-style: normal;
}

.contact address > p:first-child {
  margin-top: 0;
}

.contact form > div {
  margin: 1rem 0;
}

.contact form > div:first-child {
  margin-top: 0;
}

.contact label {
  display: block;
}

.contact input,
.contact textarea {
  padding: 0.5rem;
  box-sizing: border-box;
  width: 100%;
}

.contact textarea {
  height: 10rem;
}

@media (max-width: 700px) {
  .contact {
    flex-direction: column;
    row-gap: 1rem;
  }

  .contact > * {
    width: 100%;
  }

  .contact address {
    order: 1;
  }

  .contact form {
    order: 2;
  }
}
