:root {
  color-scheme: dark;
  --ink: #f4f0e5;
  --muted: #b9b5a9;
  --soil: #0e100e;
  --surface: #171a17;
  --surface-2: #20241f;
  --line: rgba(244, 240, 229, 0.14);
  --yellow: #e8cf3b;
  --yellow-dark: #27230b;
  --river: #86b5be;
  --max: 1200px;
  --radius: 22px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  --header: rgba(14, 16, 14, .88);
  --alt: #121512;
  --text-soft: #d7d2c6;
}

html[data-theme="light"] {
  color-scheme: light;
  --ink: #20231d;
  --muted: #62675c;
  --soil: #f4f1e7;
  --surface: #fffdf7;
  --surface-2: #e9e4d6;
  --line: rgba(29, 32, 26, .16);
  --yellow: #d2b91f;
  --yellow-dark: #fff6bd;
  --river: #397b86;
  --shadow: 0 28px 70px rgba(42, 39, 27, .14);
  --header: rgba(244, 241, 231, .9);
  --alt: #eae6d9;
  --text-soft: #454a41;
}

@media (prefers-color-scheme: light) {
  html:not([data-theme]) {
    color-scheme: light;
    --ink: #20231d;
    --muted: #62675c;
    --soil: #f4f1e7;
    --surface: #fffdf7;
    --surface-2: #e9e4d6;
    --line: rgba(29, 32, 26, .16);
    --yellow: #d2b91f;
    --yellow-dark: #fff6bd;
    --river: #397b86;
    --shadow: 0 28px 70px rgba(42, 39, 27, .14);
    --header: rgba(244, 241, 231, .9);
    --alt: #eae6d9;
    --text-soft: #454a41;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 8%, rgba(232, 207, 59, 0.08), transparent 25rem),
    var(--soil);
  color: var(--ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.72;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--river); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: -5rem;
  padding: .75rem 1rem;
  background: var(--ink);
  color: var(--soil);
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; }
.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.eyebrow {
  margin: 0 0 1rem;
  color: var(--yellow);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--header);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.header-actions { display: flex; align-items: center; gap: .7rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; font-weight: 800; letter-spacing: .02em; }
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50% 50% 46% 46%;
  background: var(--yellow);
  color: var(--soil);
  font-size: 1.3rem;
  transform: rotate(-8deg);
}
.navigation { display: flex; align-items: center; gap: 1.35rem; }
.navigation a { color: var(--muted); font-size: .9rem; font-weight: 650; text-decoration: none; }
.navigation a:hover { color: var(--ink); }
.menu-button { display: none; min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--ink); }
.theme-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: .45rem;
  padding: .55rem .75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: .82rem;
  font-weight: 700;
}
.theme-button::before { content: "◐"; color: var(--yellow); font-size: 1rem; }
.theme-button:hover { color: var(--ink); }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .75rem 1.2rem;
  border: 1px solid var(--yellow);
  border-radius: 11px;
  background: var(--yellow);
  color: #11130f;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(232, 207, 59, .16); }
.button.secondary { border-color: var(--line); background: transparent; color: var(--ink); }
.button.small { min-height: 42px; padding: .65rem 1rem; font-size: .85rem; }

