:root {
  --paper: #f4f0e8;
  --paper-deep: #e9e1d5;
  --surface: #fbf9f4;
  --ink: #20251f;
  --muted: #62685f;
  --forest: #193a31;
  --forest-deep: #112a24;
  --moss: #668072;
  --amber: #c28b4d;
  --line: rgba(32, 37, 31, 0.18);
  --light-line: rgba(244, 240, 232, 0.22);
  --content-width: 1180px;
  --wide-width: 1400px;
  --shadow: 0 28px 70px rgba(24, 31, 25, 0.12);
  --focus: rgba(194, 139, 77, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

a:focus-visible,
main:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px var(--focus);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--forest-deep);
  border-radius: 999px;
  transform: translateY(-160%);
}

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

.site-header {
  border-bottom: 1px solid #d8d8d0;
  background: rgba(255, 255, 255, 0.96);
  font-family: Arial, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

.site-footer-inner {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
}

.site-header-inner {
  width: min(1160px, calc(100% - 32px));
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.site-brand,
.site-nav,
.footer-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.site-brand {
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
}

.site-brand-mark {
  width: 28px;
  height: 28px;
  border: 8px solid #111111;
  border-right-color: #315c4f;
  border-radius: 50%;
}

.site-brand-text {
  line-height: 1.2;
  white-space: nowrap;
}

.site-nav {
  gap: 4px 14px;
}

.site-nav a,
.footer-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #50574f;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.footer-nav a:hover {
  color: #111111;
}

.site-nav-cta {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border: 1px solid transparent;
  color: #fff;
  background: #111111;
  border-radius: 6px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
}

.site-nav-cta:hover {
  background: #000000;
}

.section-marker {
  margin: 0 0 18px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.threshold-hero {
  width: min(var(--wide-width), calc(100% - 40px));
  min-height: min(850px, calc(100vh - 76px));
  margin: 20px auto 0;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #d1ccc3;
  box-shadow: var(--shadow);
}

.threshold-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(246, 242, 233, 0.97) 0%, rgba(246, 242, 233, 0.96) 38%, rgba(246, 242, 233, 0.94) 52%, rgba(246, 242, 233, 0.65) 60%, rgba(246, 242, 233, 0) 72%);
}

.threshold-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
}

.threshold-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.threshold-copy {
  position: relative;
  isolation: isolate;
  z-index: 2;
  width: min(47%, 610px);
  margin-left: clamp(34px, 6vw, 96px);
  padding: 64px 0;
  background: rgba(246, 242, 233, 0.9);
  box-shadow: 0 0 44px 44px rgba(246, 242, 233, 0.9);
}

.threshold-copy h1,
.conditions-intro h2,
.handover-intro h2 {
  margin: 0;
  font-family: Georgia, "Noto Serif TC", "PMingLiU", serif;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.threshold-copy h1 {
  max-width: 10.5em;
  font-size: clamp(3rem, 5.4vw, 5.7rem);
}

.threshold-copy h1 span {
  display: block;
  color: var(--forest);
}

.threshold-lead {
  max-width: 590px;
  margin: 30px 0 0;
  color: #202a24;
  font-size: clamp(1rem, 1.35vw, 1.17rem);
}

.character-note {
  max-width: 520px;
  margin: 22px 0 0;
  padding-left: 18px;
  border-left: 2px solid var(--amber);
  color: #2f382f;
  font-size: 0.94rem;
}

.character-note strong {
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 8px 0;
  border-bottom: 1px solid currentColor;
  color: var(--forest);
  font-weight: 800;
  text-decoration: none;
}

.conditions-section {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(100px, 12vw, 168px) 0;
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.48fr);
  gap: 44px clamp(48px, 7vw, 100px);
  align-items: start;
}

.conditions-intro {
  padding-top: 18px;
}

.conditions-intro h2,
.handover-intro h2 {
  font-size: clamp(2.5rem, 4.5vw, 4.7rem);
}

