:root {
  --page-padding: 3rem;
  --text-color: #ffffff;
  --overlay: rgba(0, 0, 0, 0.5);
  --content-width: 50rem;
  --gallery-width: 60rem;
  --gallery-size: 260px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    linear-gradient(var(--overlay), var(--overlay)),
    url("./assets/img-3.jpg") center center / cover no-repeat fixed;
  color: var(--text-color);
}

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 3rem 0;
}

.brand {
  width: 260px;
  height: auto;
}

.brand-top {
  margin-top: 0;
}

.intro {
  width: min(100%, var(--content-width));
  padding: 0 var(--page-padding);
  display: grid;
  gap: 2rem;
}

.intro p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 500;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.18);
  color: inherit;
}

.gallery {
  width: min(calc(100% - 3rem), var(--gallery-width));
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--gallery-size), 1fr));
  gap: 1rem;
  justify-items: center;
}

.gallery img {
  width: var(--gallery-size);
  height: var(--gallery-size);
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.instagram-link {
  margin-bottom: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, opacity 180ms ease;
}

.instagram-link:hover {
  transform: translateY(-2px);
  opacity: 0.96;
}

.instagram-icon {
  width: 100px;
  height: 100px;
}

@media (max-width: 900px) {
  :root {
    --page-padding: 1.5rem;
  }

  body {
    background-attachment: scroll;
  }

  .page {
    gap: 2.5rem;
  }

  .gallery {
    width: min(calc(100% - 2rem), var(--gallery-width));
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 640px) {
  .brand {
    width: min(260px, calc(100% - 3rem));
  }

  .intro {
    gap: 1.5rem;
  }

  .instagram-link {
    flex-direction: column;
    gap: 1rem;
  }

  .instagram-icon {
    width: 84px;
    height: 84px;
  }
}
