/*
Theme Name: Moments
Description: 極簡說說時光軸主題
Version: 1.0
Author: ken
*/

:root {
  --bg: #f6f7f9; --card: #ffffff; --text: #1f2328; --muted: #8b949e;
  --line: #e4e7eb; --accent: #4f7cff; --shadow: 0 1px 3px rgba(0,0,0,.06);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #101418; --card: #1a2027; --text: #e6e8eb; --muted: #7d8590;
          --line: #2a313a; --accent: #6b95ff; --shadow: 0 1px 3px rgba(0,0,0,.4); }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
.wrap { max-width: 640px; margin: 0 auto; padding: 40px 16px 80px; }
header.site { text-align: center; margin-bottom: 48px; }
header.site h1 { font-size: 1.6em; letter-spacing: .02em; }
header.site h1 a { color: var(--text); text-decoration: none; }
header.site p { color: var(--muted); font-size: .9em; margin-top: 4px; }

.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 0;
  width: 2px; background: var(--line); }
.moment { position: relative; margin-bottom: 36px; }
.moment::before { content: ""; position: absolute; left: -24px; top: 8px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--accent);
  border: 2px solid var(--bg); }
.moment time { display: block; color: var(--muted); font-size: .82em; margin-bottom: 8px; }
.moment .card { background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; box-shadow: var(--shadow); overflow-wrap: break-word; }
.moment .card p { margin-bottom: .6em; }
.moment .card p:last-child { margin-bottom: 0; }
.moment .card a { color: var(--accent); text-decoration: none; word-break: break-all; }
.moment .card a:hover { text-decoration: underline; }
.moment .card img { max-width: 100%; border-radius: 8px; margin-top: 8px; display: block; }
.moment .card audio { width: 100%; margin-top: 8px; }
.moment.private .card { border-style: dashed; opacity: .75; }
.moment.private time::after { content: " · 私密"; color: var(--accent); }

.year-sep { position: relative; margin: 40px 0 24px; color: var(--muted);
  font-size: .9em; font-weight: 600; }
nav.pager { display: flex; justify-content: space-between; margin-top: 40px; font-size: .9em; }
nav.pager a { color: var(--accent); text-decoration: none; }
footer.site { text-align: center; color: var(--muted); font-size: .8em; margin-top: 60px; }
