:root {
  --bg: #fbf8f3;
  --card: #fffdf9;
  --ink: #1f1b16;
  --muted: #6b645a;
  --line: #e8e1d5;
  --accent: #0e6b63;
  --accent-soft: #e3f0ed;
  --todo-bg: #fff2c2;
  --todo-ink: #6b4e00;
  --serif: "Iowan Old Style", "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.8 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--bg);
  padding: 6px 12px;
  border-radius: 6px;
  z-index: 10;
}
.skip:focus { left: 8px; }

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 22px;
}

/* top bar + language switch */
.topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  padding-top: 22px;
}
.site-link {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.site-link:hover { color: var(--accent); text-decoration: underline; }
.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  font-size: 13px;
  line-height: 1;
  background: var(--card);
}
.lang a,
.lang span {
  padding: 7px 13px;
  border-radius: 999px;
  text-decoration: none;
}
.lang a { color: var(--muted); }
.lang a:hover { color: var(--ink); }
.lang [aria-current="page"] {
  background: var(--accent);
  color: #fff;
}

/* hero */
.hero { padding: 56px 0 8px; }
.avatar {
  display: block;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--card);
  box-shadow: 0 0 0 1px var(--line);
  background: var(--accent-soft);
}
h1 {
  font: 700 38px/1.25 var(--serif);
  letter-spacing: 0.01em;
  margin: 22px 0 4px;
}
h1 .alias {
  font: 400 20px var(--sans);
  color: var(--muted);
  margin-left: 8px;
  letter-spacing: 0;
}
.tagline {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 17px;
}
.points {
  list-style: none;
  margin: 0;
  padding: 0;
}
.points li {
  display: flex;
  gap: 12px;
  padding: 3px 0;
}
.points .emoji { flex: 0 0 1.6em; text-align: center; }

/* sections */
section { padding-top: 64px; }
h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 22px/1.3 var(--serif);
  margin: 0 0 18px;
}
h2::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
p { margin: 0 0 14px; }

/* cards */
.cards {
  display: grid;
  gap: 14px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
}
.card h3 {
  font: 700 17px/1.4 var(--sans);
  margin: 0 0 6px;
}
.card h3 .tag {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 9px;
  border-radius: 999px;
  vertical-align: 2px;
  white-space: nowrap;
}
.card p { margin: 0 0 8px; color: #3a352d; }
.card p:last-child { margin-bottom: 0; }
.more { font-size: 15px; }
.cards + .more { margin-top: 14px; }

/* timeline (about) */
.timeline {
  list-style: none;
  margin: 18px 0 0;
  padding: 0 0 0 18px;
  border-left: 2px solid var(--line);
}
.timeline li { position: relative; padding: 0 0 10px 6px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 0.75em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}

/* FAQ */
.faq dt {
  font: 700 17px/1.5 var(--sans);
  margin: 26px 0 6px;
}
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 0; color: #3a352d; }

/* contact */
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-list li {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list .k { flex: 0 0 5.5em; color: var(--muted); }

/* obvious placeholders */
.todo {
  background: var(--todo-bg);
  color: var(--todo-ink);
  padding: 1px 6px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.94em;
}
a.todo { border-bottom: 1px dashed var(--todo-ink); }

footer {
  margin-top: 72px;
  padding: 26px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
footer p { margin: 0 0 4px; }

@media (max-width: 520px) {
  body { font-size: 15.5px; }
  .hero { padding-top: 36px; }
  h1 { font-size: 32px; }
  h1 .alias { display: block; margin: 4px 0 0; }
  section { padding-top: 52px; }
  .card { padding: 18px; }
  .contact-list li { flex-direction: column; gap: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  a { transition: color 0.15s; }
}

@media print {
  .topbar, .skip { display: none; }
  body { background: #fff; }
}
