:root {
  color-scheme: light dark;
  --bg: #faf8f5; --fg: #1d1a16; --muted: #7a7166; --line: #e6e0d8; --accent: #b5651d;
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #16130f; --fg: #ece6dd; --muted: #9a9083; --line: #2c2721; --accent: #e09a4f; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); }
header {
  position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between;
  padding: .6rem 1rem; background: var(--bg); border-bottom: 1px solid var(--line);
}
h1 { margin: 0; font-size: 1.15rem; letter-spacing: .02em; }
nav { display: flex; gap: .5rem; }
button {
  font: inherit; font-size: .85rem; padding: .35rem .7rem; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--fg);
}
button:hover { border-color: var(--accent); }
main { max-width: 760px; margin: 0 auto; padding: .5rem 1rem 4rem; }
#feed { list-style: none; margin: 0; padding: 0; }
.day { margin: 1.4rem 0 .3rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.item { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.item a { color: var(--fg); text-decoration: none; font-weight: 500; }
.item a:visited { color: var(--muted); }
.item a:hover { color: var(--accent); }
.summary { margin: .2rem 0 0; color: var(--muted); font-size: .92rem; }
.meta { display: flex; gap: .6rem; font-size: .8rem; color: var(--muted); margin-top: .15rem; }
.kind { color: var(--accent); }
#more { display: block; margin: 1.5rem auto; }
#signin, #empty { text-align: center; color: var(--muted); margin-top: 4rem; }
#toast {
  position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); max-width: 90vw;
  padding: .6rem 1rem; border-radius: 8px; background: var(--fg); color: var(--bg); font-size: .9rem;
  overflow-wrap: anywhere; z-index: 10;
}

#filters { display: flex; gap: .4rem; flex-wrap: wrap; margin: .8rem 0 .2rem; }
#filters button { text-transform: capitalize; border-radius: 999px; }
#filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.meta { flex-wrap: wrap; }
.cat { font-weight: 600; text-transform: capitalize; }
.cat-work { color: var(--accent); }
.tag { opacity: .85; }
.summary.guess::after { content: " (from title)"; font-style: italic; opacity: .7; }
.summary.pending { font-style: italic; opacity: .6; }
