
:root{font-family:system-ui,sans-serif;color:#211c3c;background:#f7f5ff;line-height:1.65;font-size:18px;--ink:#211c3c;--purple:#5538a8}*{box-sizing:border-box}body{margin:0}body.roomy main{font-size:1.2rem;letter-spacing:.065em;line-height:1.95}header{background:white;border-bottom:1px solid #e4def4}nav,main{max-width:1100px;margin:auto;padding:1rem 1.35rem}nav{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}.brand{font-size:1.35rem;font-weight:900;margin-right:auto;color:var(--purple);text-decoration:none}button,input,textarea{font:inherit;color:inherit}button{min-height:46px;border:1px solid #d9ceef;border-radius:.75rem;background:white;padding:.45rem .9rem;cursor:pointer;font-weight:700}button:hover{background:#eee6ff}.primary,[aria-current=page]{background:var(--purple);color:white;border-color:var(--purple)}.primary:hover,[aria-current=page]:hover{background:#43258f}.hero{margin:.75rem 0 1.5rem;padding:clamp(1.5rem,5vw,3.5rem);background:#e5dbff;border-radius:1.5rem;display:flex;align-items:center;justify-content:space-between;gap:1rem}.hero p{max-width:34ch}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(2.4rem,6vw,4.35rem);line-height:1.02;margin-bottom:1rem;letter-spacing:-.06em}h2{line-height:1.2}.art{font-size:clamp(3rem,12vw,9rem);line-height:1;transform:rotate(-9deg);color:#5538a8;text-shadow:8px 8px #faba65}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));gap:1rem}.card,.panel{padding:1.25rem;border-radius:1.25rem;background:white;border:1px solid #e4def4}.card{display:flex;flex-direction:column;align-items:flex-start}.card button{margin-top:auto}.icon{font-size:1.6rem;padding:.1rem .65rem;border-radius:.6rem;background:#fce5b8;margin-bottom:.7rem}.card:nth-child(2) .icon{background:#d3f2e6}.card:nth-child(3) .icon{background:#f6d9e8}.panel{margin-bottom:1rem;max-width:770px}.actions{display:flex;gap:.6rem;flex-wrap:wrap;margin:.6rem 0}label{display:block;font-weight:700}textarea,input[type=text]{width:100%;padding:.65rem;border:1px solid #617465;border-radius:.55rem;background:#fff}textarea{min-height:125px;resize:vertical}.reader-text{white-space:pre-wrap;overflow-wrap:anywhere;background:#eee7ff;border-radius:.75rem;padding:1rem;margin:.8rem 0}ul{padding-left:1.4rem}li{margin:.4rem 0}.check{display:flex;align-items:baseline;gap:.65rem;font-weight:500;overflow-wrap:anywhere}.check input{flex:none;width:1.1rem;height:1.1rem;accent-color:var(--purple)}.muted{color:#51486b}.entry{padding:.7rem 0;border-bottom:1px solid #e4def4}.entry p{overflow-wrap:anywhere;white-space:pre-wrap}.entry button{font-size:.86rem}@media(max-width:540px){.art{display:none}nav .brand{width:100%}nav,main{padding:.8rem}nav button{padding:.35rem .55rem}}

:root{background:#f6f3eb;color:#172e27;--purple:#20624e;--ink:#172e27}
header{background:#f6f3eb;border-color:#c8d0c0}nav{min-height:78px}
.brand{color:#174936;letter-spacing:-.05em}.brand span{background:#cbed83;border-radius:50%;display:inline-grid;place-items:center;width:1.8rem;height:1.8rem;margin-right:.3rem}
button{border-color:#617465;border-radius:.55rem}button:hover,[aria-pressed=true]{background:#dfedcf}
.primary:hover,[aria-current=page]:hover{background:#174936}
.hero{background:#174936;color:#fff;display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:2rem;border-radius:1rem}
.hero h1{font-size:clamp(2rem,5vw,3.65rem);line-height:1.09;letter-spacing:-.035em;max-width:14ch}
.hero .primary{background:#cbed83;color:#172e27;border-color:#cbed83}
.sample{background:#fffaf0;color:#172e27;padding:1.3rem;border-radius:.6rem;box-shadow:7px 7px #b9d989}
.sample strong{display:block;margin-bottom:.55rem}.sample p{margin-bottom:.7rem}.sample mark{background:#e2f2ab;color:inherit;padding:.1em}
.cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))}
.card,.panel{border-color:#c8d0c0;border-radius:.8rem}.card:nth-child(odd){background:#eaf2dd}
.reader-text{background:#eaf2dd}.muted{color:#3e584e}
.focus-reader #piece{max-width:33ch;font-size:1.3em;line-height:1.85;letter-spacing:.045em}
select{font:inherit;color:inherit;background:white;border:1px solid #617465;padding:.35rem;border-radius:.5rem;min-height:46px}
button:disabled{opacity:.55;cursor:default}
[hidden]{display:none!important}.resources{margin-top:2rem}.resources a{color:#174936}
@media(max-width:680px){.hero{grid-template-columns:1fr;gap:1.3rem}.sample{box-shadow:4px 4px #b9d989}.hero h1{max-width:18ch}}
.skip{position:absolute;top:.5rem;left:.5rem;z-index:2;padding:.5rem 1rem;background:white;color:#174936;transform:translateY(-150%)}
.skip:focus{transform:none}

.hero-secondary {
  background: transparent;
  color: white;
  border-color: #b9d989;
}
.hero-secondary:hover { background: #20624e }
.math-nav { margin: 0 0 1rem; padding: 0; min-height: unset }
.math-panel h2 { scroll-margin-top: 1rem }
.math-paper {
  background: #eaf2dd;
  border-inline-start: .3rem solid #20624e;
  padding: .8rem 1rem;
  margin-bottom: .75rem;
  border-radius: .4rem;
}
.math-paper p:last-child { margin-bottom: 0; font-weight: 700 }
.math-panel fieldset {
  border: 1px solid #617465;
  border-radius: .5rem;
  margin: 1rem 0 .5rem;
}
.math-panel legend { font-weight: 700 }
.number-line {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: .15rem solid #20624e;
  gap: .1rem;
  font-size: clamp(.75rem, 3.4vw, 1.1rem);
  letter-spacing: normal;
}
.number-line li { text-align: center; padding-block: .15rem; margin: 0; border-top: .25rem solid transparent }
.number-line [aria-current] { background: #cbed83; border-color: #174936; font-weight: 800 }
.math-input {
  width: 5.5rem;
  min-height: 46px;
  border: 1px solid #617465;
  padding: .4rem;
  border-radius: .5rem;
}
.column-form { display: flex; align-items: end; flex-wrap: wrap; gap: .6rem }
.place-grid {
  width: 100%;
  max-width: 30rem;
  border-collapse: collapse;
  margin-block: 1rem;
  font-size: clamp(.8rem, 3.3vw, 1rem);
  letter-spacing: normal;
}
.place-grid caption { text-align: start; font-weight: 700; margin-bottom: .4rem }
.place-grid td, .place-grid th { border: 1px solid #617465; padding: .35rem; text-align: center }
.place-grid thead { background: #eaf2dd }
.place-grid tbody th { text-align: start }

.homework-hero .primary { white-space: normal; text-align: start }
.homework-sample p:last-of-type { font-weight: 700 }
.homework-steps {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1rem;
  padding-inline-start: 1.3rem;
  margin: 0 0 1rem;
}
.homework-steps li { padding: .1rem .4rem }
.homework-steps [aria-current] { background: #cbed83; border-radius: .35rem; font-weight: 800 }
.homework-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.homework-question { grid-row: span 2 }
.homework-page .panel { margin: 0; min-width: 0 }
.homework-page textarea { min-height: 4rem; margin-bottom: .65rem }
#homework-text, #homework-notes { min-height: 7rem }
.homework-page .reader-text { overflow-wrap: anywhere }
.homework-model { margin: 1rem 0 }
.homework-ticks {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  border-top: 3px solid #20624e;
  text-align: center;
  font-size: clamp(.75rem, 2.5vw, 1rem);
  letter-spacing: normal;
}
.homework-ticks li { margin: 0; padding: .3rem 0 }
.homework-ticks [aria-current] { background: #cbed83; font-weight: 800 }
.homework-grid { table-layout: fixed }
.homework-grid th { overflow-wrap: anywhere }
.homework-grid input {
  width: 100%;
  min-height: 46px;
  text-align: center;
  border: 1px solid #617465;
  border-radius: .3rem;
}
.homework-hint { background: #eaf2dd; border-inline-start: 4px solid #20624e; padding: .75rem }
.homework-session { margin-top: 1rem }
.homework-print-sheet { display: none }
@media(max-width: 800px) {
  .homework-page { grid-template-columns: 1fr }
  .homework-question { grid-row: auto }
}
@media print {
  body:has(.homework-print-sheet) > :not(.homework-print-sheet) { display: none }
  .homework-print-sheet { display: block; background: white; color: black }
  .homework-print-sheet p { white-space: pre-wrap; overflow-wrap: anywhere }
  .homework-print-sheet h1 { font-size: 1.8rem }
}

.creator { padding: 1rem; text-align: center; color: #3e584e }
#snap-panel, #coach-panel, #practice-coach {
  margin-top: 1rem;
  padding: .7rem;
  border: 1px solid #617465;
  border-radius: .55rem;
}
#snap-panel summary, #coach-panel summary, #practice-coach summary {
  min-height: 44px;
  cursor: pointer;
  font-weight: 800;
}
#snap-image { max-width: 100%; min-height: 44px }
.coach-heading { display: flex; align-items: center; gap: .6rem }
.coach-heading h3 { margin: 0 }
.coach-heading img { border-radius: .35rem }
.practice-ticks { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr }

/* A light inner ring and dark outer ring work on both hero and paper surfaces. */
:where(button, a, textarea, input, select, summary):focus-visible {
  outline: 3px solid #174936;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px white;
}
.hero :where(button, a):focus-visible {
  outline-color: white;
  box-shadow: 0 0 0 3px #174936;
}

.brand { display: inline-flex; align-items: center; gap: .45rem }
.brand img { border-radius: .45rem }
.languages { display: flex; flex-wrap: wrap; gap: .35rem .65rem }
.languages a { display: inline-flex; align-items: center; min-height: 46px; color: #174936; padding: .15rem .25rem }
.languages [aria-current] { font-weight: 800; text-decoration-thickness: .15rem }

.brand .wordmark { display: block; width: min(10rem, 100%); height: auto; }
.language-home { padding-block: clamp(1.4rem, 8vw, 5rem) 1.5rem; }
.language-home .panel { margin-inline: auto; padding: clamp(1rem, 5vw, 2.6rem); }
.language-home .wordmark { display: block; width: min(100%, 25rem); height: auto; }
.language-home .languages a { background: #eaf2dd; border: 1px solid #617465; border-radius: .5rem; padding-inline: .8rem; }
