*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: "Arial", sans-serif;
  margin: 0;
  line-height: 1.5;
}

.page-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
}

h1 { font-size: 2em; margin-bottom: 0.2em; }

.subtitle { color: #555; margin-top: 0; margin-bottom: 1em; }

.contact-links img {
  display: inline-block;
  height: 1.2em;
  max-height: none;
  width: auto;
  vertical-align: middle;
  margin: 0 0.3em;
}

.contact-links a { margin-right: 1em; }

details { margin: 1rem 0; }

summary { 
  cursor: pointer; 
  font-weight: bold; 
  list-style: none;

  align-items: center;

  padding: 0.75rem 1rem;
  border: 1px solid #d0d0d0;
  border-radius: 8px;

  background: #fafafa;
  user-select: none; 
}

summary::-webkit-details-marker {
  display: none;
}
summary::marker {
  content: "";
}

/* Content box */
.details-content {
  padding: 0.75rem 1rem;
  border: 1px solid #d0d0d0;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: white;
}

details > *:not(summary) {
  margin-left: 1.5rem;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.header .headshot img {
  max-width: 180px;
  height: auto;
  flex-shrink: 0;
}

.headshot {
  width: 160px;
  max-width: 40vw;
  height: auto;
}

.header-text {
  flex: 1;
  min-width: 0;
}

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

.footer-image {
    text-align: center;
}
.footer-image img {
    margin-top: 4rem;
    margin-left: auto;
    margin-right: auto;
}


.site-nav {
  position: sticky;
  top: 0;
  background: rgb(245, 247, 251);
  z-index: 10;
  border-bottom: 1px solid rgba(20, 60, 120, 0.15);
}

.site-nav > .page-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left {
  flex-shrink: 0;
}

.nav-right {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nav-name {
  text-decoration: none;
  font-weight: 700;
  font-size: 2.0rem;
  line-height: 1;
  color: inherit;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
}

.nav-name:hover {
  background: rgba(0,0,0,0.06);
}


.nav-link {
  text-decoration: none;
  color: inherit;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
}

.nav-link.active {
  background: rgba(0,0,0,0.08);
  font-weight: 600;
}

.nav-link:hover {
  background: rgba(0,0,0,0.06);
}

@media (max-width: 600px) {
  .header {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }

  .header-text {
    max-width: 100%;
  }

  .site-nav > .page-container {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .nav-right {
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-name {
    font-size: 1.6rem;
  }
}

.video-container {
  position: relative;
  width: 90%;
  margin: 2rem auto;
  aspect-ratio: 16 / 9;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* reserve the scroll bar even when not needed to prevent jumpiness between tabs */
html {
  overflow-y: scroll;
}
