*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: #f2e6d9;
  color: #333;
  font-family: "Avenir", "Avenir Next", "Nunito Sans", "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Site navigation: name + About at the top, Work + Personal at the bottom,
   fixed above the page content with no background (same as the case study pages) */
.site-header,
.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 20;                /* above the page content */
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;       /* clicks pass through the empty space between the links */
}

.site-header {
  top: 0;
  padding: 36px 44px 0;
}

.site-footer {
  bottom: 0;
  padding: 0 44px 36px;       /* mirrors the header: 36px from the edge, 44px sides */
}

.site-header a,
.site-footer a {
  pointer-events: auto;       /* ...but the links themselves stay clickable */
}

.site-name,
.site-nav-link {
  color: #000;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.site-name {
  text-transform: uppercase;
}

.site-name:hover,
.site-nav-link:hover {
  color: #d65e1c;
}

/* Intro */
.intro {
  padding: 143px 80px 120px;  /* 84px gap + the 59px the header used to take up, so the headline doesn't move */
  max-width: 1040px;          /* the 880px headline plus the side padding */
  margin: 0 auto;             /* the whole intro sits in the middle of the page */
}

.intro-title {
  max-width: 880px;
  margin: 0 0 84px;
  font-family: Georgia, "Gelasio", "Times New Roman", serif;
  font-size: 64px;
  font-weight: bold;
  line-height: 72px;
  letter-spacing: 0.025em;
  color: #d65e1c;
}

.intro-text {
  max-width: 770px;
  margin: 0;
  font-size: 24px;
  line-height: 30px;
  letter-spacing: 0.08em;
}

/* Project names: bold italic, underline on hover */
.project-link {
  font-weight: 700;
  font-style: italic;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.project-link:hover {
  color: #d65e1c;
  border-bottom-color: currentColor;
}

/* Tablets and phones */
@media (max-width: 700px) {
  .site-header {
    padding: 24px 20px 0;
  }

  .site-footer {
    padding: 0 20px 24px;
  }

  .site-name,
  .site-nav-link {
    font-size: 15px;
  }

  .intro {
    padding: 100px 20px 80px; /* 56px gap + the header's height on phones */
  }

  .intro-title {
    margin-bottom: 40px;
    font-size: 34px;
    line-height: 40px;
    letter-spacing: 0.02em;
  }

  .intro-text {
    font-size: 18px;
    line-height: 27px;
    letter-spacing: 0.03em;
  }
}
