/* Pocket Ledger public site. Plain CSS, no external resources. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f4f7fb;
  --text: #1a1f24;
  --muted: #5b6670;
  --border: #dde3ea;
  --accent: #1e88e5;
  --accent-text: #1565c0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121417;
    --surface: #1c2025;
    --text: #e8ebee;
    --muted: #a3adb7;
    --border: #2c323a;
    --accent: #1e88e5;
    --accent-text: #64b5f6;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  border-top: 4px solid var(--accent);
}

.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.brand {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  line-height: 1.25;
}

h2 {
  margin: 1.75rem 0 0.25rem;
  font-size: 1.125rem;
  line-height: 1.35;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent-text);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.lead {
  font-size: 1.1875rem;
  color: var(--text);
}

.muted {
  color: var(--muted);
}

.badge {
  display: inline-block;
  margin: 0.5rem 0 1.5rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent-text);
  font-size: 0.9375rem;
  font-weight: 600;
}

.summary {
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
}

.summary p {
  margin: 0;
}

ul.links {
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.links li {
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
}

ul.links li:last-child {
  border-bottom: 1px solid var(--border);
}

footer.site {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9375rem;
}

footer.site p {
  margin: 0;
}
