:root {
  color-scheme: light;
  font-family: "Segoe UI", ui-rounded, system-ui, sans-serif;
  color: #355a75;
  background: #dff3ff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 240px;
  background: radial-gradient(ellipse at 50% 35%, #f8fcff 0, #e6f5ff 45%, #d0ecfc 100%);
}

.sky {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.cloud {
  position: absolute;
  width: 190px;
  height: 57px;
  border-radius: 100px;
  background: #fff;
  opacity: .6;
}

.cloud::before,
.cloud::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  background: inherit;
}

.cloud::before {
  width: 85px;
  height: 85px;
  left: 30px;
  bottom: 10px;
}

.cloud::after {
  width: 65px;
  height: 65px;
  right: 23px;
  bottom: 16px;
}

.cloud-one {
  top: 20%;
  left: -45px;
  transform: rotate(-8deg);
}

.cloud-two {
  right: -30px;
  bottom: 19%;
  transform: scale(1.35) rotate(6deg);
  opacity: .45;
}

.cloud-three {
  top: 13%;
  right: 16%;
  transform: scale(.55);
  opacity: .4;
}

.sparkle {
  position: absolute;
  color: #94c7e5;
  font-size: 25px;
}

.sparkle-one {
  top: 27%;
  right: 25%;
}

.sparkle-two {
  bottom: 23%;
  left: 22%;
  font-size: 35px;
}

.sparkle-three {
  top: 65%;
  right: 12%;
  font-size: 15px;
}

main {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 40px 20px;
}

.card {
  width: min(100%, 480px);
  padding: 33px 28px 25px;
  text-align: center;
  border: 1px solid #fff;
  border-radius: 36px;
  background: rgb(255 255 255 / .65);
  box-shadow: 0 20px 70px -25px rgb(91 152 190 / .28), inset 0 0 0 6px rgb(255 255 255 / .3);
}

.illustration {
  width: 210px;
  max-width: 100%;
  margin: 0 auto 10px;
}

.illustration svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.bun {
  animation: bob 5s ease-in-out infinite;
}

.heart {
  animation: bob 5s ease-in-out -2s infinite;
}

h1 {
  margin: 0 0 30px;
  font-family: ui-rounded, "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: clamp(28px, 5.8vw, 40px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.025em;
}

h1 > span:first-of-type {
  color: #3a7fa9;
}

.emoji {
  display: inline-block;
  font-size: .85em;
  vertical-align: .02em;
}

.library-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  min-height: 50px;
  padding: 14px 21px;
  border: 1px solid #b0d6ed;
  border-radius: 17px;
  color: #295978;
  background: #d2ecfc;
  box-shadow: 0 4px 0 #bedced;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color .2s, transform .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}

.library-link svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.library-link .arrow {
  width: 17px;
  height: 17px;
}

@media (hover: hover) {
  .library-link:hover {
    background: #c1e3f8;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #bedced;
  }
}

.library-link:focus-visible {
  outline: 3px solid #3a7fa9;
  outline-offset: 5px;
}

.library-link:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #bedced;
}

.little-hearts {
  margin-top: 27px;
  color: #92bad2;
  font-size: 20px;
  letter-spacing: 5px;
}

.little-hearts span {
  color: #73a7c7;
}

@keyframes bob {
  50% { transform: translateY(-4px); }
}

@media (max-width: 360px) {
  main { padding: 24px 14px; }
  .card { padding: 26px 18px 22px; border-radius: 28px; }
  .illustration { width: 180px; }
  .library-link { gap: 7px; padding-inline: 14px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .bun, .heart { animation: none; }
  .library-link { transition: none; }
}
