:root {
  --bg: #f5f6f3;
  --fg: #14201f;
  --muted: #5d6b69;
  --line: #dde3e0;
  --accent: #0f6b6b;
  --on-accent: #f5f6f3;
  --card: #fff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1517;
    --fg: #e4ebe9;
    --muted: #90a09d;
    --line: #26343a;
    --accent: #5fc4bd;
    --on-accent: #0e1517;
    --card: #141d20;
  }
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light dark;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.2rem;
}

.logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
}

h1 {
  font-size: 2.4rem;
  line-height: 1.1;
  margin: 1.2rem 0 0.6rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.lead {
  max-width: 30rem;
  color: var(--muted);
}

h2 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2.6rem 0 0.9rem;
}

.monitors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 20rem));
  gap: 1rem;
  justify-content: center;
  width: 100%;
  max-width: 44rem;
}

.card {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--fg);
  text-align: left;
  text-decoration: none;
}

.card:hover,
.card:focus-visible {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

.card img {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.card strong {
  display: block;
  color: var(--accent);
}

.card .sub {
  color: var(--fg);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.card small {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.card .stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.8rem;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.card .stats b {
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

.card .stats-fresh {
  flex-basis: 100%;
}

footer {
  padding: 1rem 1.2rem 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* Text pages (the privacy policy): left-aligned, readable width, headings as headings. */
main.prose {
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
}

.prose h1 {
  font-size: 2rem;
  margin-top: 1rem;
}

.prose h2 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg);
  margin: 2rem 0 0.5rem;
}

.prose p + p,
.prose p + ul {
  margin-top: 0.7rem;
}

.prose ul {
  margin: 0.5rem 0 0;
  padding-left: 1.3rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.prose a {
  color: var(--accent);
}
