:root {
  --canvas: #f4f5f7;
  --paper: #ffffff;
  --ink: #15171c;
  --ink-2: #4a4f59;
  --ink-3: #868b95;
  --rule: rgba(21, 23, 28, 0.09);
  --stamp: #3346d3;
  --stamp-soft: #eceffd;
  --yes: #17804f;
  --yes-soft: #e6f4ec;
  --no: #c8372d;
  --no-soft: #fbeceb;
  --hold: #b0610a;
  --hold-soft: #fbf1e3;
  --lift: 0 1px 1px rgba(21, 23, 28, 0.04), 0 8px 24px rgba(21, 23, 28, 0.06);
  --bar: rgba(244, 245, 247, 0.78);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #1a1b1f;
    --paper: #24262b;
    --ink: #f2f3f5;
    --ink-2: #b9bdc6;
    --ink-3: #868b95;
    --rule: rgba(255, 255, 255, 0.09);
    --stamp: #8b98ff;
    --stamp-soft: #2a2d45;
    --yes: #4cc38a;
    --yes-soft: #1d3328;
    --no: #ff7b70;
    --no-soft: #3a2422;
    --hold: #f0a54a;
    --hold-soft: #3a2c1a;
    --lift: none;
    --bar: rgba(26, 27, 31, 0.78);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --canvas: #1a1b1f;
  --paper: #24262b;
  --ink: #f2f3f5;
  --ink-2: #b9bdc6;
  --ink-3: #868b95;
  --rule: rgba(255, 255, 255, 0.09);
  --stamp: #8b98ff;
  --stamp-soft: #2a2d45;
  --yes: #4cc38a;
  --yes-soft: #1d3328;
  --no: #ff7b70;
  --no-soft: #3a2422;
  --hold: #f0a54a;
  --hold-soft: #3a2c1a;
  --lift: none;
  --bar: rgba(26, 27, 31, 0.78);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 0;
}
a { color: var(--stamp); }
:focus-visible { outline: 2px solid var(--stamp); outline-offset: 3px; border-radius: 6px; }

/* 頂部導覽：半透明材質 */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--rule);
}
.topbar-inner {
  max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; height: 3rem;
  display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem;
}
.topbar a { color: var(--ink); text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--stamp); }
.topbar .here { color: var(--ink-3); }
.topbar .sep { color: var(--ink-3); }
.topbar .stamp-mark {
  width: 1.125rem; height: 1.125rem; border-radius: 5px; background: var(--stamp);
  display: inline-block; margin-right: 0.25rem; position: relative;
}
.topbar .stamp-mark::after {
  content: ""; position: absolute; inset: 0.3rem; border: 2px solid #fff; border-radius: 50%;
}
.topbar .spacer { flex: 1; }

/* 版面 */
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 44rem; }
section { padding: 4.5rem 0 0; }
section:last-of-type { padding-bottom: 6rem; }

.hero { padding: 4.5rem 0 1rem; }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 1.25rem;
}
.hero .lede {
  font-size: clamp(1.1875rem, 2.2vw, 1.4375rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34em;
  margin: 0;
  letter-spacing: -0.005em;
}
.status-line { margin-top: 1.5rem; font-size: 0.875rem; color: var(--ink-3); display: flex; align-items: center; gap: 0.5rem; }
.dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; display: inline-block; flex: none; }
.dot.hold { background: var(--hold); }
.dot.todo { background: var(--ink-3); }
.dot.yes { background: var(--yes); }

h2 {
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 0.75rem;
}
.section-lede { color: var(--ink-2); margin: 0 0 2rem; max-width: 36em; }
h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.01em; margin: 0 0 0.375rem; font-weight: 650; }
p { margin: 0 0 0.75rem; }
.muted { color: var(--ink-2); }
.small { font-size: 0.875rem; color: var(--ink-3); }

/* 分組列表（設定頁風格） */
.group {
  background: var(--paper); border-radius: 14px; box-shadow: var(--lift);
  overflow: hidden;
}
.group > .row + .row { box-shadow: inset 0 1px 0 var(--rule); }
.row { display: grid; grid-template-columns: 1fr; gap: 0.25rem; padding: 1.125rem 1.375rem; }

/* 要問的問題 */
.asks { list-style: none; margin: 0; padding: 0; counter-reset: ask; }
.asks li {
  counter-increment: ask; display: grid; grid-template-columns: 2.25rem 1fr; gap: 0 0.75rem;
  padding: 1.25rem 0; box-shadow: inset 0 1px 0 var(--rule);
}
.asks li:last-child { box-shadow: inset 0 1px 0 var(--rule), inset 0 -1px 0 var(--rule); }
.asks li::before {
  content: counter(ask); font-size: 1.5rem; font-weight: 700; color: var(--stamp);
  line-height: 1.2; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.asks strong { display: block; font-size: 1.125rem; font-weight: 650; line-height: 1.4; }
.asks span { color: var(--ink-2); font-size: 0.9375rem; }

.pressable { transition: transform 140ms cubic-bezier(.2,.8,.2,1); }
.pressable:active { transform: scale(0.985); }

@media (max-width: 640px) {
  section { padding-top: 3.5rem; }
  .hero { padding-top: 3rem; }
  .row { padding: 1rem 1.125rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .pressable:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .topbar { background: var(--canvas); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --rule: rgba(21, 23, 28, 0.35); --ink-2: #2b2e35; --ink-3: #4a4f59; }
}
