* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f7f4ee;
  color: #171717;
  font-family: Georgia, "Times New Roman", serif;
}

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

img {
  max-width: 100%;
  display: block;
}

/* Main page header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  padding: 28px 34px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.nav-link {
  color: #f7f4ee;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: auto;
}

.nav-link:hover {
  opacity: 0.7;
}

/* Main hero */

.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #111;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
}

.hero-title {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f7f4ee;
  font-size: clamp(64px, 13vw, 190px);
  font-weight: normal;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
}

.scroll-note {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  color: #f7f4ee;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* Shared sections */

.about-section,
.work-section,
.contact-section,
.project-info {
  padding: 90px 34px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  border-top: 1px solid rgba(23, 23, 23, 0.2);
}

.section-label {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}

/* Main page text */

.about-text,
.contact-text {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(13px, 1.7vw, 25px);
  line-height: 1.24;
}

.about-text p,
.contact-text p {
  margin-top: 0;
  margin-bottom: 24px;
}

.contact-text a {
  border-bottom: 1px solid currentColor;
}

/* Main page project flow */

.project-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 70px;
  width: 100%;
}

.project-card {
  display: block;
  width: min(37.5vw, 540px);
  margin: 0 auto;
}

.project-card:hover {
  opacity: 0.88;
}

.project-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 18px;
}

.project-card h2 {
  margin: 0;
  font-size: 13px;
  font-weight: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}

/* Project page navigation */

.project-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  padding: 28px 34px;
  display: flex;
  justify-content: space-between;
  color: #171717;
  mix-blend-mode: normal;
}

.project-back,
.project-home {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-back:hover,
.project-home:hover {
  opacity: 0.65;
}

/* Project page */

.project-opening {
  padding: 90px 34px 34px 34px;
  display: flex;
  justify-content: center;
}

.project-hero-image {
  width: min(58vw, 780px);
  max-height: 82vh;
  object-fit: contain;
}

.project-description {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(13px, 1.7vw, 25px);
  line-height: 1.24;
}

.project-description p {
  margin-top: 0;
  margin-bottom: 24px;
}

.french-text {
  margin-top: 50px;
  color: rgba(23, 23, 23, 0.55);
  font-size: 1em;
  line-height: 1.24;
}

.project-images {
  padding: 20px 34px 120px 34px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 90px;
}

.project-figure {
  margin: 0 auto;
}

.project-figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Main image sizes on project page */

.project-figure.square,
.project-figure.horizontal {
  width: min(58vw, 780px);
}

.project-figure.vertical,
.project-figure.small-square {
  width: min(42vw, 620px);
}

.project-figure figcaption {
  margin-top: 14px;
  color: rgba(23, 23, 23, 0.55);
  font-size: 15px;
  line-height: 1.35;
}

/* Mobile */

@media (max-width: 800px) {
  .site-header,
  .project-header {
    padding: 22px;
  }

  .about-section,
  .work-section,
  .contact-section,
  .project-info {
    padding: 70px 22px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-label {
    max-width: none;
    margin: 0;
  }

  .hero-title {
    font-size: clamp(54px, 17vw, 110px);
  }

  .about-text,
  .contact-text {
    max-width: none;
    margin: 0;
    font-size: 24px;
  }

  .project-card {
    width: 100%;
  }

  .project-opening {
    padding: 78px 22px 22px 22px;
  }

  .project-hero-image {
    width: 100%;
  }

  .project-images {
    padding: 20px 22px 90px 22px;
    gap: 60px;
  }

  .project-figure.square,
  .project-figure.horizontal,
  .project-figure.vertical,
  .project-figure.small-square {
    width: 100%;
  }

  .project-description {
    max-width: none;
    margin: 0;
    font-size: 24px;
  }

  .french-text {
    font-size: 1em;
  }
}