/* Pages: the same paper and ink as the noticed page, nothing extra. */
:root {
  --bg: #fbfaf8; --card: #ffffff; --text: #171614; --hint: #6f6a62; --accent: #b4531b; --line: rgba(23, 22, 20, .12);
  --serif: "Iowan Old Style", "Charter", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0d0d0f; --card: #17171a; --text: #f4f1ec; --hint: #9d968c; --accent: #e89a5c; --line: rgba(244, 241, 236, .14); }
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; font: 16px/1.45 var(--sans); color: var(--text); background: var(--bg); -webkit-text-size-adjust: 100%; }
main { max-width: 720px; margin: 0 auto; padding: 18px 18px calc(40px + env(safe-area-inset-bottom)); }
header { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 44px;
  padding: calc(4px + env(safe-area-inset-top)) 18px 4px; background: var(--bg); border-bottom: 1px solid var(--line); font-size: 14px; }
header a { color: var(--accent); text-decoration: none; padding: 10px 0; white-space: nowrap; }
#state, .quiet, .about { color: var(--hint); font-size: 14px; }
#state { text-align: right; }
h1 { font: 600 30px/1.15 var(--serif); margin: 4px 0 18px; overflow-wrap: anywhere; }
h2 { font: 600 19px/1.25 var(--serif); margin: 0 0 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
section { margin: 0 0 24px; }
.count { font: 400 13px var(--sans); color: var(--hint); }
.item, .fact { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--line); }
.words { flex: 1; min-width: 0; overflow-wrap: anywhere; }
button, input, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; touch-action: manipulation; }
button.text { text-align: left; width: 100%; }
.check { flex: none; width: 24px; height: 24px; margin: -1px 0; border: 1.5px solid var(--hint); border-radius: 50%; position: relative; }
.check::after { content: ""; position: absolute; inset: -10px; }
.check[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--bg); }
.item.done .text { color: var(--hint); text-decoration: line-through; }
.amount { flex: none; max-width: 45%; text-align: right; color: var(--hint); font-size: 14px; font-variant-numeric: tabular-nums; }
.dot { display: inline-block; width: 8px; height: 8px; margin-left: 7px; border-radius: 50%; background: var(--accent); vertical-align: 2px; }
.add { display: flex; gap: 10px; padding-top: 4px; border-top: 1px solid var(--line); }
input, textarea { width: 100%; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
textarea { display: block; line-height: 1.5; resize: vertical; }
.add button, .link { flex: none; color: var(--accent); font-weight: 600; min-height: 44px; padding: 0 6px; }
.item input { padding: 6px 10px; }
.add input { background: none; border-color: transparent; padding-left: 0; }
.add input:focus, .add input:not(:placeholder-shown) { background: var(--card); border-color: var(--line); padding-left: 12px; }
.add input:placeholder-shown:not(:focus) + button { visibility: hidden; }
.note { margin: 0 0 18px; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; font-size: 15px; }
.block { padding: 4px 0 12px; }
.block p { margin: 0 0 8px; overflow-wrap: anywhere; }
.block .li { padding-left: 18px; position: relative; }
.block .li::before { content: "•"; position: absolute; left: 4px; color: var(--hint); }
.block.both { border-left: 3px solid var(--accent); padding-left: 12px; }
iframe { display: block; width: 100%; height: 70vh; border: 0; background: var(--bg); margin-bottom: 24px; }
.framed main { max-width: none; padding: 0; }
.framed h1, .framed .sources { display: none; }
.framed .kept { padding: 0 18px; }
.framed iframe { height: calc(100dvh - 45px - env(safe-area-inset-top)); margin: 0; }
.list { display: grid; }
.tile { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.tile strong { font: 600 19px/1.3 var(--serif); }
.links { display: flex; gap: 22px; margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); }
.links a { color: var(--accent); text-decoration: none; padding: 10px 0; }
:is(button, a, input, textarea):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
