/* ------------------------------
   BASIC SETTINGS
------------------------------ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background: #7B949C;

  color: #182241;

  font-family: "Lora", Georgia, serif;
}


/* ------------------------------
   HEADER
------------------------------ */

.site-header {
  width: 100%;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 38px 4%;
}


.site-logo {
  font-family: "DM Serif Display", Georgia, serif;

  font-size: 32px;

  color: #4f6980;

  text-decoration: none;
}


.nav-links {
  display: flex;

  gap: 32px;
}


.nav-links a {
  color: #182241;

  text-decoration: none;

  font-size: 16px;
}


.nav-links a:hover {
  text-decoration: underline;
}


/* ------------------------------
   HOME PAGE
------------------------------ */

.home {
  margin-left: 8%;

  margin-top: 60px;

  max-width: 900px;
}


.home h1 {
  margin: 0;

  font-family: "DM Serif Display", Georgia, serif;

  font-size: clamp(64px, 6vw, 96px);

  font-weight: 400;

  line-height: 1.05;

  color: #182241;
}


/* ------------------------------
   SOCIAL ICONS
------------------------------ */

.social-links {
  display: flex;

  align-items: center;

  gap: 20px;

  margin-top: 55px;
}


.email-icon {
  width: 42px;
  height: 42px;

  border-radius: 50%;

  background: #182241;

  display: flex;
  align-items: center;
  justify-content: center;
}


.email-icon svg {
  width: 23px;
  height: 23px;

  fill: #7B949C;
}


.orcid-icon {
  width: 42px;
  height: 42px;

  display: block;
}


/* ------------------------------
   INTRODUCTION
------------------------------ */

.intro {
  margin-top: 60px;

  max-width: 760px;

  font-size: 21px;

  line-height: 1.45;

  color: #182241;
}


/* ------------------------------
   RESUME BUTTON
------------------------------ */

.resume-button {
  display: flex;

  width: 390px;
  height: 84px;

  margin-top: 100px;

  align-items: center;
  justify-content: center;

  background: #5B7482;

  color: #EAE3BD;

  font-weight: 700;

  font-size: 18px;

  text-decoration: none;

  border-radius: 13px;

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}


.resume-button:hover {
  background: #526b79;

  transform: translateY(-2px);
}


/* ------------------------------
   PROJECT PAGE
------------------------------ */

.projects-container {
  width: 92%;

  max-width: 1750px;

  margin: 70px auto;
}


.project-card {
  background: #FFF5D9;

  border-radius: 28px;

  margin-bottom: 65px;

  padding: 30px 50px;

  display: grid;

  grid-template-columns: 34% 1fr;

  gap: 55px;

  align-items: center;
}


.project-image {
  width: 100%;

  max-height: 420px;

  object-fit: contain;
}


.project-content h2 {
  margin: 0 0 35px;

  font-family: "DM Serif Display", Georgia, serif;

  font-size: clamp(42px, 4vw, 65px);

  line-height: 0.98;

  font-weight: 400;

  color: #213C4E;
}


.project-content h2 a {
  color: inherit;

  text-decoration-thickness: 1px;

  text-underline-offset: 5px;
}


.project-byline {
  font-size: 27px;

  color: #5a7483;

  margin-bottom: 25px;
}


.project-description {
  font-size: 18px;

  line-height: 1.5;

  color: #182241;
}


/* ------------------------------
   GENERIC PAGE
------------------------------ */

.page-container {
  width: 84%;

  max-width: 1450px;

  margin: 80px auto;
}


.page-title {
  font-family: "DM Serif Display", Georgia, serif;

  font-size: clamp(60px, 7vw, 100px);

  font-weight: 400;

  margin-bottom: 60px;
}


/* ------------------------------
   MOBILE
------------------------------ */

@media (max-width: 850px) {

  .site-header {
    padding: 25px 6%;

    align-items: flex-start;
  }


  .nav-links {
    gap: 12px;

    flex-wrap: wrap;

    justify-content: flex-end;
  }


  .nav-links a {
    font-size: 14px;
  }


  .home {
    margin: 55px 7% 0;

    max-width: none;
  }


  .home h1 {
    font-size: 58px;
  }


  .intro {
    font-size: 18px;
  }


  .resume-button {
    width: 100%;

    max-width: 360px;
  }


  .project-card {
    grid-template-columns: 1fr;

    padding: 30px;

    gap: 25px;
  }


  .project-content h2 {
    font-size: 42px;
  }

}
