* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #1f292b;
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  overflow-x: hidden;
  background: #f6f8ef;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("../data/background.png");
  background-position: center top;
  background-size: cover;
  content: "";
  filter: saturate(0.72) contrast(0.9) brightness(1.07);
  opacity: 0.24;
  pointer-events: none;
  transform: scale(1.015);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 8% 12%, rgba(183, 216, 216, 0.34), transparent 30rem),
    radial-gradient(circle at 90% 18%, rgba(84, 119, 95, 0.15), transparent 36rem),
    linear-gradient(
      105deg,
      rgba(248, 250, 240, 0.86) 0%,
      rgba(235, 244, 241, 0.88) 45%,
      rgba(250, 249, 239, 0.92) 100%
    );
  content: "";
  pointer-events: none;
}

.corner-mascot {
  position: fixed;
  bottom: clamp(14px, 2vw, 26px);
  right: clamp(14px, 2.2vw, 34px);
  z-index: 3;
  width: clamp(92px, 12vw, 190px);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  outline-offset: 6px;
  overflow: visible;
  user-select: none;
}

.corner-mascot-image {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(31, 41, 43, 0.16));
  pointer-events: none;
}

.ciallo-pop {
  position: absolute;
  left: var(--left);
  top: var(--top);
  z-index: 1;
  color: var(--color);
  font-family: var(--font);
  font-size: var(--size);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 4px 10px rgba(31, 41, 43, 0.16);
  transform: translate(-50%, -50%) rotate(var(--rotate-start)) scale(0.82);
  transform-origin: center;
  animation: ciallo-pop 960ms cubic-bezier(0.17, 0.84, 0.3, 1) forwards;
}

@keyframes ciallo-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--rotate-start)) scale(0.72);
  }

  18% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform:
      translate(calc(-50% + var(--x)), calc(-50% + var(--y)))
      rotate(var(--rotate-end))
      scale(1.08);
  }
}

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

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

h2 {
  position: relative;
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2vw, 1.9rem);
  font-weight: 600;
  line-height: 1.2;
}

h2::after {
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 34px;
  height: 2px;
  background: var(--pop);
  content: "";
}