.conditions-intro > p:last-child,
.handover-intro > p:last-child {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.conditions-media {
  margin: 0;
  box-shadow: var(--shadow);
}

.conditions-media img {
  width: 100%;
  height: auto;
}

.condition-sequence {
  grid-column: 1 / -1;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.condition-sequence li {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 28px clamp(20px, 3vw, 38px) 12px 0;
}

.condition-sequence li + li {
  padding-left: clamp(20px, 3vw, 38px);
  border-left: 1px solid var(--line);
}

.sequence-number {
  color: var(--amber);
  font-family: Georgia, serif;
  font-size: 1.05rem;
}

.condition-sequence h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.condition-sequence p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.editorial-note {
  grid-column: 2;
  max-width: 720px;
  margin: 10px 0 0 auto;
  padding: 4px 0 4px clamp(26px, 4vw, 48px);
  border-left: 1px solid var(--amber);
}

.editorial-note p {
  margin: 0;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.55;
}

.editorial-note span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

.handover-section {
  padding: clamp(96px, 11vw, 156px) 0 62px;
  color: var(--paper);
  background: var(--forest-deep);
}

.handover-intro,
.handover-media,
.next-paths,
.handover-disclaimer {
  width: min(var(--content-width), calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
}

.handover-intro {
  max-width: 820px;
  margin-left: max(20px, calc((100% - var(--content-width)) / 2));
}

.handover-intro > p:last-child {
  color: rgba(244, 240, 232, 0.72);
}

.handover-media {
  margin-top: clamp(44px, 6vw, 78px);
  overflow: hidden;
  background: #8f8a7b;
}

.handover-media img {
  width: 100%;
  height: auto;
}

.next-paths {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.next-paths a {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 24px 28px 0;
  border-top: 1px solid var(--light-line);
  text-decoration: none;
}

.next-paths a:nth-child(even) {
  padding-left: 32px;
}

.next-paths a:nth-child(odd) {
  border-right: 1px solid var(--light-line);
}

.next-paths a:hover strong {
  color: #e2b171;
}

.next-paths span {
  color: rgba(244, 240, 232, 0.6);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.next-paths strong {
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  font-weight: 500;
  transition: color 160ms ease;
}

.handover-disclaimer {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--light-line);
  color: rgba(244, 240, 232, 0.58);
  font-size: 0.83rem;
}

.site-footer {
  padding: 42px 0;
  color: #d9ded8;
  background: #0d1c18;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 28px 48px;
  align-items: start;
}

.footer-brand,
.footer-note {
  margin: 0;
}

.footer-brand {
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.35rem;
}

.footer-note {
  max-width: 420px;
  margin-top: 8px;
  color: rgba(217, 222, 216, 0.68);
  font-size: 0.9rem;
}

.footer-nav {
  justify-content: flex-end;
  gap: 2px 16px;
}

.footer-nav a {
  color: rgba(217, 222, 216, 0.76);
  font-size: 0.87rem;
}

@media (max-width: 1080px) {
  .threshold-hero {
    min-height: 720px;
  }

  .threshold-copy {
    width: 49%;
    margin-left: 46px;
  }
}

@media (max-width: 840px) {
  .site-header-inner {
    width: min(100% - 24px, 1160px);
  }

  .site-nav {
    order: 3;
    width: 100%;
  }

  .site-nav-cta {
    margin-left: auto;
  }
}

@media (max-width: 820px) {
  .threshold-hero {
    width: 100%;
    min-height: 0;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    box-shadow: none;
  }

  .threshold-hero::after {
    display: none;
  }

  .threshold-copy {
    order: 1;
    width: auto;
    margin: 0;
    padding: 72px 28px 48px;
    background: var(--paper);
    box-shadow: none;
  }

  .threshold-copy h1 {
    max-width: 9em;
  }

  .threshold-media {
    order: 2;
    position: relative;
    inset: auto;
    aspect-ratio: 4 / 5;
  }

  .threshold-media img {
    object-position: 72% 50%;
  }

  .conditions-section {
    width: min(100% - 40px, 700px);
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .conditions-intro,
  .conditions-media,
  .condition-sequence,
  .editorial-note {
    grid-column: 1;
  }

  .conditions-media {
    aspect-ratio: 4 / 5;
    overflow: hidden;
  }

  .conditions-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 64% 50%;
  }

  .condition-sequence {
    margin-top: 10px;
    grid-template-columns: 1fr;
  }

  .condition-sequence li,
  .condition-sequence li + li {
    padding: 22px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .editorial-note {
    margin-left: 0;
  }

  .handover-media {
    aspect-ratio: 4 / 5;
  }

  .handover-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 56% 50%;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .site-header-inner,
  .site-footer-inner,
  .handover-intro,
  .handover-media,
  .next-paths,
  .handover-disclaimer {
    width: min(100% - 24px, var(--content-width));
  }

  .site-header-inner {
    width: min(100% - 24px, 1160px);
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .site-nav a {
    justify-content: center;
    padding: 5px 4px;
    border: 1px solid #d8d8d0;
    border-radius: 6px;
    background: #ffffff;
    font-size: 0.92rem;
    text-align: center;
    white-space: normal;
  }

  .threshold-copy {
    padding: 60px 20px 42px;
  }

  .threshold-copy h1 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .threshold-lead {
    margin-top: 24px;
  }

  .conditions-section {
    width: min(100% - 24px, 700px);
    padding: 84px 0 96px;
  }

  .conditions-intro h2,
  .handover-intro h2 {
    font-size: clamp(2.35rem, 11vw, 3.45rem);
  }

  .condition-sequence li {
    gap: 12px;
  }

  .editorial-note {
    padding-left: 20px;
  }

  .handover-section {
    padding-top: 86px;
  }

  .next-paths {
    grid-template-columns: 1fr;
  }

  .next-paths a,
  .next-paths a:nth-child(even) {
    padding: 22px 0;
  }

  .next-paths a:nth-child(odd) {
    border-right: 0;
  }

  .footer-nav {
    gap: 0 12px;
  }
}

@media (max-width: 380px) {
  .site-header-inner,
  .site-footer-inner,
  .handover-intro,
  .handover-media,
  .next-paths,
  .handover-disclaimer,
  .conditions-section {
    width: calc(100% - 20px);
  }

  .threshold-copy {
    padding-right: 16px;
    padding-left: 16px;
  }

}

@media (min-width: 381px) and (max-width: 420px) {
  .site-header-inner {
    width: min(100% - 20px, 1160px);
  }
}

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

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