:root {
  color-scheme: light;
  --paper: #f7f1e7;
  --card: #fffdf8;
  --ink: #2f2a24;
  --muted: #5f574c;
  --orange: #d96a1d;
  --button: #9c4310;
  --gold: #e7b84a;
  --sage: #e9eee3;
  --line: #ded5c6;
  font: 1rem/1.55 system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.frame { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--line); background: var(--card); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1rem; padding-block: .55rem; }
.brand { font: 700 clamp(1.1rem, 3vw, 1.45rem)/1.2 Georgia, serif; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: .6rem; }
.masthead a { min-height: 44px; display: inline-flex; align-items: center; }
a { color: var(--button); text-underline-offset: .2em; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
h1, h2 { font-family: Georgia, serif; line-height: 1.14; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1rem; }
main { padding-block: clamp(.8rem, 2vw, 1.5rem) 3rem; }
button, select, .button { font: inherit; min-height: 44px; padding: .48rem .8rem; border-radius: .65rem; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
button, .button, summary { cursor: pointer; }
.button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
button:disabled { opacity: .58; cursor: default; }
:focus-visible { outline: 3px solid #224c67; outline-offset: 3px; }
.primary { background: var(--button); color: #fff; border-color: var(--button); font-weight: 700; }
.primary:hover:not(:disabled) { background: #783109; }
.quiet:hover:not(:disabled) { background: #f4eadb; }
.launcher { margin-block-end: .75rem; }
.selection { display: grid; grid-template-columns: auto minmax(8rem, 1fr) minmax(8rem, 1fr) auto; align-items: end; gap: .6rem 1rem; }
.selection label, .grade-control, .lesson-aside label { display: grid; gap: .25rem; font-weight: 650; }
select { width: 100%; min-width: 0; font-weight: 400; }
#grades { display: flex; gap: .25rem; }
#grades button { min-width: 44px; font-weight: 650; }
#grades [aria-pressed="true"] { background: #fbe6d3; border-color: #aa531e; color: #7d310d; }
.notice { margin-bottom: .65rem; color: var(--muted); }
.hero { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 1rem; border: 1px solid #e6c981; border-radius: 1.1rem; background: #fff4d6; padding: clamp(1rem, 3vw, 2.1rem); }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3.65rem); max-width: 25ch; margin: .4rem 0 .65rem; }
.lesson-date { display: flex; flex-wrap: wrap; gap: .2rem .85rem; color: var(--muted); font-weight: 650; }
#rhythm { color: #824114; }
.big-idea { display: grid; gap: .1rem; }
.hero button { margin-top: 1rem; }
.mascot { display: block; width: clamp(6rem, 15vw, 10rem); height: auto; }
.lesson-layout { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); align-items: start; gap: 1rem; margin-top: 1rem; }
.steps, .lesson-aside { display: grid; min-width: 0; gap: .75rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: .85rem; padding: clamp(.9rem, 2.2vw, 1.35rem); }
.card p, .card label, .lesson-aside .button, .lesson-aside button, #media, .challenge { margin-top: .55rem; }
.step h2 { color: #803909; }
.teacher, .challenge { background: var(--sage); }
.challenge { padding: .65rem .8rem; border-radius: .55rem; }
.practice-cues { display: flex; flex-wrap: wrap; gap: .35rem .5rem; list-style: none; margin: .7rem 0 0; padding: 0; }
.practice-cues li { display: flex; align-items: center; gap: .35em; border-radius: .4em; background: #f6eee2; padding: .25em .55em; border: 1px solid var(--line); }
.projection .practice-cues { font-size: .65em; margin: 0; }
.feeling-dot { display: inline-block; flex: 0 0 auto; border-radius: 50%; background: #824114; }
.feeling-dot-0 { width: .4em; height: .4em; }
.feeling-dot-1 { width: .65em; height: .65em; }
.feeling-dot-2 { width: .9em; height: .9em; }
.note, #completion-status { color: var(--muted); }
.participation-disclosure { margin-top: 1rem; }
summary { min-height: 44px; align-content: center; font-weight: 700; }
.participation-disclosure .schoolwide-participation { max-width: none; margin: .5rem 0 0; }
.classroom-spotlight { margin-top: .5rem; }
dialog { max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; border: 0; padding: 0; background: var(--paper); color: var(--ink); }
.presentation-shell { min-height: 100%; width: min(100%, 92rem); margin: auto; display: grid; grid-template-rows: auto 1fr auto; padding: clamp(1rem, 3vw, 2.7rem); gap: 1rem; }
.presentation-header, .presentation-footer { display: flex; align-items: center; justify-content: space-between; gap: .7rem; flex-wrap: wrap; }
.projection { align-self: center; display: grid; gap: .8rem; max-width: 43em; margin-inline: auto; width: 100%; font-size: clamp(1.25rem, 3.3vw, 2.5rem); line-height: 1.3; }
.projection h2 { font-size: 1.36em; color: #803909; }
#presentation-goal { border-left: .25rem solid var(--gold); padding-left: .65rem; font-weight: 700; }
#presentation-extra { background: var(--sage); border-radius: .5rem; padding: .55rem .75rem; font-size: .8em; }
.projection .button { justify-self: start; font-size: .65em; }
.presentation-shell button { min-width: 5.5rem; }
@media (max-width: 46rem) {
  .selection { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grade-control { grid-column: 1 / -1; }
  .selection > button { justify-self: start; }
  .lesson-layout { grid-template-columns: 1fr; }
}
@media (max-width: 31rem) {
  .hero { grid-template-columns: 1fr; }
  .mascot { display: none; }
}

.practice-activity {
  position: relative;
  margin-block: .8rem;
  padding: clamp(.8rem, 2vw, 1.4rem);
  border: 1px solid #d5c3a3;
  border-radius: .9rem;
  background: var(--card);
  box-shadow: 0 .25rem .8rem #442a1610;
}
.activity-title {
  padding-right: 4rem;
  color: #803909;
  font: 700 1.22em/1.2 Georgia, serif;
}
.activity-art {
  position: absolute;
  inset: .45rem .55rem auto auto;
  width: clamp(2.9rem, 7vw, 4.4rem);
  aspect-ratio: 1;
  object-fit: contain;
}
.activity-art.flora-portrait {
  object-fit: cover;
  object-position: 88% 40%;
  border-radius: .65rem;
}
.activity-scene {
  margin-block: .75rem .6rem;
  padding: .62rem .8rem;
  border-radius: .65rem;
  background: #fff4d6;
}
.activity-heading { margin: 0; color: var(--ink); font-size: 1.13em; line-height: 1.2; }
.activity-text { margin-block-start: .35em; }
.activity-prompt { font-weight: 700; margin-block-start: .25em; }
.activity-list, .activity-compare ol { margin: .35em 0; padding-left: 1.3em; }
.activity-choices, .activity-nav { display: flex; flex-wrap: wrap; gap: .4rem; margin-block: .5rem; }
.practice-activity button { min-height: 52px; min-width: 52px; max-width: 100%; }
.activity-choices button { display: inline-flex; align-items: center; gap: .4em; text-align: start; }
.activity-choices [aria-pressed="true"] { background: var(--sage); border: 2px solid #556b48; }
.activity-choices [aria-pressed="true"]::after { content: '✓'; }
.activity-feedback { padding: .55em .7em; border-radius: .55rem; background: var(--sage); }
.activity-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.activity-compare section { padding: .45rem .6rem; border: 1px solid var(--line); border-radius: .55rem; }
.activity-compare h5 { margin: 0; font-size: 1em; }
.activity-offline { font-size: .85em; }
.activity-offline p { margin-bottom: .25rem; }
.projection #presentation-activity:empty { display: none; }
.projection .practice-activity { font-size: clamp(1.12rem, 2.4vw, 1.75rem); max-width: 54rem; margin: 0; }
.projection .practice-activity button { min-height: 56px; }
@media (max-width: 30rem) {
  .activity-choices button { flex: 1 1 42%; }
  .activity-compare { grid-template-columns: 1fr; }
}
.activity-scene {
  background-image: linear-gradient(110deg, #fff4d6 66%, #fff4d685), url('/assets/patterns/orange-watercolor-honeycomb-v1.png');
  background-position: right center;
  background-size: cover, 10rem auto;
  background-repeat: no-repeat;
}
