:root {
  --ink: #171717;
  --muted: #666;
  --line: #eaeaea;
  --soft: #fafafa;
  --danger: #b42318;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #fff; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-header { height: 64px; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 max(24px, calc((100vw - 960px) / 2)); }
.brand { font-size: 15px; font-weight: 650; letter-spacing: -.02em; }
.shell { width: min(100% - 40px, 760px); margin: 0 auto; padding: 72px 0 96px; }
.hero { max-width: 620px; margin: 8vh auto 0; }
.eyebrow { display: block; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .14em; margin-bottom: 18px; }
h1 { margin: 0; font-size: clamp(32px, 6vw, 52px); letter-spacing: -.045em; line-height: 1.08; }
.lede, .feed-header p { color: var(--muted); font-size: 17px; line-height: 1.7; margin: 18px 0 34px; }
.lookup { border: 1px solid var(--line); border-radius: 12px; padding: 24px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.025); }
.lookup label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 9px; }
.input-row { display: flex; gap: 10px; }
input, button { font: inherit; border-radius: 7px; }
input { min-width: 0; flex: 1; border: 1px solid #d4d4d4; padding: 11px 12px; text-transform: uppercase; letter-spacing: .08em; outline: none; }
input:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
button { border: 1px solid var(--ink); background: var(--ink); color: #fff; padding: 10px 17px; cursor: pointer; font-weight: 550; }
button:hover { background: #333; }
.hint, .error { font-size: 13px; margin: 10px 0 0; }
.hint { color: var(--muted); }
.error { color: var(--danger); }
.post-card { border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.035); background: #fff; overflow: hidden; }
.post-card > header, .post-body, .post-actions { padding: 22px 24px; }
.post-card > header { border-bottom: 1px solid var(--line); }
.code { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; letter-spacing: .05em; }
.post-card h1 { font-size: clamp(25px, 5vw, 38px); margin: 12px 0; }
.post-card h2 { font-size: 21px; letter-spacing: -.025em; margin: 9px 0; }
time { color: var(--muted); font-size: 12px; }
.post-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 1.8; min-height: 120px; }
.post-actions { display: flex; gap: 20px; align-items: center; border-top: 1px solid var(--line); background: var(--soft); color: var(--muted); font-size: 13px; }
.like-button { margin-left: auto; color: var(--ink); background: #fff; border-color: #ddd; padding: 7px 11px; font-size: 13px; }
.like-button:hover, .like-button.is-liked { color: #b42318; border-color: #f2b8b5; background: #fff7f7; }
.back-link { margin-top: 22px; color: var(--muted); font-size: 14px; }
.feed-header { margin-bottom: 36px; }
.feed-header h1 { font-size: 42px; }
.feed-list { display: grid; gap: 18px; }
.feed-card .post-body { max-height: 290px; overflow: hidden; }
.empty { text-align: center; color: var(--muted); padding: 64px 0; border: 1px dashed #ddd; border-radius: 12px; }
.sentinel { height: 80px; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.site-footer { border-top: 1px solid var(--line); color: #888; font-size: 12px; text-align: center; padding: 26px 20px; }
@media (max-width: 600px) {
  .site-header { height: 56px; padding: 0 20px; }
  .shell { width: min(100% - 28px, 760px); padding: 44px 0 72px; }
  .hero { margin-top: 2vh; }
  .input-row { flex-direction: column; }
  .input-row button { width: 100%; }
  .lookup { padding: 18px; }
  .post-card > header, .post-body, .post-actions { padding: 18px; }
  .post-actions { gap: 12px; }
}
