:root {
  --ink: #f8f0ed;
  --muted: #c7aaa8;
  --night: #120a0f;
  --wine: #2a101d;
  --wine-light: #45172d;
  --pink: #f4119f;
  --pink-soft: #ff83cd;
  --gold: #d9ab76;
  --line: #ffffff1f;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--night);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--night);
  color: var(--ink);
  margin: 0;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  -webkit-tap-highlight-color: transparent;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.page-shell {
  background:
    radial-gradient(circle at 50% -8%, #f4119f36, transparent 31rem),
    linear-gradient(160deg, #190b13 0%, #120a0f 45%, #0d080b 100%);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.page-shell::before {
  pointer-events: none;
  content: "";
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E");
  position: fixed;
  inset: 0;
}

.ambient {
  filter: blur(1px);
  pointer-events: none;
  border-radius: 50%;
  position: absolute;
}

.ambient-one {
  border: 1px solid #f4119f38;
  width: 20rem;
  height: 20rem;
  top: 28rem;
  right: -13rem;
  box-shadow: 0 0 8rem #f4119f1f;
}

.ambient-two {
  border: 1px solid #d9ab7626;
  width: 14rem;
  height: 14rem;
  top: 57rem;
  left: -10rem;
}

.content-column {
  z-index: 1;
  width: min(100%, 46rem);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 2.5rem;
  position: relative;
}

.hero {
  text-align: center;
  padding: 1rem 0 2.25rem;
}

.brand-lockup {
  flex-direction: column;
  align-items: center;
  margin: 0 auto 1.75rem;
  display: flex;
}

.brand-logo {
  filter: drop-shadow(0 0 1.8rem #f4119f2e);
  height: auto;
  max-height: 12.5rem;
  object-fit: contain;
  width: min(74vw, 18rem);
}

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

.kicker,
.section-heading > span,
.section-heading div > span,
.contact-card > div > span {
  color: var(--pink-soft);
  letter-spacing: 0.2em;
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
}

.hero-subtitle {
  color: var(--muted);
  letter-spacing: 0.36em;
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
}

.rule {
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  width: min(18rem, 76%);
  margin: 1.7rem auto;
  display: flex;
}

.rule span {
  background: linear-gradient(90deg, transparent, #d9ab76b3);
  flex: 1;
  height: 1px;
}

.rule span:last-child {
  background: linear-gradient(90deg, #d9ab76b3, transparent);
}

.rule i {
  background: var(--gold);
  width: 0.36rem;
  height: 0.36rem;
  transform: rotate(45deg);
}

.opening-line {
  max-width: 32rem;
  margin: 0 auto;
  font-family: "Noto Serif TC", "Songti TC", PMingLiU, serif;
  font-size: clamp(1.1rem, 4vw, 1.35rem);
  line-height: 1.8;
}

.opening-line span {
  white-space: nowrap;
  display: block;
}

.show-intro {
  max-width: 34rem;
  color: var(--muted);
  text-wrap: balance;
  margin: 0.75rem auto 0;
  font-size: 0.9rem;
  line-height: 1.85;
}

.schedule {
  border: 1px solid var(--line);
  color: #e9d8d5;
  background: #ffffff09;
  border-radius: 999px;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.3rem;
  padding: 0.5rem 0.8rem;
  font-size: 0.76rem;
  display: inline-flex;
}

.schedule-dot {
  background: var(--pink);
  width: 0.42rem;
  height: 0.42rem;
  box-shadow: 0 0 0.8rem var(--pink);
  border-radius: 50%;
}

.primary-stack,
.support-grid,
.social-grid {
  gap: 0.9rem;
  display: grid;
}

.feature-card {
  border: 1px solid #ffffff29;
  border-radius: 1.35rem;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 8.4rem;
  padding: 1.35rem 1.3rem 1.35rem 1.5rem;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  display: flex;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  background: #ffffff12;
  border-radius: 50%;
  width: 12rem;
  height: 12rem;
  position: absolute;
  top: -5rem;
  right: -5rem;
}

.feature-card.primary {
  background: linear-gradient(135deg, #f4119f 0%, #a70d6f 100%);
  border-color: #ff8fd7bf;
  box-shadow: 0 1.2rem 3rem #f4119f30;
}

.feature-card.community {
  background: linear-gradient(135deg, #45172df5, #260f1bf5);
  border-color: #d9ab7647;
}

.feature-card:hover,
.feature-card:focus-visible {
  border-color: #ffffff73;
  transform: translateY(-2px);
  box-shadow: 0 1.2rem 3rem #00000040;
}

.feature-copy {
  z-index: 1;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  display: flex;
  position: relative;
}

.feature-copy small {
  letter-spacing: 0.17em;
  text-transform: uppercase;
  opacity: 0.78;
  margin-bottom: 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
}

.feature-copy strong {
  font-family: "Noto Serif TC", "Songti TC", PMingLiU, serif;
  font-size: 1.48rem;
  font-weight: 600;
}

.feature-copy > span {
  opacity: 0.82;
  text-wrap: pretty;
  margin-top: 0.38rem;
  font-size: 0.78rem;
  line-height: 1.5;
}

.feature-arrow {
  z-index: 1;
  border: 1px solid #ffffff47;
  border-radius: 50%;
  flex: none;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  font-size: 1.15rem;
  display: grid;
  position: relative;
}

.section-block {
  margin-top: 3.25rem;
}

.section-heading {
  margin-bottom: 1.15rem;
}

.section-heading h2,
.contact-card h2 {
  text-wrap: balance;
  margin: 0.35rem 0 0;
  font-family: "Noto Serif TC", "Songti TC", PMingLiU, serif;
  font-size: 1.45rem;
  font-weight: 600;
}

.row-heading {
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  display: flex;
}

.row-heading p {
  max-width: 14rem;
  color: var(--muted);
  text-align: right;
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
}

.support-grid {
  gap: 0.7rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-card,
.social-grid a {
  border: 1px solid var(--line);
  background: #ffffff09;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
  display: flex;
}

.compact-card {
  border-radius: 1rem;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 7.25rem;
  padding: 1rem;
}

.compact-card > span:first-child {
  flex-direction: column;
  display: flex;
}

.compact-card strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.compact-card small {
  color: var(--muted);
  margin-top: 0.35rem;
  font-size: 0.7rem;
  line-height: 1.5;
}

.compact-card > span:last-child {
  color: var(--pink-soft);
  align-self: flex-end;
}

.compact-card:hover,
.compact-card:focus-visible,
.social-grid a:hover,
.social-grid a:focus-visible {
  background: #f4119f14;
  border-color: #f4119f80;
  transform: translateY(-2px);
}

.social-grid {
  gap: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.social-grid a {
  border-radius: 1rem;
  flex-direction: column;
  align-items: flex-start;
  min-height: 6.2rem;
  padding: 1rem;
}

.social-grid a > span:last-child {
  color: var(--pink-soft);
  align-self: flex-end;
  margin-top: auto;
}

.social-label {
  font-weight: 600;
}

.social-handle {
  max-width: 100%;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 0.25rem;
  font-size: 0.66rem;
  overflow: hidden;
}

.contact-card {
  background: linear-gradient(135deg, #45172db3, #ffffff06);
  border: 1px solid #d9ab7640;
  border-radius: 1.25rem;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3.25rem;
  padding: 1.5rem;
  display: flex;
}

.contact-card p {
  color: var(--muted);
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
}

.contact-card > a {
  background: var(--ink);
  color: var(--wine);
  border-radius: 999px;
  flex: none;
  padding: 0.72rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
}

footer {
  text-align: center;
  padding: 4.5rem 0 1.5rem;
}

.footer-wordmark-text {
  color: #fff;
  font-family: "Noto Serif TC", "Songti TC", PMingLiU, serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 auto 1.25rem;
  opacity: 0.72;
}

footer p {
  margin: 0;
  font-family: "Noto Serif TC", "Songti TC", PMingLiU, serif;
  font-size: 0.9rem;
}

footer > span {
  color: #896f71;
  letter-spacing: 0.08em;
  margin-top: 0.7rem;
  font-size: 0.63rem;
  display: block;
}

a:focus-visible {
  outline: 2px solid var(--pink-soft);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .content-column {
    padding: 2.35rem 1rem 1.5rem;
  }

  .hero {
    padding-bottom: 1.8rem;
  }

  .brand-logo {
    width: min(70vw, 15.5rem);
  }

  .show-intro {
    font-size: 0.84rem;
  }

  .feature-card {
    min-height: 7.65rem;
    padding: 1.15rem 1rem 1.15rem 1.2rem;
  }

  .feature-copy strong {
    font-size: 1.28rem;
  }

  .support-grid,
  .social-grid {
    grid-template-columns: 1fr;
  }

  .compact-card {
    flex-direction: row;
    align-items: center;
    min-height: auto;
  }

  .social-grid a {
    grid-template-columns: 0.75fr 1.3fr auto;
    align-items: center;
    min-height: auto;
    display: grid;
  }

  .social-grid a > span:last-child,
  .compact-card > span:last-child {
    align-self: auto;
    margin-top: 0;
  }

  .social-handle {
    margin-top: 0;
  }

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-card > a {
    text-align: center;
    width: 100%;
  }

  .row-heading p {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
