@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=JetBrains+Mono:wght@500;700;800&family=Noto+Sans+TC:wght@400;500;700&family=Plus+Jakarta+Sans:wght@500;700&family=Shadows+Into+Light&display=swap");

:root {
  --color-white: #ffffff;
  --color-spring-wood: #fcfaf9;
  --color-spring-wood-2: #fbf9f6;
  --color-ivory-glow: #fffdfb;
  --color-fantasy: #faf1f0;
  --color-oyster-pink: #ead2cf;
  --color-revolver: #241835;
  --color-scorpion: #68595f;
  --color-mulberry: #c75184;
  --color-teak: #b59670;
  --color-pale-oyster: #9a8a78;
  --color-new-york-pink: #e07d7e;
  --color-mine-shaft: #221f1e;
  --font-serif: "Noto Sans TC", serif;
  --font-sans: "Noto Sans TC", sans-serif;
  --font-mono: "Noto Sans TC", "JetBrains Mono", monospace;
  --font-jakarta: "Noto Sans TC", "Plus Jakarta Sans", sans-serif;
  --font-hand: "Noto Sans TC", "Shadows Into Light", cursive;
  --fs-10: 10px;
  --fs-15: 15.5px;
  --fs-18: 17.9px;
  --fs-20: 20.1px;
  --fs-22: 22.3px;
  --fs-25: 25.2px;
  --fs-31: 30.6px;
  --fs-48: 48.3px;
  --fs-77: 77.5px;
  --space-9: 9.12px;
  --space-14: 13.68px;
  --space-18: 18.24px;
  --space-24: 23.8px;
  --space-36: 36.48px;
  --space-54: 54.72px;
  --space-73: 72.95px;
  --space-109: 109.44px;
  --radius-sm: 9.12px;
  --radius-md: 13.68px;
  --radius-lg: 18.24px;
  --radius-pill: 999px;
  --container: 1459.2px;
  --shadow-soft: 0 18px 45px rgba(36, 24, 53, 0.08);
  --shadow-card: 0 18px 40px rgba(154, 138, 120, 0.12);
  --shadow-float: 0 24px 60px rgba(36, 24, 53, 0.14);
  --transition-base: 220ms ease;
  --transition-slow: 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

html.is-page-loading {
  overflow: hidden;
}

html.is-page-loading body {
  width: 100%;
  overflow: hidden;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(
      circle at top right,
      rgba(224, 125, 126, 0.1),
      transparent 28%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(199, 81, 132, 0.1),
      transparent 26%
    ),
    linear-gradient(180deg, #fffdfa 0%, #fcfaf9 30%, #f8f3ef 100%);
  color: var(--color-revolver);
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
}

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

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

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

a,
button,
img,
article,
div {
  -webkit-tap-highlight-color: transparent;
}

p {
  margin: 0;
}

::selection {
  background: rgba(199, 81, 132, 0.16);
  color: var(--color-revolver);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(199, 81, 132, 0.35);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.page {
  width: 100%;
  overflow-x: clip;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0)
  );
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: rgba(252, 250, 249, 0.92);
  overflow: hidden;
  transition:
    opacity 240ms ease,
    visibility 240ms ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__spinner {
  width: 46px;
  height: 46px;
  border: 4px solid rgba(234, 210, 207, 0.8);
  border-top-color: var(--color-mulberry);
  border-radius: 50%;
  animation: page-loader-spin 820ms linear infinite;
}

@keyframes page-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

.subpage-main {
  min-height: calc(100vh - 220px);
}

.subpage-hero {
  padding-top: 120px;
}

.subpage-panel {
  max-width: 780px;
  padding: 48px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(234, 210, 207, 0.72);
  box-shadow: var(--shadow-soft);
}

.subpage-copy {
  margin-top: 22px;
  color: var(--color-scorpion);
  font-size: 18px;
  line-height: 31px;
  letter-spacing: 0.45px;
}

.subpage-actions {
  margin-top: 30px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-revolver);
  color: var(--color-spring-wood);
  border: 1px solid var(--color-revolver);
  padding: 11px 28px;
  font-size: 15.5px;
  line-height: 20.67px;
  font-weight: 500;
  letter-spacing: 0.775px;
  white-space: nowrap;
  text-align: center;
  border-radius: var(--radius-pill);
  box-shadow: 0 14px 26px rgba(36, 24, 53, 0.16);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    background var(--transition-base),
    border-color var(--transition-base);
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(36, 24, 53, 0.2);
  background: #322346;
}

.site-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-54);
  width: 100%;
}

.section {
  padding: var(--space-109) 0;
  position: relative;
}

.section[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 720ms ease,
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.section--white {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.98)
  );
}

.section__kicker {
  font-family: var(--font-mono);
  font-size: 15.5px;
  line-height: 20.67px;
  letter-spacing: 3.72px;
  text-transform: uppercase;
  color: var(--color-mulberry);
}

.section__title {
  margin-top: 15.95px;
  font-family: var(--font-serif);
  font-size: 48.3px;
  line-height: 63.77px;
  font-weight: 500;
  letter-spacing: 1.16px;
}

.section__line {
  width: 91.2px;
  height: 1px;
  margin-top: 26.4px;
  background: linear-gradient(90deg, var(--color-revolver), transparent);
}

@media (max-width: 1024px) {
  .site-container {
    padding: 0 28px;
  }

  .subpage-panel {
    padding: 36px;
  }
}

@media (max-width: 768px) {
  .site-container {
    padding: 0 18px;
  }

  .subpage-hero {
    padding-top: 90px;
  }

  .subpage-panel {
    padding: 28px 22px;
  }

  .subpage-copy {
    font-size: 16px;
    line-height: 29px;
  }

  .subpage-actions {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  .section[data-reveal] {
    opacity: 1;
    transform: none;
  }
}
