@layer structure {
/* Element defaults and the classic layout */
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:white;color:#111;font:14px/1.65 var(--body);-webkit-font-smoothing:antialiased}button,input,select{font:inherit}a{color:inherit}a:not(.text-link){text-decoration:none}button{color:inherit;background:none;border:0;cursor:pointer}button:disabled{opacity:.45;cursor:default}img{display:block}h1,h2,h3,p,figure{margin:0}p{color:#666}h1{font:400 46px/1.12 var(--book);letter-spacing:-.7px}h2{font:400 32px/1.22 var(--book)}h3{font:700 21px/1.3 var(--bold)}a:focus-visible,button:focus-visible,select:focus-visible{outline:2px solid #111;outline-offset:5px}main:focus{outline:none}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:fixed;top:-90px;left:16px;background:#111;color:white;padding:12px;z-index:100}.skip-link:focus{top:12px}
.site-header{height:80px;padding:0 48px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e5e5e5;gap:30px;background:white;position:relative;z-index:20}.is-home .site-header{height:92px}.wordmark{display:flex;align-items:center;gap:11px;font:800 18px/1.5 var(--bold);letter-spacing:-.9px;white-space:nowrap}.primary-nav{display:flex;gap:28px;align-items:center;font-size:12px}.primary-nav a{padding:9px 0;position:relative}.primary-nav a[aria-current=page]:after{content:'';position:absolute;left:0;right:0;bottom:0;height:1px;background:#111}.account-nav{display:flex;align-items:center;gap:24px;font-size:11px}.wallet-trigger{display:flex;align-items:center;gap:11px;padding:0}.wallet-plus{display:grid;place-items:center;background:#111;color:white;width:20px;height:20px;font-size:10px}
.page{max-width:1440px;margin:auto;padding:36px 48px 48px;display:flex;flex-direction:column;gap:28px}.page.learn{gap:30px}.rule{width:100%;border:0;border-top:1px solid var(--line);margin:0}.rule.strong{border-color:#111}.note{font:10px/1.5 var(--mono);color:#777}.small{font-size:11px;color:#777}.body-copy{font-size:15px;line-height:1.65;max-width:650px;color:#555}.text-link{text-decoration:underline;text-underline-offset:3px;font-size:12px;cursor:pointer}.btn{display:inline-flex;align-items:center;justify-content:center;text-align:center;padding:13px 24px;min-height:44px;min-width:150px;background:#111;border:1px solid #111;color:white;font-size:12px;line-height:1.5;transition:transform 160ms ease-out,background 160ms ease-out}.btn.light{background:white;color:#111;border-color:#ccc}.btn.small-btn{min-height:42px;min-width:150px;font-size:11px;padding:10px 18px}.btn:active{transform:scale(.98)}.button-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.breadcrumb{font-size:11px;color:#888;display:flex;gap:12px;flex-wrap:wrap}.breadcrumb a:hover{text-decoration:underline}
.hero{display:grid;grid-template-columns:minmax(0,1fr) 384px;gap:48px;min-height:430px;align-items:start}.learn .hero{grid-template-columns:minmax(0,692fr) minmax(320px,444fr)}.hero-copy{display:flex;flex-direction:column;align-items:flex-start;gap:20px}.learn .hero-copy{gap:19px}.hero-copy .btn{min-width:325px;min-height:48px}.hero-art{display:flex;justify-content:center}.section-mark{width:360px;height:430px;position:relative;flex-shrink:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px}.section-mark .mark-stage{position:relative;width:269.28px;height:338.8px}.section-mark.train .mark-stage{height:388.08px}.section-mark .mark-scene{position:absolute;top:0;left:0;transform:scale(.88);transform-origin:0 0}.section-mark figcaption{text-align:center;font-size:12px;color:#666;width:360px;line-height:18px}.section-mark.compact{width:232px;height:300px;gap:8px;margin:auto}.section-mark.compact .mark-stage{width:171.36px;height:215.6px}.section-mark.compact.train .mark-stage{height:246.96px}.section-mark.compact .mark-scene{transform:scale(.56)}.section-mark.compact figcaption{font-size:10px;width:232px;line-height:15px}
.raised-block{width:306px;position:relative;height:calc(273px + var(--depth));border:0;padding:0;display:block;text-align:left;background:none;color:#111;isolation:isolate}.plinth{position:absolute;left:0;top:120px;width:306px;height:calc(153px + var(--depth));filter:drop-shadow(18px 22px 11px #00000038) drop-shadow(3px 5px 2.5px #00000033);transition:transform 220ms ease-out,filter 220ms ease-out}.plinth img{max-width:none}.support .plinth{filter:drop-shadow(8px 10px 6px #00000024) drop-shadow(3px 5px 2.5px #00000033)}.contact-shadow{position:absolute;pointer-events:none;transition:transform 220ms ease-out,opacity 220ms ease-out}.sculpture{position:absolute;transition:transform 220ms ease-out;transform-origin:50% 100%;pointer-events:none}.sculpture>img,.sculpture .float>img{max-width:none;object-fit:contain;width:100%;height:100%}.sculpture .float{width:100%;height:100%}.block-info{position:absolute;left:16.1px;top:221.55px;width:145px;transform:matrix(.894427,.447214,0,1,0,0);transform-origin:0 0;display:flex;flex-direction:column;gap:5px;color:white;transition:translate 220ms ease-out;pointer-events:none}.block-info strong{font:800 var(--title-size,24px)/1.2 var(--bold);letter-spacing:-.03em}.block-info span{font:10.5px/1.45 var(--body);color:#bcbcbc}.support .block-info{left:76px;top:195px;width:135px;transform:matrix(.894427,.447214,-.894427,.447214,0,0)}.support .block-info strong{font-size:13.5px;font-weight:700;letter-spacing:-.02em}.support .block-info span{font-size:9px;line-height:1.2}.support.light-block .block-info{color:#111}.support.light-block .block-info span{color:#666}.ground{pointer-events:none}.ground .plinth{filter:drop-shadow(3px 4px 2.5px #00000014)}
@media(hover:hover) and (pointer:fine){.raised-block:hover .plinth,.section-mark:hover .plinth{transform:translateY(-9px);filter:drop-shadow(25px 30px 16px #00000042) drop-shadow(3px 8px 4.5px #0000001f)}.raised-block.support:hover .plinth{transform:translateY(-6px)}.raised-block:hover .sculpture,.section-mark:hover .sculpture{transform:translateY(-12px) scale(1.035)}.raised-block:hover .contact-shadow,.section-mark:hover .contact-shadow{transform:translateY(-9px) scale(1.12);opacity:.75}.raised-block:hover .block-info,.section-mark:hover .block-info{translate:0 -9px}.raised-block.support:hover .block-info{translate:0 -6px}.btn:hover{background:#303030}.btn.light:hover{background:#f3f3f3}.chapter-row:hover{background:#fafafa}}
.home-viewport{position:relative;overflow:hidden;height:calc(100svh - 92px);min-height:540px;background:#eee}.home-canvas{position:absolute;left:50%;top:0;width:1280px;height:708px;transform:translateX(-50%) scale(var(--board-scale,1));transform-origin:50% 0}.home-cell{position:absolute}.home-fade{position:absolute;top:0;left:0;width:1280px;height:145px;background:linear-gradient(white,transparent);pointer-events:none}.mobile-home-links{display:none}
.journey{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}.journey-step{display:flex;flex-direction:column;gap:12px}.journey-step h3{font-size:23px}.journey-step p{font-size:13px;max-width:370px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:50px}.chapter-row{display:grid;grid-template-columns:80px minmax(230px,1fr) minmax(220px,1.12fr) 150px;gap:24px;align-items:center;min-height:143px;border-top:1px solid var(--line);padding:24px 0}.chapter-number{font:36px/1.1 var(--book);color:#777}.chapter-copy h3{font-size:21px;margin-bottom:8px}.chapter-copy p{font-size:13px;color:#888;line-height:1.5}.progress-copy{font:11px/1.5 var(--mono);color:#444}.progress-strip{display:flex;gap:5px;margin:10px 0;max-width:100%;height:8px}.progress-strip i{height:8px;background:var(--line);width:20px;flex:0 1 20px}.progress-strip i.done{background:#111}.progress-note{font-size:11px;color:#888}.page-footer{display:flex;flex-direction:column;gap:26px;padding-top:10px}.practice-choices{display:grid;grid-template-columns:1fr 1fr;gap:32px}.choice-panel{border:1px solid #111;min-height:328px;padding:28px;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;gap:20px}.choice-panel h2{font-size:31px}.choice-panel.dark{color:white;background:#111}.choice-panel.dark p{color:#ddd}.choice-panel p{font-size:14px}.piece-symbols{font:31px/1.5 Chess,serif;letter-spacing:9px}.related{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:10px 0}.related h3{margin-bottom:8px}.related p{font-size:13px}
.split-layout{display:grid;grid-template-columns:minmax(0,1fr) 336px;gap:32px;align-items:start}.story{display:flex;flex-direction:column;gap:27px;min-width:0}.ticket{border:1px solid #111;padding:24px;display:flex;flex-direction:column;gap:18px;min-width:0}.ticket h2{font-size:29px}.ticket h3{font-size:20px}.ticket p{font-size:12px}.ticket .btn{width:100%}.ticket.dark{background:#111;color:white}.ticket.dark p{color:#ccc}.ticket.dark .rule{border-color:#555}.price{font:35px/1.2 var(--book)}.ticket .section-mark{margin-bottom:20px}.route-row{display:grid;grid-template-columns:36px minmax(0,1fr) 150px;gap:20px;align-items:center;min-height:110px;border-left:4px solid var(--line);margin:8px 0 14px;padding:20px 0 20px 16px}.route-row.current{border-color:#111}.route-row h3{font-size:17px;margin-bottom:5px}.route-row p{font-size:13px;margin-bottom:5px}.route-row .note{font-size:9px}.samples{display:grid;grid-template-columns:1fr 1fr;gap:26px}.sample-plate{display:flex;flex-direction:column;gap:16px;border:1px solid var(--line);padding:20px}.sample-plate h3{font-size:17px}.sample-plate p{font-size:12px}.sample-plate .board-shell{max-width:220px;margin:auto}.block-rail{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}.rail-item{display:flex;flex-direction:column;gap:8px;padding-bottom:12px;border-bottom:1px solid #ddd;font-size:11px}.rail-item.active{border-bottom:3px solid #111}.next-skill{background:#111;color:white;display:flex;align-items:center;gap:28px;padding:24px}.next-skill .piece-symbols{font-size:60px}.next-skill .copy{flex:1}.next-skill h2{font-size:25px;margin:6px 0}.next-skill p{color:#ddd;font-size:13px}
.lesson-heading{display:flex;flex-direction:column;gap:10px}.lesson-heading h1{font-size:42px;line-height:1.2}.lesson-layout{display:grid;grid-template-columns:284px minmax(0,1fr);gap:28px;align-items:start}.lesson-sidebar{padding:20px;display:flex;flex-direction:column;gap:20px}.lesson-sidebar .section-mark{margin-left:6px;margin-bottom:20px}.step-link{display:flex;gap:20px;padding:20px 10px;font-size:12px}.step-link.current{background:#f1f1f1}.step-link .num{font-size:10px;color:#888}.step-link p{font-size:9px;margin-top:6px}.lesson-body{display:flex;flex-direction:column;gap:32px;min-width:0}.theory{display:flex;flex-direction:column;gap:15px;padding:24px}.theory h2{font:700 25px/1.25 var(--bold)}.theory p{font-size:13px;line-height:1.5}.theory ol{padding:0;list-style:none;counter-reset:theory;display:flex;flex-direction:column;gap:10px;margin:0;font-size:12px;color:#444}.theory li{counter-increment:theory}.theory li:before{content:counter(theory,decimal-leading-zero);display:inline-block;width:28px}.callout{background:#f3f3f3;padding:14px;font-size:11px!important;line-height:1.65!important}.worked-example{padding:24px;display:flex;flex-direction:column;gap:24px}.worked-example>h2,.task-section>h2{font:700 25px/1.25 var(--bold)}.example-layout{display:grid;grid-template-columns:360px minmax(0,1fr);gap:28px;align-items:center}.example-copy{display:flex;flex-direction:column;align-items:flex-start;gap:20px}.example-copy h3{font-size:25px}.example-copy p{font-size:14px}.example-copy .btn{width:100%}.task-section{display:flex;flex-direction:column;gap:20px}.task-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.task-card{border:1px solid var(--line);padding:18px;display:flex;flex-direction:column;gap:18px}.task-card p{font-size:12px;color:#111}.task-card .board-shell{max-width:176px;margin:auto}.task-card .button-row{flex-wrap:nowrap;gap:8px;margin-top:auto}.task-card .btn{min-width:0;flex:1;font-size:10px;padding:10px 4px;min-height:36px}.task-card .note{font-size:8px}.task-card .answer-status{font-size:11px;min-height:32px;color:#555}.next-lesson{border-top:1px solid #111;padding-top:14px;display:flex;flex-direction:column;gap:15px}.next-lesson h2{font-size:29px}.next-lesson p{font-size:15px}.next-lesson .btn{min-width:300px}
.board-shell{position:relative;width:100%;padding:0 0 22px 22px}.chess-board{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));width:100%;aspect-ratio:1;border:1px solid #555;position:relative;touch-action:manipulation}.square{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:1;background:#efefef;padding:0;border:0;font:clamp(18px,4vw,46px)/1 Chess,serif;color:#111}.square.dark{background:#a3a3a3}.square.selected{background:#d0d0bb;box-shadow:inset 0 0 0 3px #111}.square.target:after{content:'';width:10px;height:10px;border-radius:50%;background:#111;position:absolute}.square.last{box-shadow:inset 0 0 0 2px #555}.white-piece{color:white;text-shadow:-1px 0 #222,0 1px #222,1px 0 #222,0 -1px #222;z-index:1}.black-piece{color:#111;z-index:1}.rank-label{position:absolute;left:0;top:calc(var(--i)*12% + 5%);font:8px/1 var(--body);color:#777}.file-labels{display:grid;grid-template-columns:repeat(8,1fr);margin:9px 0 0 22px;text-align:center;font-size:8px;color:#888}.catch-square{position:absolute;border:2px dashed #111;width:62.5%;height:62.5%;top:0;left:0;pointer-events:none}.sample-plate .square,.task-card .square{font-size:18px}.workout{display:grid;grid-template-columns:minmax(0,1fr) 336px;gap:48px;align-items:start}.workout .board-shell{width:min(100%,622px);margin:auto}.workout .square{font-size:48px}.workout-panel{border:1px solid var(--line);padding:24px;display:flex;flex-direction:column;gap:18px}.workout-panel h2{font:700 25px/1.25 var(--bold)}.workout-panel p{font-size:13px}.status-box{padding:14px;background:#f3f3f3;min-height:58px;font-size:12px;color:#555}.clock{font:32px/1.2 var(--mono)}.game-status{display:flex;justify-content:space-between;align-items:center;gap:12px}.game-moves{display:flex;gap:9px;flex-wrap:wrap;max-height:140px;overflow:auto;font:12px/1.7 var(--mono)}.session-mode{display:flex;padding:4px;background:#eaeaea;align-self:flex-end;font-size:11px}.session-mode a{padding:10px 15px}.session-mode a.active{background:white}.assessment-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.assessment-steps>div{padding:24px;display:flex;flex-direction:column;gap:12px}.assessment-steps h3{font-size:21px}.assessment-steps p{font-size:13px}
dialog{border:1px solid #111;padding:32px;max-width:min(600px,calc(100vw - 32px));width:600px;max-height:90svh;overflow:auto;box-shadow:0 18px 65px #0002}dialog::backdrop{background:#0005;backdrop-filter:blur(3px)}.dialog-body{display:flex;flex-direction:column;gap:20px}.dialog-body h2{font-size:29px}.dialog-close{position:absolute;right:14px;top:8px;font-size:26px;padding:8px}.token-packs{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.token-pack{border:1px solid #ddd;padding:18px 10px;display:flex;flex-direction:column;gap:8px;text-align:center}.token-pack strong{font:700 22px/1.2 var(--bold)}.token-pack.active{border-color:#111;background:#f3f3f3}.receipt{display:flex;justify-content:space-between;border-block:1px solid var(--line);padding:18px 0}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,16px);opacity:0;pointer-events:none;color:white;background:#111;padding:13px 20px;z-index:100;transition:opacity 160ms,transform 160ms;font-size:13px}.toast.show{transform:translate(-50%,0);opacity:1}.dialog-body .board-shell{width:280px;margin:auto}.assessment-clock{display:flex;justify-content:space-between;align-items:center}.section-index{display:flex;flex-wrap:wrap;gap:12px}.section-index a{padding:8px 12px;border:1px solid #ddd;font-size:12px}.section-index .active{background:#111;color:white}
.sculpture .float{display:block}
.ticket .progress-strip,.lesson-sidebar .progress-strip,.programme-block>.progress-strip{width:100%}
.ticket .progress-strip i,.lesson-sidebar .progress-strip i,.programme-block>.progress-strip i{width:auto;flex:1 1 0}
.programme-block{gap:14px}
.programme-block>.route-row{margin:0}
@media(min-width:1101px){.chapter-row{grid-template-columns:80px minmax(230px,470fr) minmax(220px,412fr) 150px}}
@media(min-width:1441px){.site-header{padding-inline:max(48px,calc((100vw - 1344px)/2))}}
@media(max-width:1100px){h1{font-size:40px}.site-header{padding-inline:32px;gap:24px}.primary-nav{gap:20px}.page{padding-inline:32px}.hero,.learn .hero{grid-template-columns:minmax(0,1fr) 340px;gap:24px}.hero-copy .btn{min-width:280px}.chapter-row{grid-template-columns:58px minmax(180px,1fr) minmax(180px,1fr) 125px;gap:16px}.chapter-copy h3{font-size:18px}.chapter-row .btn{min-width:125px}.split-layout{grid-template-columns:minmax(0,1fr) 300px;gap:24px}.ticket{padding:20px}.route-row{grid-template-columns:28px minmax(0,1fr);gap:12px}.route-row .btn{grid-column:2;justify-self:start}.lesson-layout{grid-template-columns:240px minmax(0,1fr);gap:20px}.lesson-sidebar{padding:10px 0}.lesson-sidebar .section-mark{margin-left:0}.example-layout{grid-template-columns:1fr;gap:24px}.example-layout .board-shell{max-width:360px}.task-cards{gap:12px}.task-card{padding:12px}.workout{gap:28px;grid-template-columns:minmax(0,1fr) 300px}.workout-panel{padding:20px}.workout .square{font-size:36px}}
@media(max-width:760px){h1{font-size:34px}h2{font-size:27px}.site-header,.is-home .site-header{height:auto;min-height:76px;padding:20px 24px;flex-wrap:wrap;gap:18px}.wordmark{font-size:17px}.account-nav{margin-left:auto;gap:14px}.account-nav>a{display:none}.primary-nav{order:3;width:100%;justify-content:space-between;gap:16px}.primary-nav a{padding:4px 0;font-size:12px}.page{padding:28px 24px 40px;gap:26px}.hero,.learn .hero{grid-template-columns:1fr;gap:10px;min-height:0}.hero-copy{gap:18px}.hero-copy .btn{min-width:0;width:100%}.hero-art{height:330px;overflow:visible;align-items:center}.hero-art .section-mark{transform:scale(.8);transform-origin:50% 50%}.hero-copy .small{font-size:10px}.hero-copy .note{font-size:9px}.journey{grid-template-columns:1fr;gap:24px}.journey-step{border-left:1px solid #ccc;padding-left:18px;gap:8px}.journey-step h3{font-size:20px}.section-heading{align-items:flex-start;flex-direction:column;gap:10px}.section-heading h2{font-size:28px}.chapter-row{grid-template-columns:40px minmax(0,1fr);gap:12px 16px;padding:23px 0}.chapter-number{font-size:29px;grid-row:1/3;align-self:start}.chapter-copy h3{font-size:18px}.chapter-copy p{font-size:12px}.chapter-progress{grid-column:2}.chapter-row>.btn{grid-column:2;justify-self:start;min-height:38px}.chapter-row .progress-strip{max-width:270px}.practice-choices{grid-template-columns:1fr;gap:20px}.choice-panel{min-height:300px;padding:24px}.choice-panel h2{font-size:28px}.related{align-items:flex-start;flex-direction:column}.split-layout{grid-template-columns:1fr}.ticket{max-width:none}.ticket .section-mark{margin:auto}.samples{gap:16px;grid-template-columns:1fr}.sample-plate .board-shell{max-width:250px}.route-row{grid-template-columns:28px minmax(0,1fr);padding-left:12px}.block-rail{grid-template-columns:1fr 1fr;gap:20px}.next-skill{flex-wrap:wrap;padding:20px;gap:16px}.next-skill .piece-symbols{font-size:42px}.next-skill .copy{flex-basis:70%}.next-skill .btn{width:100%}.lesson-heading h1{font-size:33px}.lesson-layout{grid-template-columns:1fr}.lesson-sidebar{order:2;border-top:1px solid #ddd;padding-top:20px}.lesson-sidebar .section-mark{margin:auto}.theory,.worked-example{padding:8px 0}.lesson-body{gap:28px}.example-layout{grid-template-columns:1fr}.task-cards{grid-template-columns:1fr}.task-card{padding:20px}.task-card .board-shell{max-width:220px}.task-card .square{font-size:25px}.next-lesson .btn{min-width:0;width:100%}.workout{grid-template-columns:1fr;gap:28px}.workout .square{font-size:36px}.workout-panel>.section-mark{display:none}.assessment-steps{grid-template-columns:1fr;gap:12px}.assessment-steps>div{padding:18px 0}.session-mode{align-self:flex-start}.home-viewport{height:620px;min-height:0}.home-canvas{top:0}.mobile-home-links{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;padding:20px}.mobile-home-links a{font-size:12px;border-bottom:1px solid #999}.is-home{overflow-x:hidden}.token-packs{gap:8px}.token-pack strong{font-size:19px}dialog{padding:28px 22px}.dialog-body h2{font-size:26px}.toast{max-width:90vw;width:max-content;font-size:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition-duration:0ms!important}.raised-block:hover .sculpture,.raised-block:hover .plinth,.raised-block:hover .contact-shadow,.section-mark:hover .sculpture,.section-mark:hover .plinth,.section-mark:hover .contact-shadow{transform:none!important}.raised-block:hover .block-info,.section-mark:hover .block-info{translate:0 0!important}}
}

.editorial-ui {
  --ink: var(--editorial-ink);
  --paper: var(--editorial-paper);
  --line: var(--editorial-rule);
  --muted: var(--editorial-muted);
  --wash: var(--editorial-rule);
  --body: var(--editorial-text);
  --book: var(--editorial-display);
  --bold: var(--editorial-text);
  --mono: var(--editorial-notation);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
}

.editorial-interior #main-content > .page {
  width: min(100% - var(--editorial-gutter) * 2, var(--editorial-width));
  max-width: none;
  padding: clamp(24px, 4.5vw, 62px) 0 clamp(36px, 5vw, 68px);
  gap: var(--editorial-section-gap);
  font: 400 var(--editorial-body-size)/1.55 var(--body);
}

.editorial-interior :where(.page) h1 {
  font: 400 var(--editorial-title)/1.07 var(--book);
  letter-spacing: -.06em;
  text-wrap: balance;
}

.editorial-interior :where(.page) h2,
.editorial-ui #site-dialog h2 {
  font: 400 var(--editorial-subtitle)/1.24 var(--book);
  letter-spacing: -.035em;
}

.editorial-interior :where(.page) :is(h3, h4) {
  font: 600 1.0625rem/1.35 var(--body);
  letter-spacing: -.01em;
}

.editorial-interior :where(.page) :is(p, ul, ol),
.editorial-ui #site-dialog :is(p, ul, ol) {
  color: inherit;
}

.editorial-interior :where(.page) :is(.body-copy, .lesson-heading > p, .intro-copy > p) {
  max-width: 63ch;
  font: 400 var(--editorial-body-size)/1.6 var(--body);
  color: var(--muted);
}

.editorial-interior :where(.page) :is(
  .note, .small, .breadcrumb, .progress-copy, .progress-note, .price, .clock,
  .content-row-number, .content-stage-stamp, .course-stage-score, .course-stage-square,
  .content-position-caption, .content-exercise-source, .content-results-summary,
  .programme-floor-number, .programme-balance > strong, .programme-completion strong,
  .piece-map-files, .piece-reading-summary strong, .piece-facet-count, .game-moves,
  .game-board-caption, .piece-reading-label, .play-date, .play-preview figcaption
), .editorial-ui #site-dialog :is(.note, .small, .clock, .commerce-balance > strong, .token-pack) {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.editorial-interior :where(.page) :is(.note, .small, .breadcrumb, .progress-copy, .progress-note,
  .content-row-number, .content-position-caption, .content-results-summary, .game-board-caption),
.editorial-ui #site-dialog :is(.note, .small) {
  color: var(--editorial-copy, var(--muted));
  font-size: var(--editorial-meta-size);
  line-height: 1.5;
  letter-spacing: normal;
}

.editorial-interior :where(.page) :is(.text-link, .breadcrumb a) {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.editorial-interior :where(.page) .text-link,
.editorial-ui #site-dialog .text-link {
  font-size: .9375rem;
}

.editorial-interior :where(.page) :is(p, li, label, h1, h2, h3) {
  overflow-wrap: break-word;
}

.editorial-ui :is(a, button, select, input, textarea, summary):focus-visible {
  outline: 2px solid var(--editorial-focus, var(--ink));
  outline-offset: 3px;
}

.editorial-interior :where(.page) [id] { scroll-margin-bottom: 5rem; }

@media (max-width: 740px) {
  .editorial-interior #main-content > .page {
    padding-bottom: calc(32px + var(--editorial-tab-height) + env(safe-area-inset-bottom, 0px));
  }
}
