:root {
  --bg: #0d0f12;
  --bg-card: #16191e;
  --fg: #e8e6e3;
  --fg-dim: #8b9199;
  --line: #262b33;
  --accent: #d98b5f;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  max-width: 720px;
  margin-inline: auto;
}

header, footer { padding: 1.25rem 1rem 0.5rem; }

h1 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.meta { margin: 0.25rem 0 0; color: var(--fg-dim); font-size: 0.8rem; }
#feed-summary { padding: 0 1rem 0.55rem; margin-top: -0.35rem; }

/* dial */
.dial {
  position: sticky;
  top: 0;
  background: linear-gradient(var(--bg) 70%, transparent);
  padding: 0.75rem 1rem 1rem;
  z-index: 2;
}

#dial {
  width: 100%;
  accent-color: var(--accent);
  height: 2rem;
}

.dial-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.25rem;
}

.dial-end { color: var(--fg-dim); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.dial-label { font-weight: 600; color: var(--accent); }

/* feed */
main { padding: 0 1rem 2rem; display: flex; flex-direction: column; gap: 0.5rem; }

.item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
}

.item a {
  color: var(--fg);
  text-decoration: none;
  font-size: 1.02rem;
  line-height: 1.4;
}
.item a:hover { text-decoration: underline; }

.item-meta {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  color: var(--fg-dim);
  font-size: 0.75rem;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.08rem 0.5rem;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

.pip {
  --lvl: 1;
  display: inline-block;
  width: 2.4rem;
  height: 0.28rem;
  border-radius: 2px;
  background: linear-gradient(90deg,
    var(--accent) calc(var(--lvl) / 7 * 100%),
    var(--line) calc(var(--lvl) / 7 * 100%));
}

.empty { color: var(--fg-dim); text-align: center; padding: 3rem 1rem; }

footer p { color: var(--fg-dim); font-size: 0.75rem; margin: 0; }
