:root {
  color-scheme: light;
  --ink: #202a25;
  --muted: #4b6155;
  --accent: #205541;
  --line: #d5ded4;
  --paper: #fffefa;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: #f3f5ec;
}
* { box-sizing: border-box; }
body { margin: 0; }
header { background: var(--paper); border-bottom: 1px solid var(--line); }
.bar, main { width: min(100% - 2rem, 52rem); margin-inline: auto; }
.bar { display: flex; align-items: center; gap: .75rem; min-height: 4.25rem; }
.brand { font-size: 1.15rem; font-weight: 800; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand span { color: var(--accent); }
main { padding-block: 2rem 4rem; }
h1 { font-family: Georgia, serif; font-weight: 500; font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.05; margin: .3em 0 .35em; overflow-wrap: anywhere; }
h2 { font-size: 1.25rem; margin: .25em 0; line-height: 1.35; }
p { margin: .55rem 0 1rem; line-height: 1.55; color: var(--muted); }
a { color: var(--accent); text-underline-offset: .2em; }
.hero { margin-bottom: 1.75rem; }
.stack { display: grid; gap: .8rem; }
.card { background: var(--paper); padding: clamp(1rem, 3vw, 1.5rem); border: 1px solid var(--line); border-radius: .9rem; min-width: 0; }
.signin { max-width: 28rem; margin: clamp(1rem, 9vh, 5rem) auto 0; }
.assignment { display: flex; align-items: center; justify-content: space-between; gap: 1rem; overflow-wrap: anywhere; }
.assignment p { margin-bottom: 0; }
.subject { color: var(--accent); font-size: .85rem; letter-spacing: .05em; font-weight: 700; }
.instructions, .answer, .prompt, .question h2, .question legend, .question > label, .choice span { white-space: pre-wrap; overflow-wrap: anywhere; }
.instructions:empty { display: none; }
.question { margin: 0 0 .8rem; }
.question label, .question legend { font-weight: 650; }
fieldset { min-inline-size: 0; }
legend { max-width: 100%; padding-inline: .2rem; }
label { display: block; font-weight: 650; margin-bottom: .4rem; }
input:not([type=radio]):not([type=checkbox]), textarea {
  width: 100%; color: var(--ink); background: #fff; border: 1px solid #819588;
  font: inherit; font-size: 1rem; min-height: 2.8rem; border-radius: .5rem;
  padding: .65rem .75rem; margin-bottom: .8rem;
}
textarea { resize: vertical; }
.code, .prompt { font-family: ui-monospace, monospace; font-size: .9rem; line-height: 1.6; }
.choice { display: flex; align-items: center; gap: .6rem; padding: .45rem .25rem; min-height: 2.75rem; }
.choice input { accent-color: var(--accent); flex: none; width: 1.15rem; height: 1.15rem; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .55rem .9rem; font: inherit; font-weight: 650; color: white; border-radius: .55rem; border: 1px solid var(--accent); background: var(--accent); text-decoration: none; cursor: pointer; }
.secondary { color: var(--accent); background: var(--paper); }
.quiet { color: var(--accent); background: transparent; border-color: var(--line); }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.notice { padding: .75rem 1rem; border-radius: .5rem; background: #e2eee3; color: var(--accent); }
:focus-visible { outline: 3px solid #b66b29; outline-offset: 3px; }
.sr { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 380px) {
  .bar { gap: .4rem; }
  .brand { font-size: 1rem; }
  .assignment { align-items: start; flex-direction: column; }
}
