:root {
  --bg: #fffaf3;
  --surface: #ffffff;
  --surface-alt: #fdf1e1;
  --ink: #2b2118;
  --ink-soft: #62544a;
  --line: #eadfce;
  --brand: #c2410c;
  --brand-dark: #9a3412;
  --brand-ink: #ffffff;
  --accent: #166534;
  --warn-bg: #fff3bf;
  --warn-ink: #5c4400;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(80, 45, 10, 0.08);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #1b1510;
    --surface: #251d16;
    --surface-alt: #2d241b;
    --ink: #f6ece0;
    --ink-soft: #c9b9a8;
    --line: #3d3125;
    --brand: #fb923c;
    --brand-dark: #fdba74;
    --brand-ink: #1b1510;
    --accent: #86efac;
    --warn-bg: #4a3a00;
    --warn-ink: #ffe9a6;
    --shadow: none;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    'Noto Sans TC',
    'PingFang TC',
    'Microsoft JhengHei',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}
a {
  color: var(--brand);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--brand-dark);
}
img,
svg {
  max-width: 100%;
}
.wrap {
  width: min(1080px, 100% - 40px);
  margin-inline: auto;
}
.narrow {
  width: min(780px, 100% - 40px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: var(--brand-ink);
  padding: 8px 14px;
  z-index: 10;
}
.skip:focus {
  left: 8px;
  top: 8px;
}

header.site {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-block: 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
.brand-logo {
  display: block;
  height: 60px;
  width: auto;
}
@media (prefers-color-scheme: dark) {
  .brand-logo {
    /* black line art: keep it readable on the dark page */
    background: #ffffff;
    border-radius: 6px;
    padding: 3px 6px;
  }
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand);
  color: var(--brand-ink);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
nav.site ul {
  list-style: none;
  display: flex;
  gap: 4px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
nav.site a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}
nav.site a.nav-find {
  font-weight: 700;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--brand);
}
nav.site a:hover,
nav.site a[aria-current='page'] {
  background: var(--surface-alt);
  color: var(--ink);
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--brand);
}
.btn:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: var(--brand-ink);
}
.btn.ghost {
  background: transparent;
  color: var(--brand);
}
.btn.ghost:hover {
  background: var(--surface-alt);
  color: var(--brand-dark);
}

.hero {
  padding: 56px 0 40px;
  background: linear-gradient(180deg, var(--surface-alt), var(--bg));
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
  grid-template-columns: 1fr;
}
.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
@media (min-width: 900px) {
  .hero {
    padding: 64px 0 48px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 40px;
  }
}
.hero h1 {
  font-size: clamp(1.8rem, 4.2vw, 2.6rem);
  line-height: 1.3;
  margin: 0 0 16px;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 40em;
  margin: 0 0 28px;
}
.hero .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--brand-dark);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 18px;
}

section.block {
  padding: 56px 0;
}
section.block.alt {
  background: var(--surface-alt);
}
section.block h2 {
  font-size: 1.7rem;
  margin: 0 0 8px;
  line-height: 1.3;
}
section.block .sub {
  color: var(--ink-soft);
  margin: 0 0 28px;
  max-width: 42em;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}
.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.card .num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 800;
  margin-bottom: 10px;
}

table.fees {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
table.fees th,
table.fees td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.fees th {
  width: 34%;
  background: var(--surface-alt);
  font-weight: 700;
}
table.fees tr:last-child th,
table.fees tr:last-child td {
  border-bottom: 0;
}
.table-scroll {
  overflow-x: auto;
}
.note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-top: 12px;
}

.doc {
  padding: 48px 0 72px;
}
.doc h1 {
  font-size: 2rem;
  margin: 0 0 4px;
  line-height: 1.3;
}
.doc .meta {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0 0 28px;
}
.doc h2 {
  font-size: 1.3rem;
  margin: 36px 0 8px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.doc h3 {
  font-size: 1.05rem;
  margin: 20px 0 4px;
}
.doc ol,
.doc ul {
  padding-left: 1.4em;
}
.doc li {
  margin: 4px 0;
}
.toc {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 22px;
  margin: 0 0 12px;
  font-size: 0.95rem;
}
.toc ol {
  margin: 6px 0 0;
  columns: 2 220px;
}

dl.info {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 18px;
  margin: 0;
}
dl.info dt {
  color: var(--ink-soft);
}
dl.info dd {
  margin: 0;
}
mark.todo {
  background: var(--warn-bg);
  color: var(--warn-ink);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}

footer.site {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 40px 0 28px;
  font-size: 0.95rem;
}
footer.site .cols {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
footer.site h2 {
  font-size: 1rem;
  margin: 0 0 8px;
}
footer.site ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
footer.site li {
  margin: 4px 0;
}
.pending {
  color: var(--ink-soft);
  font-style: italic;
}

footer.site .copy {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.88rem;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}
@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .hero {
    padding: 44px 0 36px;
  }
  dl.info {
    grid-template-columns: 1fr;
    gap: 0;
  }
  dl.info dt {
    margin-top: 8px;
  }
  table.fees th {
    width: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.showcase {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 0 0 28px;
}
.showcase figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.showcase img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.showcase figcaption {
  padding: 12px 16px 14px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
