:root {
  color-scheme: light dark;
  --background: #f4f7f6;
  --surface: #ffffff;
  --ink: #14313a;
  --muted: #5a7178;
  --weak: #829498;
  --line: #dce6e4;
  --brand: #1c7a70;
  --brand-deep: #0f5a52;
  --calm: #e3f1ee;
  --focus: #c8843a;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC",
    "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0;
}

a {
  color: var(--brand-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 70%, transparent);
  outline-offset: 4px;
  border-radius: 3px;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.page,
.footer-inner {
  width: min(100% - 40px, 760px);
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--brand);
}

.page {
  padding: 64px 0 80px;
}

.page-heading {
  margin-bottom: 48px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

h1,
h2 {
  line-height: 1.28;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 8vw, 48px);
}

.lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.meta {
  margin: 18px 0 0;
  color: var(--weak);
  font-size: 14px;
}

.notice {
  margin: 30px 0 0;
  padding: 18px 20px;
  background: var(--calm);
  border-left: 4px solid var(--brand);
  border-radius: 0 6px 6px 0;
}

.notice p {
  margin: 0;
}

.document-section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.document-section h2 {
  margin: 0 0 16px;
  font-size: 23px;
}

.document-section h3 {
  margin: 24px 0 8px;
  font-size: 17px;
}

.document-section p,
.document-section ul,
.document-section ol {
  margin-top: 0;
  margin-bottom: 16px;
}

.document-section li + li {
  margin-top: 8px;
}

.document-section strong {
  color: var(--ink);
}

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

.link-list li {
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.link-list a {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.link-list a::after {
  content: "→";
  color: var(--brand);
}

.steps {
  padding-left: 24px;
}

.steps li::marker {
  color: var(--brand);
  font-weight: 800;
}

.action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 0 20px;
  border-radius: 6px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.action:hover {
  background: var(--brand-deep);
}

.site-footer {
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--weak);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 620px) {
  .header-inner,
  .page,
  .footer-inner {
    width: min(100% - 32px, 760px);
  }

  .header-inner {
    min-height: 64px;
  }

  .site-nav {
    gap: 12px;
    font-size: 13px;
  }

  .site-nav .optional-nav {
    display: none;
  }

  .page {
    padding: 44px 0 64px;
  }

  .page-heading {
    margin-bottom: 36px;
  }

  .lead {
    font-size: 17px;
  }

  .document-section {
    padding: 28px 0;
  }

  .footer-inner {
    display: block;
  }

  .footer-inner p + p {
    margin-top: 6px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0e1716;
    --surface: #16211f;
    --ink: #edf6f4;
    --muted: #a9bcba;
    --weak: #7f9491;
    --line: #2b3d3a;
    --brand: #73d4c7;
    --brand-deep: #8ce2d6;
    --calm: #183a35;
    --focus: #e8c98e;
  }
}
