:root {
  --ink: #e9e6f0;
  --muted: #b9b3c9;
  --night: #1d2335;
  --mist: #2b3550;
  --plum: #3a2f45;
  --amber: #f0a846;
  --amber-soft: #ffd68c;
  --error: #ffb4a8;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--night);
  /* 霧森林背景：加一層深藍讓文字好讀 */
  background-image:
    linear-gradient(rgba(29, 35, 53, .72), rgba(29, 35, 53, .88)),
    url("/assets/bg-forest.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--ink);
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.75;
}

.hero { position: relative; margin: 0; background: var(--night); }
.hero img { display: block; width: 100%; height: auto; }
.hero::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(to bottom, transparent, var(--night));
  pointer-events: none;
}
.hero-title {
  position: absolute; z-index: 1;
  right: 4vw; top: 8vw; width: min(42vw, 520px);
  text-shadow: 0 2px 12px rgba(10, 14, 28, .7);
}
h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: .08em; line-height: 1.2; }
h1 span { display: block; font-size: .5em; letter-spacing: .2em; color: var(--amber-soft); }
.tagline { margin: .8em 0 0; font-size: clamp(1rem, 1.8vw, 1.25rem); }
.tagline.en { margin-top: .2em; font-size: .95rem; color: var(--muted); }

main { position: relative; max-width: 680px; margin: 0 auto; padding: 0 1.25rem 3rem; }

/* 兩旁掛著的提燈瓜：細繩從上方垂下，光微微呼吸 */
.gourds { position: absolute; inset: 0; pointer-events: none; }
.gourd { position: absolute; width: 64px; }
.gourd::before {
  content: ""; position: absolute; left: 50%; bottom: 96%;
  width: 1px; height: var(--rope, 120px); background: rgba(185, 179, 201, .35);
}
.gourd img {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 0 14px rgba(240, 168, 70, .55)) drop-shadow(0 0 40px rgba(240, 168, 70, .25));
  animation: glow 4.5s ease-in-out infinite;
  transform-origin: 50% 0;
}
.g1 { left: -170px; top: 40px; --rope: 140px; }
.g2 { right: -150px; top: 260px; width: 52px; --rope: 260px; }
.g2 img { animation-delay: -1.5s; }
.g3 { left: -130px; top: 620px; width: 48px; --rope: 200px; }
.g3 img { animation-delay: -3s; }
.g4 { right: -190px; top: 760px; --rope: 160px; }
.g4 img { animation-delay: -2.2s; }
@keyframes glow {
  0%, 100% { opacity: .92; transform: rotate(-1.5deg); }
  50% { opacity: 1; transform: rotate(1.5deg); }
}
@media (prefers-reduced-motion: reduce) { .gourd img { animation: none; } }
@media (max-width: 1100px) { .gourds { display: none; } }
section { margin-top: 2.5rem; }
.about { display: flex; gap: 1.5rem; align-items: center; }
.about p { margin: 0 0 1em; }
.portrait { flex: 0 0 auto; width: 150px; height: auto; filter: drop-shadow(0 0 18px rgba(240, 168, 70, .18)); }
.consent { font-size: .85rem; color: var(--muted); margin: .4rem 0 0; }
.en { color: var(--muted); font-size: .95rem; }
.status { color: var(--amber-soft); letter-spacing: .1em; }

.waitlist {
  background: var(--mist);
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 0 40px rgba(240, 168, 70, .08);
}
.waitlist h2 { margin: 0 0 .3em; font-size: 1.3rem; }
label { display: block; font-size: .9rem; color: var(--muted); margin: 1rem 0 .3rem; }
.row { display: flex; gap: .6rem; flex-wrap: wrap; }
input[type=email] {
  flex: 1 1 14rem; min-width: 0;
  padding: .7rem .9rem; font-size: 1rem;
  border: 1px solid #4a5677; border-radius: 10px;
  background: #1a2032; color: var(--ink);
}
input[type=email]:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
button {
  padding: .7rem 1.3rem; font-size: 1rem; font-weight: 600;
  border: 0; border-radius: 10px; cursor: pointer;
  background: var(--amber); color: #2a1c0c;
}
button:hover { background: var(--amber-soft); }
button:disabled { opacity: .6; cursor: wait; }
.cf-turnstile { margin-top: 1rem; min-height: 65px; }
.msg { min-height: 1.5em; margin: .6rem 0 0; }
.msg.ok { color: var(--amber-soft); }
.msg.err { color: var(--error); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.privacy { margin-top: 1rem; font-size: .88rem; color: var(--muted); }
.privacy summary { cursor: pointer; }
.privacy ul { padding-left: 1.2rem; margin: .5rem 0 0; }

footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 2rem 1rem 3rem; }
footer p { margin: .2em 0; }
.small { font-size: .8rem; }

@media (max-width: 720px) {
  .hero-title {
    position: relative; right: auto; top: auto; width: auto;
    padding: 0 1.25rem; margin-top: -2rem;
  }
  .hero::after { height: 25%; }
  .about { flex-direction: column; text-align: left; }
  .portrait { width: 120px; }
}
