:root {
  color-scheme: light;
  --ink: #1d261f;
  --deep: #17313a;
  --leaf: #356b50;
  --paper: #fff7e8;
  --shell: #f3e4c9;
  --sun: #d99a39;
  --red: #9a3f2f;
  --blue: #7aa8b7;
  --line: rgba(29, 38, 31, 0.18);
  --shadow: 0 26px 80px rgba(53, 38, 16, 0.18);
  font-family: "Avenir Next", Avenir, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(29, 38, 31, 0.05) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(0deg, rgba(29, 38, 31, 0.035) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--paper);
}

body.zh {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Avenir Next", system-ui, sans-serif;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 10px 14px;
  color: #fff;
  background: var(--deep);
}

.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 247, 232, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: 1.08rem;
  font-weight: 700;
}

.brand img { width: 42px; height: 42px; }

.site-nav {
  justify-self: center;
  display: flex;
  gap: 4px;
}

.site-nav a {
  padding: 10px 12px;
  text-decoration: none;
  color: rgba(29, 38, 31, 0.78);
}

.site-nav a:focus-visible,
.site-nav a:hover,
.button:focus-visible,
.language-switch button:focus-visible,
.choice-panel button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(122, 168, 183, 0.7);
  outline-offset: 3px;
}

.language-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  background: #fffaf0;
}

.language-switch button {
  border: 0;
  padding: 8px 10px;
  min-width: 40px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.language-switch button.active {
  background: var(--deep);
  color: #fff;
}

.hero {
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: minmax(320px, 0.74fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 86px);
  align-items: center;
  padding: clamp(38px, 7vw, 96px) clamp(18px, 5vw, 72px) clamp(34px, 6vw, 80px);
}

.hero-copy {
  min-width: 0;
  width: 100%;
  max-width: 650px;
}

.hero > * {
  min-width: 0;
}

.availability,
.section-label {
  margin: 0 0 16px;
  width: fit-content;
  padding: 8px 12px;
  border-left: 4px solid var(--red);
  background: rgba(255, 255, 255, 0.56);
  color: #4f554d;
  font-size: 0.94rem;
}

h1, h2, h3, p { margin-top: 0; }

h1,
h2 {
  font-family: Georgia, "Times New Roman", "Noto Serif TC", serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.02;
}

h1 {
  max-width: 12.2ch;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 6.2vw, 6.5rem);
  overflow-wrap: normal;
}

h2 {
  font-size: clamp(2.3rem, 4.8vw, 5.2rem);
}

h3 {
  font-size: 1.08rem;
}

.lede {
  max-width: 58ch;
  color: #394238;
  font-size: clamp(1.08rem, 2vw, 1.34rem);
  line-height: 1.62;
  overflow-wrap: break-word;
}

.hero-actions,
.choice-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 14px;
}

.button,
.choice-panel button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--deep);
  text-decoration: none;
  cursor: pointer;
}

.button.primary,
.choice-panel button.active {
  background: var(--deep);
  color: #fff;
}

.button.secondary {
  background: transparent;
  color: var(--deep);
}

.microcopy {
  max-width: 56ch;
  color: #626a60;
  font-size: 0.95rem;
}

.hero-art {
  position: relative;
  margin: 0;
}

.hero-art img {
  width: 100%;
  min-height: 500px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: -18px 18px 18px -18px;
  z-index: -1;
  border: 1px solid var(--line);
  background: var(--shell);
}

figcaption {
  max-width: 42ch;
  margin-top: 12px;
  color: #596057;
  font-size: 0.9rem;
}

.book-strip,
.sample-section,
.language-section,
.process-section,
.interest-section,
.faq-section,
.site-footer {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.book-strip {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: start;
  padding: 72px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-marker {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  background: var(--red);
  color: #fff;
  font-size: 2.4rem;
  font-weight: 800;
}

.book-strip p,
.sample-copy p,
.language-section p,
.timeline p,
.interest-section p,
.faq-section p {
  color: #4f594f;
  line-height: 1.7;
}

.facts {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.facts li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.facts strong,
.facts span {
  display: block;
}

.sample-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.66fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(72px, 9vw, 130px) 0;
}

.sample-copy {
  max-width: 520px;
}

.route-card {
  margin-top: 22px;
  padding: 22px;
  background: #fffaf0;
  border-left: 5px solid var(--leaf);
}

.route-card p {
  margin-bottom: 0;
}

.spread {
  margin: 0;
  padding: 10px;
  background: #fffaf0;
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.language-section {
  padding: 72px 0 48px;
}

.language-section h2 {
  max-width: 870px;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 32px;
  background: var(--line);
  border: 1px solid var(--line);
}

.language-grid article {
  min-height: 230px;
  padding: 28px;
  background: rgba(255, 250, 240, 0.92);
}

.process-section {
  padding: 76px 0;
}

.process-heading {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(300px, 1fr);
  gap: 42px;
  align-items: end;
}

.process-heading .section-label {
  align-self: start;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.timeline li {
  min-height: 270px;
  padding: 28px;
  background: #fffaf0;
}

.timeline span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 48px;
  color: #fff;
  background: var(--leaf);
  font-weight: 800;
}

.interest-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  margin-block: 38px 76px;
  padding: clamp(28px, 5vw, 48px);
  color: #fff;
  background: var(--deep);
}

.interest-section p {
  max-width: 70ch;
  color: rgba(255, 255, 255, 0.8);
}

.interest-section .button {
  border-color: #fff;
  background: #fff;
  color: var(--deep);
}

.faq-section {
  padding: 24px 0 80px;
}

details {
  border-top: 1px solid var(--line);
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  padding: 22px 0;
  font-weight: 750;
}

details p {
  max-width: 72ch;
  margin-bottom: 24px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: 190px;
}

.site-footer p {
  max-width: 45ch;
  margin: 0;
  color: #596057;
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-self: start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .sample-section,
  .book-strip,
  .process-heading,
  .interest-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 38px;
  }

  h1 {
    max-width: 9.8ch;
    font-size: clamp(2rem, 8.5vw, 2.65rem);
    line-height: 1.04;
    overflow-wrap: break-word;
  }

  .hero-art {
    order: -1;
  }

  .hero-art img {
    min-height: 300px;
    max-height: 430px;
  }

  .book-strip {
    padding-block: 48px;
  }

  .language-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .language-grid article,
  .timeline li {
    min-height: auto;
  }

  .timeline span {
    margin-bottom: 22px;
  }

  .spread {
    transform: none;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .site-header {
    padding-inline: 14px;
  }

  .brand span {
    font-size: 0.98rem;
  }

  .hero-actions,
  .choice-panel {
    flex-direction: column;
  }

  .button,
  .choice-panel button {
    width: 100%;
  }

  .hero-art::before {
    inset: -10px 10px 10px -10px;
  }
}
