/* Expense Tracker — Poelys.com  |  no trackers, system fonts only */
:root {
  --bg: #f6f4ef;
  --card: #fffcf8;
  --ink: #1b1a17;
  --muted: #5c5850;
  --line: #e6e1d8;
  --accent: #1f4e3b;
  --accent-2: #16324f;
  --focus: #1f4e3b;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
html, body { margin: 0; padding: 0; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent-2); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.wrap { width: min(720px, calc(100% - 40px)); margin: 0 auto; }
header {
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 16px 0;
}
.brand { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 1px; }
.brand strong { font-size: 16px; letter-spacing: -0.02em; }
.brand span { font-size: 12px; color: var(--muted); font-weight: 500; }
nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 550;
}
nav a:hover, nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
main { flex: 1; padding: 40px 0 64px; }
h1 { font-size: 2rem; letter-spacing: -0.03em; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 1.15rem; letter-spacing: -0.02em; margin: 2em 0 0.6em; }
h3 { font-size: 1rem; margin: 1.4em 0 0.4em; }
p, ul, ol { margin: 0 0 1em; color: var(--ink); }
ul, ol { padding-left: 1.2em; }
li { margin: 0 0 0.4em; }
.lead { font-size: 1.12rem; color: var(--muted); margin-bottom: 1.4em; }
.meta { font-size: 13px; color: var(--muted); margin-bottom: 1.6em; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  margin: 0 0 20px;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 18px;
  border-radius: 999px;
}
.btn:hover { color: #fff; filter: brightness(1.08); }
.btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn.secondary:hover { color: var(--ink); background: #fff; filter: none; }
.list-plain { list-style: none; padding: 0; }
.list-plain li { padding: 12px 0; border-top: 1px solid var(--line); }
.list-plain li:first-child { border-top: 0; padding-top: 0; }
.k { font-weight: 650; }
footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 32px;
  color: var(--muted);
  font-size: 13px;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
footer a { color: inherit; }
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  main { padding: 28px 0 48px; }
  h1 { font-size: 1.65rem; }
  .card { padding: 20px; }
  nav { gap: 6px 12px; }
}
