@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Mulish:ital,wght@0,200..1000;1,200..1000&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --dark-color: #191f1d;
  --light-color: #ece0c8;
  --noise-texture: url(https://i.gyazo.com/a26366e538851a5c569ff648e99b7fd4.png);
  --gif-texture: url(https://64.media.tumblr.com/da60c13b478dda09ab90c27e880983b8/tumblr_nd4pwdPKdc1tun3l0o1_1280.gifv);
  --mulish: "Mulish", sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
}

body {
  display: grid;
  place-items: center;
  background: var(--dark-color);
  background-image: var(--noise-texture);
  background-blend-mode: overlay;
  min-height: 100vh;
}

.site-title {
  margin: 0;
  font-family: var(--mulish);
  font-weight: 1000;
  font-size: clamp(4rem, 14vw, 7rem);
  color: var(--light-color);
  text-align: center;
}

.scotch-container:hover .site-title {
  animation: sharp-rare-shake 3s steps(1) infinite;
}

@keyframes sharp-rare-shake {
  0%, 94% { transform: translateX(0); }
  95%      { transform: translateX(-2px); }
  96%      { transform: translateX(2px); }
  97%      { transform: translateX(-2px); }
  98%      { transform: translateX(2px); }
  99%      { transform: translateX(0); }
  100%     { transform: translateX(0); }
}

.scotch-container {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: clamp(300px, 90vw, 655px);
  height: clamp(220px, 66vw, 480px);
  background-color: var(--dark-color);
  position: relative;
  animation: spawn 2s ease-in-out forwards;
  box-shadow:
    0 0 24px rgba(111, 93, 121, 0.6),
    0 0 48px rgba(78, 119, 154, 0.4);
}

.scotch-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--noise-texture);
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 3;
}

.scotch-container:hover::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--gif-texture);
  background-repeat: no-repeat;
  background-size: cover;
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 64%;
  z-index: 3;
}

.main-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  gap: clamp(2rem, 5vw, 4rem);
  padding: 2rem;
}

.text-sphere-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  width: 100%;
}

@keyframes spawn {
  0% {
    box-shadow: 0 0 0 var(--shadow);
    opacity: 0;
  }
  100% {
    box-shadow: 0 0 32px var(--shadow);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .scotch-container {
    width: 92vw;
    height: calc(92vw * 0.732);
  }

  .site-title {
    font-size: clamp(3rem, 16vw, 5rem);
  }
}
