@font-face {
  font-family: Jua;
  src: url(/assets/jua.woff2) format("woff2");
  font-display: swap;
}
:root {
  font-family:
    system-ui,
    -apple-system,
    "Malgun Gothic",
    sans-serif;
  color: #463c32;
  background: #fff9ed;
  --ink: #463c32;
  --line: #cdbca0;
  --leaf: #23564c;
  --round: Jua, system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
  background: radial-gradient(#93765125 0.8px, transparent 1px) 0 0/12px 12px;
}
button,
select,
a,
textarea {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #16766b;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
button,
.brand,
.back,
.action,
.tag {
  font-family: var(--round);
  font-weight: 400;
}
h1 {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
}
h2 {
  font-size: 26px;
}
h3 {
  font-size: 21px;
}
p {
  line-height: 1.55;
  word-break: keep-all;
}
button,
.action {
  min-height: 44px;
  border: 1.5px solid #685444;
  border-radius: 10px;
  background: #fffdf4;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 17px;
}
.primary {
  background: #285749;
  color: white;
  border-color: #234538;
}
.quiet {
  border: 0;
  text-decoration: underline;
  background: transparent;
}
.bar {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 max(14px, calc((100vw - 1120px) / 2));
  background: #fffaef;
  border-bottom: 1px solid var(--line);
}
.bar > div {
  display: flex;
  gap: 13px;
  align-items: center;
}
.bar a {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.brand {
  font-size: 23px;
}
.back,
#notebook {
  font-size: 15px;
}
.back {
  color: #675c4e;
}
.bar #notebook {
  text-decoration: underline;
  text-underline-offset: 4px;
}
main {
  width: min(1080px, calc(100% - 28px));
  margin: 20px auto 42px;
}
.paper,
.hero,
.mission,
.recap {
  border: 1.5px solid #8f7a65;
  border-radius: 16px;
  background: #fffdf6;
  box-shadow: 0 3px 0 #b8a38554;
}
.hero {
  padding: clamp(20px, 3vw, 35px);
  background: #e9efdc;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}
.hero img {
  width: clamp(88px, 13vw, 150px);
  max-height: 150px;
  object-fit: contain;
}
.hero p {
  margin: 0.55em 0 1em;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.filters label {
  display: flex;
  gap: 6px;
  align-items: center;
  font-weight: 650;
  font-size: 14px;
}
.filters select {
  min-height: 44px;
  border-radius: 9px;
  background: #fffdf4;
  color: var(--ink);
  border: 1px solid #978671;
  padding: 5px 9px;
}
.mission {
  margin: 14px 0 22px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.tag {
  color: #70543d;
  font-size: 14px;
}
.mission h2 {
  margin: 4px 0;
}
.mission p,
.sub {
  font-size: 14px;
  color: #675c4d;
}
.mission .action {
  flex: none;
}
.headrow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 14px 0 8px;
}
.lessons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(184px, 1fr));
  gap: 9px;
}
.lesson {
  border: 1px solid #ae9980;
  border-radius: 12px;
  background: #fffdf6;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  align-items: stretch;
  padding: 0;
  gap: 0;
}
.lesson:hover,
.option:hover:enabled {
  border-color: #3a6756;
}
.lesson .art {
  background: var(--tone);
  height: 80px;
  display: grid;
  place-items: center;
}
.art img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}
.lesson .words {
  padding: 10px;
  display: grid;
  gap: 5px;
}
.lesson .words strong {
  font-weight: 400;
}
.lesson small,
.step,
.place,
.meta {
  font:
    13px system-ui,
    sans-serif;
  color: #665b4b;
}
.meta {
  line-height: 1.5;
  margin-top: 14px;
}
.note {
  border-left: 4px solid #b98c43;
  padding: 9px 12px;
  background: #fff2d4;
  border-radius: 3px;
  margin: 12px 0;
}
.note:empty {
  display: none;
}
.work {
  max-width: 750px;
  margin: auto;
}
.paper,
.recap {
  padding: clamp(17px, 3vw, 30px);
}
.trail {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 10px 0 15px;
  list-style: none;
  padding: 0;
}
.trail li {
  padding: 5px 9px;
  background: #f1e8d7;
  font-size: 13px;
  border-radius: 6px;
}
.trail [aria-current] {
  background: #d4e7d1;
  color: #254f40;
  font-weight: 700;
}
.passage {
  margin: 15px 0;
  padding: 16px 18px;
  border-left: 4px solid #d7a760;
  background: #f8f0db;
  border-radius: 3px;
  font-size: 17px;
  line-height: 1.65;
}
.ask {
  font-size: clamp(21px, 3vw, 28px);
  margin: 12px 0;
}
.answers {
  display: grid;
  gap: 7px;
}
.option {
  justify-content: flex-start;
  text-align: left;
  font:
    600 16px system-ui,
    sans-serif;
  padding: 10px 13px;
}
.option:disabled {
  opacity: 0.62;
}
.controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}
.correct {
  background: #dfefd9;
}
.field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 11px;
  align-items: start;
}
.frame {
  width: 100%;
  height: calc(100dvh - 96px);
  min-height: 360px;
  border: 1.5px solid #8e7a67;
  background: #fff9ed;
  border-radius: 12px;
}
.field .paper {
  padding: 14px;
}
.field h2 {
  font-size: 21px;
}
.field p {
  margin: 8px 0;
}
.field button {
  min-height: 42px;
}
.field .primary {
  width: 100%;
}
.field details summary {
  cursor: pointer;
  padding: 6px 0;
  color: var(--leaf);
}
textarea {
  width: 100%;
  border-radius: 10px;
  min-height: 94px;
  resize: vertical;
  border: 1px solid #95816c;
  padding: 10px;
  background: #fffef9;
  color: var(--ink);
}
.detail {
  margin: 9px 0;
  padding: 10px;
  border: 1px solid #d9c8af;
  border-radius: 10px;
}
.detail summary {
  min-height: 38px;
  cursor: pointer;
}
.detail p {
  margin: 5px 0;
  font-size: 14px;
}
.writing {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.report-list {
  padding: 0;
  list-style: none;
}
.report-list li {
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.warn {
  color: #7f371c;
}
.only-print {
  display: none;
}
@media (max-width: 740px) {
  .field {
    display: flex;
    flex-direction: column-reverse;
    gap: 6px;
  }
  .field > .paper {
    width: 100%;
    padding: 7px 10px;
  }
  .field .tag {
    display: none;
  }
  .field h2 {
    font: 16px var(--round);
  }
  .field p {
    font-size: 13px;
    line-height: 1.35;
    margin: 3px 0;
  }
  .field .primary {
    width: auto;
    min-height: 35px;
    font-size: 15px;
  }
  .field details summary {
    font-size: 13px;
  }
  .frame {
    height: calc(100dvh - 180px);
    min-height: 320px;
  }
  .fieldpage {
    width: calc(100% - 12px);
    margin: 5px auto 12px;
  }
  .lessons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mission {
    flex-wrap: wrap;
  }
}
@media (max-width: 460px) {
  main {
    margin-top: 12px;
  }
  .hero {
    grid-template-columns: 1fr 57px;
    padding: 15px;
  }
  .hero img {
    width: 57px;
  }
  .filters {
    gap: 5px;
  }
  .filters label {
    font-size: 12px;
  }
  .hero p {
    font-size: 14px;
  }
  .art img {
    height: 52px;
  }
  .lesson .art {
    height: 59px;
  }
  .brand {
    font-size: 19px;
  }
  .bar {
    height: 48px;
  }
  .bar > div {
    gap: 8px;
  }
  .mission {
    padding: 13px;
  }
  .field h2 {
    font-size: 15px;
  }
}
@media (max-height: 520px) and (orientation: landscape) {
  .bar {
    height: 42px;
  }
  .field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px;
  }
  .fieldpage {
    width: calc(100% - 10px);
    margin: 2px auto;
  }
  .frame {
    height: calc(100dvh - 48px);
    min-height: 245px;
  }
  .field > .paper {
    padding: 8px;
  }
}
@media print {
  body {
    background: white;
  }
  .bar,
  .no-print,
  .controls,
  .filters {
    display: none !important;
  }
  main {
    width: 100%;
    margin: 0;
  }
  .recap,
  .paper {
    box-shadow: none;
    border: 0;
    padding: 0;
  }
  .only-print {
    display: block;
  }
  .detail {
    break-inside: avoid;
  }
  .detail p,
  .detail > * {
    display: block;
  }
  .headrow {
    margin-top: 18px;
  }
}
[hidden] {
  display: none !important;
}
