/* The colours come from Shared/Theme.swift, so the page matches the app. */
:root {
  --paper: #f3f0e8;
  --card: #ffffff;
  --ink: #17191b;
  --muted: #5e615c;
  --border: #ddd8cc;
  --accent: #0b6b57;
  --accent-soft: #e3f1ec;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111314;
    --card: #1d2022;
    --ink: #f1eee6;
    --muted: #a3a69f;
    --border: #33373a;
    --accent: #3fb894;
    --accent-soft: #163a30;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 40px 16px 80px;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC",
        "PingFang HK", "Microsoft JhengHei", sans-serif;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 680px;
  margin: 0 auto;
}

header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

header img {
  width: 56px;
  height: 56px;
  border-radius: 13px;
  display: block;
}

header h1 {
  font-size: 26px;
  line-height: 1.2;
  margin: 0;
}

header p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 22px;
  margin-bottom: 16px;
}

h2 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

p { margin: 0 0 12px; }
p:last-child, ul:last-child { margin-bottom: 0; }

ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

li { margin-bottom: 6px; }

.lead {
  background: var(--accent-soft);
  border-color: transparent;
}

.lead p {
  font-size: 18px;
  font-weight: 600;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

footer {
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

footer a { margin: 0 6px; }
