:root {
  --bg: #fff7e6;
  --card: #ffffff;
  --text: #3a2129;
  --muted: #776759;
  --line: #f0cf9c;
  --accent: #c65a2b;
  --accent-bg: #ee8a3d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

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

header.site a { color: inherit; text-decoration: none; }

.icon {
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
  border-radius: 14px;
  border: 3px solid var(--text);
  background: var(--card);
}

.icon.big { width: 128px; height: 128px; border-radius: 28px; }

.name { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.name small { display: block; font-size: 0.85rem; font-weight: 400; color: var(--muted); }

h1 { font-size: 1.6rem; line-height: 1.35; margin: 0 0 8px; }
h2 { font-size: 1.15rem; margin: 32px 0 8px; padding-bottom: 4px; border-bottom: 2px solid var(--line); }
h3 { font-size: 1rem; margin: 20px 0 4px; }

p, li { margin: 0 0 10px; }
ul { padding-left: 1.3em; }

a { color: var(--accent); text-underline-offset: 3px; }

.updated { color: var(--muted); font-size: 0.9rem; }

.card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  margin: 16px 0;
}

.hero { text-align: center; padding: 24px 0 8px; }
.hero h1 { font-size: 2rem; margin-top: 16px; }
.hero p { color: var(--muted); }

.links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 24px 0; }

.button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 12px;
  border: 2px solid var(--text);
  background: var(--card);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.button.primary { background: var(--accent-bg); color: #fff; }

footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 2px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

footer a { color: var(--muted); }

.lang-en { margin-top: 48px; }
