:root {
  --bg: #0e1620;
  --surface: #161f2b;
  --border: #243044;
  --text: #e8e9ed;
  --muted: #8b95a8;
  --accent: #e39b3b;
  --inbox: #5a6bef;
  --processed: #10b981;
  --promoted: #e39b3b;
  --archived: #6b7280;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.site-header {
  margin-bottom: 2rem;
}

.site-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tagline {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.35rem;
}

.controls {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.controls input,
.controls select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.55rem 0.85rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

.controls input {
  flex: 1;
  min-width: 200px;
}

.item-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.item-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.15s;
}

.item-card:hover {
  border-color: #3a4a66;
}

.item-card a {
  display: block;
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  color: inherit;
}

.item-meta {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.45rem;
  flex-wrap: wrap;
}

.status {
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.7rem;
}

.status-inbox { background: color-mix(in srgb, var(--inbox) 25%, transparent); color: #a5b4fc; }
.status-processed { background: color-mix(in srgb, var(--processed) 25%, transparent); color: #6ee7b7; }
.status-promoted { background: color-mix(in srgb, var(--promoted) 25%, transparent); color: #fcd34d; }
.status-archived { background: color-mix(in srgb, var(--archived) 25%, transparent); color: #9ca3af; }

.item-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.item-summary {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.item-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.topic {
  background: #1e2a3a;
  color: var(--muted);
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.empty {
  color: var(--muted);
  text-align: center;
  padding: 3rem 1rem;
  border: 1px dashed var(--border);
  border-radius: 8px;
}
