/* The character sits behind the explainer, leaving the reading column clear. */
.hero-with-wizard .hero-grid{min-height:560px}
.hero-with-wizard .hero-visual{min-height:560px;padding:32px 0 45px;isolation:isolate}
.hero-with-wizard .wizard-halo{position:absolute;z-index:0;pointer-events:none;right:-145px;top:-25px;width:650px;height:650px;border-radius:50%;background:repeating-conic-gradient(from 8deg at 50% 50%,#e9e3f8 0deg 15deg,#f2eefb 15deg 30deg);mask-image:radial-gradient(circle,#000 0%,#000 36%,transparent 69%)}
.hero-with-wizard .hero-wizard{position:absolute;z-index:1;right:-25px;bottom:5px;width:390px;height:520px;max-width:none;object-fit:contain;pointer-events:none;user-select:none}
.hero-with-wizard .example-window{z-index:2;width:380px;transform:translateX(-85px) rotate(-3deg)}
.hero-with-wizard .floating-note{z-index:3;right:155px;bottom:-16px}
@media(min-width:1440px){.hero-with-wizard .hero-visual{min-height:580px}.hero-with-wizard .hero-wizard{width:420px;height:560px;right:-30px}.hero-with-wizard .example-window{transform:translateX(-90px) rotate(-3deg)}}
@media(max-width:1199px){.hero-with-wizard .hero-visual{min-height:540px}.hero-with-wizard .hero-wizard{width:360px;height:480px;right:-28px;bottom:18px}.hero-with-wizard .example-window{width:350px;transform:translateX(-65px) rotate(-3deg)}.hero-with-wizard .floating-note{right:120px}}
@media(max-width:999px){.hero-with-wizard .hero-grid{grid-template-columns:minmax(0,1fr);gap:12px}.hero-with-wizard .hero-copy{max-width:650px}.hero-with-wizard .hero-visual{width:100%;max-width:650px;min-height:560px;margin:0 auto 22px;padding:30px 0 45px}.hero-with-wizard .hero-wizard{width:390px;height:520px;right:-5px;bottom:10px}.hero-with-wizard .example-window{width:380px;transform:translateX(-90px) rotate(-3deg)}.hero-with-wizard .floating-note{right:150px;bottom:-10px}}
@media(max-width:767px){.hero-with-wizard .hero-visual{max-width:520px;min-height:0;padding:135px 10px 30px;margin-bottom:28px}.hero-with-wizard .wizard-halo{width:480px;height:480px;right:-110px;top:-55px}.hero-with-wizard .hero-wizard{width:255px;height:340px;right:-13px;top:-10px;bottom:auto}.hero-with-wizard .example-window{width:calc(100% - 10px);max-width:400px;transform:translateX(-4px) rotate(-3deg)}.hero-with-wizard .floating-note{right:2px;bottom:-18px}.hero-with-wizard .hero-copy h1{max-width:450px}}
@media(max-width:399px){.hero-with-wizard .hero-visual{padding-top:122px;padding-inline:5px}.hero-with-wizard .hero-wizard{width:225px;height:300px;right:-14px;top:-4px}.hero-with-wizard .example-window{width:calc(100% - 5px)}.hero-with-wizard .wizard-halo{right:-130px;top:-60px}}
/* Complete illustrated chapters: the frame contains every paragraph. */
.chapter.illustrated-chapter{position:relative;isolation:isolate;border-top:0;padding-top:0;margin-top:64px}
.chapter.illustrated-chapter:first-child{margin-top:0}
.chapter-wizard{position:absolute;z-index:0;top:60px;width:260px;height:346.667px;max-width:none;object-fit:contain;pointer-events:none;user-select:none}
.chapter-wizard-right>.chapter-wizard{right:-190px}
.chapter-wizard-left>.chapter-wizard{left:-190px;top:120px}
.chapter-window{position:relative;z-index:1;background:#fff;border:1px solid var(--ink);border-radius:17px;box-shadow:6px 7px 0 var(--ink);overflow:hidden}
.chapter-window-bar{display:flex;align-items:center;justify-content:space-between;height:34px;padding-inline:20px;border-bottom:1px solid var(--line);color:#b5a2d5}
.chapter-window-bar>span:first-child{font-size:7px;line-height:14px;letter-spacing:3px}
.chapter-window-bar>span:last-child{font-size:22px;line-height:26px;color:var(--purple)}
.chapter-window-body{padding:34px 38px 28px}
.chapter-window-body>p:last-child{margin-bottom:0}
.chapter-window-body .translation{padding:24px;background:var(--lavender);border-radius:11px}
.chapter-window-body .equation-card{margin-block:26px}
.chapter-window-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 24px;background:var(--lime);border-top:1px solid var(--ink);font-size:13px;line-height:20px;font-weight:600}
.chapter-window-footer>span:last-child{font-size:20px;line-height:24px}
@media(max-width:1199px){.chapter.illustrated-chapter{padding-top:138px;margin-top:48px}.chapter.illustrated-chapter:first-child{margin-top:0}.chapter-wizard{width:220px;height:293.333px;top:0}.chapter-wizard-right>.chapter-wizard{right:18px}.chapter-wizard-left>.chapter-wizard{left:18px;top:0}}
@media(max-width:767px){.chapter.illustrated-chapter{padding-top:124px;margin-top:36px}.chapter-wizard{width:200px;height:266.667px}.chapter-wizard-right>.chapter-wizard{right:4px}.chapter-wizard-left>.chapter-wizard{left:4px}.chapter-window{border-radius:14px;box-shadow:4px 5px 0 var(--ink)}.chapter-window-bar{height:30px;padding-inline:16px}.chapter-window-body{padding:26px 24px 24px}.chapter-window-body .translation{padding:21px}.chapter-window-footer{padding:14px 20px;font-size:12px;line-height:18px}}
@media(max-width:359px){.chapter.illustrated-chapter{padding-top:112px}.chapter-wizard{width:180px;height:240px}.chapter-window-body{padding:24px 20px}.chapter-window-body .translation{padding:18px}}
@media print{.hero-with-wizard .hero-visual,.chapter-wizard{display:none}.chapter.illustrated-chapter{padding-top:0}.chapter-window{box-shadow:none}.chapter-window-body{padding:24px}}
