@font-face {
  font-family: Studio;
  src: url("/assets/studio-bold.woff") format("woff");
  font-display: swap;
  font-weight: 551 900;
}
@font-face {
  font-family: Studio;
  src: url("/assets/studio.woff") format("woff");
  font-display: swap;
  font-weight: 100 550;
}
:root {
  --ink: #565d6b;
  --soft: #506579;
  --green: #467cbb;
  --cream: #fafbff;
  --line: #dce4ee;
  --card: #fff;
  --tint: #eaf2fc;
  font:
    100%/1.55 Studio,
    "DM Sans",
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--cream);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(2.7rem, 5.3vw, 5.4rem);
  font-weight: 650;
}
h2 {
  font-size: clamp(1.8rem, 3.1vw, 3.05rem);
  font-weight: 640;
}
h3 {
  font-size: 1.32rem;
  font-weight: 650;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.62rem 1rem;
  font-weight: 620;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
textarea:focus-visible {
  outline: 3px solid #386eab;
  outline-offset: 3px;
}
button:disabled {
  cursor: default;
  opacity: 0.6;
}
h1:focus,
main:focus {
  outline: 0;
}
.sr,
.skip:not(:focus) {
  position: absolute;
  height: 1px;
  width: 1px;
  clip-path: inset(100%);
  overflow: hidden;
}
.skip:focus {
  position: absolute;
  top: 5px;
  left: 5px;
  background: white;
  padding: 0.5rem;
  z-index: 50;
}
header {
  background: white;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}
.headwrap,
.footwrap {
  max-width: 1450px;
  margin: auto;
  padding: 0 clamp(1rem, 3.6vw, 4rem);
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 2rem);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 750;
  line-height: 1.06;
  letter-spacing: -0.06em;
  white-space: nowrap;
}
.brandmark {
  position: relative;
  width: 32px;
  height: 32px;
  display: inline-block;
  flex: none;
}
.brandmark i {
  position: absolute;
  height: 22px;
  width: 10px;
  left: 11px;
  top: 3px;
  background: #38857b;
  transform-origin: bottom;
  border-radius: 8px 8px 2px 2px;
}
.brandmark i:first-child {
  transform: rotate(-45deg);
  background: #ecac54;
}
.brandmark i:last-child {
  transform: rotate(45deg);
  background: #28756b;
}
.brandmark i:nth-child(2) {
  background: #92b9a7;
}
.topstudio,
.primary,
.secondary,
.buttonlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 650;
  padding: 0.73rem 1.14rem;
  border: 1px solid transparent;
  line-height: 1.34;
}
.primary,
.topstudio {
  color: white;
  background: var(--green);
}
.topstudio {
  border-radius: 24px;
  white-space: nowrap;
  font-size: 0.87rem;
}
.secondary,
.buttonlink {
  border-color: #a3b7cc;
  background: transparent;
}
.primary:hover,
.topstudio:hover {
  background: #356ba8;
}
.secondary:hover,
.buttonlink:hover {
  background: #eaf1fc;
}
#navigation {
  display: flex;
  align-items: center;
  gap: clamp(0.28rem, 0.75vw, 1rem);
  margin-left: auto;
}
.navgroup summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.87rem;
  font-weight: 600;
  padding: 0.65rem 0.2rem;
  white-space: nowrap;
}
.navgroup summary::-webkit-details-marker {
  display: none;
}
.navgroup summary:after {
  content: "";
  display: inline-block;
  border-right: 1.4px solid;
  border-bottom: 1.4px solid;
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  vertical-align: 4px;
  margin-left: 6px;
}
.navgroup[open] summary {
  color: var(--green);
}
.navpanel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, 96vw);
  background: white;
  box-shadow: 0 18px 36px #173e3621;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: 0 0 18px 18px;
  padding: 1rem 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.12rem 0.7rem;
}
.navpanel a {
  padding: 0.45rem 0.6rem;
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 6px;
}
.navpanel a:hover,
.navpanel a:focus {
  background: var(--tint);
}
#menutoggle {
  display: none;
}
.wrap {
  max-width: 1390px;
  margin: auto;
  padding: clamp(1.25rem, 3.3vw, 3.3rem) clamp(1rem, 4vw, 4.2rem) 3rem;
}
.hero {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  overflow: hidden;
  background: #e8f1e9;
  border-radius: 24px;
  min-height: 390px;
}
.herocopy {
  padding: clamp(2rem, 4.1vw, 4.7rem);
  align-self: center;
}
.kicker,
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.52rem;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  font-weight: 730;
  color: #3b618f;
  margin-bottom: 1rem;
}
.kicker:before {
  content: "";
  width: 18px;
  height: 2px;
  background: #5487bd;
}
.hero h1 {
  max-width: 14ch;
}
.hero p,
.lead {
  font-size: clamp(1rem, 1.18vw, 1.16rem);
  color: var(--soft);
  max-width: 57ch;
  line-height: 1.6;
}
.hero p {
  margin: 1.1rem 0 1.45rem;
  max-width: 37ch;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 100%;
  display: block;
}
.actions,
.chips,
.tools {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: center;
}
.section {
  margin-top: clamp(2.25rem, 4.7vw, 4.2rem);
}
.sectionhead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}
.sectionhead a,
.under {
  color: var(--green);
  font-size: 0.93rem;
  font-weight: 650;
  text-underline-offset: 4px;
}
.sectionhead p,
.dim {
  color: var(--soft);
}
.subjects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}
.subject {
  position: relative;
  padding: clamp(1.45rem, 2.5vw, 2.5rem);
  min-height: 210px;
  border: 1px solid #d9e3ed;
  border-radius: 18px;
  color: #334457;
  text-decoration: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.subject.read {
  background: #e7eef9;
}
.subject.math {
  background: #faead6;
  border-color: #e6d6bf;
}
.subject .eyebrow {
  font-size: 0.7rem;
  margin-bottom: 0.6rem;
}
.subject h3 {
  font-size: clamp(1.7rem, 2.5vw, 2.6rem);
  margin-bottom: 0.55rem;
}
.subject p {
  max-width: 67%;
  font-size: 0.96rem;
}
.subject .under {
  margin-top: 0.85rem;
}
.motif {
  position: absolute;
  right: 6%;
  bottom: 13%;
  width: 21%;
  height: 64%;
  pointer-events: none;
}
.book i {
  position: absolute;
  width: 82%;
  height: 16%;
  border: 3px solid #446b98;
  border-left-width: 9px;
  border-radius: 6px 2px 2px 6px;
  background: #fff9e6;
  bottom: 13%;
  transform: rotate(-7deg);
}
.book i:nth-child(2) {
  bottom: 34%;
  left: 8%;
  transform: rotate(5deg);
  border-color: #8f9e62;
}
.book i:nth-child(3) {
  bottom: 54%;
  border-color: #6081ab;
  transform: rotate(-13deg);
}
.blocks i {
  position: absolute;
  width: 44%;
  aspect-ratio: 1;
  border-radius: 7%;
  bottom: 8%;
  background: #c77852;
}
.blocks i:nth-child(2) {
  right: 2%;
  background: #edbc65;
  border-radius: 50%;
}
.blocks i:nth-child(3) {
  bottom: 52%;
  left: 12%;
  background: #5681b2;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}
.tile,
.panel,
.lessoncard,
article.paper {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem;
}
.tile {
  display: block;
  text-decoration: none;
}
.tile p,
.lessoncard p {
  font-size: 0.95rem;
  color: var(--soft);
  margin: 0.5rem 0;
}
.tile:hover,
.lessoncard:hover,
.subject:hover {
  border-color: #7c9bbd;
}
.iconbox {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 0.85rem;
  border-radius: 11px;
  background: #ebf1fc;
  color: #3e679a;
}
.iconbox svg {
  width: 22px;
  height: 22px;
}
.eyebrow {
  margin-bottom: 0.6rem;
}
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.87rem;
  color: var(--soft);
  margin: 0 0 1.3rem;
}
.breadcrumb a {
  text-underline-offset: 3px;
}
.pagehead {
  margin-bottom: 1.5rem;
}
.pagehead h1 {
  font-size: clamp(2.15rem, 4.1vw, 4rem);
  margin-bottom: 0.65rem;
}
.filters,
.grid2 {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1rem;
  align-items: end;
}
.grid2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.field {
  display: grid;
  gap: 0.35rem;
  font-weight: 650;
  font-size: 0.9rem;
  align-content: start;
}
input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  background: white;
  border: 1px solid #a6b8cb;
  border-radius: 8px;
  font-weight: 450;
  padding: 0.72rem 0.8rem;
  font-size: 1rem;
}
textarea {
  min-height: 6rem;
}
.field small {
  font-weight: 400;
  color: var(--soft);
}
.results {
  margin-top: 1.1rem;
}
.results .tiles {
  margin-top: 0.8rem;
}
.lessoncard {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.lessoncard .under {
  margin-top: auto;
}
.pill {
  display: inline-block;
  font-weight: 660;
  font-size: 0.79rem;
  color: #365c86;
  background: #e6eef9;
  border-radius: 6px;
  padding: 0.2rem 0.45rem;
}
.pill.math {
  background: #f8e5c9;
  color: #624421;
}
.pill.neutral {
  background: #edf3fb;
}
.metas {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--soft);
  margin-bottom: 0.5rem;
}
.pager {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  justify-content: center;
  margin: 1.45rem 0;
}
.readinglayout {
  display: grid;
  grid-template-columns: minmax(0, 2.25fr) minmax(210px, 0.85fr);
  gap: 1.2rem;
  align-items: start;
}
.paper {
  line-height: 1.68;
}
article.paper {
  padding: clamp(1.4rem, 3vw, 3rem);
}
.paper h2,
.panel h2,
.cardtitle {
  font-size: 1.48rem;
  margin-bottom: 0.65rem;
}
.paper h3,
.panel h3 {
  margin: 1.2rem 0 0.5rem;
}
.paper p + p,
.panel p + p,
.paper ol,
.paper ul {
  margin-top: 0.85rem;
}
.paper ol li {
  margin-bottom: 0.75rem;
}
.paper pre {
  font: inherit;
  white-space: pre-wrap;
  background: #f1f5fc;
  padding: 1rem;
  border-radius: 8px;
}
.panel + .panel {
  margin-top: 1rem;
}
.panel .field + .field {
  margin-top: 0.8rem;
}
.padtop {
  margin-top: 1rem;
}
.small {
  font-size: 0.9rem;
}
.notice,
.feedback,
.context {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  margin: 0.9rem 0;
  background: #edf3fb;
  border-left: 4px solid #5982b2;
}
.context {
  white-space: pre-line;
  line-height: 1.65;
  background: #f4f6fa;
  border-color: #c2a358;
}
.feedback {
  background: #e8f1fb;
}
.question {
  font-weight: 700;
  font-size: 1.13rem;
  margin: 0.9rem 0;
}
.choices {
  display: grid;
  gap: 0.6rem;
}
.choices button {
  text-align: left;
  display: flex;
  gap: 0.7rem;
  align-items: center;
}
.choices button:hover,
.choices button.chosen {
  background: #e9f1fc;
  border-color: #486e9a;
}
.choiceicon {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
}
.steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.steps span {
  font-size: 0.77rem;
  border-radius: 6px;
  padding: 0.22rem 0.5rem;
  background: #eef0eb;
}
.steps .active {
  background: var(--green);
  color: white;
}
.readable {
  white-space: pre-line;
}
.inline-list {
  display: grid;
  gap: 0.4rem;
}
.inline-list a {
  display: block;
  color: var(--green);
  text-underline-offset: 3px;
}
.timerface {
  font-variant-numeric: tabular-nums;
  font-size: clamp(3.3rem, 8vw, 6rem);
  font-weight: 650;
  letter-spacing: -0.075em;
  line-height: 1.1;
  margin: 0.55rem 0;
  color: #325b89;
}
.board {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 0.75rem 0;
}
.token {
  border: 2px dashed #afbfcd;
  border-radius: 12px;
  width: clamp(38px, 8vw, 55px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  color: #586b80;
  background: #f8faff;
  overflow: hidden;
}
.token.earned {
  border: 2px solid #5482bb;
  background: #dce9fa;
}
.token img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.success {
  color: #355f97;
}
.statgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}
.statgrid strong {
  display: block;
  font-size: 1.9rem;
}
.scrolltable {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.94rem;
}
th,
td {
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--line);
}
.layoutform {
  display: grid;
  gap: 1rem;
  max-width: 720px;
}
.field.check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.check input {
  width: 1.2rem;
  height: 1.2rem;
}
.status {
  min-height: 1.4rem;
  color: var(--soft);
  font-size: 0.92rem;
}
.footwrap {
  justify-content: space-between;
  padding-top: 1.3rem;
  padding-bottom: 1.3rem;
}
.footwrap > div {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.footwrap > div a {
  font-size: 0.9rem;
  text-underline-offset: 3px;
}
footer {
  border-top: 1px solid var(--line);
  background: #eff4fc;
}
.loading {
  padding: 3rem;
}
.quiet .motif,
.quiet .hero img {
  display: none;
}
.quiet .hero {
  display: block;
  min-height: auto;
}
.quiet .subject p {
  max-width: 100%;
}
.larger {
  font-size: 118%;
}
.contrast {
  --line: #667c91;
  --soft: #29394c;
  --cream: #fff;
}
@media (max-width: 1050px) {
  .headwrap {
    flex-wrap: wrap;
    min-height: 68px;
    position: relative;
  }
  .topstudio {
    margin-left: 0;
  }
  .brand {
    margin-right: auto;
  }
  #menutoggle {
    display: block;
  }
  .headwrap #navigation {
    display: none;
  }
  .headwrap #navigation.show {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 75vh;
    overflow: auto;
    background: white;
    padding: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .navgroup summary {
    font-size: 1rem;
  }
  .navpanel {
    position: static;
    transform: none;
    width: auto;
    border: 0;
    box-shadow: none;
    grid-template-columns: 1fr 1fr;
  }
  .hero {
    min-height: 330px;
  }
  .hero h1 {
    font-size: clamp(2.6rem, 5.6vw, 4.5rem);
  }
}
@media (max-width: 700px) {
  .headwrap {
    padding: 0 1rem;
    gap: 0.45rem;
  }
  .brand {
    font-size: 1.08rem;
  }
  .topstudio {
    font-size: 0.77rem;
    padding: 0.55rem 0.65rem;
  }
  #menutoggle {
    font-size: 0.85rem;
    padding: 0.4rem 0.65rem;
  }
  .wrap {
    padding: 1rem 1rem 2.2rem;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .herocopy {
    padding: 1.6rem;
  }
  .hero h1 {
    max-width: 17ch;
  }
  .hero img {
    height: 200px;
    min-height: 0;
    object-position: 50% 57%;
  }
  .subjects,
  .grid2,
  .tiles,
  .readinglayout,
  .filters {
    grid-template-columns: 1fr;
  }
  .filters {
    gap: 0.65rem;
  }
  .subject {
    min-height: 180px;
  }
  .sectionhead {
    align-items: start;
    flex-direction: column;
    gap: 0.35rem;
  }
  .statgrid {
    grid-template-columns: 1fr 1fr;
  }
  .navpanel {
    grid-template-columns: 1fr;
  }
  .footwrap {
    align-items: start;
    flex-direction: column;
  }
  .readinglayout > aside {
    order: 2;
  }
  .motif {
    max-width: 110px;
  }
  .section {
    margin-top: 1.85rem;
  }
}
@media print {
  header,
  footer,
  .actions,
  .tools,
  .pager,
  .breadcrumb,
  .sideonly,
  .skip {
    display: none !important;
  }
  .wrap {
    padding: 0;
  }
  .readinglayout {
    display: block;
  }
  .panel,
  article.paper {
    border: 0;
    padding: 0.5rem;
  }
  .paper pre {
    white-space: pre-wrap;
  }
  .tile,
  .lessoncard {
    break-inside: avoid;
  }
  body {
    background: white;
    color: #111;
  }
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
  min-width: 0;
}
fieldset .field + .field {
  margin-top: 0.65rem;
}
legend {
  font-weight: 650;
  padding: 0 0.3rem;
}
article.paper li + li {
  margin-top: 0.6rem;
}
textarea {
  font: inherit;
  border: 1px solid #8ea2b9;
  border-radius: 7px;
  padding: 0.7rem;
  max-width: 100%;
}
@media print {
  body.printboard * {
    visibility: hidden;
  }
  body.printboard .boardpaper,
  body.printboard .boardpaper * {
    visibility: visible;
  }
  body.printboard .boardpaper {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    box-shadow: none;
  }
  body.printboard .boardpaper .actions,
  body.printboard .boardpaper .padtop {
    display: none;
  }
}
@media print {
  .paper,
  .panel {
    break-inside: auto;
  }
  pre {
    white-space: pre-wrap;
  }
}
