:root {
  color-scheme: light;
  font: 100%/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1a1a1e;
  background: #fff;
  --green: #216b47;
  --line: #d7dbd8;
}
* { box-sizing: border-box }
body { margin: 0 }
[hidden] { display: none !important }
.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto }
header { border-bottom: 1px solid var(--line) }
header .wrap { padding-block: 1rem; font-size: 1.1rem; font-weight: 700 }
main { padding: 1.5rem 0 }
.prompt { padding: 1.25rem 1.5rem; border: 1px solid var(--line); background: #f5f7f5; border-radius: .75rem; margin-bottom: 1rem }
.prompt > h1, .pair section > h2 { margin: 0 0 .8rem; font-size: 1rem; font-weight: 650 }
.text { overflow-wrap: anywhere; tab-size: 4; line-height: 1.65; overflow-x: auto }
.text > :first-child { margin-top: 0 }
.text > :last-child { margin-bottom: 0 }
.text :is(h1,h2,h3,h4,h5,h6) { line-height: 1.3; margin-block: 1.25em .5em }
.text p, .text ul, .text ol, .text pre { margin-block: .75em }
.text :is(ol,ul) { padding-inline-start: 1.5em }
.text :is(li,blockquote) > p { margin-block: .35em }
.text blockquote { margin-inline: 0; padding-left: 1em; border-left: .2rem solid var(--line) }
.text code { background: #eef1ef; border-radius: .2rem; padding: .06em .25em; font-size: .9em }
.text pre { overflow-x: auto; padding: 1em; border-radius: .4rem; background: #f2f4f2 }
.text pre code { background: transparent; padding: 0 }
.text table { border-collapse: collapse }
.text :is(th,td) { border: 1px solid var(--line); padding: .3em .6em; text-align: start }
.text a { color: var(--green) }
.pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem }
.pair section { border: 1px solid var(--line); border-radius: .75rem; padding: 1.25rem 1.5rem 1.6rem }
.pair section > h2 { display: flex; gap: .7rem; align-items: center; padding-bottom: .9rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line) }
.letter { font: 600 1rem/1.9 ui-monospace, monospace; text-align: center; width: 1.9rem; color: var(--green); background: #e8f2ec; border-radius: .35rem }
.controls { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding: 1rem 0 max(1rem,env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line) }
#status { color: #465249; font-size: .94rem }
#choices { display: flex; gap: .5rem }
button { cursor: pointer; line-height: 1.4; font-family: inherit; font-size: 1rem; font-weight: 600; white-space: nowrap; color: white; background: var(--green); border: 0; border-radius: .5rem; padding: .75rem 1.3rem; min-height: 2.75rem }
button:hover { background: #155338 }
button:disabled { cursor: wait; opacity: .65 }
:focus-visible { outline: 3px solid #34865a; outline-offset: 3px }
main:focus { outline: none }
@media (max-width: 44rem) {
  .pair { grid-template-columns: 1fr }
  .pair section,.prompt { padding: 1rem }
  .controls { flex-wrap: wrap; gap: .5rem }
  #choices { flex: 1 1 100% }
  #status:empty { display: none }
  #choices button { flex: 1; min-width: 0; white-space: normal; padding-inline: .65rem }
}
