:root {
  color-scheme: light;
  --ink: #243b32;
  --green: #21543d;
  --paper: #faf6f0;
  --line: #c9beb0;
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.65 system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--green); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #185e82; outline-offset: 4px; }
.skip-link { position: fixed; inset-block-start: .5rem; inset-inline-start: .5rem; z-index: 1; background: white; padding: .75rem; }
.skip-link:not(:focus), .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; white-space: nowrap; }
.site-bar, main, footer { width: min(100% - 2rem, 47rem); margin-inline: auto; }
.site-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; border-block-end: 1px solid var(--line); padding-block: .5rem; }
.site-bar > a { font: 1.2rem Georgia, serif; }
.site-bar nav { display: flex; flex-wrap: wrap; }
.site-bar a, footer a { min-height: 48px; display: inline-flex; align-items: center; padding-inline: .5rem; }
[aria-current="page"] { font-weight: 700; }
.quiz-intro { padding-block: clamp(1.5rem, 5vw, 3rem) 1.5rem; }
h1, h2, h3, p { margin: 0 0 .75rem; overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.25; }
h1 { font: 500 clamp(2.15rem, 7vw, 4.2rem)/1.12 Georgia, serif; }
:lang(ar) h1 { font-family: system-ui, sans-serif; }
h3 { font-size: clamp(1.25rem, 3vw, 1.65rem); }
.quiz-intro p { max-inline-size: 58ch; }
.quiz-question, #quiz-result { background: #fffdf9; border: 1px solid var(--line); border-radius: 1rem; margin-block-end: 1rem; padding: clamp(1rem, 4vw, 2rem); }
.quiz-progress, .quiz-source { font-size: .95rem; }
.quiz-progress { color: #485d51; }
.quiz-options { display: grid; gap: .6rem; }
button { font: inherit; min-height: 48px; border: 1px solid var(--green); border-radius: .65rem; padding: .65rem 1rem; cursor: pointer; }
.primary { background: var(--green); color: white; font-weight: 650; }
.primary:hover { background: #163f2d; }
.quiz-options button { background: white; color: var(--ink); text-align: start; overflow-wrap: anywhere; }
.quiz-options button:enabled:hover { background: #edf5ee; }
.quiz-options button:disabled { cursor: default; opacity: 1; }
.quiz-options button[data-state="correct"] { background: #e3f2e6; border-color: #277242; font-weight: 700; }
.quiz-options button[data-state="incorrect"] { background: #fff0e8; border-color: #a5462b; }
.quiz-answer { border-block-start: 1px solid var(--line); margin-block-start: 1.25rem; padding-block-start: 1rem; }
.quiz-answer p:last-child { margin-block-end: 0; }
footer { margin-block: 2.5rem 1rem; padding-block-start: .5rem; border-block-start: 1px solid var(--line); font-size: .95rem; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.quiz-secondary { display: inline-flex; align-items: center; min-height: 48px; padding: .65rem 1rem; border: 1px solid var(--green); border-radius: .65rem; background: white; color: var(--green); font-weight: 650; }
.quiz-secondary:hover { background: #edf5ee; }
.share-status { margin: 0; }
.share-status:not(:empty), .share-manual { margin-block-start: .75rem; }
.share-manual input { display: block; inline-size: 100%; min-height: 48px; margin-block-start: .35rem; padding-inline: .65rem; border: 1px solid var(--green); border-radius: .5rem; font: inherit; }
