:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --ink: #1c2829;
  --green: #163d39;
  --line: #d7dcd4;
  --hint: #425754;
  font: 1rem/1.55 system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
[hidden] { display: none !important; }
.wrap { width: min(100% - 2rem, 44rem); margin-inline: auto; }
.masthead { color: #fffdf6; background: var(--green); border-bottom: .35rem solid #c48851; }
.masthead .wrap { padding-block: clamp(2rem, 7vw, 4.5rem); }
.subject { color: #e4d9b7; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; }
h1, h2 { font-family: Georgia, serif; line-height: 1.12; }
h1 { font-size: clamp(2.6rem, 8vw, 5rem); font-weight: 500; margin: .2em 0; }
h2 { font-size: clamp(1.55rem, 4vw, 2rem); margin: 0 0 .45rem; color: var(--green); }
.intro { display: flex; flex-wrap: wrap; align-items: baseline; gap: .55rem 1.5rem; }
.intro p { margin: 0; max-width: 37rem; }
.intro a { color: inherit; text-underline-offset: .2em; }
main { padding-block: 1.75rem 3.5rem; }
.progress { color: var(--hint); font-weight: 650; margin: 0 0 1.25rem; }
.question-section { background: white; border: 1px solid var(--line); border-radius: .75rem; padding: clamp(1rem, 5vw, 2rem); margin-bottom: 1.25rem; }
.instruction { margin: 0 0 1.2rem; color: var(--hint); }
.figure { display: block; width: min(100%, 24rem); max-height: 18rem; object-fit: contain; margin: 0 auto 1.5rem; }
fieldset { margin: 0 0 1.35rem; padding: 0; border: 0; min-inline-size: 0; }
fieldset + fieldset { border-top: 1px solid var(--line); padding-top: 1rem; }
fieldset:last-child { margin-bottom: 0; }
legend { float: left; width: 100%; padding: 0; margin-bottom: .6rem; font-weight: 700; }
.options { clear: both; display: grid; gap: .45rem; }
.option { display: flex; align-items: flex-start; gap: .65rem; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: .4rem; cursor: pointer; }
.option:has(input:checked) { border-color: #467875; background: #eaf3ef; }
.option input { flex: 0 0 auto; width: 1.05rem; height: 1.05rem; margin: .23em 0 0; accent-color: var(--green); }
.option.correct { border-color: #478657; background: #eaf5e9; }
.option.incorrect { border-color: #a64c38; background: #fcefe9; }
.feedback { margin: .65rem 0 0; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
button { border: 1px solid var(--green); border-radius: .4rem; padding: .7rem 1rem; background: var(--green); color: white; font: inherit; font-weight: 700; cursor: pointer; }
button[type="reset"] { background: transparent; color: var(--green); }
.result { margin-bottom: 0; padding: 1rem; background: #eaf3ef; border-inline-start: .25rem solid var(--green); font-weight: 700; }
:focus-visible { outline: .18rem solid #b86630; outline-offset: .2rem; }
