/* Cite Tools — typographic, no product photography */
:root {
  --bg: #f3f0e8;
  --paper: #fffcf6;
  --ink: #1b1916;
  --muted: #5a554c;
  --line: #d9d2c6;
  --accent: #0b4f4a;
  --accent-ink: #f7f4ee;
  --warn: #7a3e0c;
  --warn-bg: #f4ead8;
  --max: 40rem;
}
* { box-sizing: border-box; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  line-height: 1.65;
}
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
header.site {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0 1rem;
}
header.site .wrap, footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem 1.25rem;
}
.wordmark {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 650;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}
nav a {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  margin-left: 1rem;
}
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }
main { padding: 2.4rem 0 3.5rem; }
h1, h2, h3 {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.2;
  font-weight: 650;
}
h1 { font-size: 2rem; margin: 0 0 0.6rem; }
h2 { font-size: 1.25rem; margin: 2.2rem 0 0.7rem; }
h3 { font-size: 1.05rem; margin: 1.6rem 0 0.5rem; }
.lede { font-size: 1.15rem; color: var(--muted); margin: 0 0 1.4rem; }
.meta {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}
.note, .placeholder-note {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin: 0 0 1.4rem;
  font-size: 0.95rem;
}
.placeholder-note { background: var(--warn-bg); border-color: #e4d3b4; }
.placeholder-note strong { color: var(--warn); }
.cards { display: grid; gap: 0.9rem; margin: 1.4rem 0 0; }
.card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.05rem 1.1rem 1.15rem;
  text-decoration: none;
  color: inherit;
}
.card:hover { border-color: #b9b2a6; }
.card h2 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card .kicker {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.35rem;
}
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 0.6rem 0 1.2rem; }
th, td { text-align: left; padding: 0.45rem 0.5rem 0.45rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}
.scroll { overflow-x: auto; margin: 0 -0.2rem; }
ul, ol { padding-left: 1.2rem; }
li { margin: 0.25rem 0; }
.source-list { padding-left: 1.2rem; }
.source-list li { margin: 0.4rem 0; }
.cta, a.cta {
  display: inline-block;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 650;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  margin: 0.2rem 0.4rem 0.8rem 0;
}
a.cta.pending {
  background: transparent;
  color: var(--warn);
  border: 1px dashed #b8834a;
}
footer.site {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 2rem;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
}
footer.site a { color: var(--muted); }
@media (max-width: 640px) {
  html { font-size: 17px; }
  h1 { font-size: 1.65rem; }
  nav a { margin-left: 0.75rem; }
}

.disclosure {
  background: var(--warn-bg);
  border: 1px solid #e4d3b4;
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
}
.cta-block { margin: 0.4rem 0 1.4rem; }
.cta-row { margin: 0; }
.flag {
  background: #f6efe3;
  border-left: 3px solid var(--warn);
  padding: 0.7rem 0.9rem;
  margin: 0 0 1.2rem;
  font-size: 0.95rem;
}
.rank {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.35rem;
}
.hub-table td:nth-child(1), .hub-table th:nth-child(1) { white-space: nowrap; }
.hub-table td:nth-child(3) { font-variant-numeric: tabular-nums; font-weight: 650; }

.langs {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.7rem;
  margin-top: 0.65rem;
}
.langs a { color: var(--muted); text-decoration: none; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current="true"] { color: var(--ink); font-weight: 650; }
html[lang="zh-Hans"] body {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", Georgia, serif;
}
html[lang="zh-Hans"] h1, html[lang="zh-Hans"] h2, html[lang="zh-Hans"] h3,
html[lang="zh-Hans"] .wordmark, html[lang="zh-Hans"] nav a, html[lang="zh-Hans"] .meta,
html[lang="zh-Hans"] .kicker, html[lang="zh-Hans"] .rank, html[lang="zh-Hans"] footer.site,
html[lang="zh-Hans"] .langs, html[lang="zh-Hans"] th, html[lang="zh-Hans"] .cta {
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
}
