:root {
  color-scheme: light;
  --background: #f7f1e7;
  --paper: #fffdf9;
  --text: #30231c;
  --muted: #67554a;
  --line: #e9dacc;
  --rust: #963e2b;
  --rust-dark: #74301f;
  --rust-pale: #f6e8de;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); font-family: var(--sans); font-size: 1rem; }
button, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, textarea:focus-visible, input:focus-visible + .option-content, summary:focus-visible { outline: 3px solid #a64d39; outline-offset: 4px; }
svg { width: 1.2em; height: 1.2em; display: block; flex: none; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; }
.site-header { background: #45231c; color: #fff5e5; border-bottom: 3px solid #b36b45; }
.header-inner { width: min(100% - 64px, 1220px); min-height: 83px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; gap: 15px; align-items: center; }
.brand-mark { background: #693d2c; color: #f8c998; border: 1px solid #a66b4c; border-radius: 13px; width: 45px; height: 45px; flex: none; font-size: 1.5rem; }
.brand-title { margin: 0 0 3px; font: 700 1.42rem/1.14 var(--serif); }
.brand-caption { margin: 0; color: #ebd1bc; font-size: .875rem; }
.restart { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border-radius: 8px; color: #fff5e5; background: transparent; border: 1px solid #aa7e68; font-weight: 600; font-size: .875rem; white-space: nowrap; }
.restart:hover { background: #643b2d; }
.site-header :focus-visible { outline-color: #ffcc98; }
.page { width: min(100% - 64px, 1220px); margin: 36px auto 56px; display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 28px; align-items: start; }
.sidebar { background: var(--paper); border: 1px solid var(--line); border-radius: 15px; padding: 21px 16px 20px; box-shadow: 0 3px 12px #67422508; }
.sidebar-heading { display: flex; align-items: center; gap: 9px; padding-inline: 5px; color: var(--rust); }
.sidebar-heading h2 { color: var(--text); font: 700 1.25rem/1.3 var(--serif); margin: 0; }
.route { list-style: none; margin: 19px 0 20px; padding: 0; display: grid; gap: 6px; }
.stop { display: flex; align-items: center; gap: 11px; padding: 9px; min-height: 57px; border: 1px solid transparent; border-radius: 9px; }
.stop[aria-current="step"] { background: var(--rust-pale); border-color: #e8c7b5; }
.stop-icon { width: 34px; height: 34px; flex: none; border: 1px solid #e9dbcf; border-radius: 8px; background: #f8f0e8; color: #7b5c48; }
.stop[aria-current="step"] .stop-icon { background: var(--rust); color: #fff8ef; border-color: var(--rust); }
.stop.done .stop-icon { background: #e8eee1; color: #42613b; border-color: #d3dec8; }
.stop strong, .stop small { display: block; }
.stop strong { font-size: .925rem; line-height: 1.25; }
.stop small { margin-top: 3px; color: var(--muted); font-size: .875rem; line-height: 1.2; }
.sidebar-progress { border-top: 1px solid var(--line); padding: 16px 5px 0; font-size: .875rem; }
.sidebar-progress div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sidebar-progress strong { color: var(--rust-dark); }
progress { display: block; appearance: none; width: 100%; height: 7px; margin-top: 10px; border: 0; border-radius: 20px; overflow: hidden; background: #ebdfd3; color: var(--rust); }
progress::-webkit-progress-bar { background: #ebdfd3; }
progress::-webkit-progress-value { background: var(--rust); border-radius: 20px; }
progress::-moz-progress-bar { background: var(--rust); border-radius: 20px; }
.hero {
  min-height: 224px;
  display: flex;
  align-items: center;
  border-radius: 15px;
  background: linear-gradient(90deg, #25160fec 0%, #3d2217b8 42%, #3d22172e 78%), #79503b url("athens.webp") center 51% / cover;
  color: #fff7e9;
  border: 1px solid #793f2e;
}
.hero-content { padding: 31px 34px; max-width: 590px; }
.eyebrow { display: inline-block; margin: 0 0 10px; padding: 5px 9px; border: 1px solid #e0ad8790; border-radius: 5px; color: #ffdab5; font-size: .875rem; font-weight: 700; letter-spacing: .075em; background: #422c23af; }
.hero h1 { margin: 0 0 11px; font: 700 clamp(2.25rem, 5vw, 3.45rem)/1.04 var(--serif); letter-spacing: -.03em; text-wrap: balance; }
.hero p { margin: 0; max-width: 46ch; line-height: 1.55; color: #fff4e4; }
.challenge { margin-top: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 15px; overflow: hidden; box-shadow: 0 4px 15px #67422509; }
.card-content { padding: 24px 28px 22px; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.step-label { color: var(--rust-dark); display: flex; gap: 7px; align-items: center; font-weight: 750; font-size: .875rem; }
.score { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border: 1px solid var(--line); color: #714829; background: #fbf3e6; padding: 5px 10px; border-radius: 6px; font-size: .875rem; font-weight: 700; }
.card-content h2 { font: 700 clamp(1.6rem, 3vw, 2rem)/1.14 var(--serif); margin: 0 0 13px; }
.source { margin: 0 0 13px; background: #f8f0e5; padding: 12px 15px; border-left: 3px solid #c1875b; border-radius: 0 7px 7px 0; line-height: 1.48; color: #533d31; }
.source p { margin: 0 0 6px; }
.source p:last-child { margin-bottom: 0; }
.source cite { font: normal .875rem/1.4 var(--sans); color: var(--muted); }
.question { margin: 0 0 12px; font-weight: 650; line-height: 1.47; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.options { display: grid; gap: 7px; }
.option { display: block; position: relative; cursor: pointer; }
.option input { position: absolute; inset: 50% auto auto 18px; width: 1px; height: 1px; opacity: 0; }
.option-content { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fffcf7; line-height: 1.35; }
.option:hover .option-content { border-color: #bc8b74; }
.option input:checked + .option-content { background: var(--rust-pale); border-color: var(--rust); }
.option.correct .option-content { background: #edf3e8; border-color: #8fa784; }
.option.incorrect .option-content { background: #fae9e6; border-color: #c68273; }
.option:has(input:disabled) { cursor: default; }
.option:has(input:disabled):not(.correct):not(.incorrect):hover .option-content { border-color: var(--line); }
.letter { display: inline-grid; place-items: center; width: 25px; height: 25px; flex: none; border-radius: 5px; background: #f2e9df; color: #654733; font-size: .875rem; font-weight: 750; }
input:checked + .option-content .letter { background: var(--rust); color: white; }
.option.correct .letter { background: #4a6942 !important; color: white; }
.option.incorrect .letter { background: #903b2c !important; color: white; }
.card-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding: 14px 28px; background: #fcf7ef; }
.hint { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .875rem; line-height: 1.4; }
.button { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; text-align: center; border: 1px solid transparent; border-radius: 8px; min-height: 42px; padding: 9px 16px; text-decoration: none; }
.primary { color: white; background: var(--rust); border-color: var(--rust); }
.primary:hover { background: var(--rust-dark); }
.primary:disabled { background: #e8d8cb; color: #6e5749; border-color: #e8d8cb; cursor: default; }
.secondary { background: var(--paper); border-color: #c7a894; color: var(--rust-dark); }
.secondary:hover { background: var(--rust-pale); }
.feedback { margin-top: 15px; border-radius: 8px; padding: 11px 13px; background: #edf3e8; color: #2d4c27; line-height: 1.5; }
.feedback.wrong { background: #f9e9e4; color: #722e24; }
.feedback strong { display: block; }
.results-copy { line-height: 1.55; }
.review-list { margin: 10px 0 0; padding-left: 25px; line-height: 1.55; }
.review-list li + li { margin-top: 10px; }
details { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-top: 12px; }
summary { cursor: pointer; font-weight: 700; }
details p { line-height: 1.55; }
.note-label { display: block; font-weight: 650; margin-bottom: 6px; }
textarea { display: block; width: 100%; min-height: 110px; resize: vertical; border: 1px solid #ceb8a6; border-radius: 7px; padding: 10px; color: var(--text); background: #fffcf7; }
dialog { width: min(450px, 100% - 36px); padding: 0; border: 1px solid var(--line); border-radius: 15px; color: var(--text); background: var(--paper); }
dialog::backdrop { background: #311b14a0; }
.dialog-body { padding: 24px; }
.dialog-body h2 { font: 700 1.7rem/1.2 var(--serif); margin: 0; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 9px; margin-top: 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; white-space: nowrap; clip-path: inset(50%); }
@media (max-width: 850px) {
  .page { grid-template-columns: 216px minmax(0, 1fr); gap: 16px; }
  .page, .header-inner { width: calc(100% - 36px); }
  .sidebar { padding: 17px 10px; }
  .hero-content { padding-inline: 24px; }
  .card-content, .card-footer { padding-inline: 20px; }
}
@media (max-width: 650px) {
  .header-inner { width: calc(100% - 24px); gap: 9px; min-height: 74px; }
  .brand { gap: 8px; }
  .brand-mark { width: 33px; height: 33px; font-size: 1.15rem; }
  .brand-title { font-size: 1.02rem; }
  .brand-caption { font-size: .875rem; }
  .restart { padding: 7px; gap: 4px; }
  .restart [data-icon] { display: none; }
  .page { width: calc(100% - 24px); display: flex; flex-direction: column; align-items: stretch; margin-top: 14px; }
  .sidebar { padding: 12px; }
  .sidebar-heading h2 { font-size: 1.1rem; }
  .route { grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 9px 0; gap: 3px; }
  .stop { justify-content: center; padding: 3px; min-height: 40px; }
  .stop-icon { width: 28px; height: 28px; font-size: .9rem; }
  .stop div { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .sidebar-progress { padding-top: 8px; }
  progress { margin-top: 5px; }
  .hero { min-height: 182px; background-position: center, 60% 53%; }
  .hero-content { padding: 20px 14px; }
  .challenge { margin-top: 13px; }
  .card-content, .card-footer { padding: 15px 13px; }
  .card-footer { flex-wrap: wrap; }
  .card-footer .button { margin-left: auto; }
}

.argument-feedback ul { margin: 8px 0 0; padding-inline-start: 1.3em; }
.argument-feedback li + li { margin-top: 7px; }
.argument-feedback .criterion-name { display: block; font-weight: 670; }

.site-credit { border-top: 1px solid var(--line); color: var(--muted); padding: 16px; text-align: center; font-size: .875rem; }

.page[hidden], .restart[hidden], .title-screen[hidden] { display: none; }
.title-screen {
  width: min(100% - 48px, 1220px);
  min-height: clamp(460px, 65vh, 660px);
  margin: clamp(18px, 5vw, 52px) auto;
  display: flex;
  align-items: center;
  border: 1px solid #793f2e;
  border-radius: 18px;
  color: #fff7e9;
  background: linear-gradient(90deg, #261710fa 0%, #382319ef 32%, #39241bb0 57%, #40251b10 100%), #79503b url("athens.webp") 67% center / cover;
}
.title-content { max-width: 650px; padding: clamp(25px, 6vw, 76px); }
.title-subject { color: #ffcd9b; font-weight: 700; font-size: .875rem; }
.title-content h1 {
  margin: 14px 0 21px;
  font: 700 clamp(2.6rem, 6vw, 5.3rem)/.99 var(--serif);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.title-content h1 em { display: block; color: #ffcf9d; font-weight: inherit; }
.title-content p:not(.title-subject) { max-width: 44ch; line-height: 1.56; margin: 0 0 12px; }
.title-start { margin-top: 13px; min-height: 48px; padding-inline: 24px; color: #38241b; background: #ffd3a1; }
.title-start:hover { background: #ffebca; }
.title-start:focus-visible { outline-color: #ffebca; }
@media (max-width: 650px) {
  .title-screen {
    width: calc(100% - 24px);
    min-height: 540px;
    align-items: end;
    background: linear-gradient(0deg, #261710f7 0%, #382319ee 38%, #39241b80 80%, #40251b10 100%), #79503b url("athens.webp") 72% center / cover;
  }
  .title-content { padding: 22px; }
}

.title-screen:not([hidden]) ~ .site-credit { display: none; }
.title-content p.title-author { color: #ffcd9b; font-weight: 700; margin-bottom: 17px; }
