:root {
  color-scheme: light;
  --ink: #1d1f24;
  --muted: #626977;
  --road: #363a42;
  --stripe: #f5cf46;
  --sky: #9ed8ff;
  --grass: #6cc26f;
  --sign: #fff7d6;
  --sign-border: #2b2f38;
  --red: #e23d3d;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-family: ui-rounded, "Trebuchet MS", system-ui, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(#9ed8ff 0 62%, #6cc26f 62% 100%);
}

main {
  width: min(92vw, 760px);
  padding: clamp(1.5rem, 5vw, 3rem);
  text-align: center;
  position: relative;
  z-index: 3;
}

.sign {
  display: inline-block;
  max-width: 38rem;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border: .45rem solid var(--sign-border);
  border-radius: 8px;
  background: rgba(255, 247, 214, .72);
  backdrop-filter: blur(.18rem);
  box-shadow: 0 1rem 0 rgba(29, 31, 36, .16);
  transform: rotate(-1.4deg);
  animation: wiggle 4s ease-in-out infinite;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 9vw, 5.8rem);
  line-height: .95;
  letter-spacing: 0;
  text-transform: uppercase;
}

p {
  margin: 1rem auto 0;
  max-width: 31rem;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  line-height: 1.5;
  color: var(--muted);
}

.actions {
  display: flex;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.projects-link,
.login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.1rem;
  border: .2rem solid var(--sign-border);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 .35rem 0 rgba(29, 31, 36, .18);
  font-weight: 900;
  text-decoration: none;
}

.login-link {
  background: #e7f4ff;
}

.projects-link:active,
.login-link:active {
  transform: translateY(.2rem);
  box-shadow: 0 .15rem 0 rgba(29, 31, 36, .18);
}

.stamp {
  display: inline-grid;
  place-items: center;
  width: 6.5rem;
  height: 6.5rem;
  margin: 1.25rem auto 0;
  border: .32rem solid var(--red);
  border-radius: 50%;
  color: var(--red);
  font-weight: 900;
  font-size: 1.4rem;
  transform: rotate(12deg);
}

.road {
  position: fixed;
  inset: auto 0 0;
  height: 42vh;
  background: var(--road);
  clip-path: polygon(36% 0, 64% 0, 88% 100%, 12% 100%);
  z-index: 1;
}

.road::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8%;
  width: .7rem;
  height: 100%;
  transform: translateX(-50%);
  background: repeating-linear-gradient(
    to bottom,
    var(--stripe) 0 2.3rem,
    transparent 2.3rem 4.6rem
  );
}

.barrier {
  position: fixed;
  left: 50%;
  bottom: 25vh;
  width: min(70vw, 30rem);
  height: 4.7rem;
  transform: translateX(-50%) rotate(-2deg);
  border: .3rem solid #2b2f38;
  border-radius: 8px;
  background:
    repeating-linear-gradient(
      135deg,
      #ffffff 0 1.3rem,
      #f15b3f 1.3rem 2.6rem
    );
  box-shadow: 0 .8rem 0 rgba(29, 31, 36, .18);
  z-index: 2;
}

.barrier::before,
.barrier::after {
  content: "";
  position: absolute;
  top: 4.3rem;
  width: .8rem;
  height: 7rem;
  background: #2b2f38;
}

.barrier::before {
  left: 16%;
}

.barrier::after {
  right: 16%;
}

.sun {
  position: fixed;
  top: 7vh;
  left: 8vw;
  width: clamp(5rem, 13vw, 8.5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffd95a;
  box-shadow: 0 0 0 1rem rgba(255, 217, 90, .28);
}

.cloud {
  position: fixed;
  width: 9rem;
  height: 3rem;
  border-radius: 999px;
  background: #fff;
  opacity: .9;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  bottom: .4rem;
  border-radius: 50%;
  background: #fff;
}

.cloud::before {
  left: 1.1rem;
  width: 3.5rem;
  height: 3.5rem;
}

.cloud::after {
  right: 1.2rem;
  width: 4.5rem;
  height: 4.5rem;
}

.cloud-one {
  top: 13vh;
  right: 12vw;
  animation: drift 12s ease-in-out infinite;
}

.cloud-two {
  top: 30vh;
  left: 17vw;
  transform: scale(.72);
  animation: drift 15s ease-in-out infinite reverse;
}

.flowers {
  position: fixed;
  inset: auto 0 7vh;
  display: flex;
  justify-content: space-around;
  padding: 0 7vw;
  z-index: 2;
  pointer-events: none;
}

.flowers span {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: #fffb8d;
  box-shadow:
    0 -1rem 0 #f86aa4,
    1rem 0 0 #f86aa4,
    0 1rem 0 #f86aa4,
    -1rem 0 0 #f86aa4,
    0 2.2rem 0 .08rem #2f8d46;
}

@keyframes wiggle {
  0%,
  100% {
    transform: rotate(-1.4deg);
  }

  50% {
    transform: rotate(1deg) translateY(-.25rem);
  }
}

@keyframes drift {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 1.5rem .4rem;
  }
}

@media (max-height: 650px) {
  body {
    overflow: auto;
  }

  main {
    padding-top: 1rem;
  }

  .road,
  .barrier {
    opacity: .9;
  }
}
