:root {
  --background: #f6f7f0;
  --paper: #fffef9;
  --ink: #192820;
  --quiet: #4e6056;
  --green: #234f3d;
  --deep-green: #193c2e;
  --line: #cdd9ce;
  --soft: #e6eee3;
  --lime: #e6f2b5;
  color: var(--ink);
  background: var(--background);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color-scheme: light;
  line-height: 1.65;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.25; }
a { color: var(--green); text-underline-offset: .23em; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #947245; outline-offset: 4px; }
.wrap { width: min(100% - 48px, 840px); margin-inline: auto; }
.skip {
  position: absolute;
  z-index: 10;
  top: .55rem;
  left: .55rem;
  transform: translateY(-160%);
  padding: .5rem .8rem;
  background: var(--paper);
  border: 1px solid var(--line);
}
.skip:focus { transform: translateY(0); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}
.brand img { flex-shrink: 0; }
.header-link { font-size: .92rem; }
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  padding-block: 1.3rem 2.1rem;
  font-size: .87rem;
}
.site-footer a { color: var(--quiet); text-decoration: none; }

.home { padding-top: clamp(2.3rem, 6.2vw, 4.6rem); }
.introduction h1, .lesson-intro h1, .reading > h1 {
  font-size: clamp(2.25rem, 6vw, 4.15rem);
  letter-spacing: -.045em;
}
.introduction p, .lesson-intro > p:last-child {
  margin-top: .65rem;
  color: var(--quiet);
  font-size: clamp(1rem, 2.5vw, 1.13rem);
}
.progress-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.4rem;
  align-items: center;
  margin-top: 1.7rem;
  padding: 1.5rem 1.7rem;
  border-radius: 15px;
  color: #f7fae9;
  background: var(--deep-green);
}
.progress-label { display: flex; justify-content: space-between; align-items: baseline; gap: .65rem; }
.progress-label h2 { font-size: 1.08rem; }
.progress-label p {
  color: #f1f6da;
  font-variant-numeric: tabular-nums;
  font-size: .92rem;
}
progress {
  display: block;
  width: 100%;
  height: .62rem;
  margin: .57rem 0 .43rem;
  appearance: none;
  overflow: hidden;
  color: var(--lime);
  border: 0;
  border-radius: 12px;
  background: #456757;
}
progress::-webkit-progress-bar { background: #456757; }
progress::-webkit-progress-value { background: var(--lime); border-radius: 12px; }
progress::-moz-progress-bar { background: var(--lime); border-radius: 12px; }
.progress-help { color: #dce9d5; font-size: .86rem; }
.button {
  display: inline-flex;
  min-height: 44px;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: .6rem 1rem;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 720;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}
.button-accent { color: var(--deep-green); background: var(--lime); }
.button-accent:hover { background: #f0f8cb; }
.button-primary { color: #fff; background: var(--green); }
.button-primary:hover { background: var(--deep-green); }
.button-outline { color: var(--green); border-color: #91ab9c; background: var(--paper); }
.button-outline:hover { background: var(--soft); }

.route { margin-top: 2.45rem; scroll-margin-top: 1rem; }
.route > h2, .practice-card h2 { font-size: 1.44rem; letter-spacing: -.02em; }
.timeline { margin: .5rem 0 0; padding: 0; list-style: none; isolation: isolate; }
.step { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); }
.step:not(:last-child)::after {
  position: absolute;
  top: 32px;
  bottom: -27px;
  left: 24px;
  z-index: -1;
  width: 2px;
  content: "";
  background: #bfcfc3;
}
.check-node { display: grid; width: 48px; height: 48px; margin-top: 7px; place-items: center; }
.check-node:has(input:not([hidden])) { cursor: pointer; }
.check-node input {
  width: 25px;
  height: 25px;
  margin: 0;
  accent-color: var(--green);
  cursor: pointer;
}
.static-node {
  width: 14px;
  height: 14px;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: var(--background);
}
.step-content { padding: .82rem .15rem .95rem .65rem; border-bottom: 1px solid var(--line); }
.step:last-child .step-content { border-bottom: 0; }
.step-meta { display: flex; align-items: center; gap: .55rem; color: var(--quiet); font-size: .84rem; }
.next-label { padding: .06rem .46rem; border-radius: 4px; color: var(--green); background: var(--soft); font-weight: 720; }
.step h3 { margin-top: .2rem; font-size: clamp(1.13rem, 3.1vw, 1.43rem); letter-spacing: -.016em; }
.step h3 a { color: var(--ink); text-decoration: none; }
.step.is-read h3 a { color: var(--green); }
.step h3 a:hover { color: var(--green); text-decoration: underline; }
.step-content > p { margin-top: .3rem; color: var(--quiet); }
.practice-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
  padding: 1.25rem 1.55rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}
.practice-card p { margin-top: .4rem; color: var(--quiet); }
.reading { max-width: 700px; margin: clamp(2.2rem, 6vw, 4rem) auto 0; }
.lesson-intro { margin-bottom: 1.9rem; }
.lesson-intro h1 { margin-top: .3rem; font-size: clamp(2.1rem, 5.6vw, 3.35rem); }
.ordinal { color: var(--green); font-size: .88rem; font-weight: 740; }
.lesson-section, .takeaway, .sources, .lesson-actions { margin-top: 1.6rem; }
.lesson-section h2, .takeaway h2 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
.lesson-section p + p, .lesson-section h2 + p, .takeaway p { margin-top: .55rem; }
.lesson-section li + li { margin-top: .33rem; }
.lesson-section ul { padding-inline-start: 1.33rem; }
.lesson-section figure { margin-top: 1rem; }
.lesson-section figure img { width: 100%; height: auto; border-radius: 8px; }
figcaption { padding-top: .35rem; color: var(--quiet); font-size: .91rem; }
.takeaway { padding: 1rem 1.15rem; border-inline-start: 4px solid var(--green); background: var(--soft); }
details { padding: .65rem .85rem; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
summary { color: var(--green); cursor: pointer; font-weight: 700; }
details ul { padding-inline-start: 1.15rem; }
details li + li { margin-top: .35rem; }
.sources a { overflow-wrap: anywhere; }
.lesson-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.lesson-actions button[aria-pressed="true"] { color: var(--deep-green); border-color: #9bb5a5; background: var(--soft); }
.lesson-actions p:not(.sr-only) { width: 100%; color: var(--quiet); }
.lesson-navigation { display: flex; flex-wrap: wrap; gap: .45rem 1rem; margin-top: 1.1rem; }
.scenario { margin: 1rem 0; padding: .95rem 1.1rem; border: 1px solid var(--line); background: var(--soft); font-size: 1.06rem; }
.scenario cite { display: block; margin-top: .3rem; color: var(--quiet); font-size: .86rem; font-style: normal; }
.practice-task details { margin-block: .55rem; }
.practice-task details p { margin-top: .55rem; }
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 60px; }
  .brand img { width: 28px; height: 28px; }
  .header-link { font-size: .84rem; }
  .progress-panel { grid-template-columns: 1fr; padding: 1.12rem; gap: .82rem; }
  .progress-label { gap: .4rem; }
  .route { margin-top: 1.75rem; }
  .step { grid-template-columns: 43px minmax(0, 1fr); }
  .step:not(:last-child)::after { left: 21px; }
  .check-node { width: 43px; }
  .step-content { padding-inline-start: .4rem; }
  .practice-card { padding: 1.1rem; }
}
