/* ExpenseTracker Pro - site styles. No web fonts, no scripts, no trackers. */

:root {
  --paper: #e8efe3;
  --ink: #14233b;
  --ink-soft: #46566a;
  --rule-red: #c4372d;
  --rule-green: #b3c6aa;
  --margin: clamp(16px, 9vw, 150px);
  --gutter: clamp(18px, 3vw, 40px);
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: Charter, "Bitstream Charter", "Sitka Text", Cambria, "Noto Serif", Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.62;
  padding: 0 clamp(16px, 5vw, 64px) 0 calc(var(--margin) + 5px + var(--gutter));
}

/* The ledger margin: a double red rule down the page. */
body::before {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: var(--margin);
  width: 5px;
  border-left: 1px solid var(--rule-red);
  border-right: 1px solid var(--rule-red);
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--rule-red); outline-offset: 3px; border-radius: 2px; }

.masthead { padding: clamp(28px, 6vh, 64px) 0 0; }

.wordmark {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.005em;
  text-decoration: none;
}

main { flex: 1; max-width: 41rem; padding: clamp(48px, 13vh, 140px) 0 clamp(56px, 12vh, 120px); }

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5.6vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
  font-weight: 700;
  text-wrap: balance;
}

.lead {
  margin: 1.1em 0 0;
  font-size: clamp(1.25rem, 2.3vw, 1.55rem);
  line-height: 1.4;
  max-width: 26em;
}

.status {
  margin: clamp(40px, 8vh, 72px) 0 0;
  padding-top: 1.1em;
  border-top: 1px solid var(--rule-green);
  color: var(--ink-soft);
  max-width: 30em;
}
.status p { margin: 0 0 0.35em; }
.status a { color: var(--ink); }

/* Privacy page */
.doc { padding-top: clamp(40px, 9vh, 96px); }
.doc h1 { font-size: clamp(2.1rem, 4.6vw, 3rem); }
.doc .updated { margin: 0.6em 0 2.2em; color: var(--ink-soft); font-size: 1rem; }
.doc h2 { margin: 2.2em 0 0.5em; font-size: 1.4rem; line-height: 1.25; letter-spacing: -0.008em; }
.doc p { margin: 0 0 1em; }
.doc ul { margin: 0 0 1em; padding-left: 1.15em; }
.doc li { margin: 0 0 0.55em; }
.doc li::marker { color: var(--rule-red); }

/* A double rule closes the page, the way a ledger marks a final total. */
footer {
  max-width: 41rem;
  border-top: 3px double var(--ink);
  padding: 1.05em 0 clamp(28px, 6vh, 56px);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
footer p { margin: 0 0 0.3em; }
footer .legal { color: var(--ink); }
footer nav a { margin-right: 1.4em; display: inline-block; }

@media print {
  body::before { position: absolute; }
}
