/* Paper, bold borders, and abstract paint shapes. */
:root {
  --paper: #f5f2e9;
  --ink: #22232b;
  --muted-ink: #50515a;
  --violet: #c4b2eb;
  --yellow: #f3d46b;
  --mint: #a3ded0;
  --white: #fffdf6;
  --pink: #efb6bc;
}
body { color: var(--ink); background: var(--paper); }
::selection { background: var(--yellow); color: var(--ink); }
a { color: var(--ink); }
button { cursor: pointer; }
.notebook-top { border-bottom: 2px solid var(--ink); }
.notebook-purpose, .breadcrumb { color: var(--muted-ink); }
.breadcrumb a { color: var(--ink); }
.page-label { background: var(--yellow); border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); transform: rotate(-1deg); }
.notebook-section, .worksheet-section { border-bottom: 1.5px solid var(--ink); }
.opening-answer { background: var(--violet); border: 2px solid var(--ink); border-radius: 2px 20px 2px 2px; box-shadow: 7px 7px 0 var(--ink); }
.evidence-card { background: var(--white); border: 1.5px solid var(--ink); border-left: 7px solid var(--ink); border-radius: 0 9px 0 0; }
.source-label { color: var(--muted-ink); }
.source-links { border-top: 1px solid var(--ink); }
.source-link:hover { text-decoration-thickness: 3px; }
.care-route, .cost-route { background: var(--mint); border: 1.5px solid var(--ink); border-radius: 2px; }
.care-route:nth-child(2), .cost-route:nth-child(2) { background: var(--yellow); border-radius: 16px 2px 2px 2px; }
.notebook-entry { background: var(--white); border: 1.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.notebook-entry:nth-child(3n + 1) { background: var(--mint); }
.notebook-entry:nth-child(3n + 2) { background: var(--yellow); }
.notebook-entry:nth-child(3n) { background: var(--violet); }
.notebook-entry:hover { background: var(--white); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }
.notebook-link, button { background: var(--ink); color: var(--white); border: 2px solid var(--ink); border-radius: 2px; box-shadow: 3px 3px 0 var(--violet); }
.notebook-link:hover, button:hover { background: var(--paper); color: var(--ink); }
button.clear-answers { color: var(--ink); background: var(--white); box-shadow: none; }
.notebook-footer { border-top: 3px solid var(--ink); }
.notebook-footer p { color: var(--muted-ink); }
.cost-worksheet { background: var(--violet); border: 2px solid var(--ink); border-radius: 2px 20px 2px 2px; box-shadow: 5px 5px 0 var(--ink); }
select, textarea { border: 2px solid var(--ink); border-radius: 2px; background: var(--white); color: var(--ink); }
textarea::placeholder { color: var(--muted-ink); opacity: 1; }
.worksheet-result { border-top: 2px solid var(--ink); }
.cost-questions li::marker, .question-list li::marker { color: var(--ink); }
.skip-link { color: var(--white); background: var(--ink); border: 2px solid var(--white); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; box-shadow: 0 0 0 4px var(--white); }
.paint-disc { background: var(--violet); border: 3px solid var(--ink); border-radius: 50%; }
.paint-window { background: var(--mint); border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); transform: rotate(8deg); }
.paint-window::after { content: ""; display: block; position: absolute; inset: 17%; border: 3px solid var(--ink); background: var(--paper); border-radius: 50%; }
.paint-slash { background: var(--yellow); border: 3px solid var(--ink); transform: rotate(-24deg); z-index: 2; }
.paint-dot { background: var(--pink); border: 3px solid var(--ink); border-radius: 50%; z-index: 3; }
.paint-ticks { border-top: 6px solid var(--ink); border-bottom: 6px solid var(--ink); transform: rotate(-18deg); }
.paint-ticks::after { content: ""; position: absolute; left: 0; right: 0; top: calc(50% - 3px); border-top: 6px solid var(--ink); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  body { background: #fff; color: #000; }
  .page-label, .care-route, .cost-route, .opening-answer, .evidence-card, .cost-worksheet, .notebook-entry { background: #fff; color: #000; box-shadow: none; transform: none; }
  select, textarea { background: #fff; color: #000; }
  .notebook-link { color: #000; background: #fff; box-shadow: none; }
  .notebook-footer p, .source-label { color: #000; }
}
