:root {
  color-scheme: dark;
  font-family:
    "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --gold: #ffd66b;
  --paper: #fff8dc;
  --cyan: #7ddfff;
  --ink: #08111f;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  place-items: center start;
  padding: clamp(32px, 7vw, 96px);
  background-image:
    linear-gradient(90deg, rgba(3, 10, 22, 0.84) 0%, rgba(5, 14, 27, 0.58) 43%, rgba(4, 10, 18, 0.28) 100%),
    linear-gradient(0deg, rgba(2, 5, 10, 0.55), rgba(2, 5, 10, 0.08) 46%, rgba(2, 5, 10, 0.38)),
    url("./assets/gongrenwenhuagong-night.png");
  background-position: center;
  background-size: cover;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 22% 28%, rgba(125, 223, 255, 0.2), transparent 28%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.36) 100%);
}

.glow {
  position: absolute;
  z-index: -1;
  width: 34vw;
  max-width: 420px;
  aspect-ratio: 1;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(72px);
  opacity: 0.28;
}

.glow-a {
  top: 12%;
  left: -12%;
  background: #17b7ff;
}

.glow-b {
  right: 8%;
  bottom: -18%;
  background: #ffd166;
}

.message {
  width: min(980px, 100%);
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.72);
}

.date {
  margin: 0 0 clamp(12px, 2vw, 22px);
  color: var(--cyan);
  font-size: clamp(34px, 7vw, 86px);
  font-weight: 900;
  line-height: 1.05;
}

h1 {
  max-width: 11ch;
  margin: 0;
  color: var(--paper);
  font-size: clamp(44px, 9vw, 118px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
}

.thanks {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(14px, 3vw, 36px);
  margin: clamp(22px, 4vw, 48px) 0 0;
  color: var(--gold);
  font-size: clamp(34px, 6.4vw, 92px);
  font-weight: 900;
  line-height: 1;
}

.smile {
  display: inline-grid;
  width: clamp(112px, 17vw, 210px);
  aspect-ratio: 1;
  place-items: center;
  color: #17213b;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(52px, 8vw, 106px);
  line-height: 1;
  background: radial-gradient(circle at 36% 28%, #fff3a8 0 12%, #ffd83d 13% 62%, #f5a900 100%);
  border: clamp(4px, 0.8vw, 9px) solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  box-shadow:
    0 0 0 8px rgba(255, 216, 61, 0.18),
    0 18px 52px rgba(255, 187, 30, 0.38);
  text-shadow: none;
  transform: rotate(7deg);
}

@media (max-width: 720px) {
  .hero {
    align-items: end;
    padding: 28px 20px 44px;
    background-position: 58% center;
  }

  h1 {
    max-width: 8ch;
  }

  .thanks {
    max-width: 9ch;
  }
}
