:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --text: #20211f;
  --muted: #666a62;
  --line: #d9d9d0;
  --accent: #255c6f;
  --surface: #ffffff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 244, 0.96);
  position: sticky;
  top: 0;
}
.brand { font-weight: 700; color: var(--text); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 14px; }
nav a, a { color: var(--accent); }
main {
  width: min(920px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 38px 0 72px;
}
h1, h2, h3 { line-height: 1.2; margin-top: 1.8em; }
h1 { margin-top: 0; font-size: 2.2rem; }
pre, code {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}
pre {
  overflow-x: auto;
  background: #efefea;
  border: 1px solid var(--line);
  padding: 14px;
}
blockquote {
  border-left: 3px solid var(--accent);
  margin-left: 0;
  padding-left: 16px;
  color: var(--muted);
}
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid var(--line); padding: 8px; vertical-align: top; }
.page-actions { min-height: 32px; margin-bottom: 12px; }
.pill {
  display: inline-block;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 5px 10px;
  text-decoration: none;
  font-size: 0.9rem;
}
.doc-list, .feed-list { list-style: none; padding: 0; }
.doc-list li {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.feed-card {
  display: grid;
  grid-template-columns: minmax(210px, 300px) minmax(0, 1fr);
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.feed-card h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.feed-card p { margin: 0 0 10px; }
.meta { color: var(--muted); font-size: 0.92rem; }
.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.home-grid a {
  display: block;
  min-height: 110px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 16px;
  text-decoration: none;
}
.source-preview { margin: 2px 0 0; }
.source-preview.video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: #111;
}
.link-card {
  width: 100%;
  min-height: 128px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.source-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.source-badge {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}
.source-domain {
  color: var(--muted);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}
.source-title {
  color: var(--text);
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
}
.source-title:hover { text-decoration: underline; }
.source-publication {
  color: var(--muted);
  font-size: 0.88rem;
}
.source-links {
  margin-top: 8px;
  font-size: 0.88rem;
}
.source-links a { margin-right: 8px; }
.feed-content { min-width: 0; }
@media (max-width: 760px) {
  .feed-card { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  main { width: min(100vw - 24px, 920px); padding-top: 24px; }
  h1 { font-size: 1.8rem; }
}
