/* header */
body > header {
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 .125rem .25rem var(--text-lighter);
    text-align: center;
    font-family: var(--serif-font);
    grid-column: -1/ 1;
    padding: 0 0.5rem 0.5rem;
}

/* Add a little padding to ensure spacing is correct between content and header > nav */
main {
    padding-top: 1.5rem;
}

header>nav a.current,
nav a[aria-current="page"] {
  position: relative;
  color: var(--text);
  font-weight: 900;
}



main {
    padding-top: 1.5rem;
}

/* footer */
body > footer {
    margin-top: 2rem;
    color: var(--text-light);
    font-size: 0.9rem;
    font-family: var(--serif-font);
    text-align: center;
    border-top: 1px solid var(--border);
    padding: 2rem 1rem 1.5rem 1rem;
    background-color: var(--accent-bg);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.footer-text {
    margin: 0;
    line-height: 1.6;
}

.footer-divider {
    margin: 0 0.5rem;
    color: var(--border);
}

.footer-license a,
.footer-blog a,
.footer-rss {
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition) ease;
}

.footer-license a:hover,
.footer-blog a:hover,
.footer-rss:hover {
    color: var(--accent);
}

.footer-rss {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
}

.footer-rss svg {
    width: 14px;
    height: 14px;
}

.footer-location {
    font-style: italic;
    font-size: 0.85rem;
}

/* Responsive footer */
@media only screen and (max-width: 810px) {
    .footer-content {
        gap: 0.75rem;
    }
    
    .footer-text {
        font-size: 0.85rem;
    }
    
    .footer-divider {
        display: none;
    }
}


/* Reduce header size on mobile */
@media only screen and (max-width: 810px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  h3 {
    font-size: 1rem;
  }

  h4 {
    font-size: 0.75rem;
  }
}

/* nav, header, footer */

nav {
    font-size: 1.15rem;
    line-height: 2.5;
    /* padding: 1rem 0 0 0; */
}

header > div > nav ul,
header > div > nav ol {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: space-around;
    align-items: center;
    justify-content: left;
    list-style-type: none;
    column-gap: var(--navspacer-large);
    /* margin-top: 0px; */
    /* padding-inline-start: 0px; */
}

header > div > nav ul li,
header > div > nav ol li {
    display: inline-block;
}

header > div > nav a, 
header > div > nav a:visited {
    text-decoration: none;
    color: var(--text);
}

header > div > nav a {
  display: inline-block;
  vertical-align: middle;
  transform: translateZ(0);
  backface-visibility: hidden;
  box-shadow: 0 0 1px transparent;
  position: relative;
  overflow: hidden;
}

header > div > nav a:hover {
  cursor: pointer;
  color: var(--text-darker);
}

header > div > nav a:before {
  content: "";
  position: absolute;
  z-index: -1;
  height: 2px;
  bottom: 0;
  left: 51%;
  right: 51%;
  background: var(--accent);
  transition-duration: var(--transition);
  transition-property: right, left;
  transition-timing-function: ease-out;
}
header > div > nav a:active:before, 
header > div > nav a:focus:before, 
header > div > nav a:hover:before {
  right: 0;
  left: 0;
}

footer > p {
    font-size: 0.9rem;
}


/* Reduce nav side on mobile */
@media only screen and (max-width: 810px) {
    header>nav a {
      border: none;
      padding: 0.1rem 0.3rem;
      line-height: 1;
    }
}


/* grid (flex) */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.row {
  display: flex;
  flex-wrap: nowrap;
}

.col {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

.col-lg-4 {
  flex: 33%;
}

.col-lg-8 {
  flex: 67%;
}

.col-md-5 {
  flex: 40%;
}

.col-md-7 {
  flex: 60%;
}

@media only screen and (max-width: 810px) {
  .row {
    flex-direction: column;
  }

  .col-lg-4 {
    flex: 100%;
  }

  .col-lg-8 {
    flex: 100%;
  }

  .col-md-5 {
    flex: 100%;
  }

  .col-md-7 {
    flex: 100%;
  }
}

.col-lg-8 > p {
  font-size: 1.3rem;
}

/* homepage */
#interests li {
  margin-top: 5px;
  margin-bottom: 5px;
  font-size: 1.2rem;
}

#profile {
  text-align: center;
  padding: 30px 10px;
  position: relative;
}

#profile h2 {
  font-size: 1.75em;
  font-weight: 300;
  margin: 20px 0 10px;
}

#profile h3 {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-light);
  margin: 0 0 10px;
}

.avatar {
  margin: 0 auto;
  max-width: 100%;
  display: block;
}

.network {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 10px 0 10px 0;
  border-top: 0.5px solid var(--border);
}

.network-item {
  margin-right: 0.5rem;
  margin-top: 0.2rem;
}

.network-item > a {
  color: var(--text);
  text-decoration: none;
}
.network-item > a:hover {
  color: var(--accent);
  text-decoration: underline;
}

#bio h1 {
  font-size: 1.8rem;
  font-weight: 400;
}

#background h2 {
  font-weight: 400;
  margin-top: 1.5rem;
  font-size: 1.5rem;
  font-variant: normal;
}

#education ul {
  list-style: square;
}

.course {
  margin-top: 10px;
  margin-bottom: 2px;
  font-size: 1.1rem;
}

.institution {
  margin: 0;
  font-size: 0.9rem
}

