@import url("reset.css");

@font-face {
  font-family: "Authentic Sans";
  src: url("fonts/authentic-sans-60.otf") format("opentype");
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: "Authentic Sans";
  src: url("fonts/authentic-sans-90.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: "Authentic Sans";
  src: url("fonts/authentic-sans-130.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Authentic Sans";
  src: url("fonts/authentic-sans-150.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

:root {
  --Shade: #1e3c32;
  --Trees: #2A5241;
  --Clouds: #F1F1F1;
  --Cream: #fffef9;
  --font-nav: "Authentic Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

/* Small mobile base styles, ex. iPhone SE */

body {
  background-color: var(--Clouds);
  color: var(--Trees);
  font-family: var(--font-nav);
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
}

.page-container {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Fallback for older browsers that don't support dvh */
@supports not (height: 100dvh) {
  .page-container {
    height: 100vh;
    min-height: 100vh;
  }
}

.dropdown-icon {
  margin-right: 0.7rem;
}

header {
  text-align: center;
  border-bottom: .25rem solid var(--Trees);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-content {
  padding: 1rem 0;
}

.name {
  padding-top: 10px;
  text-transform: uppercase;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
}

main {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/*
main section.bio {
  margin-top: 4rem;
}*/

main section {
  padding: 2.25rem 1rem .5rem 2.25rem;
}

article {
  margin: 1rem 0;
}

.down-arrow {
  font-size: clamp(1.5rem, 4.5vh, 3rem);
  text-align: center;
  cursor: pointer;
}

.bio p {
  padding: 2rem 2rem 1rem 1rem;
  line-height: 2;
  margin: 0 0 2rem 0;
  font-size: 1.25rem;
}

article p {
  margin: 1rem 1rem 0 0;
  font-size: 1rem;
  line-height: 1.8;
}

h1 {
  text-align: center;
  text-transform: uppercase;
  font-size: 1.5rem;
  font-weight: 300;

}

h2 {
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1.5;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  transform: translateZ(0);
}



.project-content {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
  /* Reserve space even when content is hidden */
}



a.cream-hover,
a.shade-hover {
  color: var(--Trees);
  text-decoration: none;
  padding: 6px 3px 3px 3px;
  border-bottom: 3px solid var(--Trees);
  transition: all 0.25s ease-in-out;
}

.bio a.cream-hover {
  border-bottom: 2px solid var(--Trees);
}

/* Main content links - lighter underlines */
.projects a.cream-hover {
  border-bottom: 1.5px solid var(--Trees);
}

a.cream-hover:hover {
  background-color: var(--Cream);
  color: var(--Shade);
  border-color: var(--Clouds);
}

/* Footer links - heavier underlines */
a.shade-hover:hover {
  color: var(--Cream);
  background-color: var(--Shade);
  border-color: var(--Clouds);
}

.download-flex {
  border-top: thick double var(--Trees);
  margin: 1rem 0 0 0;
  padding: 1.5rem 1rem;
}

.cv-content {
  display: flex;
  justify-content: space-evenly;
}

.projects-heading {
  border-bottom: thick double var(--Trees);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  background-color: var(--Clouds);
  z-index: 10;
}

.projects-container {
  position: relative;
  margin: 3.5rem 0 0 0;


}

span.bolder-title {
  font-weight: 400;
  padding: 1px 0 0 0;
}

a.cv {
  color: var(--Trees);
  text-decoration: none;
  padding: 1px;
  border: none;
  transition: all 0.25s ease-in-out;
}

a.cv .cv-text {
  border-bottom: 1px solid var(--Trees);
  padding: 3px 1px 1px 1px;

}

.cv-text {
  font-weight: 300;
}

a.cv:hover .cv-text {
  background-color: var(--Shade);
  color: var(--Cream);
  border-color: var(--Clouds);
  text-decoration: none;
  transition: all 0.25s ease-in-out;
}

.download-arrow {
  padding: 0 7px 0 0;
}

footer {
  width: 100dvw;
  border-top: .25rem solid var(--Trees);
}

.footer-content {
  display: flex;
  justify-content: space-around;
  font-weight: 300;
  font-size: 1.1rem;
  padding: 1rem 0;
}

footer span {
  padding: 7px 3px 4px 3px;
}





/* END OF BASE STYLES/*
/* START OF RESPONSIVE STYLES/*

/* thin but tall screens, ex. iPhone 12 Pro */
@media (min-width: 376px) and (max-width: 413px) {
  .header-content {
    padding: 3rem 0;
  }

  main section {
    margin: 4.25rem 1rem 5.5rem 2.25rem;
  }

  .bio p {
    padding: 0;
    font-size: 1.5rem;
  }

  .projects-container {
    margin: 1rem;
  }

  .projects-heading {
    padding: 3rem 1rem;
  }
}

/* Samsung Galaxy S8+ */
@media (min-width: 360px) and (max-width: 375px) and (min-height: 740px) {
  .header-content {
    padding: 2rem 0;
  }

  main section {
    margin: 0;
  }

  .bio p {
    font-size: 1.4rem;
    line-height: 2;
    padding: 2.75rem .5rem 4rem 1.5rem;
  }

  .projects-heading {
    margin: 3rem 0 0 0;
  }

}

@media (min-width: 412px) and (max-width: 412px) and (min-height: 900px) {
  main section {
    margin: 6rem 0;
  }

  .bio p {
    padding: 0 0 .5rem 1rem;
    font-size: 1.8rem;
    line-height: 2;
  }

  .projects-heading {
    padding: 3.5rem 1rem;
  }
}

@media (min-width: 414px) and (max-width: 600px) {
  .header-content {
    padding: 3rem 0;
  }

  main section {
    margin: 0;
  }

  .bio p {
    font-size: 1.6rem;
    padding: 4rem 1rem 6rem 1rem;
  }

  .down-arrow {
    font-size: clamp(1.5rem, 3.5vh, 3rem);
  }

  .projects-container {
    margin: 4.25rem 0 0 0;
  }

}

@media (min-width: 415px) and (max-width: 430px) {
  .bio p {
    font-size: 1.75rem;
    padding: 3rem 2.5rem 3.5rem 3rem;
  }
}

@media (min-width: 600px) {
  .name {
    font-size: 2.5rem;
  }

  .bio p {
    font-size: 2rem;
    padding: 4rem 2rem 3rem 2.5rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  article p {
    font-size: 1.1rem;
    line-height: 1.9;
  }

  .projects-heading {
    padding: 4rem 1rem 2.5rem 1rem;
  }

  .footer-content {
    font-size: 1.3rem;
    padding: 2.5rem 0;
  }
}

/* iPad Portrait - 768px to 820px */
@media (min-width: 768px) and (max-width: 820px) {
  .header-content {
    padding: 3rem 0;
  }

  .name {
    padding-top: 15px;
    font-size: 3rem;
  }

  main section {
    padding: 1rem 2rem;
  }

  .bio p {
    font-size: 2.2rem;
    padding: 8rem 3rem 5rem 4rem;
    line-height: 2;
  }

  .down-arrow {
    font-size: 2.5rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  article p {
    font-size: 1.2rem;
    line-height: 1.8;
  }

  .projects-heading {
    padding: 4rem 2rem 3rem 2rem;
  }



  .footer-content {
    font-size: 1.8rem;
    padding: 3rem 0;
  }
}


@media (min-width: 820px) {
  .header-content {
    padding: 4rem 0;
  }

  .name {
    padding-top: 15px;
    font-size: 3rem;
  }

  .bio p {
    font-size: 2.75rem;
    padding: 5rem 3rem 5rem 5rem;
  }

  .down-arrow {
    font-size: 3rem;
  }

  h1 {
    font-size: 2rem;
  }

  .projects-heading {
    padding: 5rem 0 3rem 0;
  }

  .footer-content {
    display: flex;
    width: 100%;
    font-weight: 300;
    font-size: 1.6rem;
    padding: 3rem 0;
  }
}


@media (min-width: 835px) and (max-width: 1023px) {

  .header-content {
    padding: 2.5rem 0;
  }

  .name {
    padding-top: 15px;
    font-size: 2.5rem;
  }

  main section {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .down-arrow {
    font-size: 2.75rem;
  }

  .bio p {
    font-size: 1.8rem;
    padding: 1.5rem 2rem 0 4rem;
  }

  .projects-heading {
    padding: 2rem 0;
  }

  h1 {
    font-size: 2rem;
  }


  .footer-content {
    padding: 1.75rem 0;
    font-size: 1.25rem;
  }

}

@media (min-width: 1024px) {

  header,
  footer {
    display: block;
  }

  .header-content,
  .project-content,
  .bio p {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
  }

  .header-content {
    padding: 1.5rem 0;
  }

  .name {
    padding-top: 20px;
    font-size: 4rem;
  }



  .bio p {
    font-size: 3rem;
    padding: 5rem 3rem 2rem 3rem;
  }

  .down-arrow {
    font-size: 4rem;
  }

  .projects-container {
    margin-top: 4rem;
  }

  .projects-heading {
    padding: 1.5rem 0;
  }

  .projects {
    margin-top: 1.25rem;
  }

  .project-content {
    padding: 2rem 0 0 0;
  }

  .project-content p {
    font-size: 1.6rem;
  }


  h1 {
    padding-top: 5px;
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .dropdown-icon {
    margin-right: 1.25rem;
  }

  .cv-content {
    justify-content: center;
    font-size: 1.2rem;

  }

  span.bolder-title {
    padding: 1.5px 0 0 0;
  }

  .download-flex {
    padding: 2.5rem 1rem;
  }

  .cv-content a {
    margin: 0 0 0 3rem;
  }

  .footer-content {
    display: flex;
    font-size: 1.6rem;
    padding: 1.8rem;
  }
}