/* Reset */
@font-face {
  font-family: "Italianno-Regular";
  src: url("../font/Italianno/Italianno-Regular.ttf") format("truetype");
  font-display: swap;
}

html {
  width: 100%;
  min-height: 100%;
  font-size: 100%;
}

body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: #fff;
  color: #000;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

ul,
li {
  margin: 0;
  padding: 0;
  list-style: none;
}

a,
button,
input,
label {
  cursor: pointer;
}

a {
  color: #000;
}

a:hover {
  color: green;
}

img {
  max-width: 100%;
}

p {
  text-align: center;
}

/* Shared navigation */
.font {
  position: relative;
  z-index: 10;
  display: flex;
  width: 100%;
  min-height: clamp(72px, 10vw, 110px);
  justify-content: flex-end;
  align-items: flex-start;
  gap: clamp(1rem, 4vw, 4rem);
  padding: clamp(0.75rem, 2vw, 1.5rem) clamp(1rem, 3vw, 3rem);
  background: transparent;
  font-family: "Italianno-Regular", cursive;
}

.vz {
  width: auto;
  flex: 0 0 auto;
  color: #000;
  font-family: "Italianno-Regular", cursive;
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  line-height: 1;
  text-align: center;
}

/* Homepage */
.home-page {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  background: #000;
}

.home-page .font {
  position: fixed;
  top: 0;
  right: 0;
}

.home-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

.home-page p {
  position: relative;
  z-index: 1;
  width: min(92vw, 1500px);
  margin: auto;
  padding: clamp(6rem, 15vh, 10rem) 1rem clamp(1.5rem, 5vh, 4rem);
  font-size: clamp(0.82rem, 1.65vw, 2rem);
  line-height: 1.18;
}

/* Works page */
.works-page {
  min-height: 100vh;
  background: #fff;
}

.works-page .font {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
}

#face {
  width: 100%;
  padding: 0 clamp(0.75rem, 2vw, 2rem) clamp(2rem, 5vw, 5rem);
}

#faceul {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1rem, 2.5vw, 3rem) clamp(0.5rem, 1.5vw, 1.5rem);
}

#faceul li {
  width: 100%;
  min-width: 0;
}

#faceul li a {
  display: block;
  width: 100%;
}

#faceul li img {
  position: static;
  display: block;
  width: 80%;
  height: auto;
  margin: 0 auto;
}

/* Info page */
.info-page {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  background: #fff;
}

.info-page p {
  width: min(92vw, 1000px);
  margin: auto;
  padding: 1rem 1rem clamp(4rem, 10vh, 8rem);
  font-size: clamp(1.1rem, 2.4vw, 2rem);
  line-height: 1.35;
}

@media (max-width: 1200px) {
  #faceul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  #faceul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .font {
    min-height: 72px;
    gap: 1.5rem;
    padding: 0.75rem 1rem;
  }

  .vz {
    font-size: 3rem;
  }

  .home-page p {
    width: 94vw;
    padding-top: 5.5rem;
    padding-bottom: 1.5rem;
    font-size: clamp(0.72rem, 3.15vw, 0.92rem);
    line-height: 1.16;
  }

  #face {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  #faceul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 0.5rem;
  }

  #faceul li img {
    width: 90%;
  }

  .info-page p {
    padding-bottom: 5rem;
    font-size: 1.15rem;
  }
}

@media (max-width: 360px) {
  .font {
    gap: 1rem;
  }

  .vz {
    font-size: 2.65rem;
  }
}
