/* Ruled paper and pen ink across the assistant; code remains typeset in monospace. */
@font-face {
  font-family: Caveat;
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(/static/fonts/caveat.woff2) format('woff2');
}
:root, html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #232a2b;
  --surface: #2b3435;
  --surface-2: #354041;
  --border: #556263;
  --text: #f0e7d4;
  --muted: #bbb9ac;
  --accent: #adcbd5;
  --accent-2: #c6dce2;
  --ink-on-accent: #202c31;
  --danger: #f1a99c;
  --rule: rgba(172, 196, 199, 0.16);
  --margin-rule: rgba(231, 139, 127, 0.55);
  --paper-edge: #182021;
  --paper-shadow: 3px 5px 0 var(--paper-edge);
  --handwriting: Caveat, "Segoe Print", "Bradley Hand", cursive;
  --interface-font: "Segoe UI", system-ui, sans-serif;
  --neu-convex: var(--paper-shadow);
  --neu-convex-sm: none;
  --neu-concave-sm: none;
  --neu-edge: 1px 0 0 var(--border);
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #fbf5e6;
  --surface: #f5ecda;
  --surface-2: #eae0ca;
  --border: #cfc2aa;
  --text: #283c49;
  --muted: #62685f;
  --accent: #325d75;
  --accent-2: #23475c;
  --ink-on-accent: #fff9e9;
  --danger: #a44238;
  --rule: rgba(96, 142, 159, 0.22);
  --margin-rule: rgba(184, 85, 76, 0.55);
  --paper-edge: #dfd3bb;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { font-family: var(--handwriting); font-size: 1.375rem; color: var(--text); background: var(--bg); }
button, input, textarea, select { font-family: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
::placeholder { color: var(--muted); opacity: 1; }
input[type="checkbox"] { accent-color: var(--accent); }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
a { color: var(--accent); text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
