/* The companion's one stylesheet (spec 030 R24): plain, in Hexlace's own name, with no framework, web font or image.
   It is served as /style.css, without a hash in its name, because the pages the Worker writes link to it too. */
:root { font-family: system-ui, sans-serif; font-size: 1.125rem; line-height: 1.5; color: #172033; background: #f6f7fa; color-scheme: light dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { max-width: 36rem; margin: 0 auto; padding: 3rem 1rem; overflow-wrap: anywhere; }
h1 { margin: 0 0 1rem; font-size: 1.75rem; line-height: 1.2; }
h2 { margin: 2rem 0 .5rem; font-size: 1.25rem; line-height: 1.3; }
p { margin: 0 0 1rem; }
/* An empty status keeps its place in the page for screen readers and takes no room. */
p:empty { margin: 0; }
h1:focus { outline: none; }
label { display: block; margin: 0 0 .25rem; }
input {
  display: block; width: 100%; min-height: 2.75rem; margin: 0 0 .75rem; padding: .5rem .75rem; font: inherit;
  border: 1px solid #667085; border-radius: .35rem; background: white; color: inherit;
}
/* Every control is at least 44 by 44 CSS pixels, links included. */
button, .action {
  display: inline-block; min-width: 2.75rem; min-height: 2.75rem; padding: .6rem 1rem; font: inherit; text-decoration: none;
  cursor: pointer; border: 1px solid #667085; border-radius: .35rem; background: white; color: inherit;
}
.choices { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }
dialog {
  width: calc(100% - 2rem); max-width: 30rem; padding: 1.5rem 1rem; border: 1px solid #667085; border-radius: .5rem;
  background: #f6f7fa; color: inherit;
}
dialog::backdrop { background: rgb(0 0 0 / .5); }
dialog h2 { margin-top: 0; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #2453a6; outline-offset: 2px; }
@media (prefers-color-scheme: dark) {
  :root { color: #eef1f6; background: #141a26; }
  button, .action, input { background: #222b3d; border-color: #98a2b3; }
  dialog { background: #141a26; border-color: #98a2b3; }
  a:focus-visible, button:focus-visible, input:focus-visible { outline-color: #9cc0ff; }
}
