:root {
  --color-ink: #302a22;
  --color-muted: #6f675c;
  --color-soft: #f7f4ec;
  --color-stone: #ebe5d8;
  --color-paper: #fffdf8;
  --color-earth: #7b653a;
  --color-wood: #594a35;
  --color-sage: #687463;
  --color-line: rgba(89, 74, 53, 0.18);
  --shadow-soft: 0 20px 50px rgba(48, 42, 34, 0.08);
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-paper);
  font-family: "Noto Serif TC", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", serif;
  font-size: 18px;
  line-height: 1.85;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

main,
section,
article,
.container,
.narrow {
  min-width: 0;
}

a {
  color: inherit;
}

.container {
  width: calc(100% - 40px);
  max-width: var(--container);
  margin: 0 auto;
}

.narrow {
  max-width: 860px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 20;
  padding: 8px 14px;
  color: var(--color-paper);
  background: var(--color-wood);
  transform: translateY(-140%);
  transition: transform 160ms ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 253, 248, 0.92);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--color-paper);
  background: var(--color-wood);
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
}

.brand-logo {
  width: 92px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--color-muted);
  font-size: 15px;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a.is-active {
  color: var(--color-wood);
  background: var(--color-soft);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 570px;
  background: linear-gradient(180deg, rgba(247, 244, 236, 0.95), rgba(255, 253, 248, 0.98));
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  background:
    linear-gradient(135deg, transparent 46%, rgba(104, 116, 99, 0.11) 47%, rgba(104, 116, 99, 0.11) 53%, transparent 54%),
    linear-gradient(45deg, transparent 46%, rgba(123, 101, 58, 0.11) 47%, rgba(123, 101, 58, 0.11) 53%, transparent 54%);
  background-size: 92px 92px;
  opacity: 0.42;
}

.hero-inner {
  position: relative;
  display: grid;
  min-height: 570px;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 64px;
  padding: 72px 0 84px;
}

.hero-copy {
  max-width: 760px;
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--color-earth);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  font-size: 76px;
  line-height: 1.12;
  font-weight: 700;
}

.hero-subtitle {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--color-muted);
  font-size: 24px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.home-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 28px;
  padding: 9px 18px;
  color: var(--color-paper);
  background: var(--color-wood);
  border: 1px solid var(--color-wood);
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease;
}

.home-link-button:hover,
.home-link-button:focus-visible {
  background: var(--color-earth);
  border-color: var(--color-earth);
}

.hero-symbol {
  position: relative;
  width: 320px;
  height: 320px;
  margin-left: auto;
  color: var(--color-earth);
  opacity: 0.78;
}

.symbol-wheel,
.symbol-wheel::before,
.symbol-wheel::after {
  position: absolute;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.symbol-wheel {
  inset: 6%;
}

.symbol-wheel::before {
  content: "";
  inset: 28%;
}

.symbol-wheel::after {
  content: "";
  left: 50%;
  top: 50%;
  width: 7%;
  min-width: 10px;
  height: 7%;
  min-height: 10px;
  border: 0;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.symbol-temple {
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 15%;
  height: 29%;
  border-bottom: 4px solid currentColor;
}

.symbol-temple::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  top: 0;
  height: 59%;
  border: solid currentColor;
  border-width: 3px 0 0;
  transform: skewX(-18deg);
  box-shadow: 0 28px 0 -24px currentColor;
}

.symbol-temple::after {
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  bottom: 0;
  height: 63%;
  border: solid currentColor;
  border-width: 0 3px;
}

.section {
  padding: 104px 0;
  scroll-margin-top: 92px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.35;
  font-weight: 700;
}

h3 {
  margin: 20px 0 10px;
  font-size: 24px;
  line-height: 1.35;
}

.prose p,
.closing p {
  margin: 0;
  color: var(--color-muted);
}

.prose p + p {
  margin-top: 22px;
}

.intro {
  background: var(--color-paper);
}

.overview {
  background: var(--color-soft);
  border-block: 1px solid var(--color-line);
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  min-width: 0;
}

.direction-card {
  display: flex;
  min-width: 0;
  min-height: 390px;
  flex-direction: column;
  padding: 32px;
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.direction-card img {
  width: 72px;
  height: 72px;
}

.direction-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.85;
}

.direction-card a {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 24px;
  color: var(--color-earth);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.direction-card a::after {
  content: " →";
}

.detail-section {
  background: var(--color-paper);
}

.detail-section.alt {
  background: linear-gradient(180deg, var(--color-soft), #fbfaf4);
}

.detail-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.detail-aside {
  position: sticky;
  top: 112px;
  display: grid;
  justify-items: center;
  gap: 22px;
  padding-top: 8px;
}

.detail-aside img {
  width: 84px;
  height: 84px;
}

.detail-aside p {
  display: grid;
  width: 68px;
  height: 68px;
  margin: 0;
  place-items: center;
  color: var(--color-earth);
  border: 1px solid var(--color-line);
  border-radius: 50%;
  font-size: 24px;
}

.detail-copy {
  max-width: 820px;
  min-width: 0;
}

.detail-copy h2 {
  margin-bottom: 28px;
}

.vision {
  color: var(--color-paper);
  background:
    linear-gradient(rgba(48, 42, 34, 0.9), rgba(48, 42, 34, 0.9)),
    linear-gradient(135deg, var(--color-wood), var(--color-sage));
}

.vision .section-kicker,
.vision .prose p {
  color: rgba(255, 253, 248, 0.78);
}

.closing {
  text-align: center;
  background: var(--color-soft);
}

.closing p {
  max-width: 820px;
  margin: 24px auto 0;
  font-size: 20px;
}

.site-footer {
  color: rgba(255, 253, 248, 0.78);
  background: var(--color-ink);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  gap: 20px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--color-paper);
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--color-paper);
  background: var(--color-wood);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(48, 42, 34, 0.22);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 900px) {
  body {
    font-size: 17px;
  }

  .header-inner {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0;
    gap: 12px;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .site-nav a {
    flex: 0 0 auto;
  }

  h1,
  h2,
  h3,
  p {
    line-break: anywhere;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 56px 0 64px;
  }

  .hero-symbol {
    width: 210px;
    height: 210px;
    margin: 0;
  }

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

  .hero-subtitle {
    font-size: 22px;
  }

  h2 {
    font-size: 36px;
  }

  .section {
    padding: 82px 0;
    scroll-margin-top: 132px;
  }

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

  .direction-card {
    min-height: 0;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .detail-aside {
    position: static;
    display: flex;
    justify-content: space-between;
    padding-top: 0;
  }
}

@media (max-width: 560px) {
  .container,
  .narrow {
    width: auto;
    max-width: none;
    margin-right: 14px;
    margin-left: 14px;
  }

  .site-brand {
    gap: 8px;
    font-size: 16px;
  }

  .brand-logo {
    width: 78px;
  }

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

  .hero-subtitle {
    width: min(100%, 330px);
    font-size: 17px;
  }

  .hero-symbol {
    width: 168px;
    height: 168px;
  }

  .section {
    padding: 68px 0;
  }

  h2 {
    max-width: 320px;
    font-size: 26px;
  }

  .section-heading,
  .detail-copy,
  .prose,
  .prose p,
  .direction-card p,
  .closing p {
    max-width: 320px;
  }

  .direction-card {
    max-width: 100%;
    padding: 26px;
  }

  .closing {
    text-align: left;
  }

  .closing p {
    font-size: 18px;
  }

  .footer-inner {
    min-height: 112px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
}

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

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