/* 轻舟阅读 — paper, ink and river green */
:root {
  --bg: #f6f6f2;
  --surface: #ffffff;
  --surface-2: #eef0ec;
  --text: #1c2226;
  --text-2: #4f5a5f;
  --text-3: #808a8e;
  --line: #dde1dc;
  --accent: #2c6b6e;
  --accent-soft: #e0eeec;
  --warm: #a8552f;
  --warm-soft: #f5e6dc;
  --new: #2f7a3e;
  --new-soft: #e2f0e3;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131718; --surface: #1a1f21; --surface-2: #20272a; --text: #e5eaeb; --text-2: #a9b4b7;
    --text-3: #77838a; --line: #2c3437; --accent: #6fb5b5; --accent-soft: #19302f; --warm: #e19670;
    --warm-soft: #37251c; --new: #82c68c; --new-soft: #1c3020; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131718; --surface: #1a1f21; --surface-2: #20272a; --text: #e5eaeb; --text-2: #a9b4b7;
  --text-3: #77838a; --line: #2c3437; --accent: #6fb5b5; --accent-soft: #19302f; --warm: #e19670;
  --warm-soft: #37251c; --new: #82c68c; --new-soft: #1c3020; color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.85 -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, .brand, .tldr, .point .num { font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif; }
h1, h2, h3 { text-wrap: balance; }

.bar { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; }
.brand { font-size: 19px; font-weight: 700; color: var(--text); letter-spacing: .04em; }
.bar nav { display: flex; gap: 16px; font-size: 14.5px; }
.bar nav a { color: var(--text-2); }

main { padding-block: 32px 48px; }
section { margin-top: 40px; }
h2 { font-size: 15px; letter-spacing: .12em; color: var(--accent); margin: 0 0 14px; font-family: inherit; font-weight: 700; }
.small { font-size: 14px; color: var(--text-3); }

.hero h1 { font-size: clamp(30px, 6vw, 42px); margin: 8px 0 6px; }
.hero .en, .en-inline { font-family: inherit; font-size: 15px; font-weight: 500; color: var(--text-3); letter-spacing: .06em; margin-left: 6px; }
.hero p { color: var(--text-2); margin: 0; }
.poem { color: var(--accent); }
.pagetitle { font-size: 28px; margin: 0 0 18px; }

.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; color: inherit; }
a.card:hover { text-decoration: none; border-color: var(--accent); }
.card h3 { font-size: 19px; margin: 4px 0 6px; line-height: 1.45; }
.card p { margin: 0; color: var(--text-2); font-size: 15.5px; line-height: 1.75; }
.card .meta { font-size: 13px; color: var(--text-3); }
.card.big h3 { font-size: 24px; }
.card.big p { font-size: 16.5px; }
.list { display: grid; gap: 12px; }
@media (min-width: 680px) { .list.two { grid-template-columns: 1fr 1fr; } }
.people-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; flex-direction: column; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); line-height: 1.4; }
.chip span { font-size: 12.5px; color: var(--text-3); }
.chip:hover { text-decoration: none; border-color: var(--accent); }

.eyebrow { font-size: 14px; color: var(--text-3); }
.issue-page h1, .person-page h1 { font-size: clamp(26px, 5vw, 34px); line-height: 1.35; margin: 8px 0 16px; }
.tldr { font-size: 20px; line-height: 1.7; border-left: 3px solid var(--warm); padding: 4px 0 4px 16px; margin: 0; }

.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.point { display: grid; grid-template-columns: 40px 1fr; gap: 4px; }
.point .num { color: var(--warm); font-size: 18px; padding-top: 2px; }
.point h3 { font-size: 19px; margin: 0 0 10px; line-height: 1.55; }
blockquote { margin: 0 0 12px; padding: 12px 16px; background: var(--surface-2); border-radius: 10px; }
blockquote p { margin: 0; }
blockquote .en { font-family: Georgia, "Times New Roman", serif; font-style: italic; color: var(--text-2); font-size: 15.5px; line-height: 1.65; }
blockquote .zh { margin-top: 6px; font-size: 16px; }
blockquote cite { display: block; margin-top: 6px; font-size: 12.5px; color: var(--text-3); font-style: normal; }
.take { margin: 0; }
.label { display: inline-block; font-size: 12.5px; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 0 7px; margin-right: 8px; vertical-align: 2px; }

