:root {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #1e2430;
  background: #f6f7f4;
  font-synthesis: none;
  line-height: 1.65;
}

* { box-sizing: border-box; }
body { margin: 0; }
.theme-lavender { --accent: #5440aa; --soft: #e6e0ff; --dark: #261c48; }
.theme-blue { --accent: #22528d; --soft: #d7e8fc; --dark: #172c44; }
.theme-cyan { --accent: #08646a; --soft: #cff0ec; --dark: #123635; }
.theme-plum { --accent: #7a407b; --soft: #f0ddf0; --dark: #422744; }
.theme-green { --accent: #355d31; --soft: #dcead1; --dark: #233c22; }
.theme-amber { --accent: #825109; --soft: #f5e7c8; --dark: #41311d; }
.theme-coral { --accent: #a1473d; --soft: #fae0d6; --dark: #4c302c; }
.shell { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
a { color: var(--accent, #22528d); text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
button { font: inherit; }
.skip { position: absolute; top: -4rem; left: 1rem; padding: .75rem; background: white; }
.skip:focus { top: .5rem; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  padding-block: 1.15rem; border-bottom: 1px solid #dce1da; }
.brand { display: flex; gap: .75rem; align-items: center; min-width: 0; }
.brand b, .brand small { display: block; }
.brand b { color: var(--dark); font-size: .99rem; line-height: 1.3; }
.brand small { color: #505968; font-size: .73rem; margin-top: .15rem; }
.monogram { display: grid; place-items: center; width: 2.4rem; aspect-ratio: 1;
  flex: 0 0 auto; background: var(--dark); color: white; border-radius: .7rem;
  font-weight: 800; }
nav { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; }
nav a { font-size: .88rem; color: #444d5c; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 3rem; align-items: center; padding-block: clamp(2.8rem, 7vw, 6.5rem); }
.eyebrow { margin: 0 0 .75rem; color: var(--accent); font-size: .86rem;
  font-weight: 750; letter-spacing: .075em; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { font-size: clamp(2.1rem, 5vw, 4.3rem); line-height: 1.13; letter-spacing: -.055em;
  margin: 0; max-width: 13em; color: var(--dark); }
h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.3; margin: 0 0 1.3rem; }
h3 { margin: 0; font-size: 1.06rem; }
p { margin: 0 0 1rem; }
.intro { margin-top: 1.15rem; color: #46515e; max-width: 40rem; font-size: 1.06rem; }
.primary, .actions button { display: inline-flex; align-items: center; justify-content: center;
  gap: .6rem; background: var(--accent); color: #fff; padding: .68rem 1rem;
  border-radius: .75rem; border: 1px solid transparent; text-decoration: none; cursor: pointer; }
.primary:hover, .actions button:hover { filter: brightness(.9); }
.flow { background: var(--soft); color: var(--dark); border-radius: 1.5rem; padding: 1.65rem;
  min-width: 0; box-shadow: 0 18px 40px #26384910; }
.flow p { font-weight: 750; font-size: .88rem; }
.flow ol, .steps, .resources ul { list-style: none; padding: 0; margin: 0; }
.flow ol { display: grid; gap: .55rem; }
.flow li { display: flex; gap: .7rem; align-items: center; background: #ffffffb0;
  border-radius: .8rem; border: 1px solid #ffffff90; padding: .8rem;
  font-weight: 720; font-size: .95rem; }
.flow li span { min-width: 2.05rem; color: var(--accent); font-size: .78rem;
  font-weight: 800; font-variant-numeric: tabular-nums; }
.content { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 2rem; align-items: start; margin-bottom: 2.5rem; }
.content > section, .resources { background: #fff; border: 1px solid #e1e5de;
  padding: clamp(1.1rem, 3.5vw, 2rem); border-radius: 1.2rem; }
.steps { display: grid; gap: 1.2rem; }
.step { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .9rem; }
.step-index { color: var(--accent); line-height: 1.85; font-weight: 750; }
.step p { margin: .3rem 0 0; color: #495362; font-size: .95rem; }
.checklist h2 { margin-bottom: .5rem; }
.checklist p { color: #515966; }
.meter { display: flex; align-items: center; gap: .7rem; font-size: .82rem; margin-bottom: .85rem; }
.meter progress { flex: 1; height: .55rem; accent-color: var(--accent); }
.check-row { display: flex; align-items: start; gap: .6rem; padding: .7rem .6rem;
  background: #f6f7f5; margin-top: .45rem; border-radius: .6rem; cursor: pointer; }
.check-row:has(:checked) { background: var(--soft); }
.check-row input { accent-color: var(--accent); width: 1.08rem; height: 1.08rem; flex: 0 0 auto;
  margin: .2rem 0 0; }
.actions { display: flex; gap: .55rem; flex-wrap: wrap; margin-top: 1rem; }
.actions .reset { background: white; color: var(--accent); border-color: #dce0e3; }
.status { margin: .55rem 0 0; min-height: 1.25rem; font-size: .86rem; }
textarea { width: 100%; min-height: 7rem; resize: vertical; padding: .6rem; font: inherit; }
.resources { margin-block: 1.6rem 3rem; }
.resources h2 { font-size: 1.22rem; margin-bottom: .65rem; }
.resources li + li { margin-top: .45rem; }
.footer { border-top: 1px solid #dce1da; color: #505968; font-size: .85rem;
  display: flex; gap: 1rem; justify-content: space-between; flex-wrap: wrap; padding-block: 1.2rem; }
.editorial { background: #faf8f1; }
.editorial .hero { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  border-bottom: 3px solid var(--dark); margin-bottom: 2rem; }
.editorial h1 { font-family: "Songti SC", "Noto Serif CJK SC", Georgia, serif; }
.editorial .flow { border: 1px solid var(--accent); border-radius: 0; box-shadow: none; }
.editorial .source-desk ul { list-style: none; padding: 0; margin: 0; }
.editorial .source-desk li { border-radius: 0; background: #ffffff7a; }
.editorial .source-desk li + li { margin-top: .65rem; }
.editorial .source-desk a { font-weight: 720; }
.workspace .hero { margin-block: 1.8rem 2.5rem; padding: clamp(1.35rem, 5vw, 3.6rem);
  background: var(--soft); border-radius: 1.4rem; }
.workspace .hero .checklist { background: white; border: 1px solid #ffffff;
  border-radius: 1.15rem; padding: clamp(1rem, 2vw, 1.6rem); box-shadow: 0 14px 38px #172c4415; }
.workspace .content { grid-template-columns: 1fr; }
.workspace .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.45rem; }
.workspace h1 { font-size: clamp(2rem, 4.45vw, 3.85rem); }
.catalogue-hero { padding-block: 3.2rem 2rem; }
.catalogue { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
  margin-bottom: 3rem; }
.catalogue-card { padding: 1.4rem; background: white; border: 1px solid #dce1da;
  border-top: 5px solid var(--accent); border-radius: .85rem; display: flex; flex-direction: column; }
.catalogue-card h2 { margin-bottom: .5rem; font-size: 1.35rem; }
.catalogue-card h2 a { color: var(--dark); text-decoration: none; }
.catalogue-card h2 a:hover { text-decoration: underline; }
.catalogue-card p { color: #4b5663; font-size: .93rem; }
.catalogue-action { margin-top: auto; align-self: start; font-weight: 750; }

@media (max-width: 840px) {
  .shell { width: min(700px, calc(100% - 40px)); }
  .hero, .editorial .hero, .content { grid-template-columns: 1fr; gap: 1.2rem; }
  .catalogue { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace .steps { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .shell { width: calc(100% - 28px); }
  .top { align-items: flex-start; flex-direction: column; gap: .65rem; }
  .catalogue { grid-template-columns: 1fr; }
  .flow { padding: 1.02rem; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
