:root {
  --bg: #faf8f4; --surface: #ffffff; --fg: #1b1a18; --muted: #6d6a63; --line: #e8e4dc;
  --accent: #d9480f; --accent-soft: #fdeee6; --live: #2b8a3e; --live-soft: #e7f5ea;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131211; --surface: #1c1b19; --fg: #eeece8; --muted: #9b978f; --line: #2e2c29;
    --accent: #ff8a4c; --accent-soft: #3a2316; --live: #69db7c; --live-soft: #16301c;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
html[data-lang="zh"] .en, html[data-lang="en"] .zh { display: none; }
a { color: inherit; }
main { max-width: 700px; margin: 0 auto; padding: 56px 16px 64px; }

.nav {
  position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.nav-inner { max-width: 700px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; margin-right: auto; }
.mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--fg); color: var(--bg);
  display: grid; place-items: center; font-weight: 700; letter-spacing: .5px; font-size: 13px;
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { text-decoration: none; font-size: 14.5px; color: var(--muted); padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.nav-links a:hover { color: var(--fg); background: var(--surface); }
.nav-links a.tool { color: var(--accent); }
section[id] { scroll-margin-top: 72px; }
@media (max-width: 520px) {
  .brand-name { display: none; }
  .nav-links a { padding: 6px 7px; font-size: 14px; }
}
.lang {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface);
}
.lang button {
  border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px;
  padding: 4px 12px; border-radius: 999px; cursor: pointer;
}
html[data-lang="zh"] .lang [data-set="zh"], html[data-lang="en"] .lang [data-set="en"] { background: var(--fg); color: var(--bg); }

h1 { font-size: clamp(34px, 7vw, 48px); line-height: 1.1; margin: 0 0 14px; letter-spacing: -.5px; }
.tagline { font-size: clamp(19px, 3.6vw, 23px); margin: 0 0 10px; }
.tagline em { font-style: normal; color: var(--accent); }
.where { color: var(--muted); font-size: 14.5px; margin: 0 0 26px; }
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 14.5px; font-weight: 500;
  padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  transition: border-color .15s, transform .15s;
}
.btn:hover { border-color: var(--fg); transform: translateY(-1px); }
.btn svg { width: 17px; height: 17px; fill: currentColor; }

section { margin-top: 64px; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); font-weight: 600; margin: 0 0 18px; }
.about p { margin: 0; font-size: 17px; }
.about p.faith { margin-top: 14px; }

.projects { display: grid; gap: 14px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
}
.card.featured { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.card h3 { margin: 0; font-size: 18px; }
.pill { font-size: 12px; padding: 2px 9px; border-radius: 999px; color: var(--muted); background: var(--bg); white-space: nowrap; }
.pill.live { color: var(--live); background: var(--live-soft); }
.pill.live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; }
.card p { margin: 8px 0 12px; color: var(--muted); font-size: 15px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }
.open { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap; }
.open:hover { text-decoration: underline; }

footer { margin-top: 72px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 16px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--fg); }
.nav-links a[aria-current="page"] { color: var(--accent); font-weight: 600; }
