:root {
  --paper: #f3f0ea;
  --card: #fffdf8;
  --ink: #1a1816;
  --muted: #5c564e;
  --line: #d4cec4;
  --pine: #2c453e;
  --chip: #ece7de;
  --tab: #f7f4ee;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  line-height: 1.45;
}
a { color: inherit; }
.wrap {
  width: min(28rem, calc(100% - 2.4rem));
  margin: 0 auto;
}
.top {
  padding: 1rem 0 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: Georgia, "Iowan Old Style", serif;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.mark img {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.35rem;
}
.lang {
  font-size: 0.75rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.55rem 0.25rem;
}
.main { padding: 0 0 6.5rem; }
.lede {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  max-width: 20em;
  margin: 0.2rem 0 1rem;
}
.ask {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 1.35rem;
}
.label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.chips { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.35rem; }
.chip {
  font-size: 0.75rem;
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  background: var(--chip);
  color: var(--ink);
  border: 0;
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}
.chip.on { background: var(--pine); color: #f6f3ee; }
.list { display: flex; flex-direction: column; }
.row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.row:last-child { border-bottom: 1px solid var(--line); }
.row h3 { font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; }
.row p { font-size: 0.75rem; color: var(--muted); margin-top: 0.15rem; }
.chev { margin-left: auto; color: #9a948b; font-size: 1rem; }
.note, .source, .meta { font-size: 0.75rem; color: var(--muted); line-height: 1.45; }
.note { margin-top: 1.1rem; }
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: calc(4rem + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--line);
  display: flex;
  background: var(--tab);
}
.tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--muted);
  text-decoration: none;
}
.tab.on { color: var(--pine); font-weight: 600; }
.back {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--pine);
  text-decoration: none;
  margin: 0.2rem 0 0.85rem;
}
h1 {
  font-family: Georgia, "Iowan Old Style", serif;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}
.meta { margin-bottom: 1.2rem; }
.body { font-size: 0.95rem; line-height: 1.55; margin-bottom: 1rem; }
.body p { margin: 0 0 0.8rem; }
.body ul { margin: 0 0 0.8rem 1.1rem; }
.body li { margin: 0 0 0.35rem; }
.source {
  border-left: 2px solid var(--pine);
  padding: 0.1rem 0 0.1rem 0.65rem;
  margin-bottom: 1.35rem;
}
.source a { color: var(--pine); }
.thread {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
}
.thread .who {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.qa { font-size: 0.85rem; line-height: 1.45; margin-bottom: 0.5rem; }
.follow {
  display: block;
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--pine);
  border: 1px solid var(--pine);
  border-radius: 10px;
  padding: 0.65rem;
  text-decoration: none;
}
.pending {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
