:root {
  --brand-logo: url("./static/logo.png");
  --md-sys-color-primary: #d0bcff;
  --md-sys-color-on-primary: #381e72;
  --md-sys-color-primary-container: #4f378b;
  --md-sys-color-on-primary-container: #eaddff;
  --md-sys-color-secondary: #ccc2dc;
  --md-sys-color-on-secondary: #332d41;
  --md-sys-color-secondary-container: #4a4458;
  --md-sys-color-on-secondary-container: #e8def8;
  --md-sys-color-tertiary: #efb8c8;
  --md-sys-color-on-tertiary: #492532;
  --md-sys-color-surface: #141218;
  --md-sys-color-on-surface: #e6e0e9;
  --md-sys-color-on-surface-variant: #cac4d0;
  --md-sys-color-outline: #938f99;
  --md-sys-color-outline-variant: #49454f;
  --md-sys-color-surface-container-lowest: #0f0d13;
  --md-sys-color-surface-container-low: #1d1b20;
  --md-sys-color-surface-container: #211f26;
  --md-sys-color-surface-container-high: #2b2930;
  --md-sys-color-surface-container-highest: #36343b;
  --md-sys-shape-small: 8px;
  --md-sys-shape-medium: 12px;
  --md-sys-shape-large: 16px;
  --md-sys-shape-extra-large: 28px;
  --content-width: 900px;
  --font: "Noto Sans TC", "Roboto", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 12px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--md-sys-color-on-surface);
  background: var(--md-sys-color-surface);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  line-break: strict;
  text-wrap: pretty;
}

p {
  line-height: 1.75;
}

