/* Money Viewer — ledger paper, ink, citation amber
   paper #f4efe4 · ink #1a1c18 · rule #c9bfa8 · cite #9a3412
*/
:root {
  --paper: #f4efe4;
  --panel: #ebe4d4;
  --ink: #1a1c18;
  --muted: #5c584e;
  --rule: #c9bfa8;
  --cite: #9a3412;
  --mark: #fde68a;
  --display: "Newsreader", Georgia, serif;
  --ui: "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --focus: 0 0 0 2px var(--paper), 0 0 0 4px var(--cite);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.08rem;
  line-height: 1.55;
}
a { color: var(--cite); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--cite); color: #fff; padding: 6px 10px; }
.bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.4rem; border-bottom: 1px solid var(--rule);
  font-family: var(--ui);
}
.mark { color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: -0.02em; }
nav { display: flex; gap: 1.1rem; font-size: 0.92rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, .cta-link { color: var(--cite); }
.hero, .fence, .price, .cta, footer {
  max-width: 1080px; margin: 0 auto; padding: 3rem 1.4rem;
}
.hero { display: grid; gap: 2rem; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.05fr 0.95fr; align-items: center; } }
h1, h2, h3 { font-family: var(--ui); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: 0 0 1rem; }
.lede { color: var(--muted); }
.hero ul { padding-left: 1.1rem; }
.sheet {
  margin: 0; background: #fff; border: 1px solid var(--rule);
  box-shadow: 0 12px 40px rgba(26,28,24,0.08); padding: 0.9rem 1rem 1.1rem;
}
.sheet figcaption { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); margin-bottom: 0.7rem; }
.sheet__line { margin: 0.55rem 0; }
.sheet__line--diff { background: #fff7ed; padding: 0.45rem 0.5rem; border-left: 3px solid var(--cite); }
.cite { font-family: var(--mono); font-size: 0.75rem; color: var(--cite); margin-right: 0.4rem; }
mark { background: var(--mark); padding: 0 0.15em; }
.sheet__src { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); margin-top: 0.9rem; }
.cols { display: grid; gap: 1.2rem; }
@media (min-width: 700px) { .cols { grid-template-columns: 1fr 1fr; } }
.cols article { background: var(--panel); border: 1px solid var(--rule); padding: 1rem 1.1rem; }
.kicker { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.amt { font-size: 3.2rem; font-family: var(--ui); }
.per { color: var(--muted); }
.btn {
  display: inline-block; background: var(--ink); color: var(--paper);
  font-family: var(--ui); font-weight: 600; text-decoration: none;
  border: 0; padding: 0.7rem 1rem; cursor: pointer;
}
.btn:focus, input:focus { outline: none; box-shadow: var(--focus); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
input[type=email] {
  flex: 1 1 220px; background: #fff; border: 1px solid var(--rule);
  color: var(--ink); padding: 0.7rem 0.8rem; font: inherit;
}
.err { color: var(--cite); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
footer { border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.9rem; font-family: var(--ui); }
