:root {
  --cream: #fcfaf4;
  --paper: #fffdf8;
  --green: #48613a;
  --green-dark: #334b2e;
  --gold: #c99e2b;
  --ink: #333333;
  --muted: #62645f;
  --lavender: #b7abc8;
  --line: rgba(72, 97, 58, .18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Noto Sans TC", sans-serif;
}

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 248, .96);
  border-bottom: 1px solid rgba(72, 97, 58, .12);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(1440px, calc(100% - 64px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--green-dark);
  font-family: "LXGW WenKai TC", serif;
  font-size: clamp(1.45rem, 2.3vw, 2.15rem);
  font-weight: 500;
  letter-spacing: .05em;
  white-space: nowrap;
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 42px;
  color: var(--green);
  font-family: serif;
  font-size: 1.65rem;
  transform: rotate(-12deg);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 48px;
  font-family: "LXGW WenKai TC", serif;
  font-size: 1.06rem;
}

.main-nav a {
  position: relative;
  padding: 28px 0 25px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 13px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform .2s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 24px; height: 1px;
  margin: 6px auto;
  background: var(--green-dark);
}

.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  overflow: hidden;
  padding: 58px 24px 28px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,.98), rgba(252,250,244,.86) 48%, rgba(250,247,239,.96) 100%),
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(128,118,96,.018) 7px 8px);
}

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

.brand-heading {
  margin: 0;
  color: var(--green-dark);
  font-family: "LXGW WenKai TC", serif;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  letter-spacing: .08em;
}

h1 {
  margin: 18px 0 0;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(3rem, 7vw, 6.2rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: .08em;
}

.gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(340px, 80%);
  margin: 18px auto 8px;
  color: var(--gold);
}

.gold-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}

.gold-divider span:last-child {
  background: linear-gradient(to left, transparent, var(--gold));
}

.gold-divider b { font-size: 1.2rem; }

.intro {
  margin: 8px auto 22px;
  color: #42433f;
  font-family: "LXGW WenKai TC", serif;
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  line-height: 1.9;
}

.reminder-card {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 28px 50px 24px;
  border: 1px solid rgba(72, 97, 58, .10);
  border-radius: 22px;
  background: rgba(255,255,255,.80);
  box-shadow: 0 16px 38px rgba(86, 78, 62, .08);
  text-align: left;
}

.reminder-card h2 {
  margin: 0 0 18px;
  color: var(--green-dark);
  font-family: "LXGW WenKai TC", serif;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  text-align: center;
  letter-spacing: .08em;
}

.reminder-card ol {
  width: fit-content;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.reminder-card li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 11px 0;
  font-family: "LXGW WenKai TC", serif;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.55;
}

.reminder-card li span {
  flex: 0 0 29px;
  width: 29px; height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-family: "Noto Sans TC", sans-serif;
  font-size: .9rem;
}

.notice {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(72,97,58,.15);
  color: var(--green-dark);
  font-size: .92rem;
  text-align: center;
}

.draw-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: min(470px, 92vw);
  min-height: 76px;
  margin-top: 28px;
  padding: 0 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, #71834b, #536b37);
  color: white;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 600;
  letter-spacing: .06em;
  box-shadow: 0 14px 28px rgba(72,97,58,.22);
  transition: transform .2s ease, box-shadow .2s ease;
}

.draw-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(72,97,58,.28);
}

.card-symbol {
  font-size: 2rem;
  transform: rotate(-8deg);
}

.site-footer {
  padding: 16px 20px 22px;
  border-top: 1px solid rgba(72,97,58,.14);
  background: var(--cream);
  color: #555851;
  text-align: center;
  font-family: "LXGW WenKai TC", serif;
  font-size: .92rem;
}

.botanical {
  position: absolute;
  z-index: 1;
  width: 170px;
  height: 520px;
  opacity: .42;
}

.botanical-left {
  left: 3%;
  bottom: 10px;
}

.botanical-right {
  right: 4%;
  bottom: 45px;
  transform: scaleX(-1);
  opacity: .25;
}

.stem {
  position: absolute;
  left: 82px;
  bottom: 0;
  width: 3px;
  height: 455px;
  border-radius: 100%;
  background: rgba(89,111,71,.42);
  transform: rotate(8deg);
}

.leaf {
  position: absolute;
  width: 68px;
  height: 28px;
  border: 1px solid rgba(89,111,71,.33);
  border-radius: 100% 0 100% 0;
  background: rgba(135,157,116,.12);
}

.l1 { left: 22px; bottom: 105px; transform: rotate(28deg); }
.l2 { left: 80px; bottom: 190px; transform: rotate(-32deg) scaleX(-1); }
.l3 { left: 18px; bottom: 285px; transform: rotate(36deg); }
.l4 { left: 77px; bottom: 365px; transform: rotate(-28deg) scaleX(-1); }

.flower {
  position: absolute;
  width: 16px; height: 28px;
  border-radius: 50%;
  background: rgba(159,139,189,.55);
  box-shadow:
    10px 20px 0 rgba(159,139,189,.45),
    -7px 40px 0 rgba(159,139,189,.38),
    6px 60px 0 rgba(159,139,189,.34);
}

.f1 { left: 69px; top: 26px; transform: rotate(-10deg); }
.f2 { left: 37px; top: 122px; transform: rotate(-18deg) scale(.8); }
.f3 { left: 105px; top: 188px; transform: rotate(14deg) scale(.72); }

.spark {
  position: absolute;
  z-index: 1;
  color: rgba(201,158,43,.62);
  font-size: 2rem;
}
.spark-1 { left: 16%; top: 22%; }
.spark-2 { right: 13%; top: 18%; font-size: 2.5rem; }
.spark-3 { right: 18%; top: 40%; font-size: 1.6rem; }

@media (max-width: 900px) {
  .header-inner {
    width: min(100% - 32px, 900px);
    min-height: 70px;
  }

  .brand {
    font-size: 1.25rem;
  }

  .menu-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 12px 20px 20px;
    background: rgba(255,253,248,.98);
    border-bottom: 1px solid var(--line);
  }

  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 0; }

  .hero {
    min-height: auto;
    padding-top: 46px;
  }

  .botanical {
    transform: scale(.72);
    transform-origin: bottom;
  }

  .botanical-left { left: -45px; }
  .botanical-right { right: -55px; transform: scale(-.72, .72); }
}

@media (max-width: 600px) {
  .header-inner {
    width: calc(100% - 24px);
  }

  .brand {
    max-width: calc(100% - 54px);
    gap: 7px;
    font-size: clamp(.92rem, 4.8vw, 1.16rem);
    letter-spacing: .02em;
  }

  .brand-icon {
    width: 22px;
    font-size: 1.2rem;
  }

  .hero {
    padding: 36px 14px 24px;
  }

  .brand-heading {
    font-size: 1.55rem;
  }

  h1 {
    margin-top: 12px;
    font-size: 3.15rem;
    letter-spacing: .04em;
  }

  .intro br { display: none; }

  .reminder-card {
    padding: 24px 20px 20px;
    border-radius: 18px;
  }

  .reminder-card li {
    gap: 10px;
    font-size: .98rem;
  }

  .reminder-card li span {
    flex-basis: 26px;
    width: 26px; height: 26px;
  }

  .draw-button {
    min-width: 100%;
    min-height: 66px;
    padding: 0 24px;
    font-size: 1.35rem;
  }

  .botanical { opacity: .16; }
  .spark { opacity: .35; }
  .site-footer { font-size: .78rem; }
}