.content-container {
  width: min(calc(100% - 48px), var(--content-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--md-sys-color-on-primary);
  background: var(--md-sys-color-primary);
  border-radius: var(--md-sys-shape-small);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.top-app-bar {
  display: flex;
  width: 100%;
  height: 56px;
  align-items: center;
  justify-content: space-between;
  padding-inline: max(24px, calc((100% - var(--content-width)) / 2));
  color: var(--md-sys-color-on-surface);
  background: var(--md-sys-color-surface-container);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.brand-logo,
.hero-logo {
  display: block;
  flex: 0 0 auto;
  background-image: var(--brand-logo);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

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

.brand-logo {
  width: 34px;
  height: 34px;
}

.app-brand > span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.app-brand strong {
  overflow: hidden;
  font-family: "Roboto", var(--font);
  font-size: 16px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero {
  position: relative;
  display: grid;
  min-height: 500px;
  place-items: center;
  overflow: hidden;
  background-color: var(--md-sys-color-surface-container-lowest);
  background-image: url("./static/配色.png");
  background-position: center bottom;
  background-size: cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(20, 18, 24, 0.36);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(calc(100% - 48px), 900px);
  flex-direction: column;
  align-items: center;
  padding: 56px 0 60px;
  text-align: center;
}

.hero-logo {
  width: 88px;
  height: 88px;
  margin-bottom: 14px;
  filter: drop-shadow(0 12px 22px rgba(208, 188, 255, 0.2));
}

.section-label {
  font-family: "Roboto", var(--font);
  font-weight: 700;
}

.hero h1 {
  width: 100%;
  margin-bottom: 2px;
  color: #ffffff;
  font-family: "Roboto", var(--font);
  font-size: 45px;
  font-weight: 500;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.hero-name {
  margin-bottom: 20px;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 13px;
  font-weight: 600;
}

.hero h2 {
  max-width: 820px;
  margin-bottom: 14px;
  color: var(--md-sys-color-on-surface);
  font-size: 36px;
  line-height: 1.35;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 17px;
}

.md3-filled-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border: 0;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.about-section {
  padding: 64px 0 70px;
  background: var(--md-sys-color-surface);
}

.section-heading {
  max-width: 820px;
}

.section-label {
  margin-bottom: 7px;
  color: var(--md-sys-color-primary);
  font-size: 12px;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-size: 36px;
  line-height: 1.3;
}

.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 18px;
}

.origin-surface {
  max-width: 960px;
  margin-top: 30px;
  padding: 24px 0;
  color: var(--md-sys-color-on-surface-variant);
  border-top: 1px solid var(--md-sys-color-outline-variant);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.origin-surface p {
  margin: 0;
  font-size: 20px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 0;
}

.md3-detail {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.md3-detail:nth-child(odd) {
  border-right: 0;
}

.md3-detail h3 {
  margin: 0;
  color: var(--md-sys-color-primary);
  font-family: "Roboto", var(--font);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
}

.md3-detail p {
  margin-bottom: 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 20px;
}

.video-note {
  width: min(100%, 960px);
  margin: 32px auto 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 18px;
  font-weight: 500;
  text-align: center;
}

.video-note a {
  color: var(--md-sys-color-primary);
  font-weight: 700;
  text-underline-offset: 4px;
}

.video-card {
  position: relative;
  aspect-ratio: 16 / 9;
  width: min(100%, 960px);
  margin: 14px auto 0;
  overflow: hidden;
  background: #000000;
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-large);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.video-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-fallback {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  background: #000000;
  text-decoration: none;
}

.video-fallback > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.24;
  object-fit: cover;
}

.video-fallback::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(20, 18, 24, 0.68);
}

.video-fallback-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  text-align: center;
}

.video-play {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
  place-items: center;
  color: var(--md-sys-color-on-primary);
  background: var(--md-sys-color-primary);
  border-radius: 50%;
  font-size: 22px;
}

.video-fallback-content strong {
  font-size: 16px;
}

.video-fallback-content small {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 12px;
}

.join-section {
  padding: 52px 24px;
  color: var(--md-sys-color-on-primary-container);
  background: var(--md-sys-color-primary-container);
}

.join-content {
  display: flex;
  width: min(100%, 820px);
  margin-inline: auto;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.join-label {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.join-content h2 {
  margin-bottom: 12px;
  font-size: 34px;
  line-height: 1.35;
}

.join-description {
  max-width: 620px;
  margin-bottom: 28px;
  font-size: 17px;
}

.join-facts {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 30px;
  padding: 18px 0;
  border-top: 1px solid rgba(234, 221, 255, 0.28);
  border-bottom: 1px solid rgba(234, 221, 255, 0.28);
}

.join-facts div {
  padding-inline: 14px;
}

.join-facts div + div {
  border-left: 1px solid rgba(234, 221, 255, 0.22);
}

.join-facts dt {
  font-size: 13px;
  font-weight: 500;
}

.join-facts dd {
  margin: 6px 0 0;
  font-size: 18px;
  font-weight: 700;
}

.md3-filled-button {
  color: var(--md-sys-color-on-primary);
  background: var(--md-sys-color-primary);
}

.md3-filled-button:hover,
.md3-filled-button:focus-visible {
  background: #dac7ff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.28);
}

.discord-icon {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

:focus-visible {
  outline: 3px solid var(--md-sys-color-tertiary);
  outline-offset: 3px;
}

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 480ms ease, transform 480ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .content-container {
    width: min(calc(100% - 32px), var(--content-width));
  }

  .top-app-bar {
    padding-inline: 16px;
  }

  .hero {
    min-height: 0;
  }

  .hero-content {
    width: min(calc(100% - 32px), 900px);
    padding: 62px 0 66px;
  }

  .hero-logo {
    width: 84px;
    height: 84px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero h2 {
    font-size: 31px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .about-section {
    padding: 64px 0 70px;
  }

  .section-heading h2 {
    font-size: 32px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .md3-detail {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 20px;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
  }

  .md3-detail:nth-child(odd) {
    border-right: 0;
  }

  .md3-detail:last-child {
    border-bottom: 0;
  }

  .video-card {
    border-radius: var(--md-sys-shape-medium);
  }

  .join-section {
    padding: 48px 16px;
  }

  .join-content h2 {
    font-size: 30px;
  }

  .join-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
  }

  .join-facts div {
    padding: 16px 10px;
  }

  .join-facts div:nth-child(3) {
    border-top: 1px solid rgba(234, 221, 255, 0.22);
    border-left: 0;
  }

  .join-facts div:nth-child(4) {
    border-top: 1px solid rgba(234, 221, 255, 0.22);
  }

  .md3-filled-button {
    width: min(100%, 360px);
  }
}

@media (max-width: 480px) {
  .app-brand {
    gap: 9px;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
  }

  .hero-content {
    padding: 52px 0 58px;
  }

  .hero-logo {
    width: 78px;
    height: 78px;
    margin-bottom: 13px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-name {
    margin-bottom: 18px;
    font-size: 11px;
  }

  .hero h2 {
    font-size: 30px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .about-section {
    padding: 54px 0 60px;
  }

  .section-heading h2 {
    font-size: 31px;
  }

  .section-heading p:last-child {
    font-size: 17px;
  }

  .origin-surface {
    margin-top: 28px;
    padding: 20px 0;
  }

  .origin-surface p {
    font-size: 18px;
  }

  .info-grid {
    margin-top: 14px;
  }

  .md3-detail {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px 0;
  }

  .md3-detail p {
    font-size: 18px;
  }

  .video-card {
    margin-top: 24px;
  }

  .join-section {
    padding: 42px 16px;
  }

  .join-content h2 {
    font-size: 28px;
  }

  .join-description {
    font-size: 16px;
  }

  .join-facts dd {
    font-size: 17px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