.hero { min-height: calc(100vh - 72px); display: grid; align-items: center; padding: 5rem 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(3rem, 8vw, 7rem); }
.hero h1 { max-width: 12ch; margin: 0; font-size: clamp(3rem, 7.5vw, 6.8rem); line-height: .98; letter-spacing: -.06em; }
.hero h1 span { display: block; color: var(--yellow); }
.hero-lede { max-width: 38rem; margin: 1.7rem 0 0; color: var(--text-soft); font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-note { display: flex; align-items: center; gap: .7rem; margin-top: 1.5rem; color: var(--muted); font-size: .84rem; }
.hero-note::before { width: 8px; height: 8px; border-radius: 50%; background: var(--river); content: ""; }

.hero-art { position: relative; min-height: 600px; }
.poster {
  position: absolute;
  inset: 0 1rem 2rem 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
  border: 1px solid rgba(232, 207, 59, .38);
  border-radius: 3px;
  background: var(--yellow);
  color: #11130f;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}
.poster::after {
  position: absolute;
  right: -15%;
  bottom: -24%;
  width: 78%;
  aspect-ratio: 1;
  border: 2px solid rgba(17, 19, 15, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(17, 19, 15, .05), 0 0 0 110px rgba(17, 19, 15, .04);
  content: "";
}
.poster-top { display: flex; justify-content: space-between; gap: 1rem; font-size: .68rem; font-weight: 900; letter-spacing: .14em; }
.poster-copy { position: relative; z-index: 1; }
.poster-copy strong { display: block; max-width: 8ch; font-size: clamp(3rem, 6vw, 5.6rem); line-height: .88; letter-spacing: -.07em; }
.poster-copy p { max-width: 24ch; margin: 1.5rem 0 0; font-size: 1.05rem; font-weight: 700; }
.spade {
  position: absolute;
  z-index: 2;
  right: 2%;
  top: 8%;
  width: 43%;
  height: 72%;
  transform: rotate(24deg);
}
.spade-handle { position: absolute; left: 45%; top: 0; width: 11%; height: 76%; border-radius: 12px; background: #151713; }
.spade-grip { position: absolute; left: 30%; top: -1%; width: 40%; height: 13%; border: 12px solid #151713; border-bottom-width: 10px; border-radius: 50% 50% 35% 35%; }
.spade-blade { position: absolute; left: 27%; bottom: 0; width: 48%; height: 35%; border-radius: 50% 50% 45% 45% / 28% 28% 72% 72%; background: #151713; clip-path: polygon(12% 0, 88% 0, 100% 54%, 50% 100%, 0 54%); }
.coordinate { position: absolute; right: 0; bottom: 0; padding: .65rem .9rem; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-family: ui-monospace, monospace; font-size: .7rem; letter-spacing: .08em; }

.section { padding: clamp(5rem, 10vw, 9rem) 0; }
.section-heading { display: grid; grid-template-columns: .7fr 1.3fr; gap: 2rem; align-items: end; margin-bottom: 3rem; }
.section-heading h2 { margin: 0; font-size: clamp(2.3rem, 5vw, 4.5rem); line-height: 1.05; letter-spacing: -.04em; }
.section-heading p { max-width: 42rem; margin: 0; color: var(--muted); }
.section-alt { border-block: 1px solid var(--line); background: var(--alt); }

.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.fact { min-height: 230px; padding: 2rem; background: var(--surface); }
.fact-number { color: var(--yellow); font-family: ui-monospace, monospace; font-size: .8rem; letter-spacing: .12em; }
.fact h3 { margin: 3.4rem 0 .7rem; font-size: 1.45rem; }
.fact p { margin: 0; color: var(--muted); font-size: .95rem; }

.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.archive-card { position: relative; min-height: 440px; padding: 1.5rem; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: #f4f0e5; text-decoration: none; box-shadow: var(--shadow); }
.archive-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.archive-card:hover .archive-image { transform: scale(1.025); }
.archive-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(9, 11, 9, .9) 100%); }
.archive-visual { position: absolute; inset: 0; opacity: .9; }
.archive-visual::before, .archive-visual::after { position: absolute; content: ""; }
.archive-visual.mud { background: linear-gradient(150deg, #665340, #25271f 60%); }
.archive-visual.mud::after { right: -10%; bottom: -18%; width: 70%; aspect-ratio: 1; border: 1px solid rgba(232,207,59,.4); border-radius: 50%; box-shadow: 0 0 0 45px rgba(232,207,59,.06), 0 0 0 90px rgba(232,207,59,.04); }
.archive-visual.meal { background: linear-gradient(145deg, #2b4a49, #121512); }
.archive-visual.meal::after { right: 10%; top: 14%; width: 42%; aspect-ratio: 1; border: 20px solid rgba(134,181,190,.32); border-radius: 50%; }
.archive-visual.ride { background: linear-gradient(135deg, #2f3325, #11130f); }
.archive-visual.ride::after { left: 12%; bottom: 20%; width: 76%; height: 2px; background: var(--yellow); box-shadow: 0 -60px rgba(232,207,59,.2), 0 60px rgba(232,207,59,.12); }
.archive-visual.rebuild { background: linear-gradient(145deg, #544936, #171a17); }
.archive-visual.rebuild::after { right: 12%; top: 10%; width: 35%; height: 75%; border: 2px solid rgba(244,240,229,.22); transform: skew(-17deg); }
.archive-card-content { position: absolute; z-index: 1; inset: auto 1.5rem 1.5rem; }
.archive-card .tag { display: inline-flex; padding: .32rem .65rem; border: 1px solid rgba(244,240,229,.25); border-radius: 999px; background: rgba(14,16,14,.58); font-size: .72rem; backdrop-filter: blur(8px); }
.archive-card strong { display: block; margin-top: .8rem; font-size: 1.35rem; }
.archive-description { display: -webkit-box; margin-top: .25rem; overflow: hidden; color: #d5d1c5; font-size: .88rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.archive-source { display: block; margin-top: .75rem; color: var(--yellow); font-size: .75rem; font-weight: 750; }
.archive-disclaimer { margin-top: 1.2rem; color: var(--muted); font-size: .82rem; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.step { counter-increment: step; padding: 2rem; border-top: 1px solid var(--yellow); background: var(--surface); }
.step::before { content: "0" counter(step); color: var(--yellow); font-family: ui-monospace, monospace; font-size: .8rem; letter-spacing: .1em; }
.step h3 { margin: 2.5rem 0 .7rem; font-size: 1.3rem; }
.step p { margin: 0; color: var(--muted); font-size: .94rem; }

.trust-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 7vw, 6rem); align-items: start; }
.trust-copy h2 { margin: 0; font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.04; letter-spacing: -.04em; }
.trust-copy p { color: var(--muted); }
.levels { border-top: 1px solid var(--line); }
.level { display: grid; grid-template-columns: 3rem 1fr auto; gap: 1rem; align-items: center; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.level-index { color: var(--yellow); font-family: ui-monospace, monospace; }
.level strong { display: block; }
.level span:last-child { color: var(--muted); font-size: .78rem; }

.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.principle { padding: 1.5rem; border: 1px solid var(--line); border-radius: 14px; }
.principle h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.principle p { margin: 0; color: var(--muted); font-size: .9rem; }

.final-cta { padding: clamp(3rem, 8vw, 6rem); border-radius: var(--radius); background: var(--yellow); color: #11130f; }
.final-cta h2 { max-width: 15ch; margin: 0; font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -.05em; }
.final-cta p { max-width: 42rem; }
.final-cta .button { border-color: #11130f; background: #11130f; color: var(--ink); }

.site-footer { padding: 3rem 0; border-top: 1px solid var(--line); }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; align-items: end; }
.footer-grid p { max-width: 40rem; margin: .6rem 0 0; color: var(--muted); font-size: .85rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { color: var(--muted); font-size: .85rem; }

.page-hero { padding: 7rem 0 4rem; }
.page-hero h1 { max-width: 13ch; margin: 0; font-size: clamp(3rem, 7vw, 6rem); line-height: 1; letter-spacing: -.055em; }
.page-hero .lede { max-width: 48rem; color: var(--muted); font-size: 1.2rem; }
.status-banner { margin-top: 2rem; padding: 1.2rem 1.4rem; border: 1px solid rgba(232,207,59,.45); border-radius: 12px; background: var(--yellow-dark); }
.preparation-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; }
.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li { display: grid; grid-template-columns: 2rem 1fr; gap: .7rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.checklist li::before { content: "✓"; color: var(--yellow); font-weight: 900; }
.policy-card { padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.policy-card h2 { margin-top: 0; }
.policy-card dl { margin: 0; }
.policy-card dt { margin-top: 1.2rem; color: var(--yellow); font-weight: 750; }
.policy-card dd { margin: .25rem 0 0; color: var(--muted); }

.has-reveal [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.has-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 880px) {
  .menu-button { display: inline-grid; place-items: center; }
  .navigation { position: absolute; inset: 72px 1rem auto; display: none; align-items: stretch; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
  .navigation[data-open="true"] { display: grid; }
  .navigation a { min-height: 44px; display: flex; align-items: center; }
  .navigation .button { justify-content: center; }
  .hero-grid, .section-heading, .trust-layout, .preparation-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 3.5rem; }
  .hero-art { min-height: 500px; }
  .fact-grid { grid-template-columns: 1fr; }
  .fact { min-height: auto; }
  .fact h3 { margin-top: 2rem; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  body { font-size: 16px; }
  .container { width: min(calc(100% - 1.25rem), var(--max)); }
  .brand-name { max-width: 10rem; font-size: .88rem; line-height: 1.2; }
  .hero h1 { font-size: clamp(3.1rem, 17vw, 5rem); }
  .hero-actions { display: grid; }
  .hero-art { min-height: 440px; }
  .poster { inset: 0 .4rem 1.2rem 0; }
  .poster-copy strong { font-size: 3.5rem; }
  .section { padding: 4.5rem 0; }
  .archive-grid { grid-template-columns: 1fr; }
  .archive-card { min-height: 420px; }
  .principles { grid-template-columns: 1fr; }
  .level { grid-template-columns: 2.3rem 1fr; }
  .level span:last-child { grid-column: 2; }
  .footer-grid { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
