/* Loaded by every browser that shows the page; the viewer counter counts the IPs that fetch it. */
:root {
  color-scheme: light dark;
  --bg: #fff;
  --fg: #111;
  --muted: #666;
  --bar: #8c8c8c;
  --line: #e2e2e2;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111; --fg: #eee; --muted: #999; --bar: #6e6e6e; --line: #2a2a2a; }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 48px 16px 32px;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-align: center;
}
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  max-width: 32rem;
}
h1 { margin: 0; font-size: 1.5rem; font-weight: 500; }
p { margin: 0; color: var(--muted); line-height: 1.55; }
a { color: inherit; text-underline-offset: 3px; }
.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.8125rem;
}
.tags li:not(:last-child)::after { content: "·"; padding: 0 0.5rem; }
.contact { font-size: 0.8125rem; }

/* Viewers: all-time count, then one bar per day for the last 30 days. */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  color: var(--muted);
  font-size: 0.8125rem;
}
.chart {
  display: flex;
  align-items: flex-end;
  height: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}
/* Each column is the full-height hover target; the 4px bar inside leaves a 2px gap. */
.chart li {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 6px;
  height: 100%;
}
.chart .bar {
  width: 4px;
  background: var(--bar);
  border-radius: 1px 1px 0 0;
}
.chart .today .bar, .chart li:hover .bar { background: var(--fg); }
.chart li:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.75rem;
  white-space: nowrap;
  pointer-events: none;
}
.axis {
  display: flex;
  justify-content: space-between;
  width: 180px;
  margin-top: -0.25rem;
  font-size: 0.6875rem;
}
