:root{color-scheme:light;--cream:#FAF5F0;--burgundy:#62283B;--rose:#B77D8D;--pink:#EBD5D9;--paper:#FFFDF9}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--burgundy);font-family:Arial,Helvetica,sans-serif}.home-frame{max-width:1320px;margin:12px auto;background:var(--paper);border:1px solid #eee2db;border-radius:25px;overflow:clip}.grade-header{position:relative;min-height:96px;display:flex;align-items:center;padding:21px 5%;border-bottom:1px solid #e9dad4;background:var(--paper)}.home-brand{display:inline-flex;align-items:center;gap:14px;text-decoration:none;color:var(--burgundy);font:700 clamp(26px,3.2vw,39px)/1.1 Georgia,'Times New Roman',serif;max-width:calc(100% - 190px)}.home-brand svg{width:44px;height:44px;flex-shrink:0}.home-hero{height:285px;display:grid;place-items:center;text-align:center;background:#f4e8dc url('/images/learning-home-hero.jpg') center/cover no-repeat}.home-hero-copy{padding:20px 12px;max-width:65%}.home-hero h1{font:500 clamp(35px,4.6vw,61px)/1.07 Georgia,'Times New Roman',serif;margin:0 0 22px;letter-spacing:-.035em}.home-hero h1 span{display:block}.home-hero p{font-size:12px;line-height:1.7;letter-spacing:.18em;text-transform:uppercase;font-weight:600;margin:0}.grade-selector{padding:27px 8% 20px;background:var(--cream)}.grade-label{display:flex;align-items:center;justify-content:center;gap:22px;margin:0 0 26px}.grade-label>span{height:1px;background:#c19a9f;flex:1}.grade-label h2{margin:0;font:500 clamp(24px,3vw,34px)/1.2 Georgia,serif;white-space:nowrap;padding:3px 19px}.grade-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:25px;max-width:880px;margin:0 auto}.grade-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;border:1px solid #b17d8b;border-radius:15px;background:#fffaf6;min-height:155px;padding:20px 12px;color:var(--burgundy);text-decoration:none}.grade-card svg{width:43px;height:43px}.grade-card>span{font:500 clamp(25px,3vw,35px)/1.15 Georgia,serif;text-align:center}.grade-featured{background:#8D5265;border-color:#8D5265;color:#fffdf9}.grade-card:hover{border:2px solid var(--burgundy);padding:19px 11px}.grade-featured:hover{background:#784153}.grade-card:focus-visible,.back-to-grades:focus-visible,.home-brand:focus-visible{outline:3px solid #62283B;outline-offset:5px}.home-features{padding:29px 5% 31px;display:grid;grid-template-columns:repeat(4,1fr);background:var(--cream)}.home-features>div{display:flex;align-items:center;flex-direction:column;text-align:center;padding:0 19px;border-right:1px solid #ddc5c9}.home-features>div:last-child{border:0}.home-features svg{width:35px;height:35px;margin-bottom:12px}.home-features p{font:400 16px/1.4 Georgia,serif;margin:0}.home-footer{background:var(--paper);border-top:1px solid #eadfda;min-height:56px;padding:20px 5%;font-size:12px;text-align:center;color:#806b70}.home-skip{position:absolute;top:-100px;left:16px;background:#fff;padding:14px;color:#62283B;z-index:5}.home-skip:focus{top:10px}.grade-placeholder{min-height:560px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:50px 22px;background:var(--cream)}.placeholder-icon svg{width:65px;height:65px}.grade-placeholder h1{font:500 clamp(29px,5vw,48px)/1.3 Georgia,serif;max-width:700px;margin:28px 0}.back-to-grades{display:inline-block;padding:15px 23px;min-height:48px;border:1px solid #9c697a;border-radius:9px;color:#62283B;text-decoration:none;font-size:16px;background:#fffdf9}.grade-header .language-switch{top:26px;right:5%}html[lang=fr-CA] .home-hero-copy{max-width:68%}html[lang=fr-CA] .home-hero p{letter-spacing:.08em}@media(max-width:760px){.home-frame{margin:0;border:0;border-radius:0}.grade-header{min-height:86px;padding:18px 20px}.home-brand{font-size:28px;gap:10px;max-width:calc(100% - 160px)}.home-brand svg{width:34px;height:34px}.home-brand span{max-width:145px}.grade-header .language-switch{right:18px;top:20px}.home-hero{height:215px}.home-hero-copy{max-width:72%!important}.home-hero h1{font-size:39px;margin-bottom:16px}.home-hero p{font-size:10px;letter-spacing:.08em}.grade-selector{padding:23px 18px 12px}.grade-label{gap:8px;margin-bottom:20px}.grade-label h2{font-size:27px;padding:0 8px}.grade-cards{gap:12px}.grade-card{min-height:139px;gap:15px;padding:17px 8px}.grade-card:hover{padding:16px 7px}.grade-card>span{font-size:27px}.grade-card svg{width:35px;height:35px}.home-features{padding:26px 18px;grid-template-columns:repeat(2,1fr);gap:22px 8px}.home-features>div{padding:0 7px}.home-features>div:nth-child(2){border-right:0}.home-features p{font-size:15px}.home-features svg{height:29px;width:29px;margin-bottom:8px}.grade-placeholder{min-height:calc(100svh - 142px)}}@media(max-width:450px){.grade-header{padding-left:14px;padding-right:14px;min-height:88px}.home-brand{font-size:23px;max-width:calc(100% - 150px);gap:8px}.home-brand svg{width:29px;height:29px}.grade-header .language-switch{right:12px;top:22px}.home-hero{height:192px}.home-hero h1{font-size:33px}.home-hero p{font-size:9px;line-height:1.6}.grade-card{min-height:127px;gap:12px}.grade-card>span{font-size:23px}.grade-card svg{width:31px;height:31px}.grade-selector{padding-left:14px;padding-right:14px}.grade-cards{gap:10px}.home-footer{min-height:48px;padding:16px}.home-features{padding-top:21px;padding-bottom:23px}}@media(max-width:340px){.grade-cards{grid-template-columns:1fr}.grade-card{min-height:73px;flex-direction:row;gap:19px}.home-brand{max-width:140px}.grade-header{min-height:111px;align-items:flex-start}.grade-header .language-switch{top:67px}.home-hero h1{font-size:29px}.home-hero-copy{max-width:79%!important}}
/* Keep the homepage footer at the viewport bottom without covering content. */
.home-selection .home-frame{display:flex;flex-direction:column;min-height:calc(100svh - 24px)}
.home-selection #main{flex:1}
.home-selection .home-footer{margin-top:auto}
@media(max-width:760px){.home-selection .home-frame{min-height:100svh}}
/* Extra breathing room above the homepage copyright. */
.home-selection #main{padding-bottom:200px}
.home-selection .home-frame{min-height:calc(100svh + 176px)}
@media(max-width:760px){.home-selection .home-frame{min-height:calc(100svh + 200px)}}
/* Larger homepage welcome banner and heading. */
.home-selection .home-hero{height:clamp(350px,34vw,460px)}
.home-selection .home-hero h1{font-size:clamp(64px,7.5vw,100px);margin-bottom:0}
@media(max-width:760px){.home-selection .home-hero{height:300px}.home-selection .home-hero h1{font-size:64px}}
@media(max-width:450px){.home-selection .home-hero{height:260px}.home-selection .home-hero h1{font-size:52px}}
/* Show the complete welcome artwork at its original proportions. */
.home-selection .home-hero{height:auto;min-height:0;aspect-ratio:3/1;background-size:contain;background-repeat:no-repeat}

/* Grade selection loading transition, isolated to the main homepage. */
.grade-loading[hidden]{display:none}
.grade-loading{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;background:#fbf7ef;color:#72132f;font:600 22px/1.4 Georgia,serif;animation:grade-loading-in .18s ease-out}
.grade-loading-spinner{width:48px;height:48px;border:4px solid #e8d5c5;border-top-color:#b68931;border-right-color:#72132f;border-radius:50%;animation:grade-loading-spin .8s linear infinite}
@keyframes grade-loading-spin{to{transform:rotate(360deg)}}
@keyframes grade-loading-in{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.grade-loading,.grade-loading-spinner{animation:none}}

.home-jeopardy{text-align:center;padding:0 20px 28px;background:var(--cream)}.home-jeopardy a{display:inline-block;border:1px solid var(--burgundy);border-radius:10px;padding:12px 30px;min-height:44px;color:var(--burgundy);font:600 18px/1.3 Arial,sans-serif;text-decoration:none;background:#fffaf6}.home-jeopardy a:hover{background:#ebd5d9}.home-jeopardy a:focus-visible{outline:3px solid var(--burgundy);outline-offset:4px}
