:root {
  --accent: rgb(21, 111, 247);
}

body {
  background: #fff;
  color: #222;
  font-family: sans-serif;
  line-height: 1.5;
  margin: 0 auto;
  padding: 1rem;
  max-width: 1000px;
  font-family:'Bricolage Grotesque';
}

a {
  color: var(--accent);
  text-underline-offset: .25rem;
  text-decoration-thickness: .15rem;
  text-decoration-skip-ink: none;
  text-decoration-color: var(--accent);
}

a:not(:is(:hover, :focus)) {
  text-decoration-color: 
    color-mix(in srgb, currentColor, transparent 75%);
}

ul, ol {
  li {
    margin-bottom: .5rem;
  }
}

blockquote {
  border-radius: 20px;
  background-color: #f3f3f3;
  padding: 1rem 2rem;
}

header {
    text-align: center;

    a {
      text-decoration: none;
    }
}

footer {
  font-size: .9rem;
  color: #777777;
  margin-top: 2rem;
  text-align: center;

  a {
    color: #777777;
    border-bottom: 1px dotted;
  }
}

/* landing */
main.home {
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

main.home .landing {
    display: flex;
    justify-content: center;
    align-items: center;
}

main.home .landing .me {
    height: 450px;
}

main.home .landing section.bubble {
    border: 5px solid #222;
    padding: 1rem 2rem;
    border-radius: 20px;
    position: relative;
    min-height: 350px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    
    h2 {
        font-weight: 800;
        font-size: 3.5rem;
        line-height: 1;
        margin-bottom: 0;
    }
}

main.home .landing section.bubble::before {
    content: "";
    position: absolute;
    right: -62px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 30px solid transparent;
    border-bottom: 30px solid transparent;
    border-left: 30px solid #222;
    border-right: 30px solid transparent;
}

main.home .landing section.bubble::after {
    content: "";
    position: absolute;
    right: -55px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 30px solid transparent;
    border-bottom: 30px solid transparent;
    border-left: 30px solid #fff;
    border-right: 30px solid transparent;
}

section.email {
  margin-top: 1rem;
  font-size: 1.25rem;

  svg {
    position: relative;
    top: 3px;
  }
  
  a {
    color: #777;
    opacity: .75;
  }
}

main.home .landing nav {
    ul, li { /* reset default list style */
        margin: 0;
        padding: 0;
        text-indent: 0;
        list-style-type: none;
      }

      ul {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        gap: 1rem;
        justify-content: center;
        align-items: center;
      }

      a {
        font-size: 1.25rem;
        color: #fff;
        background-color: var(--accent);
        padding: .5rem 1.5rem;
        border-radius: 20px;
        text-decoration: none;
      }
}

@media only screen and (max-width: 1000px) {
  main.home .landing {
    .me {
      height: 200px;
    }
  
    main.home .landing section.bubble {
      h2 {
        font-size: 3rem;
      }

      nav a {
        font-size: 1rem;
      }

      nav ul {
        flex-direction: column;
      }
    }
  }
}

@media only screen and (max-width: 600px) {
  main.home .landing section.bubble::before {
    top: -32px;
    right: 45%;
    transform: rotate(.75turn);
    border-width: 15px;
    
  }

  main.home .landing section.bubble::after {
    transform: rotate(.75turn);
    top: -25px;
    right: 45%;
    border-width: 15px;
  }

  main.home .landing .me {
    margin-right: 0;
    height: auto;
    width: 45%;
  }

  main.home .landing section.bubble {
    margin-top: 20px;
    min-height: 0;
  }

  main.home .landing section.bubble h2 {
    font-size: 2.5rem;
  }

  main .landing {
    flex-wrap: wrap-reverse;
  }

  main.home {
    height: auto;
  }
}

/* basic page */
h1 {
    text-align: center;
}

hr {
  border: 1px solid #777;
  opacity: .25;
}

table {
  table-layout: fixed;
  width: 90%;
  border-collapse: collapse;
  margin: 10px auto;
  text-align: left;
}

th, td {
  padding: .5rem 1rem;
  border: 1px solid #777;
}

th {
  background-color: #f3f3f3;
  text-align: center;
}

/* cv */
.cv {
    h2 {
        text-transform: uppercase;
        border-bottom: 5px solid #222;
        font-size: 1.5rem;
        margin-top: 2rem;
    }

    h3 {
        font-size: 1.25rem;
        margin-top: 0;
        margin-bottom: -10px;
    }

    h4 {
        font-size: 1rem;
        font-style: italic;
        margin-bottom: -15px;
    }

    li::marker {
        color: var(--accent);
    }

    .references {
        font-size: 1.5rem;
        text-align: center;
        font-weight: 700;
    }
}

/* curriculum */
.curriculum {
    h1 {
      margin-top: 0; /* removes the margin because we're going to have breadcrumbs above */
      line-height: 1.2;
    }
    h2 {
        text-transform: uppercase;
        font-size: 1.5rem;
        margin-top: 2rem;
        font-weight: 800;
    }

    h3 {
        font-size: 1.25rem;
        margin-top: 0;
        margin-bottom: -10px;
    }

    h4 {
        font-size: 1rem;
        font-style: italic;
        margin-bottom: -15px;
    }
}

.curriculum .citation {
  p {
    display: inline;
  }
  
  .title {
    font-weight: 700;
    display: inline;
    color: var(--accent);
  }
}

.creativecommmons img {
  opacity: 0.5;
}

.email.curriculumFooter {
  margin-top: -0.5rem;
}

.email.curriculumFooter a {
  border-bottom: none;
}

@media only screen and (max-width: 450px) {
  blockquote {
    padding: 1.5rem 1rem;
    margin: 0;
  }
}

/* breadcrumbs */
.breadcrumbs {
  font-size: .8rem;
  color: #777;

  a {
    color: #777;
    text-decoration-color: #777;
  }

  a:not(:is(:hover, :focus)) {
  text-decoration-color: 
    color-mix(in srgb, currentColor, transparent 75%);
  }

  ol {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;

    li::after {
      content: '/';
      margin: 0 .5rem;
    }
  }
}

@media only screen and (max-width: 450px) {
  .breadcrumbs ol {
    flex-wrap: wrap;
  }
  .breadcrumbs li {
    flex-basis: 100%;
    text-align: center;
  }
}