@font-face {
  font-family: "ChiniseRocks";
  src: url("font.otf");
}

@keyframes sway {
  0%,
  100% {
    transform: rotate(-8deg);
  }
  55% {
    transform: rotate(4deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cb: 237, 152, 40;
  --ct: 250, 250, 250;
  --cp: 162, 70, 158;
  --c0: 40, 40, 40;
  --font: "ChiniseRocks", serif;

  min-height: 100vh;
  font-family: var(--font);
  font-weight: 400;
  font-style: normal;
  line-height: 1.4;
  color: rgb(var(--ct));
  background: rgb(var(--cb));
  font-size: 18px;
}

html,
body {
  max-width: 100vw;
}

body {
  min-height: 100vh;
  text-align: center;
  position: relative;
}

main {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

h1,
h2 {
  font-weight: 400;
  font-style: normal;
  font-size: 2rem;
  margin: 0 0 1rem;
  line-height: 1;
}

p {
  margin: 0 0 1rem;
}

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

nav {
  position: sticky;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  gap: 0.5rem;
  padding: 1rem 0;
  align-items: center;
  justify-content: center;
  z-index: 4;
}

section {
  position: relative;
  z-index: 3;
  padding: 3rem 0;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

.skewed::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  width: 100%;
  height: 70%;
  transform: rotate(2deg) scale(1.1);
  background-color: rgb(var(--cp));
  z-index: -1;
}

footer {
  font-size: 0.8rem;
  line-height: 1.2;
  padding: 1rem;
}

a {
  font-weight: 600;
  text-decoration: none;
  color: rgb(var(--cp));
}

svg {
  height: 0.9em;
  width: auto;
}

svg,
svg path {
  color: var(--ct);
  fill: currentColor;
}

.container {
  margin: 0 auto;
  max-width: 640px;
  width: 100%;
  padding: 0 1rem;
}

.btn {
  background: rgb(var(--cp));
  border: 2px solid rgb(var(--ct));
  color: rgb(var(--ct));
  border-radius: 0.2rem;
  padding: 1rem 1.5rem 0.75rem;
  transition: background-color 0.5s;
  font-size: 1.5rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.15em;
  line-height: 1;
}
.btn:hover {
  background: rgba(var(--cp), 0.5);
}

.ca {
  font-size: 0.75rem;
  border-radius: 0.1rem;
  padding: 1rem;
  position: relative;
  background-color: rgb(var(--cp));
  display: block;
  max-width: fit-content;
  margin: 1rem auto;
  word-break: break-all;
  white-space: break-spaces;
}
.ca::after {
  content: "click to copy";
  position: absolute;
  right: 0.25rem;
  bottom: 0.1rem;
  font-size: 0.75em;
}
.ca.copied {
  background-color: rgba(0, 250, 50, 0.4);
}
.ca.copied::after {
  content: "copied!";
}

.intro {
  position: relative;
  line-height: 1;
  padding: 2rem 0;
  margin: 0 auto;
  max-width: 22rem;
  overflow-x: hidden;
}
.intro-text1 {
  margin: 0 0 0.5rem;
  font-size: 6rem;
  font-weight: 400;
  line-height: 0.9;
  color: rgb(var(--c0));
  z-index: -1;
}
.intro-text2 {
  font-weight: 400;
  font-size: 2.2rem;
  z-index: 4;
  position: relative;
  mix-blend-mode: color-dodge;
}
.intro-branch {
  position: fixed;
  top: -2rem;
  width: 20rem;
  left: 50%;
  z-index: 3;
}
.intro-grape-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  pointer-events: none;
  transform-origin: top center;
  animation: sway infinite 3s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}
.intro-grape-wrapper::before {
  content: "";
  display: block;
  background: #fff;
  position: absolute;
  width: 5rem;
  aspect-ratio: 1;
  border-radius: 200%;
  left: 39%;
  top: 37%;
  z-index: 0;
}
.intro-grape {
  width: 100%;
  position: relative;
  z-index: 1;
}
.eye {
  position: absolute;
  width: 1rem;
  aspect-ratio: 1;
  z-index: 0;
  left: 44%;
  top: 41%;
  border-radius: 200%;
  background: #000;
  transition: transform 0.2s;
}
.eye + .eye {
  left: 54%;
  top: 44%;
  transition: transform 0.8s;
}

.walk {
  position: relative;
  overflow: hidden;
}
.walk-grape {
  margin: 0 auto;
  width: 15%;
  max-width: 300px;
  margin-bottom: -2%;
}
.walk-earth {
  width: 100%;
  animation: 19s linear infinite spin;
}
