:root {
  color-scheme: light;
  font: 15px/1.55 Inter, system-ui, sans-serif;
  color: #191c24;
  background: #f6f7fa;
}
* { box-sizing: border-box; }
body { margin: 0; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible { outline: 3px solid #3455df; outline-offset: 3px; }
.masthead {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 62px; padding: 0 max(24px, calc((100% - 1600px) / 2));
  background: #ffffff; border-bottom: 1px solid #e1e3ea;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font: 720 23px/1 Inter, system-ui, sans-serif; letter-spacing: -.055em; text-decoration: none; color: inherit; }
.brand i { width: 24px; height: 27px; display: grid; gap: 3px; align-content: center; position: relative; }
.brand b, .brand i::after { background: #3455e8; }
.brand b { height: 2px; border-radius: 2px; }
.brand i::after { content: ""; position: absolute; inset: 2px auto 2px 9px; width: 3px; }
.open-editor { color: inherit; text-underline-offset: 4px; font-size: 13px; }
main { max-width: 1150px; margin: 0 auto; padding: 0 25px 64px; }
.hero { padding: clamp(28px, 4vw, 56px) 0 26px; border-bottom: 1px solid #d3d7e1; }
.hero h1 { margin: 0; font: 690 clamp(37px, 4.4vw, 62px)/1.05 Inter, system-ui, sans-serif; letter-spacing: -.055em; }
.hero h1 span { color: #568368; }
.hero p, .info p { color: #51596a; margin: 10px 0 0; }
.guide-layout { display: grid; grid-template-columns: minmax(170px, .27fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); margin-top: 25px; }
.chapters { display: flex; flex-direction: column; align-self: start; }
.chapters button {
  display: flex; align-items: baseline; gap: 14px; text-align: left; background: transparent;
  border: 0; border-radius: 6px; padding: 13px 8px; color: #4a5366; font-size: 14px;
}
.chapters small, #page { font: 12px ui-monospace, monospace; }
.chapters button[aria-current="step"] { font-weight: 650; color: #2c48be; background: #e9eeff; box-shadow: inset 3px 0 #3958d8; }
.chapters button:hover { background: #f0f2fa; }
.work { min-width: 0; }
.info h2 { margin: 0; font: 650 clamp(23px, 2.4vw, 32px)/1.2 Inter, system-ui, sans-serif; letter-spacing: -.035em; }
.info p { max-width: 76ch; margin-bottom: 16px; }
.stage { background: #edf0f7; border: 1px solid #cfd5e2; border-radius: 8px; padding: clamp(8px,1.4vw,20px); }
canvas { display: block; width: 100%; height: auto; max-height: 350px; object-fit: contain; }
.controls, .choices, .bottom { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.controls { justify-content: flex-end; }
.controls:has(button:not([hidden])) { margin-top: 6px; }
.choices { margin-right: auto; }
.controls button, .navbtn { color: #29344e; background: #fff; border: 1px solid #c2c9d7; border-radius: 8px; padding: 6px 12px; font-weight: 550; font-size: 13px; }
.choices button[aria-pressed="true"], #next { color: white; background: #3455df; border-color: #3455df; }
.check { margin: 16px 0; padding-left: 13px; border-left: 3px solid #778ce6; }
.check strong { display: block; font-size: 13px; }
.check span { color: #51596a; font-size: 14px; }
.bottom { justify-content: space-between; padding-top: 15px; border-top: 1px solid #d6dae4; }
.navbtn { min-height: 36px; }
.navbtn:disabled { opacity: .45; cursor: default; }
.sr { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 720px) {
  .masthead { min-height: 54px; padding: 0 14px; }
  main { padding-inline: 16px; }
  .guide-layout { display: block; margin-top: 15px; }
  .chapters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin-bottom: 22px; }
  .chapters button { padding: 8px; gap: 8px; font-size: 13px; }
}