.track, .takeaways, .ask ul, .views, .timeline, .also { padding-left: 0; list-style: none; margin: 0; display: grid; gap: 10px; }
.track li { display: grid; grid-template-columns: 44px 1fr; gap: 6px; align-items: baseline; }
.tag { font-size: 12.5px; text-align: center; border-radius: 6px; padding: 1px 0; }
.tag.new { color: var(--new); background: var(--new-soft); }
.tag.changed { color: var(--warm); background: var(--warm-soft); }
.tag.same { color: var(--text-2); background: var(--surface-2); }
.ask { background: var(--warm-soft); border-radius: 12px; padding: 18px 20px; }
.ask h2 { color: var(--warm); }
.ask li { padding-left: 22px; position: relative; }
.ask li::before { content: "？"; position: absolute; left: 0; color: var(--warm); font-weight: 700; }
.takeaways li { padding-left: 22px; position: relative; }
.takeaways li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }

.reading { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.reading-item { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.reading-item a { font-weight: 500; }
.reading-item p { margin: 4px 0 0; font-size: 15px; color: var(--text-2); }
.rtype { font-size: 12px; color: var(--accent); border: 1px solid var(--accent); border-radius: 5px; padding: 0 6px; margin-right: 8px; vertical-align: 1px; }
.mins { font-size: 12.5px; color: var(--text-3); margin-left: 6px; }

.source { border-top: 1px solid var(--line); padding-top: 24px; }
.btn { display: inline-block; background: var(--accent); color: #fff; border-radius: 999px; padding: 8px 18px; font-size: 15px; font-weight: 500; }
.btn:hover { text-decoration: none; opacity: .92; }

.role { color: var(--text-2); margin-top: -8px; }
.follow a { margin-right: 12px; }
.views li, .timeline li { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: baseline; }
.views .d, .timeline .d { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.views p { margin: 2px 0 0; }

.foot { border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; padding-block: 20px 40px; }
.foot p { margin: 4px 0; }
@media (max-width: 520px) {
  body { font-size: 16px; }
  .bar nav { gap: 12px; font-size: 14px; }
  .views li, .timeline li { grid-template-columns: 1fr; gap: 0; }
}

/* share */
.share-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.share-btn { font: inherit; font-size: 15px; font-weight: 500; border-radius: 999px; padding: 8px 18px; cursor: pointer; border: 1px solid var(--accent); background: var(--accent); color: #fff; }
.share-btn.ghost { background: transparent; color: var(--accent); }
.share-btn:focus-visible, .share-close:focus-visible { outline: 2px solid var(--warm); outline-offset: 2px; }
.share-end { border-top: 1px solid var(--line); padding-top: 24px; }
.share-modal { position: fixed; inset: 0; z-index: 50; background: rgba(10, 14, 16, .62); display: flex; align-items: center; justify-content: center; padding: 16px; }
.share-modal[hidden] { display: none; }
.share-sheet { position: relative; background: var(--surface); border-radius: 16px; padding: 44px 16px 16px; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; }
.share-close { position: absolute; top: 6px; right: 8px; width: 36px; height: 36px; border: 0; background: transparent; font-size: 26px; line-height: 1; color: var(--text-2); cursor: pointer; }
.share-hint { margin: 0 0 10px; font-size: 14px; color: var(--text-2); text-align: center; }
.share-poster { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,.12); -webkit-touch-callout: default; user-select: auto; }
.share-text { width: 100%; font: inherit; font-size: 15px; line-height: 1.6; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); resize: none; }
.share-toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 14px; z-index: 60; }
