:root {
  --ink: #171412;
  --muted: #655d55;
  --paper: #fbf7ee;
  --panel: rgba(255, 253, 247, 0.82);
  --line: rgba(23, 20, 18, 0.14);
  --coral: #cf5f50;
  --teal: #1f7773;
  --gold: #bc862e;
  --green: #657548;
  --shadow: 0 22px 70px rgba(28, 22, 16, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(207, 95, 80, 0.18), transparent 28%),
    radial-gradient(circle at 84% 14%, rgba(31, 119, 115, 0.18), transparent 30%),
    linear-gradient(180deg, #fffaf1 0%, var(--paper) 56%, #f3ede2 100%);
  font-family: "PingFang SC", "PingFang TC", "SF Pro Display", "SF Pro Text", "Segoe UI", "Microsoft YaHei UI", Arial, sans-serif;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(251, 247, 238, 0.48);
  border-bottom: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: 0 14px 42px rgba(28, 22, 16, 0.08);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: clamp(18px, 4vw, 42px);
  font-size: 0.92rem;
  font-weight: 800;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  place-items: center;
  padding: 118px clamp(18px, 5vw, 72px) 84px;
}

.floating-greetings {
  position: absolute;
  inset: 84px clamp(16px, 4vw, 64px) 34px;
  z-index: 0;
  pointer-events: none;
}

.float-word {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 13px 22px;
  border: 1px solid rgba(23, 20, 18, 0.14);
  border-radius: 999px;
  color: rgba(23, 20, 18, 0.82);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  font-size: clamp(1.12rem, 1.85vw, 1.55rem);
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  animation: floatY 5.8s ease-in-out infinite;
}

.word-one {
  top: 5%;
  left: 8%;
  color: var(--teal);
}

.word-two {
  top: 11%;
  right: 10%;
  color: var(--coral);
  animation-duration: 6.4s;
  animation-delay: -1s;
}

.word-three {
  top: 23%;
  left: 15%;
  color: var(--gold);
  animation-duration: 7.2s;
  animation-delay: -2s;
}

.word-four {
  top: 25%;
  right: 19%;
  color: var(--ink);
  animation-duration: 5.4s;
  animation-delay: -0.7s;
}

.word-five {
  bottom: 18%;
  left: 13%;
  color: var(--teal);
  animation-duration: 6.9s;
  animation-delay: -1.8s;
}

.word-six {
  right: 9%;
  bottom: 24%;
  color: var(--coral);
  animation-duration: 6.1s;
  animation-delay: -2.7s;
}

.word-seven {
  right: 36%;
  bottom: 5%;
  color: var(--green);
  animation-duration: 7.6s;
  animation-delay: -3.5s;
}

.word-eight {
  top: 5%;
  left: 31%;
  color: var(--green);
  animation-duration: 6.8s;
  animation-delay: -1.4s;
}

.word-nine {
  top: 2%;
  right: 31%;
  color: var(--teal);
  animation-duration: 7.1s;
  animation-delay: -2.4s;
}

.word-ten {
  bottom: 33%;
  left: 6%;
  color: var(--coral);
  animation-duration: 5.9s;
  animation-delay: -3.1s;
}

.word-eleven {
  right: 5%;
  bottom: 39%;
  color: var(--gold);
  animation-duration: 6.6s;
  animation-delay: -0.9s;
}

@keyframes floatY {
  0%,
  100% {
    transform: translate3d(0, -8px, 0);
  }

  50% {
    transform: translate3d(0, 12px, 0);
  }
}

.hero-center {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  margin: 0 auto;
  text-align: center;
}

.kicker,
.section-kicker {
  margin: 0;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 10px 0 16px;
  font-family: "PingFang SC", "PingFang TC", "SF Pro Display", "Microsoft YaHei UI", "Segoe UI", sans-serif;
  font-size: clamp(4.15rem, 13.28vw, 10.79rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
}

#localGreeting {
  display: block;
  overflow-wrap: anywhere;
}

.hero h1[data-size="medium"] {
  font-size: clamp(3.74rem, 9.96vw, 8.3rem);
}

.hero h1[data-size="long"] {
  font-size: clamp(2.66rem, 7.47vw, 6.06rem);
}

.hero-copy {
  width: min(640px, 92vw);
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.24rem);
  font-weight: 600;
  line-height: 1.7;
}

.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 84px);
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 76px 0 92px;
  border-top: 1px solid var(--line);
}

.about h2 {
  margin: 8px 0 0;
  max-width: 560px;
  font-size: clamp(2.2rem, 5.6vw, 5rem);
  line-height: 1;
}

.about-copy {
  display: grid;
  gap: 20px;
  align-content: center;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.22rem);
  font-weight: 600;
  line-height: 1.8;
}

.about-copy p {
  margin: 0;
}

.site-footer {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 42px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
}

.footer-label {
  margin: 0;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.social-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.social-button {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: #fbf7ee;
  box-shadow: 0 10px 28px rgba(28, 22, 16, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.social-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(28, 22, 16, 0.14);
}

.social-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.email-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 700;
  text-align: right;
}

@media (max-width: 900px) {
  .floating-greetings {
    inset: 86px 18px 30px;
  }

  .float-word {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 18px;
  }

  .hero {
    padding-top: 96px;
  }

  .floating-greetings {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
    width: min(420px, 100%);
    margin: 0 auto 28px;
  }

  .float-word {
    position: static;
    min-height: 52px;
    padding: 11px 16px;
    font-size: clamp(1rem, 4.4vw, 1.24rem);
  }

  .word-one,
  .word-four,
  .word-seven,
  .word-nine,
  .word-eleven {
    transform: translateY(8px);
  }

  .word-two,
  .word-five,
  .word-eight,
  .word-ten {
    transform: translateY(-6px);
  }

  .hero h1 {
    font-size: clamp(2.99rem, 14.94vw, 5.31rem);
  }

  .hero h1[data-size="medium"] {
    font-size: clamp(2.57rem, 11.62vw, 4.48rem);
  }

  .hero h1[data-size="long"] {
    font-size: clamp(1.99rem, 8.3vw, 3.49rem);
  }

  .about {
    grid-template-columns: 1fr;
    padding-top: 56px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .email-text {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
