html {
  --bg-color: #0c2491;
  --fg-color: whitesmoke;
  --transparent-bg: rgba(from var(--bg-color) r g b / calc(alpha - 0.2));
  background-color: var(--bg-color, white);
  font-family: Baskerville, 'Times New Roman', serif;
  color: var(--fg-color, black);
}

/* navbar */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  background-color: var(--bg-color, #333);
  color: var(--fg-color, #fff);
  position: relative;
}

.logo {
  color: var(--fg-color, #fff);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
}

/* Hide the native checkbox element completely */
.menu-toggle {
  display: none;
}

/* Hamburger Icon Styling */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  color: var(--bg-color, #fff);
}

.hamburger .bar {
  height: 3px;
  width: 100%;
  background-color: var(--bg-color, #fff);
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
  box-shadow: inset 0 0 30px 10px #3498db;
}

/* Mobile Menu Links Layout */
.navbar {
  position: absolute;
  /* top: 100%; */
  left: 0;
  width: 100%;
  background-color: var(--bg-color, #333);
  max-height: 0;
  /* Keeps menu hidden by default */
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.navbar ul li {
  text-align: center;
}

.navbar ul li a {
  display: block;
  padding: 15px;
  color: var(--fg-color, #fff);
  text-decoration: none;
  font-size: 1.1rem;
  border-top: 1px solid var(--bg-color, #555);
  transition: background-color 0.2s;
}

.navbar ul li a:hover {
  background-color: var(--bg-color, #555);
}

/* CSS HACK TRIGGER: When checkbox is checked, slide down the menu */
.menu-toggle:checked~.navbar {
  max-height: 300px;
  /* Adjust based on your content size */
}

/* Optional: Morph Hamburger into an "X" when checked */
.menu-toggle:checked~.hamburger .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle:checked~.hamburger .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle:checked~.hamburger .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ---------------------------------------------------
   Desktop Responsive Layout (Screens wider than 650px)
--------------------------------------------------- */
@media (min-width: 650px) {

  /* Hide the hamburger icon on desktop */
  .hamburger {
    display: none;
  }

  /* Reset layout for standard inline horizontal navbar */
  .navbar {
    position: static;
    width: auto;
    max-height: none;
    overflow: visible;
    box-shadow: none;
  }

  .navbar ul {
    flex-direction: row;
  }

  .navbar ul li a {
    padding: 0 15px;
    border-top: none;
  }

  .navbar ul li a:hover {
    background-color: transparent;
    color: var(--fg-color, white);
  }
}


/* end navbar */


.content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas: "banner banner"
    "links author";

  gap: 1rem;
  padding: 2rem;
  width: 90vw;
}

.navbar {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
}

a {
  color: var(--fg-color, black);
}

.title {
  font-style: italic;
}

.main {
  
  display: grid;
  grid-template-columns: 1fr 20vw;
  grid-template-rows: min(75vh 100ch) min(25vh 100ch);

  
}
.compass {
  background-image: url('./images/compass_art.jpg');
  background-size: cover; background-position: center; background-repeat: no-repeat; height: 90vh; width: 100vw;

}

.main a {
  font-size: xx-large;
}

/* 
.main div {
  /* border: red solid 1px; 
  padding-left: max(20ch, 15%);
  padding-right: max(20ch, 15%);
} */

.hero {
  max-width: 100vw;
  align-content: center;
  vertical-align: top;
  aspect-ratio: auto;
  grid-column-start: span 2;
  align-items: center;
}

.hero>img {
  /* align-self: center; */
  max-height: 75vh;
  width: 100dvw;
  object-fit: contain;
  max-width: auto;
  object-fit: scale-down;
}

.bio-img-small {
  height: 25vh;
}

.main ul>li {
  text-decoration-color: pink;
}

.citation {
  font-size: 1.2qem;
  color: var(--fg-color, black);

  margin: 0.5em 0;

  span:last-of-type {
    font-style: italic;
  }
}

h1.publications {
  font-family: "Imperial Script";
}

div.publications {
  padding-left: max(20ch, 15vw);
  padding-right: max(20ch, 15vw);
}

.banner {
  grid-area: banner;
  height: fit-content;
  width: min(90vw, 636px);
  display: flex;
  width: 100%;
  justify-content: center;
  
}
.links {
  grid-area: links;
  height: fit-content;
  background-color: var(--transparent-bg);
  padding: min(10%, 50px);
  border-radius: 4px;
  box-shadow: inset 0 0 30px 10px #3498db;
  justify-content: center;
}

.author {
  grid-area: author;
  
  justify-items: center;
}

.wip {  
    display: flex;
    flex-direction: column;
    align-items: center;
    & .citation {
      text-align: center;
      font-size: 1.5rem; 
      line-height: 1.5rem;
      width: max(60vw,650px);
    }

    & .quote_img {
      text-align: center;
    }
    
    & .quote_img img {
      height: 40vh;
      width: fit-content;
      justify-content: center;
      
    }

    & .comps {
      text-align: center;
      width: max(60vw,650px);
    }
        
}



@media screen and (max-width: 650px) {
  .content {
    display: flex;
    flex-direction: column;
    width: 90vw;
  }

  .compass {
    background-image: none;
  }

  .main div {
    padding-left: 0;
    padding-right: 0;
  }

  div.publications {
    padding-left: 2%;
    padding-right: 2%;
  }

  .banner {
    display: flex;
    justify-content: center; 

  }
  .links {
    background-color: var(--transparent-bg);
    border-radius: 4px;
    box-shadow: inset 0 0 30px 10px #3498db;
  }

  .author {
    display: flex;
    justify-content: center;
  }
  .wip {

    & .citation {
      width: auto;
    }

    & .comps {
      width: auto;
    }
  }
}

