/* wangtaiyang.com - clean light theme */
:root {
  --bg: #ffffff;
  --soft: #f6f7f9;
  --text: #15171c;
  --muted: #5e6572;
  --line: #e7e9ee;
  --accent: #2563eb;
  --accent-soft: #eaf1ff;
  --radius: 14px;
  --max: 1040px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue",
        "Noto Sans TC", "Noto Sans JP", "Noto Sans CJK TC", "PingFang TC", "Hiragino Sans",
        "Yu Gothic", "Microsoft JhengHei", sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.3; margin: 0; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 9; }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { color: var(--text); font-weight: 700; font-size: 17px; }
.brand span { color: var(--muted); font-weight: 400; }
.menu { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.menu a { color: var(--muted); font-size: 14px; }
.menu a:hover { color: var(--text); text-decoration: none; }
.lang { display: flex; gap: 10px; font-size: 13px; }
.lang a { color: var(--muted); }
.lang a:hover { color: var(--text); }

/* hero */
.hero { padding: 88px 20px 56px; }
.eyebrow { color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: .02em; margin-bottom: 14px; }
.hero h1 { font-size: clamp(36px, 6vw, 56px); }
.hero h1 span { color: var(--muted); font-weight: 500; }
.lead { color: var(--muted); font-size: 18px; max-width: 640px; margin-top: 18px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.btn { display: inline-block; padding: 11px 20px; border-radius: 999px; background: var(--accent); color: #fff;
  font-weight: 600; font-size: 15px; }
.btn:hover { text-decoration: none; opacity: .92; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }

/* blocks */
.block { padding: 56px 20px; border-top: 1px solid var(--line); }
.block h2 { font-size: 28px; }
.sub { margin: 8px 0 28px; }
.group { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  margin: 30px 0 12px; }
.tools { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tool { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--text); background: var(--bg); transition: border-color .15s, box-shadow .15s; }
.tool:hover { border-color: var(--accent); box-shadow: 0 6px 20px rgba(37,99,235,.08); text-decoration: none; }
.tool strong { font-size: 16px; }
.tool .muted { font-size: 14px; }
.tool-host { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--accent); }

/* news list on homepage */
.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.post-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.post-list li.empty { color: var(--muted); border-bottom: 0; }
.post-list a { color: var(--text); }
.post-list a:hover { color: var(--accent); }
.post-list time { color: var(--muted); font-size: 14px; white-space: nowrap; }
.all { margin-top: 18px; }

/* about */
.about { display: grid; gap: 36px; }
@media (min-width: 760px) { .about { grid-template-columns: 1.4fr 1fr; } }
.bio p { color: var(--text); }
.facts { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts li:last-child { border-bottom: 0; }
.facts span { color: var(--muted); }

/* services */
.services { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.service { padding: 22px; border-radius: var(--radius); background: var(--soft); }
.service h3 { font-size: 17px; margin-bottom: 8px; }
.service p { font-size: 15px; margin: 0; }

/* contact */
.contact .lead { margin-bottom: 18px; }
.mail { font-size: 22px; font-weight: 600; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; }
.foot p { margin-bottom: 14px; }
.foot-row { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.foot-row a { margin-left: auto; }

@media (max-width: 640px) {
  .bar { height: auto; padding: 14px 0; flex-wrap: wrap; gap: 10px; }
  .menu { margin-left: 0; gap: 14px; }
  .hero { padding: 56px 20px 40px; }
  .block { padding: 44px 20px; }
}

/* ---- daily news pages (used by scripts/build_news.py) ---- */
.news-wrap { max-width: 760px; margin: 0 auto; padding: 48px 20px 64px; }
.news-wrap .back { display: inline-block; font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.news-head { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.news-head .eyebrow { font-size: 13px; color: var(--accent); font-weight: 600; margin: 0 0 8px; }
.news-head h1 { font-size: clamp(32px, 6vw, 44px); }
.news-head .lead { font-size: 15px; margin-top: 12px; }
.cards { display: grid; gap: 14px; }
.news-wrap .card { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 20px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg); }
.news-wrap .num { font-size: 13px; color: var(--accent); font-weight: 600; padding-top: 3px; }
.news-wrap .card h2 { font-size: 18px; margin-bottom: 8px; }
.news-wrap .card p { color: #2b3040; font-size: 15px; line-height: 1.8; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips .lbl { font-size: 12px; color: var(--muted); margin-right: 2px; }
.chip { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.chip:hover { text-decoration: none; filter: brightness(.96); }
.news-wrap .disc { margin-top: 32px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }
@media (max-width: 560px) { .news-wrap .card { grid-template-columns: 1fr; gap: 6px; } }
