:root {
  --ink: #253c32;
  --green: #284b40;
  --muted: #586a5e;
  --line: #cdd0c4;
  --paper: #f8f7f0;
  --rust: #a4472b;
  --serif: Georgia, "Noto Serif CJK SC", "Songti SC", "STSong", "SimSun", serif;
  color: var(--ink);
  background: var(--paper);
  font:
    16px/1.65 "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #a64e2d;
  outline-offset: 4px;
}
.skip {
  position: fixed;
  top: -5rem;
  left: 1rem;
  background: white;
  z-index: 5;
  padding: 0.6rem;
}
.skip:focus {
  top: 0.5rem;
}
.wrap {
  width: min(1200px, calc(100% - 96px));
  margin-inline: auto;
}
header {
  border-bottom: 1px solid var(--line);
}
.mast,
.foot,
.row,
.sectionhead,
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.mast {
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.brand strong {
  font: 700 1.55rem var(--serif);
  letter-spacing: 0.12em;
}
.brand span {
  font-size: 0.875rem;
  color: var(--muted);
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
nav {
  align-self: stretch;
  display: flex;
  align-items: stretch;
  gap: 30px;
}
nav a {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  padding-top: 3px;
}
nav a[aria-current="page"] {
  border-color: var(--green);
  font-weight: 650;
  color: var(--ink);
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.35;
}
h2 {
  font-size: clamp(1.65rem, 3vw, 2.1rem);
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  align-items: center;
  gap: 5%;
  padding: 44px 0 40px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  font:
    600 0.77rem/1.6 Georgia,
    serif;
  letter-spacing: 0.15em;
  color: var(--rust);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow:before {
  content: "";
  height: 1px;
  width: 30px;
  background: currentColor;
}
.hero h1 {
  font-size: clamp(2.7rem, 4.65vw, 4.25rem);
  line-height: 1.18;
  letter-spacing: 0.035em;
  margin: 17px 0;
}
.hero h1 em {
  font-weight: inherit;
  font-style: normal;
  color: var(--green);
}
.hero p {
  color: var(--muted);
  max-width: 29em;
  line-height: 1.85;
}
.heroactions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 23px;
  flex-wrap: wrap;
}
.small {
  color: var(--muted);
  font-size: 0.86rem;
}
.button,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 5px;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--green);
}
.button {
  background: var(--green);
  color: #fff;
}
.button:hover {
  background: #17392e;
}
.ghost {
  color: var(--ink);
  background: transparent;
  border-color: #aeb6aa;
}
.ghost:hover {
  background: #efefe5;
}
.ico {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.hero figure {
  position: relative;
}
.hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.85;
  object-fit: cover;
  object-position: center;
  border-radius: 5px;
}
.plate {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 6px;
}
.plate:before {
  content: "";
  height: 1px;
  width: 20px;
  background: #9ba594;
}
.library {
  padding: 27px 0 40px;
}
.sectionhead {
  margin-bottom: 18px;
}
.sectionhead h2 {
  font-size: 1.65rem;
}
.sectionhead .small,
.meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fcfbf5;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 22px;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.card:hover {
  border-color: #718377;
  transform: translateY(-2px);
}
.card .topic {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.card .stamp {
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  background: #e2ebe5;
  color: #345e52;
}
.card:nth-child(2) .stamp {
  color: #976c29;
  background: #f4ead3;
}
.card:nth-child(3) .stamp {
  color: #945039;
  background: #f2e2d9;
}
.stamp .ico {
  width: 24px;
  height: 24px;
}
.card h3 {
  font-size: 1.38rem;
  margin: 16px 0 5px;
}
.card p {
  color: var(--muted);
  font-size: 0.94rem;
  flex: 1;
}
.cardfoot {
  border-top: 1px solid #dcdfd4;
  margin-top: 18px;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.84rem;
}
.cardfoot .ico,
.sectionhead .ico {
  width: 16px;
  height: 16px;
}
.foot {
  padding: 19px 0;
  color: var(--muted);
  font-size: 0.82rem;
}
footer {
  border-top: 1px solid var(--line);
}
.foot a {
  text-decoration-thickness: 1px;
}
.page {
  max-width: 820px;
  margin: 38px auto 56px;
}
.page h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin: 9px 0;
}
.back,
.textlink {
  color: var(--green);
  font-size: 0.92rem;
}
.back {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.back .ico {
  width: 16px;
}
.lede {
  color: var(--muted);
  margin: 6px 0 22px;
}
.panel {
  padding: clamp(18px, 3.5vw, 36px);
  margin: 20px 0;
  background: #fcfbf5;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.panel h2 {
  font-size: 1.45rem;
  margin-bottom: 14px;
}
.panel p + p {
  margin-top: 10px;
}
.progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  list-style: none;
  padding: 0;
}
.progress li {
  border-top: 4px solid #d8dbce;
  padding-top: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}
