/* One-page card. No third-party fonts or scripts: the CSP allows 'self' only. */
:root {
  --bg: #ffffff;
  --surface: #f6f7fb;
  --ink: #111827;
  --muted: #5b6474;
  --line: #e4e6ee;
  --accent: #3730a3;
  --accent-soft: #eef0ff;
  --accent-ink: #ffffff;
  --chip: #eef0f6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1016;
    --surface: #161a23;
    --ink: #e7eaf1;
    --muted: #9ba3b4;
    --line: #2a2f3c;
    --accent: #a5b4fc;
    --accent-soft: #1e2140;
    --accent-ink: #0e1016;
    --chip: #1c202b;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

[lang="zh-Hant"] { font-family: -apple-system, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; }

.page { max-width: 760px; margin: 0 auto; padding: 56px 16px 64px; }

.hero { display: flex; align-items: center; gap: 18px; }

/* The mark: an open circle (ensō) around the initial. */
.mark {
  position: relative;
  flex: none;
  width: 68px;
  height: 68px;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 28px;
}

.mark::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--accent);
  border-right-color: transparent;
  transform: rotate(-20deg);
}

h1 { font-size: 38px; line-height: 1.15; letter-spacing: -0.5px; }

.role { color: var(--muted); font-size: 18px; margin-top: 4px; }
.role.zh { margin-top: 0; }

.zh-inline { margin-left: 6px; }

.lede { font-size: 21px; margin-top: 28px; }
.lede.zh { font-size: 18px; margin-top: 4px; }

.zh, .muted { color: var(--muted); }

.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.btn {
  display: inline-block;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 16px;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover, .btn:focus-visible { border-color: var(--accent); color: var(--accent); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover, .btn.primary:focus-visible { opacity: 0.9; color: var(--accent-ink); }

section { margin-top: 48px; }

h2 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }

.service {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}
.service h3 { font-size: 18px; }
.service p { margin-top: 6px; font-size: 16px; }
.service p.zh { font-size: 15px; }

.work { padding: 20px 0; border-bottom: 1px solid var(--line); }
.work-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.work h3 { font-size: 20px; }
.year { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.work p { margin-top: 6px; }
.work p.zh { font-size: 16px; }

.founder { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.founder h3 { font-size: 20px; }

.avatar {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.certs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.certs li { background: var(--chip); border-radius: 999px; padding: 4px 12px; font-size: 15px; }

.foot { margin-top: 48px; color: var(--muted); font-size: 15px; }

@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .page { padding-top: 36px; }
  h1 { font-size: 31px; }
  .mark { width: 58px; height: 58px; font-size: 24px; }
  .lede { font-size: 19px; }
}
