:root { color-scheme: light dark; --paper: #faf8f3; --ink: #252724; --muted: #5e625b; --line: #c9ccc1; --accent: #7a233b; --panel: #fff; --tint: #f0e5e6; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 system-ui, sans-serif; }
main { max-width: 48rem; margin: auto; padding: 1.4rem 1.2rem 3rem; }
header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 2px solid var(--ink); }
header a { font-weight: 750; }
a { color: var(--accent); text-underline-offset: .2em; }
h1 { font-size: clamp(1.8rem, 6vw, 2.7rem); line-height: 1.25; margin: .5rem 0 1rem; }
h2 { font-size: 1.25rem; }
h3 { margin: 0; }
.eyebrow { color: var(--accent); letter-spacing: .08em; font-weight: 700; margin-top: 1.8rem; }
label { display: grid; gap: .35rem; min-width: 0; }
.language { font-size: .8rem; }
.fields { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1rem; }
form { border-block: 1px solid var(--line); padding: 1.2rem 0; }
input, select, button, textarea { font: inherit; color: inherit; border: 1px solid var(--line); border-radius: .5rem; background: var(--panel); min-height: 44px; padding: .55rem .75rem; max-width: 100%; }
input, select, textarea { width: 100%; min-width: 0; }
button { cursor: pointer; font-weight: 650; }
button:hover:enabled { border-color: var(--accent); background: var(--tint); }
button:disabled { cursor: default; opacity: .65; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.check { display: flex; align-items: center; gap: .65rem; margin-top: .8rem; min-height: 44px; }
.check input { width: 1.2rem; height: 1.2rem; min-height: 0; accent-color: var(--accent); }
.note, footer { font-size: .875rem; color: var(--muted); }
#start, #next { background: var(--accent); color: var(--paper); border-color: var(--accent); }
#start:hover:enabled, #next:hover:enabled { background: var(--ink); }
#status { overflow-wrap: anywhere; }
blockquote { margin: 1.25rem 0; font-size: clamp(1.3rem, 4vw, 1.8rem); font-weight: 600; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
#options { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
#options button { text-align: left; padding: .9rem; overflow-wrap: anywhere; }
#options button.correct { border: 2px solid var(--accent); background: var(--tint); opacity: 1; }
#options button.chosen { text-decoration: underline; text-underline-offset: .25em; }
#answer { border-top: 2px solid var(--accent); margin-top: 1.5rem; padding-top: 1.25rem; }
#original { font-size: 1.2rem; }
#citation, #sources { overflow-wrap: anywhere; }
.links, .actions { display: flex; gap: .75rem 1.25rem; flex-wrap: wrap; margin: 1.25rem 0; }
.links a { padding-block: .5rem; }
summary { cursor: pointer; padding-block: .6rem; }
#share-fallback { margin-top: 1rem; }
textarea { resize: vertical; }
footer { border-top: 1px solid var(--line); margin-top: 2rem; }
[hidden] { display: none !important; }
@media (max-width: 480px) { .fields, #options { grid-template-columns: 1fr; } main { padding-inline: 1rem; } header { align-items: start; } }
@media (prefers-color-scheme: dark) { :root { --paper: #1d211f; --ink: #f0f0e8; --muted: #bdc3b9; --line: #62685e; --accent: #f1acbe; --panel: #292e29; --tint: #49363d; } }
