:root { --paper:#FAF9F6; --ink:#1B1D22; --muted:#5B606B; --rule:#DAD7CF; --accent:#8A5A12; }
@media (prefers-color-scheme: dark) { :root { --paper:#14161A; --ink:#ECEAE5; --muted:#A2A6AF; --rule:#2C2F36; --accent:#E7B567; } }
* { box-sizing:border-box; }
body { margin:0; background:var(--paper); color:var(--ink); font:16px/1.6 "Public Sans", system-ui, sans-serif; }
main { max-width:760px; margin:0 auto; padding:40px 16px 24px; }
h1, h2 { font-family:"Instrument Serif", Georgia, serif; font-weight:400; }
h1 { font-size:56px; margin:0 0 4px; line-height:1; }
h2 { font-size:28px; margin:40px 0 4px; }
.muted { color:var(--muted); } .small { font-size:14px; }
label { font-weight:600; }
.bar { display:flex; justify-content:space-between; align-items:end; margin:24px 0 8px; flex-wrap:wrap; gap:8px; }
.tools { display:flex; gap:8px; }
textarea, input[type=text], #q { width:100%; font:inherit; color:inherit; background:transparent; border:1px solid var(--rule); border-radius:4px; padding:10px 12px; }
textarea { resize:vertical; }
:focus-visible, textarea:focus, #q:focus { outline:2px solid var(--ink); outline-offset:1px; }
#ask > label { display:block; margin:16px 0 8px; }
.row { display:flex; gap:8px; }
button, .file { font:inherit; cursor:pointer; border-radius:4px; }
button[type=submit] { border:0; background:var(--ink); color:var(--paper); padding:8px 18px; font-weight:600; }
.quiet { background:transparent; color:var(--ink); border:1px solid var(--rule); padding:3px 10px; font-size:14px; font-weight:400; }
.modes { border:0; padding:0; margin:12px 0 0; display:flex; gap:16px; flex-wrap:wrap; }
.modes legend { float:left; margin-right:8px; }
.modes label { font-weight:400; }
#results { margin-top:16px; }
.hit { border-top:1px solid var(--rule); padding:14px 0; }
.hit p { margin:0; }
.hit .meta { color:var(--muted); font-size:14px; margin-top:6px; }
mark { background:transparent; color:inherit; text-decoration:underline; text-decoration-color:var(--accent); text-decoration-thickness:2px; text-underline-offset:3px; }
.empty { color:var(--muted); }
footer { margin-top:40px; font-size:14px; color:var(--muted); border-top:1px solid var(--rule); padding-top:16px; }
a { color:inherit; }