.progress li.on {
  border-color: var(--green);
  color: var(--ink);
}
.progress [aria-current="step"] {
  font-weight: 700;
}
.clue {
  background: #edf0e7;
  border-left: 3px solid #738778;
  padding: 14px 18px;
  margin: 18px 0;
}
.slider-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-weight: 650;
  margin-top: 18px;
}
.slider-label output {
  color: var(--rust);
  font:
    2rem Georgia,
    serif;
}
.range {
  width: 100%;
  accent-color: var(--green);
  margin: 16px 0;
}
.ends {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.8rem;
}
fieldset {
  border: 0;
  margin: 18px 0 0;
  padding: 0;
}
legend {
  font-weight: 650;
}
.option {
  display: flex;
  align-items: baseline;
  gap: 9px;
  border: 1px solid var(--line);
  padding: 11px 14px;
  margin-top: 8px;
  border-radius: 4px;
  cursor: pointer;
}
.option:has(:checked) {
  background: #e9efe6;
  border-color: #738778;
}
.option input {
  accent-color: var(--green);
}
textarea {
  width: 100%;
  border: 1px solid #a3b0a3;
  border-radius: 4px;
  background: #fffefa;
  color: var(--ink);
  padding: 12px;
  resize: vertical;
  margin: 10px 0;
}
.actions {
  margin-top: 20px;
  flex-wrap: wrap;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}
.metric {
  border-top: 2px solid var(--line);
  padding-top: 7px;
}
.metric strong {
  font:
    2rem Georgia,
    serif;
  display: block;
}
.metric span {
  font-size: 0.86rem;
  color: var(--muted);
}
details {
  margin-top: 14px;
}
summary {
  cursor: pointer;
  color: var(--green);
  font-weight: 600;
}
.note {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.journal-list {
  list-style: none;
  padding: 0;
}
.journal-list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.journal-list a {
  display: block;
}
.error,
#notice:not(:empty) {
  color: var(--rust);
  padding-block: 8px;
}
.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.page ol {
  padding-inline-start: 1.5em;
}
.page .progress {
  padding: 0;
}
.guide li {
  margin: 0.6em 0;
}
@media (max-width: 850px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .hero {
    gap: 25px;
  }
  .heroactions {
    gap: 12px;
  }
  .card {
    padding: 16px;
  }
  .grid {
    gap: 10px;
  }
  .card h3 {
    font-size: 1.22rem;
  }
}
@media (max-width: 680px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .mast {
    height: 62px;
    gap: 8px;
  }
  .brand {
    gap: 6px;
  }
  .brand span {
    display: none;
  }
  .brand img {
    width: 29px;
    height: 29px;
  }
  .brand strong {
    font-size: 1.22rem;
  }
  .mast nav {
    gap: 13px;
  }
  .mast nav a {
    font-size: 0.86rem;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 26px 0 23px;
    gap: 22px;
  }
  .hero h1 {
    font-size: 2.7rem;
    margin: 12px 0;
  }
  .hero h1 br {
    display: none;
  }
  .heroactions {
    margin-top: 16px;
  }
  .hero img {
    aspect-ratio: 2.3;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 17px 20px;
  }
  .card h3 {
    margin: 9px 0 4px;
  }
  .cardfoot {
    margin-top: 12px;
  }
  .foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .page {
    margin-top: 24px;
  }
  .metrics {
    gap: 6px;
  }
  .metric strong {
    font-size: 1.6rem;
  }
  .sectionhead {
    gap: 6px;
  }
  .sectionhead .small {
    font-size: 0.79rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
