:root { color-scheme: light; --ink: #172c22; --paper: #fffef9; --muted: #516457; --line: #ced9d0; --accent: #216440; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.7 system-ui, sans-serif; }
main { max-width: 960px; margin: auto; padding: 50px 30px 65px; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-bottom: 22px; border-bottom: 2px solid var(--ink); }
.masthead p { font: 600 14px/1.6 ui-monospace, monospace; letter-spacing: .12em; }
.masthead img { width: 105px; height: auto; }
h1 { font: 500 clamp(42px, 7vw, 76px)/1.05 Georgia, serif; margin: 35px 0 18px; letter-spacing: -.04em; overflow-wrap: anywhere; }
h2 { margin: 38px 0 15px; font: 500 29px/1.2 Georgia, serif; }
.subtitle { color: var(--muted); font-size: 20px; }
.notice { padding: 13px 18px; border-left: 3px solid var(--accent); background: #edf4ee; }
.summary { font-size: 19px; }
.totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin: 28px 0; }
.total { padding: 18px; border: 1px solid var(--line); border-radius: 5px; }
.total span { display: block; color: var(--muted); font-size: 14px; }
.total strong { display: block; margin-top: 9px; font: 500 24px/1.3 ui-monospace, monospace; overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
th { background: #edf4ee; }
td:last-child, th:last-child { text-align: right; white-space: nowrap; }
li { margin: 9px 0; }
.label { font-weight: 650; }
code { overflow-wrap: anywhere; }
a { color: var(--accent); text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
footer { margin-top: 45px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
@media (max-width: 600px) { main { padding: 28px 20px 45px; } .totals { grid-template-columns: 1fr; } .masthead img { width: 80px; } }
@media print { main { max-width: none; padding: 0; } a { color: var(--ink); } .total { break-inside: avoid; } }
