:root {
  --paper: #f8f6f0;
  --desk: #efebe0;
  --ink: #172d27;
  --soft: #55615a;
  --line: #d9d5c7;
  --accent: #9e3a2a;
  --green: #1f4c3d;
  --green-dark: #153a2e;
  --serif: "STSong", "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
  --sans: "Source Sans 3", "Microsoft YaHei", "PingFang SC", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #b44d32;
  outline-offset: 4px;
}
a,
button {
  touch-action: manipulation;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
.wordmark {
  font-family: var(--serif);
}
h2,
h3 {
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
img {
  max-width: 100%;
  display: block;
}
.wrap {
  width: min(1216px, 90%);
  margin-inline: auto;
}
.skip,
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip:focus {
  position: fixed;
  inset: 4px auto auto 4px;
  width: auto;
  height: auto;
  clip-path: none;
  z-index: 4;
  padding: 0.6rem;
  background: white;
}

/* Masthead */
.mast {
  border-top: 4px solid var(--green);
}
.mastline,
.navrow,
.footline,
.section-head,
.offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mastline {
  min-height: 96px;
  gap: 20px;
}
.brand-heading {
  margin: 0;
  display: flex;
  align-items: center;
  line-height: 1;
}
.wordmark {
  font-size: clamp(30px, 4vw, 58px);
  font-weight: 900;
  letter-spacing: -0.055em;
  display: inline-flex;
  align-items: center;
  gap: 0.32em;
  line-height: 1;
}
.wordmark:hover {
  color: inherit;
}
.chair-mark {
  height: 1em;
  width: auto;
  flex: none;
}
.motto {
  margin-right: auto;
  padding-left: 20px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column-reverse;
  font-size: 12px;
  line-height: 1.5;
  color: var(--soft);
}
.motto span {
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.08em;
}
.offer {
  gap: 12px;
}
.offer-label,
.partnerbox small {
  color: var(--soft);
  font-size: 12px;
}
.register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: var(--green);
  color: white;
  font-weight: 650;
  padding: 11px 19px;
  border-radius: 3px;
  transition: background 0.2s;
}
.register:hover {
  background: var(--green-dark);
  color: white;
}
.register span {
  font-size: 1.15em;
}
.navline {
  border-block: 1px solid var(--line);
}
.navrow nav,
.footline nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 42px);
}
.navrow a,
.footline a {
  display: inline-flex;
  align-items: center;
  min-height: 45px;
  font-size: 14px;
}
.navrow a:hover,
.footline a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.find {
  gap: 8px;
}
.lens {
  display: inline-block;
  position: relative;
  width: 13px;
  height: 13px;
  border: 1.6px solid;
  border-radius: 50%;
}
.lens:after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -2px;
  transform: rotate(45deg);
  width: 6px;
  border-top: 1.6px solid;
}

