:root {
  --background: #f7f1dd;
  --heading: #715e52;
  --muted: #b2a095;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

html,
body {
  overflow-x: hidden;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--background);
  color: var(--heading);
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.landing {
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(7rem, 11vh, 9.5rem);
  padding: clamp(2rem, 6vw, 5rem);
}

.brand {
  margin: 0;
  color: var(--heading);
  display: inline-flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.4rem);
  font-size: clamp(3.4rem, 7.8vw, 6.75rem);
  line-height: 0.92;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-icon {
  display: block;
  width: auto;
  height: 0.9em;
  flex: 0 0 auto;
  transform: translateY(0.06em);
}

.brand-upeka {
  font-weight: 700;
}

.brand-labs {
  font-weight: 400;
}

.portfolio-grid {
  width: min(100%, 43rem);
  display: grid;
  grid-template-columns: minmax(0, 18.5rem) minmax(0, 13.75rem);
  column-gap: clamp(5.5rem, 8vw, 10.75rem);
  align-items: center;
  justify-content: center;
}

.project {
  display: flex;
  align-items: center;
  min-width: 0;
}

.project img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 7rem;
  object-fit: contain;
}

.project-monasterio {
  grid-column: 1;
  justify-self: center;
  width: min(100%, 18.5rem);
}

.project-nidos {
  grid-column: 2;
  justify-self: center;
  width: min(100%, 13.75rem);
}

.project[href] {
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.project[href]:hover {
  opacity: 0.72;
  transform: translateY(-2px);
}

.project[href]:focus-visible {
  outline: 3px solid rgba(83, 69, 60, 0.28);
  outline-offset: 0.75rem;
  border-radius: 0.5rem;
}

@media (max-width: 760px) {
  .landing {
    gap: clamp(3.75rem, 8vh, 5rem);
    padding: clamp(2rem, 8vw, 3rem) clamp(1rem, 6vw, 2rem);
  }

  .brand {
    gap: clamp(0.9rem, 4vw, 1.5rem);
    font-size: clamp(2.55rem, 11vw, 4.25rem);
  }

  .portfolio-grid {
    width: min(100%, 18.5rem);
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    row-gap: clamp(2.25rem, 7vw, 3rem);
  }

  .project-monasterio,
  .project-nidos {
    grid-column: auto;
  }

  .project-monasterio,
  .project-nidos {
    justify-self: center;
  }

  .project-monasterio {
    width: min(100%, 14rem);
  }

  .project-nidos {
    width: min(100%, 11.75rem);
  }
}

@media (max-width: 420px) {
  .landing {
    gap: clamp(3.25rem, 7vh, 4rem);
  }

  .brand {
    justify-self: center;
    gap: clamp(0.65rem, 3vw, 0.9rem);
    font-size: clamp(2rem, 10.5vw, 2.7rem);
  }

  .portfolio-grid {
    width: min(100%, 16rem);
    row-gap: 2.1rem;
  }

  .project-monasterio {
    width: min(100%, 12.2rem);
  }

  .project-nidos {
    width: min(100%, 10.5rem);
  }
}
