:root {
  --profile-size: 92px;
  --main-background: rgba(255,255,255,0.85);
  --nav-height: 44px;
  --content-width: 700px;
}

html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-size: 18px;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  background-image: url("../images/particles-zoom.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: 0 var(--nav-height);
  margin: 0;
}

h1 {
  text-align: center;
  font-size: 38px;
  font-weight: 300;
  line-height: 1.2;
  margin: 0px 0 30px;
  scroll-margin-top: 65px;
}

h2 {
  font-weight: 300;
  font-size: 28px;
  margin-top: 30px;
  line-height: 1.2;
  text-align: center;
}

img.main-image {
  width: 100%;
  max-width: calc(var(--content-width) + 160px);
  aspect-ratio: 2706 / 1754;
  text-align: center; 
  margin-top: 2em;
  margin-bottom: 2em;
  display: block;
}

img.bordered {
  border: 1px solid #777;
  border-radius: 8px;
  box-shadow: 2px 2px 5px #777;
}

a {
  text-decoration: none;
  color: #0366d6;
}

a:hover {
  cursor: pointer;
  text-decoration: underline;
}

p, li {
  margin: 0 0 1em;
}

iframe {
  margin: 1em 0 0.3em;
  width: 100%;
  aspect-ratio: 16 / 9;
}

nav {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  background-color: #547698;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 24px;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 30px;
  height: var(--nav-height);
  width: var(--content-width);
  color: #fff;
}

nav a {
  font-weight: 400;
  font-size: 14.5px;
  color: #dae5f0;
}

nav a:hover {
  text-decoration: none;
  color: #fff;
}

nav a:first-of-type {
  font-size: 18px;
}

#blur-background {  /* separate div avoids flash of bright bgrd */
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--main-background);
  z-index: -100;
}

main {
  padding: 0 24px;
  flex: 1 0 auto;
  line-height: 1.5;
}

section {
  padding-top: 50px;
}

section:first-of-type {
  padding-top: 100px;
}

section:last-of-type {
  padding-bottom: 140px;
}

section > * {
  margin-left: auto;
  margin-right: auto;
}

section > :not(img) {
  max-width: var(--content-width);
}

.team-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
}

.team-member {
  border: 1px solid gray;
  border-radius: 8px;
  display: flex;
  padding: 1em;
  gap: 1em;
  line-height: 1.2em;
}

.team-member img {
  width: var(--profile-size);
  height: var(--profile-size);
  border-radius: calc(var(--profile-size) / 2); 
}

.team-member a, .team-member .link-like {
  display: block;
  font-size: 1.05em;
  margin-bottom: 0.5em; 
}

.team-member p {
  font-size: 0.9em;
  margin: 0.3em 0 0;
  opacity: 0.7;
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f1f1f5;
  font-size: 0.92em;
  padding: 0 24px;
  color: #444;
  height: 70px;
  flex-shrink: 0;
  line-height: 1.3;
}

@media (max-width: 768px) {

  body {
    background-attachment: scroll;
  }

  .footer {
    height: 100px;
  }

  .team-wrapper {
    grid-template-columns: 1fr;
  }

}