:root {
  color-scheme: light;
  --ink: #193b2c;
  --paper: #f6f5ec;
  --muted: #4c6355;
  --line: #d1d9ca;
  --soft-green: #e7eddf;
  --white: #fffef8;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.5 Avenir, "Helvetica Neue", Arial, sans-serif;
}
button, textarea { font: inherit; color: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #926125;
  outline-offset: 3px;
}
button:disabled { cursor: default; opacity: .54; }
[hidden] { display: none !important; }

.mast { background: #183b2d; color: var(--white); }
.mast-inner {
  max-width: 67.5rem;
  min-height: 60px;
  margin: auto;
  padding: 6px clamp(14px, 4vw, 34px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
}
.brand {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  color: inherit;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .055em;
}
.brand small {
  display: block;
  margin-bottom: 4px;
  color: #cedbc8;
  font-size: .67rem;
  letter-spacing: .15em;
}
.nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 8px;
  border: 0;
  border-bottom: 1px solid #809587;
  background: transparent;
  color: inherit;
  font-size: .875rem;
}
.play-icon {
  flex: none;
  border-block: 4px solid transparent;
  border-left: 6px solid currentColor;
}

main {
  max-width: 64.5rem;
  margin: auto;
  padding: clamp(14px, 3vw, 34px) clamp(14px, 4vw, 32px) 18px;
}
h1, h2, p, figure { margin: 0; }
h1, h2 { font-family: Georgia, serif; line-height: 1.12; }
h1 { font-size: clamp(1.85rem, 5.8vw, 3rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
.eyebrow {
  color: var(--muted);
  font-size: .875rem;
  font-weight: 750;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.mission-meta { color: var(--muted); font-size: .9rem; }

.hero { display: grid; gap: 16px; }
.hero h1 { margin: 4px 0; }
.hero .cardline { padding: 0; }
.hero .tools { margin-top: 2px; }
.hero .mission-actions {
  display: grid;
  width: 100%;
  max-width: 34rem;
  margin: 0;
}

.specimens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 16px);
  width: 100%;
  max-width: 34rem;
}
.specimens img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid #cbd4c1;
  border-radius: 5px;
  background: var(--soft-green);
}
figcaption {
  padding: 3px 1px 0;
  text-align: center;
  font-size: .875rem;
  font-weight: 750;
}

.lesson { max-width: 46rem; margin: auto; }
.lesson h1, .watch h1 { margin: 4px 0 10px; }
progress {
  display: block;
  width: 100%;
  height: 5px;
  margin-bottom: 12px;
  appearance: none;
  border: 0;
  border-radius: 10px;
  background: #e0e6d7;
  color: #53744a;
}
progress::-webkit-progress-bar { background: #e0e6d7; border-radius: 10px; }
progress::-webkit-progress-value { background: #53744a; border-radius: 10px; }
.lesson .specimens { margin: 0 0 8px; }

.cardline { padding: 4px 0 8px; }
.cardline + .cardline, .answer-row + .answer-row { border-top: 1px solid var(--line); }
.line { font-size: clamp(1.125rem, 2.7vw, 1.35rem); line-height: 1.45; font-weight: 650; }
.word {
  min-height: 44px;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  font: inherit;
  vertical-align: baseline;
  text-align: start;
  text-decoration: underline dotted #778879 1px;
  text-underline-offset: .19em;
}
@media (hover: hover) { .word:hover { background: var(--soft-green); } }
.word[aria-expanded=true] { background: var(--soft-green); }
.tools, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tools { margin-top: 3px; }
.actions { margin-top: 10px; }
.pill, .primary, .secondary, .choice, .watch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 5px 12px;
  border: 1px solid #aebdac;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}
.primary, .watch-link {
  padding-inline: 18px;
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}
.pill { font-size: .875rem; }
.speaker { width: 17px; height: 17px; flex: none; }
.translation, .hint {
  margin-top: 6px;
  padding: 6px 10px;
  border-left: 2px solid #829b7f;
  background: var(--soft-green);
  line-height: 1.85;
}
.hint { border-color: #a58b59; background: #f1ebda; }
.answer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
}
.answer-row .choice { margin-top: 4px; }
.choice[aria-pressed=true] { border-color: var(--ink); background: var(--soft-green); }
.feedback { margin-top: 8px; font-weight: 750; }
.sheet { margin: 8px 0; padding: 8px 0; border-top: 1px solid var(--line); }
textarea {
  display: block;
  width: 100%;
  min-height: 94px;
  margin: 5px 0;
  padding: 8px;
  border: 1px solid #a4b29c;
  border-radius: 6px;
  background: var(--white);
  font-size: 1rem;
}
.lesson label { cursor: pointer; }
#oral { width: 1.2em; height: 1.2em; vertical-align: middle; accent-color: var(--ink); }
.sheet summary { min-height: 44px; padding: 8px 0; cursor: pointer; font-weight: 750; }
.sheet dt { font-weight: 750; }
.sheet dd { margin: 0 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; }

.gloss {
  position: fixed;
  z-index: 5;
  width: min(26rem, calc(100% - 24px));
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  box-shadow: 0 5px 18px #10271a40;
}
.gloss .pill { color: white; }
.gloss p { margin: 3px 0; }
.status {
  position: fixed;
  z-index: 6;
  left: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  max-width: calc(100% - 24px);
  padding: 8px 14px;
  border-radius: 6px;
  background: #f1ebda;
}
.video-card {
  display: grid;
  gap: 12px;
  padding: 12px 0;
  border-block: 1px solid var(--line);
}
.video-card + .video-card { border-top: 0; }
.video-art { background: var(--soft-green); aspect-ratio: 16/9; align-self: start; }
.video-art img, .video-art iframe { width: 100%; height: 100%; display: block; object-fit: cover; border: 0; }
.video-copy h2 { margin: 4px 0; }
.video-copy p + p { margin-top: 4px; }
@media (min-width: 43rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: center;
    column-gap: clamp(20px, 4vw, 44px);
  }
  .hero .mission-actions { grid-column: 2; }
  .hero h1 { font-size: clamp(1.85rem, 4.2vw, 2.75rem); }
  .video-card { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 20px; }
}
