:root {
  --page-bg: #f7f5f3;
  --text-title-fill: #000000e5;
  --text-heading-fill: #000000d9;
  --text-body-fill: #000000bf;
  --text-meta-fill: #00000080;
  --text-dot-fill: #00000026;
  --radius: 16px;
  --container-width: 1650px;
  --section-gap: 120px;
  --block-gap: 120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text-body-fill);
  font-family: "Geist", "Helvetica Neue", sans-serif;
  font-weight: 300;
  letter-spacing: -0.02em;
}

figure {
  margin: 0;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

main {
  width: min(calc(100% - 48px), var(--container-width));
  margin: 0 auto;
  padding: 160px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--section-gap);
}

.top-block,
.section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--block-gap);
}

.intro,
.project-copy {
  width: 640px;
  max-width: 100%;
}

.intro {
  position: relative;
}

.back-button {
  position: absolute;
  top: 8px;
  left: -88px;
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: url("./assets/home/back-button.svg") center / 56px 56px no-repeat;
  text-decoration: none;
  box-shadow: 0 0 0 0 rgb(0 0 0 / 0%);
  transition:
    transform 300ms cubic-bezier(0.4, 1, 0.2, 1),
    box-shadow 300ms cubic-bezier(0.4, 1, 0.2, 1);
}

.back-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgb(0 0 0 / 12%);
}

.back-button:active {
  transform: translateY(0) scale(0.96);
  box-shadow: 0 4px 10px rgb(0 0 0 / 10%);
}

.back-button:focus-visible {
  outline: 2px solid rgb(0 0 0 / 60%);
  outline-offset: 3px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  color: var(--text-title-fill);
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-weight: 350;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 20, "wght" 350;
  letter-spacing: -0.02em;
  font-size: 96px;
  line-height: 96px;
  margin-bottom: 16px;
}

h2 {
  color: var(--text-heading-fill);
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  line-height: 40px;
  margin-bottom: 8px;
}

.meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  white-space: nowrap;
}

.meta span {
  font-size: 16px;
  line-height: 24px;
  font-weight: 300;
  color: var(--text-meta-fill);
}

.meta .dot {
  color: var(--text-dot-fill);
}

.intro .summary,
.project-copy .summary {
  color: var(--text-body-fill);
  font-size: 20px;
  line-height: 32px;
  font-weight: 300;
}

.project-copy p {
  color: var(--text-body-fill);
  font-size: 18px;
  line-height: 28px;
  font-weight: 300;
}

.media-panel {
  width: 100%;
}

.media-1400 {
  max-width: 1400px;
}

.media-1588 {
  max-width: 1588px;
}

.media-1368 {
  max-width: 1368px;
}

.media-1320 {
  max-width: 1320px;
}

.media-1319 {
  max-width: 1319px;
}

.media-1190 {
  max-width: 1190px;
}

.media-1154 {
  max-width: 1154px;
}

.media-1140 {
  max-width: 1140px;
}

.media-1080 {
  max-width: 1080px;
}

.media-1040 {
  max-width: 1040px;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 48px, 0);
  filter: blur(12px);
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 720ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

@media (max-width: 1400px) {
  main {
    width: min(calc(100% - 48px), 1200px);
    padding: 120px 0;
  }

  h1 {
    font-size: 78px;
    line-height: 78px;
  }

  h2 {
    font-size: 30px;
    line-height: 38px;
  }
}

@media (max-width: 980px) {
  :root {
    --section-gap: 100px;
    --block-gap: 56px;
  }

  main {
    width: min(calc(100% - 32px), 760px);
    padding: 80px 0;
  }

  .intro,
  .project-copy {
    width: 100%;
    padding: 0 16px;
  }

  .back-button {
    position: static;
    margin: 0 0 32px;
  }

  h1 {
    font-size: 60px;
    line-height: 60px;
  }

  h2 {
    font-size: 28px;
    line-height: 34px;
  }

  .intro .summary,
  .project-copy .summary {
    font-size: 18px;
    line-height: 30px;
  }

  .project-copy p {
    font-size: 18px;
    line-height: 28px;
  }
}

@media (max-width: 640px) {
  main {
    width: calc(100% - 24px);
    padding: 56px 0 72px;
    gap: 100px;
  }

  h1 {
    font-size: 48px;
    line-height: 48px;
  }

  h2 {
    font-size: 26px;
    line-height: 32px;
  }

  .project-copy p {
    font-size: 17px;
    line-height: 26px;
  }

  .meta {
    white-space: normal;
    flex-wrap: wrap;
    line-height: 1;
  }
}
