: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;
  --content-width: 1200px;
  --container-width: 1650px;
  --section-gap: 200px;
  --block-gap: 64px;
  --grid-gap: 32px;
}

* {
  box-sizing: border-box;
}

figure {
  margin: 0;
}

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;
}

img,
video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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);
}

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

.top-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 120px;
}

.intro {
  align-self: center;
  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 {
  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-family: "Geist", "Helvetica Neue", sans-serif;
  font-weight: 300;
  color: var(--text-meta-fill);
  font-size: 16px;
  line-height: 24px;
}

.meta .dot {
  font-family: "Geist", "Helvetica Neue", sans-serif;
  color: var(--text-dot-fill);
}

.intro p,
.project-copy p {
  font-family: "Geist", "Helvetica Neue", sans-serif;
  font-weight: 300;
  margin: 0;
  color: var(--text-body-fill);
}

.intro .summary {
  font-size: 20px;
  line-height: 32px;
}

.project-copy p {
  font-size: 18px;
  line-height: 24px;
  letter-spacing: -0.02em;
}

.grid-1200 {
  width: min(100%, var(--content-width));
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--grid-gap);
}

.row {
  display: grid;
  gap: var(--grid-gap);
}

.row-628-540 {
  grid-template-columns: minmax(0, 628fr) minmax(0, 540fr);
}

.row-324-844 {
  grid-template-columns: minmax(0, 324fr) minmax(0, 844fr);
}

.row-540-628 {
  grid-template-columns: minmax(0, 540fr) minmax(0, 628fr);
}

.row-844-324 {
  grid-template-columns: minmax(0, 844fr) minmax(0, 324fr);
}

.row-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.row-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.panel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.card::after,
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 10%);
  pointer-events: none;
}

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

.row-628-540 > :first-child {
  aspect-ratio: 628 / 340;
}

.row-628-540 > :last-child {
  aspect-ratio: 540 / 340;
}

.row-324-844 > :first-child {
  aspect-ratio: 324 / 340;
}

.row-324-844 > :last-child {
  aspect-ratio: 844 / 340;
}

.row-540-628 > :first-child {
  aspect-ratio: 540 / 340;
}

.row-540-628 > :last-child {
  aspect-ratio: 628 / 340;
}

.row-844-324 > :first-child {
  aspect-ratio: 844 / 340;
}

.row-844-324 > :last-child {
  aspect-ratio: 324 / 340;
}

.bg-paper {
  background: #fbfbfb;
}

.spotify-row-a {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.spotify-row-b {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.spotify-row-c {
  aspect-ratio: 1200 / 452.67;
  padding: 40px;
}

.spotify-row-c > img {
  object-fit: contain;
}

.spotify-row-a > * {
  aspect-ratio: 584 / 395.66;
}

.spotify-row-b > * {
  aspect-ratio: 1 / 1;
}

.booth-row {
  grid-template-columns: minmax(0, 420fr) minmax(0, 748fr);
}

.podcast-row-a {
  grid-template-columns: minmax(0, 425fr) minmax(0, 743fr);
}

.podcast-row-b {
  aspect-ratio: 1200 / 853.48;
}

.panel {
  display: flex;
  align-items: center;
  justify-content: center;
}

.podcast-row-b .panel {
  background: #ffffff;
  padding: 64px;
}

.identity-row-a {
  aspect-ratio: 1200 / 687.82;
}

.identity-row-a .panel {
  background: #ffffff;
  padding: 64px;
}

.anniversary-stack {
  gap: 20px;
}

.anniversary-row-b {
  gap: 20px;
  grid-template-columns: minmax(0, 917fr) minmax(0, 263fr);
}

.anniversary-row-c {
  gap: 20px;
  grid-template-columns: minmax(0, 790fr) minmax(0, 390fr);
}

.anniversary-row-c-stack {
  display: grid;
  gap: 20px;
}

.booth-row > :first-child {
  aspect-ratio: 420 / 420;
}

.booth-row > :last-child {
  aspect-ratio: 748 / 420;
}

.podcast-row-a > :first-child {
  aspect-ratio: 425 / 425;
}

.podcast-row-a > :last-child {
  aspect-ratio: 743 / 425;
}

.anniversary-row-b > :first-child {
  aspect-ratio: 917 / 360;
}

.anniversary-row-b > :last-child {
  aspect-ratio: 263 / 360;
}

.anniversary-row-c > .card {
  aspect-ratio: 790 / 790;
}

.anniversary-row-c-stack > .card {
  aspect-ratio: 390 / 385;
}

.anniversary-row-c .card {
  height: auto;
}

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

.contain {
  object-fit: contain;
}

.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;
    gap: 160px;
  }

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

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

@media (max-width: 980px) {
  :root {
    --section-gap: 120px;
    --block-gap: 40px;
    --grid-gap: 20px;
  }

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

  .top-block {
    gap: 72px;
  }

  .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 {
    font-size: 18px;
    line-height: 30px;
  }

  .row,
  .row-628-540,
  .row-324-844,
  .row-540-628,
  .row-844-324,
  .row-2,
  .row-3,
  .booth-row,
  .podcast-row-a,
  .anniversary-row-b,
  .anniversary-row-c {
    grid-template-columns: 1fr;
    height: auto;
  }

  .row > .card,
  .row > .panel {
    aspect-ratio: auto !important;
  }

  .row > .card > img,
  .row > .card > video,
  .row > .panel > img,
  .row > .panel > video {
    height: auto;
  }

  .spotify-row-a,
  .spotify-row-b,
  .spotify-row-c,
  .podcast-row-b,
  .identity-row-a {
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
  }

  .spotify-row-c {
    grid-template-columns: 1fr;
    gap: var(--grid-gap);
    padding: 20px;
  }

  .anniversary-row-c-stack {
    grid-template-rows: none;
    gap: var(--grid-gap);
  }

  .podcast-row-b .panel,
  .identity-row-a .panel {
    padding: 24px;
  }
}

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

  .top-block {
    gap: 56px;
  }

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

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

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