:root {
  color-scheme: light;
  --ink: #1a3b33;
  --muted: #456059;
  --paper: #f6f4ec;
  --line: #d6dfd3;
  --gold: #f9d97b;
  --green: #164c3e;
  --mint: #e5f1e5;
  font: 100%/1.55 system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #00629a; outline-offset: 4px; }
.wrap { width: min(70rem, calc(100% - 2.5rem)); margin-inline: auto; }
.skip { position: absolute; top: .6rem; left: .6rem; transform: translateY(-180%); background: white; padding: .65rem; z-index: 2; }
.skip:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); background: #fffef8; }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: .6rem; min-height: 4rem; }
.brand { font-weight: 850; text-decoration: none; letter-spacing: .11em; }
.back { font-size: .9rem; font-weight: 650; white-space: nowrap; }

.hero { margin-block: 1.8rem 1.1rem; display: grid; grid-template-columns: 1.15fr 1fr; min-height: 24rem; overflow: hidden; border-radius: 1.5rem; background: #173d35; color: white; }
.hero-copy { padding: clamp(1.45rem, 5vw, 4rem); align-self: center; }
.eyebrow { color: #426a53; font-size: .76rem; font-weight: 800; letter-spacing: .11em; }
.hero .eyebrow { color: #cde6bd; }
.hero h1 { margin: .5rem 0 .75rem; font-family: Georgia, serif; font-size: clamp(2.65rem, 6.4vw, 5rem); letter-spacing: -.045em; line-height: 1; }
.hero-copy > p:not(.eyebrow) { max-width: 36ch; color: #e0eee4; font-size: 1.05rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; margin-top: 1.15rem; }
.button { display: inline-flex; gap: .45rem; align-items: center; justify-content: center; min-height: 2.85rem; padding: .6rem 1rem; border: 1px solid #b8cec0; border-radius: .8rem; color: var(--ink); background: #fff; font-weight: 750; text-decoration: none; }
.button:hover { background: #edf6ed; }
.primary { background: var(--green); border-color: var(--green); color: white; }
.primary:hover { background: #225f4f; }
.hero .primary { background: var(--gold); border-color: var(--gold); color: #253026; }
.hero .primary:hover { background: #ffe49b; }
.hero a:focus-visible { outline-color: #ffecb7; }
.text-link { font-size: .9rem; font-weight: 700; }
.hero-photo { position: relative; min-width: 0; overflow: hidden; }
.hero-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.hero-photo figcaption { position: absolute; right: .8rem; bottom: .8rem; padding: .25rem .65rem; border-radius: .45rem; background: #173d35; color: white; font-size: .8rem; }

.trail { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.45rem; }
.trail a { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.65rem; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: .65rem; background: #fffef8; text-decoration: none; font-weight: 700; font-size: .88rem; }
.trail a:hover { background: var(--mint); }
.trail span { color: #3f6a54; font-size: .75rem; font-variant-numeric: tabular-nums; }

.activity { margin-block: 1rem; padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 1.25rem; background: #fffef9; scroll-margin-top: 1rem; }
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: .65rem; }
h2 { margin: .12rem 0 .25rem; font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.12; letter-spacing: -.035em; }
h3 { font-size: 1.12rem; line-height: 1.25; }
.prompt { margin: .4rem 0 1rem; font-weight: 650; }
.small { color: var(--muted); font-size: .88rem; }
.notice { background: var(--mint); padding: 1rem; border-radius: .7rem; }
.listen { color: #18463b; background: var(--mint); flex-shrink: 0; }
.listen[aria-pressed="true"] { background: #c9e7cf; }
.choices { display: grid; gap: .65rem; min-width: 0; }
.choices.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 49rem; }
.choices.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice { display: grid; align-content: start; gap: .5rem; min-width: 0; padding: .35rem .35rem .55rem; border: 2px solid var(--line); border-radius: .8rem; background: #fff; color: var(--ink); font-weight: 780; }
.choice:hover { border-color: #578a71; }
.choice img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .5rem; background: #e8e7da; }
.choice.correct { border-color: #17704e; background: #e4f4e2; }
.choice.try-again { border-color: #a2671c; background: #fff2ce; }
.choice[aria-disabled="true"] { cursor: default; }
.activity-bar { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: .6rem; min-height: 2.9rem; margin-top: .65rem; }
.feedback { color: #164c3e; font-weight: 720; min-height: 1.4em; }
.match-layout { display: grid; grid-template-columns: minmax(9rem, .75fr) minmax(0, 2fr); gap: .8rem; align-items: start; }
.detail-photo { padding: .4rem; border-radius: .75rem; background: var(--mint); }
.detail-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .5rem; }
.detail-photo figcaption { padding: .25rem .3rem; font-weight: 720; }

.journal { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: 1.2rem; margin-top: .9rem; }
.journal label, .drawing-label { display: block; font-weight: 720; margin: .3rem 0; }
.journal select, .journal textarea, .journal input { width: 100%; padding: .55rem; border: 1px solid #b8cec0; border-radius: .55rem; margin-bottom: .4rem; background: #fff; color: var(--ink); }
.journal textarea { resize: vertical; }
.journal canvas, .journal img { width: 100%; height: auto; aspect-ratio: 18 / 11; border: 2px dashed #9db9a8; border-radius: .7rem; background: #fff; }
.journal canvas { display: block; touch-action: none; cursor: crosshair; }
.journal img { object-fit: contain; }
.journal .feedback { margin-top: .6rem; }
.color-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 1rem; align-items: start; margin-top: .85rem; }
.color-layout video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #193b30; object-fit: contain; border-radius: .8rem; }
.color-panel { padding: .85rem; border-radius: .8rem; background: var(--mint); }
.kubimi { width: 5.8rem; height: 5.8rem; object-fit: contain; margin: 0 auto .3rem; border-radius: .75rem; background: white; }
.swatches { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; margin: .65rem 0 .4rem; }
.swatch { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2.8rem; padding: .35rem .25rem; border-radius: .65rem; border: 1px solid #a8bfad; background: white; color: var(--ink); font-weight: 740; }
.swatch[aria-pressed="true"] { border-color: #166b46; background: #cbe6ce; }
.swatch span { width: .9rem; height: .9rem; border: 1px solid #0004; border-radius: 50%; }
.red { background: #d8373d; } .yellow { background: #f4ca43; } .blue { background: #387cdb; } .purple { background: #8f52a2; }
.task { background: #edf4e7; }
.checklist { display: grid; gap: .42rem; margin-bottom: .55rem; }
.checklist label { display: flex; gap: .65rem; align-items: center; min-height: 2.65rem; padding: .4rem .65rem; border-radius: .55rem; background: #fffdf7; font-weight: 650; cursor: pointer; }
.checklist input { width: 1.25rem; height: 1.25rem; accent-color: #245b43; flex-shrink: 0; }
.tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin-top: .75rem; }
.tips p { margin-top: .35rem; color: var(--muted); }
.footer { display: flex; flex-wrap: wrap; gap: .55rem 1rem; margin-top: 1.7rem; border-top: 1px solid var(--line); padding-block: 1rem 1.5rem; font-size: .86rem; color: var(--muted); }
.footer span { margin-right: auto; }
@media (max-width: 45rem) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { min-height: 13rem; }
  .match-layout, .journal, .color-layout, .tips { grid-template-columns: 1fr; }
  .detail-photo { max-width: 17rem; }
}
@media (max-width: 24rem) {
  .wrap { width: calc(100% - 1.2rem); }
  .choices.three { gap: .35rem; }
  .choices.three .choice { font-size: .78rem; }
  .button { padding-inline: .65rem; }
}
.audio-notice {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  max-width: min(24rem, calc(100vw - 2rem));
  padding: .7rem 1rem;
  border: 1px solid #9caf9d;
  border-radius: .7rem;
  background: #fffef8;
  color: var(--ink);
  font-size: .88rem;
  box-shadow: 0 .15rem .75rem #173d3525;
}
.audio-notice:empty { display: none; }
