@font-face {
  font-family: DM Sans;
  src: url(fonts/dm-sans.ttf) format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  --ink: #172c27;
  --green: #173f35;
  --accent: #ddf598;
  --back: #f8f9f5;
  --paper: #fff;
  --muted: #53655d;
  --line: #dce2d8;
  --wide: 1190px;
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--back);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #45843c;
  outline-offset: 4px;
}
.skip {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 4;
  background: white;
  padding: 1rem;
}
.skip:focus {
  top: 1rem;
}
header {
  background: var(--back);
  border-bottom: 1px solid var(--line);
}
.bar,
main,
footer {
  width: min(calc(100% - 80px), var(--wide));
  margin: auto;
}
.bar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  font-size: 27px;
  line-height: 1;
  font-weight: 760;
  letter-spacing: -1.8px;
}
.brand img {
  width: 34px;
  margin-right: 10px;
}
.brand span {
  font-weight: 440;
  margin-left: 4px;
}
nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 580;
}
nav a {
  padding: 7px 0;
}
nav a.on:not(#nav-quiz) {
  box-shadow: inset 0 -2px var(--ink);
}
#nav-quiz {
  border: 1px solid #bbc8ba;
  border-radius: 22px;
  padding: 7px 15px;
}
#nav-quiz span {
  margin-left: 6px;
}
nav a:hover,
.back:hover,
footer a:hover {
  text-decoration: underline;
}
main {
  padding: 31px 0 42px;
  min-height: calc(100vh - 160px);
}
main:focus {
  outline: none;
}
.hero {
  border-radius: 19px;
  isolation: isolate;
  position: relative;
  overflow: hidden;
  background: #103c32;
  color: #f7fbec;
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  min-height: 369px;
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 39px 0 39px 45px;
  align-self: center;
}
.context,
.chapter-id,
.caption,
.card-num,
.step-counter,
.micro {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.025em;
}
.context {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #e0efca;
  font-size: 13px;
}
.context:before {
  content: "";
  width: 7px;
  height: 7px;
  background: #d7f28b;
  border-radius: 50%;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.hero h1 {
  font-size: clamp(56px, 5.8vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.055em;
  font-weight: 530;
  margin: 18px 0;
}
.hero-copy > p {
  max-width: 435px;
  color: #d1e3d6;
  font-size: 16px;
  line-height: 1.5;
}
.button,
.light-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: var(--green);
  color: white;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 19px;
  font-weight: 650;
  font-size: 14px;
  line-height: 1.3;
}
.button:hover {
  background: #285746;
}
.button.bright {
  background: var(--accent);
  color: #1d3827;
}
.button.bright:hover {
  background: #edffba;
}
.hero .button {
  margin-top: 22px;
}
.ico {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}
.hero-graphic {
  position: relative;
  min-width: 0;
  align-self: stretch;
  background: radial-gradient(ellipse at 49% 44%, #2a583c70, transparent 69%);
}
.hero-graphic:before {
  content: "";
  position: absolute;
  inset: 8% 3% 8% 0;
  background-image: radial-gradient(#b6d5a43b 0.8px, transparent 0.8px);
  background-size: 17px 17px;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 20%,
    #000 90%,
    transparent
  );
}
.hero-graphic canvas {
  height: 100%;
  width: 100%;
  display: block;
  position: absolute;
}
.art-caption {
  position: absolute;
  bottom: 21px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #bfd0c3;
}
.art-caption button {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #708d74;
  background: #153d34;
  color: #e8f3de;
  display: grid;
  place-items: center;
}
.art-caption .ico {
  width: 13px;
  height: 13px;
}
.hero-graphic:after {
  content: "+";
  color: #78967e;
  position: absolute;
  top: 24px;
  right: 27px;
  font: 18px monospace;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 36px 0 18px;
  gap: 15px;
}
.section-head h2,
.page-head h1,
.article h1 {
  letter-spacing: -0.055em;
}
.section-head h2 {
  font-size: 32px;
  font-weight: 590;
}
.completion {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.progress-line {
  display: inline-flex;
  gap: 3px;
}
.progress-line i {
  display: block;
  width: 11px;
  height: 5px;
  border-radius: 3px;
  background: #dce2d7;
}
.progress-line i.done {
  background: #477451;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 19px;
}
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  transition:
    border-color 0.18s,
    transform 0.18s;
}
.card:hover {
  border-color: #8fa18f;
  transform: translateY(-3px);
}
.cover {
  position: relative;
  height: 112px;
  border-bottom: 1px solid #192d2012;
}
.cover canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.card-num {
  position: absolute;
  left: 14px;
  top: 13px;
  padding: 3px 8px;
  border-radius: 5px;
  background: #ffffffc9;
  color: #354c42;
  font-size: 11px;
}
.card-copy {
  padding: 16px 18px 19px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-kicker {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 5px;
}
.card h3 {
  font-size: 21px;
  line-height: 1.19;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 9px 0 0;
}
.card-title {
  display: flex;
  gap: 10px;
  align-items: start;
  justify-content: space-between;
}
.card-title .ico {
  margin-top: 3px;
  width: 16px;
}
.back {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  margin: 2px 0 21px;
}
.back .ico {
  width: 15px;
}
.page-head {
  max-width: 740px;
  margin: 9px 0 26px;
}
.page-head h1,
.article h1 {
  font-size: clamp(36px, 4.6vw, 63px);
  line-height: 1.03;
  font-weight: 550;
}
.page-head p,
.intro {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 14px;
}
.reading {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
}
.outline {
  position: sticky;
  top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.outline h2 {
  font-size: 15px;
  margin-bottom: 10px;
}
.outline a {
  display: flex;
  gap: 10px;
  padding: 12px 10px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.25;
}
.outline a.active {
  background: #e5ecd9;
  color: #203b28;
  font-weight: 650;
}
.outline a span {
  font-variant-numeric: tabular-nums;
  color: #5e7160;
}
.article {
  max-width: 790px;
}
.chapter-id {
  color: #507052;
  margin: 1px 0 10px;
}
.lead {
  line-height: 1.65;
  font-size: 17px;
  margin: 22px 0;
}
.lesson {
  margin: 25px 0;
}
.lesson h2,
.case h2,
.lab h2,
.take h2,
.memo-card h2 {
  font-size: 24px;
  letter-spacing: -0.045em;
  font-weight: 630;
  line-height: 1.18;
}
.lesson p,
.case p,
.take li,
.memo-card li,
.source-body p {
  font-size: 16px;
  line-height: 1.65;
  margin-top: 8px;
}
.lab {
  padding: 24px;
  border-radius: 13px;
  background: #e8f0e3;
  border: 1px solid #d3e0cc;
  margin: 25px 0;
}
.lab h2 {
  margin: 5px 0 7px;
}
.lab > p,
.graph-note {
  color: #435d4c;
  font-size: 14px;
  line-height: 1.55;
}
.lab-label,
.case-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 680;
  color: #496946;
}
.lab-label .ico {
  width: 16px;
}
.flow {
  display: flex;
  gap: 6px;
  margin: 17px 0;
  flex-wrap: wrap;
}
.flow button,
.mode button {
  border-radius: 24px;
  background: transparent;
  border: 1px solid #bdcdb9;
  color: var(--green);
  padding: 7px 11px;
  font-size: 13px;
}
.flow button.selected,
.mode button.selected {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.step-panel {
  border-left: 3px solid #669149;
  padding: 2px 0 2px 14px;
  min-height: 61px;
  line-height: 1.5;
}
.step-panel b {
  display: block;
  margin-bottom: 3px;
}
.step-panel p {
  font-size: 15px;
}
.lab-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.light-button {
  background: white;
  color: var(--green);
  border-color: #becbbd;
  padding: 9px 13px;
  gap: 7px;
}
.light-button:hover {
  background: #f2f6eb;
}
.light-button .ico {
  width: 14px;
  height: 14px;
}
.step-counter {
  color: var(--muted);
  font-weight: 500;
}
.case {
  border-top: 1px solid var(--line);
  padding: 21px 0;
}
.case-label {
  margin-bottom: 7px;
}
.take {
  background: #153e34;
  color: #f3f9e9;
  border-radius: 12px;
  padding: 22px 25px;
  margin: 10px 0 16px;
}
.take h2 {
  color: #e1f5b1;
}
.take ul,
.memo-card ul {
  padding-left: 20px;
  margin: 10px 0 0;
}
.take li::marker {
  color: #c4e58a;
}
.reference {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}
.endnav {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 25px;
  flex-wrap: wrap;
}
.endnav .button,
.endnav .light-button {
  padding: 11px 16px;
}
.memo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.memo-card,
.quiz-box,
.source-body {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 24px;
}
.memo-card .chapter-id {
  margin-bottom: 6px;
}
.memo-card a,
.source-body a,
.review-list a {
  display: inline-flex;
  color: #35613d;
  font-weight: 620;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 10px;
}
.source-body {
  max-width: 800px;
}
.source-body h2 {
  margin-top: 22px;
  font-size: 20px;
}
.source-body h2:first-child {
  margin-top: 0;
}
.quiz-box {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(21px, 4vw, 44px);
}
.quiz-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.quiz-meter {
  height: 5px;
  background: #e7ede1;
  border-radius: 9px;
  overflow: hidden;
}
.quiz-meter span {
  height: 100%;
  background: #78985b;
  display: block;
}
.quiz-box h2 {
  font-size: clamp(21px, 3.2vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.035em;
  margin: 25px 0 20px;
}
.choices {
  display: grid;
  gap: 9px;
}
.choices button {
  font-size: 15px;
  text-align: left;
  background: #fbfcf8;
  border: 1px solid var(--line);
  padding: 13px 15px;
  color: var(--ink);
  border-radius: 8px;
  line-height: 1.5;
}
.choices button:not(:disabled):hover {
  border-color: #859d81;
}
.choices .right {
  background: #e5f3d6;
  border-color: #75995a;
}
.choices .wrong {
  background: #faeae2;
  border-color: #be927a;
}
.feedback {
  margin: 18px 0 0;
  line-height: 1.55;
}
.feedback strong {
  display: block;
}
.quiz-box .button {
  margin-top: 19px;
}
.review-list {
  padding-left: 20px;
}
.range-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  font-size: 15px;
}
.range-label output {
  font-weight: 700;
}
.slider {
  accent-color: var(--green);
  width: 100%;
  margin: 10px 0 14px;
}
.mode {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.bars {
  display: grid;
  gap: 9px;
  margin: 10px 0 12px;
}
.barrow {
  display: grid;
  grid-template-columns: minmax(90px, 120px) 1fr 60px;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.track {
  height: 12px;
  background: #d3dfce;
  border-radius: 2px;
  overflow: hidden;
}
.track i {
  display: block;
  height: 100%;
  background: #487655;
  transition: width 0.35s ease;
}
.barrow:nth-child(2) .track i {
  background: #5c7894;
}
.barrow:nth-child(3) .track i {
  background: #9b6847;
}
.barrow strong {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.real-chart {
  margin: 16px 0;
  border: 1px solid var(--line);
  padding: 15px;
  border-radius: 7px;
}
.real-chart figcaption {
  font-weight: 650;
}
.real-chart p {
  font-size: 13px;
  color: var(--muted);
}
.real-chart .barrow {
  grid-template-columns: minmax(90px, 140px) 1fr 65px;
}
.memo-action {
  margin-top: 20px;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 25px 0;
  font-size: 13px;
}
footer span {
  font-weight: 650;
}
button:disabled {
  opacity: 1;
}
.flash {
  animation: step-in 0.3s ease-out;
}
@keyframes step-in {
  from {
    opacity: 0.25;
    transform: translateX(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 1400px) {
  .hero {
    min-height: 407px;
  }
  .cover {
    height: 125px;
  }
}
@media (max-width: 900px) {
  .bar,
  main,
  footer {
    width: calc(100% - 46px);
  }
  .hero {
    grid-template-columns: 1.12fr 1fr;
    min-height: 330px;
  }
  .hero-copy {
    padding: 29px 0 30px 28px;
  }
  .cards {
    gap: 13px;
  }
  .card-copy {
    padding: 13px;
  }
  .card h3 {
    font-size: 19px;
  }
  .reading {
    grid-template-columns: 164px minmax(0, 1fr);
    gap: 22px;
  }
  .outline a {
    padding: 10px 5px;
  }
  .bar {
    height: 65px;
  }
}
@media (max-width: 680px) {
  .bar,
  main,
  footer {
    width: calc(100% - 30px);
  }
  .bar {
    height: 61px;
  }
  .brand {
    font-size: 22px;
  }
  .brand img {
    width: 28px;
    height: 28px;
    margin-right: 6px;
  }
  nav {
    gap: 14px;
    font-size: 13px;
  }
  #nav-quiz {
    padding: 5px 10px;
  }
  #nav-quiz span {
    display: none;
  }
  main {
    padding-top: 17px;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-copy {
    padding: 25px 24px 4px;
  }
  .hero-copy > p {
    font-size: 15px;
    max-width: 390px;
  }
  .hero h1 {
    font-size: clamp(44px, 11vw, 63px);
    margin: 16px 0 11px;
  }
  .hero .button {
    margin-top: 15px;
  }
  .hero-graphic {
    height: 185px;
  }
  .art-caption {
    bottom: 12px;
    right: 15px;
  }
  .hero-graphic:after {
    top: 8px;
    right: 20px;
  }
  .section-head {
    margin: 25px 0 14px;
    align-items: center;
  }
  .section-head h2 {
    font-size: 26px;
  }
  .completion {
    font-size: 12px;
    gap: 5px;
  }
  .progress-line i {
    width: 5px;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .card h3 {
    font-size: 17px;
  }
  .card p {
    font-size: 13px;
  }
  .cover {
    height: 90px;
  }
  .card-num {
    top: 7px;
    left: 7px;
  }
  .card-title .ico {
    display: none;
  }
  .reading {
    display: block;
  }
  .outline {
    display: none;
  }
  .lab,
  .take,
  .memo-card,
  .source-body {
    padding: 17px;
  }
  .memo-grid {
    grid-template-columns: 1fr;
  }
  .article h1,
  .page-head h1 {
    font-size: 39px;
  }
  .lead,
  .intro {
    font-size: 16px;
  }
  .lesson h2,
  .case h2,
  .lab h2,
  .take h2 {
    font-size: 22px;
  }
  .back {
    margin-bottom: 16px;
  }
  .barrow {
    grid-template-columns: 83px 1fr 52px;
  }
  .step-panel {
    min-height: 90px;
  }
}
@media (max-width: 410px) {
  .bar,
  main,
  footer {
    width: calc(100% - 24px);
  }
  nav {
    gap: 10px;
  }
  .card h3 {
    font-size: 16px;
  }
  .card-copy {
    padding: 11px;
  }
  .card p {
    line-height: 1.4;
  }
  .cover {
    height: 80px;
  }
  .completion .progress-line {
    display: none;
  }
  .hero-copy {
    padding-left: 20px;
  }
  .art-caption {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  header,
  footer,
  .back,
  .outline,
  .endnav,
  .memo-action,
  .memo-card a,
  .lab-actions,
  .art-caption {
    display: none;
  }
  main {
    width: 100%;
    padding: 0;
  }
  .reading {
    display: block;
  }
  .memo-grid {
    display: block;
  }
  .memo-card,
  .take,
  .lab {
    break-inside: avoid;
    margin: 10px 0;
  }
  .memo-card {
    padding: 10px 16px;
  }
  .memo-card h2 {
    font-size: 18px;
  }
  .memo-card li {
    font-size: 12px;
  }
  .take {
    color: black;
    background: white;
  }
  .take h2 {
    color: black;
  }
}

.tp-method {
  padding: 24px;
  background: #e8f0e3;
  border-radius: 12px;
}
.tp-method h2, .tp-question h2 {
  margin: 0;
  font-size: clamp(21px, 2.1vw, 26px);
  letter-spacing: -.035em;
  line-height: 1.25;
}
.tp-method ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  list-style-position: inside;
  margin: 16px 0 0;
  padding: 0;
}
.tp-method li, .tp-question p, .tp-instructions {line-height: 1.6;}
.tp-index {display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px;}
.tp-index a {
  display:flex; flex-direction:column; padding:20px; border:1px solid var(--line);
  border-radius:10px; background:var(--paper);
}
.tp-index a:hover {border-color:#8fa18f;}
.tp-index h3 {font-size:21px; line-height:1.2; letter-spacing:-.035em;}
.tp-index p {font-size:15px; color:var(--muted); margin:8px 0 18px; line-height:1.45;}
.tp-index a > span {display:flex; align-items:center; gap:10px; font-size:14px; font-weight:630; margin-top:auto;}
.tp-source {margin:12px 0 18px;}
.tp-instructions {color:var(--muted); margin-bottom:25px;}
.tp-question {border-top:1px solid var(--line); padding:23px 0 18px;}
.tp-question h2 {margin:8px 0 14px;}
.tp-question details {border-radius:7px; margin:6px 0; background:#edf1e9;}
.tp-question summary {padding:10px 14px; cursor:pointer; font-weight:600; font-size:15px;}
.tp-question summary::marker {color:var(--muted);}
.tp-question details > p {padding:0 15px 14px;}
.tp-question .tp-answer {background:#e2edd9;}
.tp-question label {display:block; margin:2px 14px 6px; font-size:14px;}
.tp-question textarea {
  display:block; width:calc(100% - 28px); margin:0 14px; padding:10px;
  border:1px solid #9daf97; border-radius:6px; background:white;
  font:inherit; color:var(--ink); resize:vertical;
}
.tp-question textarea:focus-visible {outline:2px solid var(--green); outline-offset:2px;}
.tp-question details:has(textarea)[open] {padding-bottom:14px;}
@media(max-width:800px) {
  .tp-method ol {grid-template-columns:1fr; gap:8px;}
  .tp-index {grid-template-columns:repeat(2,1fr);}
}
@media(max-width:520px) {
  .tp-index {grid-template-columns:1fr;}
  .tp-index a,.tp-method {padding:16px;}
}
