:root {
  color-scheme: light;
  --bg: #fbf7f1;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --ink: #1e2520;
  --muted: #68756e;
  --line: rgba(91, 113, 103, 0.13);
  --green: #1d7b64;
  --green-soft: #dff3e9;
  --pink: #ef7fa7;
  --pink-soft: #ffe3ed;
  --mint: #72d8b4;
  --coral: #d8664d;
  --coral-soft: #ffe7df;
  --gold: #d89b32;
  --gold-soft: #fff1ca;
  --blue: #4b78aa;
  --blue-soft: #e5f0ff;
  --shadow: 0 22px 64px rgba(114, 81, 96, 0.12);
  --shadow-soft: 0 12px 34px rgba(114, 81, 96, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 14% 20%, rgba(255, 208, 225, 0.72), transparent 32%),
    radial-gradient(circle at 88% 14%, rgba(199, 245, 220, 0.72), transparent 30%),
    radial-gradient(circle at 72% 70%, rgba(255, 238, 184, 0.52), transparent 30%),
    linear-gradient(180deg, #fff9fc 0, var(--bg) 60%, #f1fbf5 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  background-image:
    linear-gradient(rgba(98, 119, 109, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 119, 109, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
}

body::after {
  background:
    linear-gradient(125deg, transparent 0 45%, rgba(239, 127, 167, 0.08) 45% 47%, transparent 47%),
    linear-gradient(48deg, transparent 0 69%, rgba(114, 216, 180, 0.1) 69% 71%, transparent 71%);
  content: "";
  filter: blur(0.4px);
  inset: 0;
  pointer-events: none;
  position: fixed;
}

a {
  color: inherit;
}

.page-shell {
  margin: 0 auto;
  max-width: 1180px;
  overflow-x: clip;
  padding: 20px 22px 44px;
  position: relative;
  z-index: 1;
}

.sakura-field {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

.sakura-petal {
  animation: petal-fall var(--duration) linear infinite;
  animation-delay: var(--delay);
  background: linear-gradient(135deg, #fff, #ffc5d6 46%, #f48caf 100%);
  border: 1px solid rgba(239, 127, 167, 0.2);
  border-radius: 74% 12% 70% 18%;
  box-shadow: 0 8px 18px rgba(239, 127, 167, 0.16);
  height: 15px;
  left: var(--left);
  opacity: 0.46;
  position: absolute;
  top: -8vh;
  transform: rotate(20deg) scale(var(--scale));
  width: 11px;
}

@keyframes petal-fall {
  0% {
    transform: translate3d(0, -10vh, 0) rotate(0deg) scale(var(--scale));
  }

  50% {
    transform: translate3d(var(--drift), 48vh, 0) rotate(var(--spin)) scale(var(--scale));
  }

  100% {
    transform: translate3d(calc(var(--drift) * -0.4), 108vh, 0) rotate(var(--spin-end)) scale(var(--scale));
  }
}

.site-header {
  align-items: center;
  backdrop-filter: blur(22px);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(128, 93, 108, 0.12);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 10px 12px;
  position: sticky;
  top: 14px;
  z-index: 30;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.95), transparent 44%),
    linear-gradient(145deg, #fff1bb, #ffdfea 52%, #cbf4dd);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  box-shadow:
    inset 0 -7px 16px rgba(29, 123, 100, 0.06),
    0 10px 22px rgba(239, 127, 167, 0.14);
  color: #155846;
  display: inline-grid;
  font-weight: 900;
  height: 50px;
  line-height: 0;
  place-items: center;
  width: 50px;
}

.brand-mark img {
  display: block;
  height: 42px;
  image-rendering: auto;
  object-fit: contain;
  transform: translateY(-1px);
  width: 42px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand strong {
  font-size: 15px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.nav-links a {
  border: 1px solid transparent;
  border-radius: 8px;
  color: #405047;
  font-size: 13px;
  font-weight: 760;
  padding: 8px 10px;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  background: #fff;
  border-color: rgba(239, 127, 167, 0.28);
  color: #a84268;
  outline: 0;
}

@media (max-width: 680px) {
  .page-shell {
    padding: 12px 12px 28px;
  }

  .site-header {
    align-items: stretch;
    display: grid;
    gap: 12px;
    top: 8px;
  }

  .nav-links {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    min-height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .sakura-field {
    display: none;
  }
}
