/* Interim look. Esther chooses the direction; change the tokens here. */
:root {
  --night: #14263d;
  --flame: #f2bd55;
  --page: #f7f8fa;
  --card: #fff;
  --ink: #18212b;
  --quiet: #56616e;
  --line: #c9d0d8;
  --right: #dceefc;
  --wrong: #fde6d2;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0f1823;
    --card: #192534;
    --ink: #edf1f5;
    --quiet: #a9b5c2;
    --line: #3a4859;
    --right: #173f60;
    --wrong: #5c351b;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--page); color: var(--ink); font: 1.125rem/1.55 'Segoe UI', system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .2em; }

.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; padding: 1rem max(16px, calc((100% - 720px) / 2)); background: var(--night); color: #fff; }
.brand { font: 700 1.45rem Georgia, serif; color: var(--flame); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; font-size: 1rem; }
nav a { padding: .4rem 0; }
nav form { margin: 0; }

main { max-width: 720px; margin: auto; padding: 2rem 16px 4rem; overflow-wrap: break-word; }
main.admin { max-width: 900px; }
h1, h2 { line-height: 1.25; font-family: Georgia, serif; }
h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
h1:focus { outline: none; }
.meta { color: var(--quiet); font-size: .95rem; }

.stack { display: grid; gap: 1rem; }
label { display: grid; gap: .3rem; }
label.check { display: flex; align-items: center; gap: .6rem; }
.check input { width: 1.4rem; height: 1.4rem; flex: none; }
input, select, textarea, button { font: inherit; color: inherit; min-height: 48px; border-radius: 6px; }
input, select, textarea { width: 100%; padding: .55rem .7rem; border: 1px solid var(--quiet); background: var(--card); }
button { padding: .65rem 1.1rem; border: 2px solid var(--flame); background: var(--flame); color: #14263d; font-weight: 600; cursor: pointer; }
button.secondary { background: var(--card); color: var(--ink); }
button.link { border: 0; padding: 0; min-height: 0; background: none; color: inherit; text-decoration: underline; font-weight: 400; }
:focus-visible { outline: 3px solid #4c9be8; outline-offset: 3px; }

.options { display: grid; gap: .75rem; }
.option { width: 100%; text-align: left; border-color: var(--line); background: var(--card); color: var(--ink); }
.option:disabled { cursor: default; }
.option.right { border: 3px solid #2479bd; background: var(--right); }
.option.wrong { border: 3px dashed #c76524; background: var(--wrong); }
.verdict { font-weight: 700; }
blockquote { margin: 1rem 0; padding: 1rem; border-radius: 6px; background: var(--card); font-family: Georgia, serif; }
blockquote strong { display: block; margin-bottom: .3rem; }
cite { display: block; }

.notice { padding: .75rem 1rem; border-radius: 6px; background: var(--right); }
.notice.bad { background: var(--wrong); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: .55rem .35rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
pre { white-space: pre-wrap; }