/* Home: after-close desk */
.desk {
  background: var(--desk);
  border-bottom: 1px solid var(--line);
}
.desk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}
.desk-tool {
  align-self: start;
  padding: clamp(36px, 4.4vw, 62px) clamp(32px, 4.6vw, 72px) clamp(32px, 4vw, 54px) 0;
}
.desk-read {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  padding: clamp(36px, 4.4vw, 62px) 0 clamp(32px, 4vw, 54px) clamp(32px, 4.6vw, 72px);
}
.tool-id {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--soft);
  font-size: 14px;
}
.tool-id strong {
  font: 700 23px/1.2 var(--serif);
  color: var(--ink);
  letter-spacing: 0.02em;
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 1px 7px 0;
  border: 1px solid currentColor;
  border-radius: 2px;
  color: var(--accent);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.06em;
}
.tag:hover {
  background: var(--accent);
  color: var(--paper);
}
.desk h2 {
  font-size: clamp(34px, 3.4vw, 50px);
  line-height: 1.22;
  letter-spacing: -0.04em;
  margin: 20px 0 14px;
}
.lede {
  text-wrap: balance;
  color: var(--soft);
  font-size: 17px;
  max-width: 30em;
}
.steps {
  list-style: none;
  counter-reset: step;
  margin: 24px 0 26px;
  padding: 0;
  border-top: 1px solid var(--ink);
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.2em 4.4em minmax(0, 1fr);
  align-items: baseline;
  gap: 0 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.steps li::before {
  content: "0" counter(step);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.steps b {
  font: 700 18px/1.4 var(--serif);
}
.steps span {
  color: var(--soft);
  font-size: 15px;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 56px;
  padding: 0 24px 0 28px;
  background: var(--green);
  color: white;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 3px;
  transition: background 0.2s;
}
.cta span {
  font-size: 1.15em;
  transition: transform 0.2s;
}
.cta:hover,
.cta:focus-visible {
  background: var(--green-dark);
  color: white;
}
.cta:hover span {
  transform: translate(2px, -2px);
}
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.kicker i {
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
}
.figure {
  display: block;
  margin: 18px 0 14px;
}
.kline {
  display: block;
  width: 100%;
  height: auto;
  max-height: 340px;
  overflow: visible;
}
.kline text {
  font: 500 15px var(--sans);
  fill: var(--ink);
  font-variant-numeric: tabular-nums;
}
.kline .k {
  font-size: 14px;
  font-weight: 400;
  fill: var(--soft);
}
.kline line {
  stroke: #aaa593;
  stroke-width: 1;
  stroke-dasharray: 2 4;
}
.kline .prev line {
  stroke: var(--green);
  stroke-dasharray: 7 5;
}
.kline .prev text {
  fill: var(--green);
  font-size: 14px;
  font-weight: 600;
}
.kline .wick {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-dasharray: 80;
}
.kline .body {
  fill: var(--accent);
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.kline .marks path {
  fill: none;
  stroke: var(--soft);
  stroke-width: 1.2;
}
.kline .marks text {
  font-size: 14px;
  font-weight: 400;
  fill: var(--soft);
}
.kline .marks .up {
  fill: var(--accent);
}
.kline .marks .down {
  fill: var(--green);
}
.desk-read h3 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.38;
  letter-spacing: -0.02em;
}
.seg {
  display: inline-block;
}
.desk-read > p:not(.kicker) {
  margin-top: 8px;
  color: var(--soft);
  font-size: 15px;
}
.read {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
  padding: 5px 0;
  border-bottom: 1px solid;
  font-weight: 650;
  font-size: 15px;
}
.read span {
  transition: transform 0.2s;
}
.read:hover span {
  transform: translateX(5px);
}

/* Home: reading sections */
.section-head {
  border-bottom: 1px solid var(--ink);
  gap: 1rem;
  padding-bottom: 11px;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(23px, 2.4vw, 33px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}
.section-head a,
.section-head small,
small {
  font-size: 13px;
  color: var(--soft);
}
.picks {
  padding: 46px 0 38px;
}
.pickgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pick {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 28px 4px;
  border-left: 1px solid var(--line);
}
.pick:first-child {
  padding-left: 0;
  border: 0;
}
.pick:last-child {
  padding-right: 0;
}
.pick > small:first-child a {
  color: var(--accent);
}
.pick h3 {
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.42;
}
.pick p,
.brief p,
.directory p {
  font-size: 14px;
  color: var(--soft);
  line-height: 1.7;
}
.stamp {
  margin-top: auto;
  padding-top: 6px;
  font-size: 12px;
}
.columns,
.reader {
  display: grid;
  grid-template-columns: minmax(0, 2.25fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 85px);
}
.columns {
  padding: 10px 0 64px;
}
.brief {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.brief h3 {
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.45;
  margin: 4px 0;
}
.brief p {
  max-width: 46em;
}
.brief small span,
.row small span {
  color: #a0a69f;
}
.directory {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.directory h3 {
  font-size: 20px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.directory span {
  font: 13px var(--sans);
  color: var(--soft);
}
.directory p {
  margin: 4px 0;
}
.columns aside > a:last-child {
  display: inline-block;
  margin-top: 17px;
  font-size: 14px;
}
.desk-end {
  border-top: 1px solid var(--ink);
}
.desk-end .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  padding-block: 26px 30px;
}
.desk-end p {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--soft);
}
.desk-end strong {
  font: 700 22px/1.2 var(--serif);
  color: var(--ink);
}

/* Lists, articles and utility pages */
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.rowcopy {
  min-width: 0;
}
.row h3 {
  line-height: 1.5;
  font-size: clamp(18px, 1.7vw, 24px);
  margin: 4px 0;
}
.thumb {
  width: 82px;
  height: 58px;
  object-fit: cover;
  flex: none;
}
.inner {
  padding: 24px 0 72px;
  min-height: 55vh;
}
.narrow {
  max-width: 820px;
}
.crumbs {
  font-size: 14px;
  color: var(--soft);
  margin-bottom: 25px;
}
.crumbs span {
  margin: 0 0.5em;
  color: #737b71;
}
.rubric {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 13px;
}
.pagehead {
  margin-bottom: 28px;
}
.pagehead h1 {
  font-size: clamp(34px, 4.3vw, 60px);
  line-height: 1.25;
  letter-spacing: -0.035em;
  margin: 8px 0 16px;
}
.pagehead p {
  color: var(--soft);
}
.reader aside {
  margin-top: 6px;
}
.reader aside p {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.reader aside > a {
  display: inline-block;
  margin: 15px 0;
  font-size: 14px;
}
.prose {
  font-size: 17px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}
.prose p,
.prose div,
.prose ul,
.prose ol {
  margin: 1em 0;
}
.prose h2,
.prose h3 {
  margin: 1.4em 0 0.4em;
  line-height: 1.4;
}
.prose a,
.source + a,
.reader article > p ~ a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.prose table {
  display: block;
  overflow: auto;
  border-collapse: collapse;
}
.prose td,
.prose th {
  border: 1px solid var(--line);
  padding: 0.4em;
}
.references {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.references h2 {
  font-size: 20px;
}
.references ul {
  margin: 8px 0;
  padding-left: 1.2em;
}
.references a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.source {
  font-size: 13px;
  color: var(--soft);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin: 28px 0 12px;
}
.prose .partnerbox {
  display: flex;
  align-items: center;
  gap: 12px;
}
.partnerbox .register {
  color: white;
  text-decoration: none;
}
.searchform {
  max-width: 750px;
  margin: 0 0 32px;
}
.searchform label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}
.searchform div {
  display: flex;
}
.searchform input,
.searchform button {
  font: inherit;
  padding: 10px 15px;
}
.searchform input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  background: white;
}
.searchform button {
  border: 0;
  background: var(--green);
  color: white;
  cursor: pointer;
}
.empty {
  padding: 20px 0 50px;
}
footer {
  border-top: 1px solid var(--line);
  background: #eeece4;
  padding: 25px 0 35px;
}
footer strong {
  font: 700 24px var(--serif);
}
footer p,
footer small {
  font-size: 12px;
  color: var(--soft);
  margin-top: 8px;
}

/* Motion */
@keyframes lift {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes rise {
  from {
    transform: scaleY(0);
  }
}
@keyframes draw {
  from {
    stroke-dashoffset: 80;
  }
}
.desk-tool > * {
  animation: lift 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.desk-tool > :nth-child(2) {
  animation-delay: 0.06s;
}
.desk-tool > :nth-child(3) {
  animation-delay: 0.12s;
}
.desk-tool > :nth-child(4) {
  animation-delay: 0.18s;
}
.desk-tool > :nth-child(n + 5) {
  animation-delay: 0.24s;
}
.kline .lv {
  animation: fade 0.45s both;
  animation-delay: calc(0.15s + var(--i) * 0.08s);
}
.kline .body {
  animation: rise 0.6s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.kline .wick {
  animation: draw 0.4s 0.7s ease-out both;
}
.kline .prev {
  animation: fade 0.4s 0.95s both;
}
.kline .marks {
  animation: fade 0.4s 1.1s both;
}

@media (max-width: 860px) {
  .wrap {
    width: 92%;
  }
  .desk-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .desk-tool {
    padding: 34px 0 30px;
  }
  .desk-read {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 28px 0 34px;
  }
  .desk-read .figure {
    order: 3;
    max-width: 460px;
  }
  .desk-read .read {
    order: 4;
  }
  .pick {
    padding: 4px 16px;
  }
  .columns,
  .reader {
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: 30px;
  }
}
@media (max-width: 620px) {
  .mastline {
    min-height: 66px;
    gap: 6px;
  }
  .wordmark {
    font-size: clamp(26px, 7.6vw, 32px);
  }
  .motto {
    display: none;
  }
  .offer {
    gap: 5px;
    flex-direction: column-reverse;
    align-items: flex-end;
    padding-block: 6px;
  }
  .offer-label {
    font-size: 10px;
    line-height: 1;
  }
  .mastline > .offer-label {
    font-size: 12px;
  }
  .register {
    font-size: 13px;
    padding: 7px 12px;
    min-height: 35px;
  }
  .navrow {
    position: relative;
  }
  .navrow nav {
    gap: 0;
    justify-content: space-between;
    flex: 1;
  }
  .navrow a {
    font-size: 12px;
    min-height: 43px;
  }
  .find {
    font-size: 0 !important;
    min-width: 28px;
    justify-content: center;
    margin-left: 6px;
  }
  .find .lens {
    width: 15px;
    height: 15px;
  }
  .desk-tool {
    padding: 16px 0;
  }
  .tool-id {
    font-size: 13px;
    gap: 4px 10px;
  }
  .tool-id strong {
    font-size: 19px;
  }
  .desk h2 {
    font-size: clamp(25px, 7.7vw, 36px);
    margin: 8px 0 6px;
  }
  .lede {
    font-size: 15px;
  }
  .steps {
    margin: 10px 0 12px;
  }
  .steps li {
    grid-template-columns: 3.4em minmax(0, 1fr);
    gap: 0 8px;
    padding: 4px 0;
  }
  .steps li::before,
  .desk h2 br {
    display: none;
  }
  .steps b {
    font-size: 16px;
  }
  .steps span {
    font-size: 13.5px;
    line-height: 1.5;
  }
  .cta {
    display: flex;
    width: 100%;
    min-height: 52px;
  }
  .desk-read {
    padding: 14px 0 24px;
  }
  .desk-read h3 {
    margin-top: 10px;
    font-size: 21px;
  }
  .desk-read > p:not(.kicker) {
    font-size: 14px;
  }
  .desk-read .figure {
    margin: 16px 0 2px;
  }
  .picks {
    padding: 30px 0 18px;
  }
  .pickgrid,
  .columns,
  .reader {
    grid-template-columns: minmax(0, 1fr);
  }
  .pick,
  .pick:first-child,
  .pick:last-child {
    padding: 14px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
  }
  .picks .section-head {
    margin-bottom: 0;
  }
  .columns {
    padding: 4px 0 30px;
  }
  .brief {
    padding: 14px 0;
  }
  .desk-end .wrap {
    flex-direction: column;
    align-items: stretch;
    padding-block: 22px 26px;
  }
  .thumb {
    width: 67px;
    height: 52px;
  }
  .row {
    padding: 13px 0;
    gap: 12px;
  }
  .footline {
    align-items: flex-start;
    gap: 8px;
    flex-direction: column;
  }
  .inner {
    padding-bottom: 40px;
  }
  .reader {
    gap: 36px;
  }
  .prose {
    font-size: 16px;
  }
  .pagehead h1 {
    font-size: 32px;
  }
  .footline nav {
    gap: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
