:root {
  color-scheme: light;
  --ink: #222719;
  --muted: #535a47;
  --lemon: #ffdf49;
  --page: #f8f7f0;
  --paper: #fffefa;
  --line: #dddcd1;
  --shell: 72rem;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--page);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible { outline: 3px solid #426226; outline-offset: 5px; }
[id] { scroll-margin-top: 2rem; }
.shell { width: min(var(--shell), calc(100% - 5rem)); margin-inline: auto; }
.masthead, .footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
}
.masthead { min-height: 6rem; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font: 700 1.38rem/1.1 "Avenir Next", "Trebuchet MS", sans-serif;
  text-decoration: none;
}
.brand img { flex: none; border: 1px solid #eae6d8; border-radius: .72rem; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1.65rem; }
nav a { color: var(--muted); font-size: .95rem; text-decoration: none; }
nav a:hover { color: var(--ink); text-decoration: underline; }
.hero {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  align-items: center;
  min-height: 31rem;
  overflow: hidden;
  background: #222b1b;
  color: #fffdf1;
  border-radius: 1.85rem;
}
.hero-copy { padding: 3.7rem 0 3.7rem clamp(2rem, 5.5vw, 5.1rem); z-index: 1; }
.hero h1 {
  margin: 0;
  font-size: clamp(2.65rem, 5.4vw, 5.05rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.065em;
}
.hero p {
  margin: 1.7rem 0 2rem;
  max-width: 28rem;
  color: #e0e5cf;
  font-size: 1.055rem;
  line-height: 1.85;
}
.hero-art {
  aspect-ratio: 1.035;
  min-width: 0;
  align-self: center;
  margin: 1rem 1.7rem 1rem 0;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 52% 50%, #778343 0, #424d28 47%, transparent 71%);
}
.hero-art img { width: min(95%, 28rem); height: auto; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: .7rem 1.2rem;
  background: var(--lemon);
  color: #282317;
  border-radius: .7rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.button:hover { background: #ffe779; }
.hero .button:focus-visible { outline-color: #fff5b5; }
.features { padding-block: clamp(3rem, 6vw, 5.2rem); }
.features h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: -.045em;
}
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.feature-card {
  display: grid;
  grid-template-columns: 1fr 40%;
  align-items: center;
  gap: .3rem;
  min-height: 12.5rem;
  padding: 1.4rem 1.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
}
.feature-card h3 { margin: 0 0 .55rem; font-size: 1.18rem; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.75; }
.feature-card img { width: 100%; height: auto; }
.footer { padding-block: 1.45rem 2.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.document { max-width: 48rem; margin: 1.4rem auto 3.75rem; }
.document article { background: var(--paper); border: 1px solid var(--line); border-radius: 1.2rem; padding: clamp(1.35rem, 5vw, 3.45rem); }
.document h1 { font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.25; margin: 0 0 1rem; }
.document h2 { margin: 1.65rem 0 .5rem; font-size: 1.3rem; }
.document p { color: var(--muted); line-height: 1.8; margin: 0 0 1rem; overflow-wrap: anywhere; }
.document p:last-child { margin-bottom: 0; }

@media (max-width: 56rem) {
  .hero-copy { padding-left: 2rem; }
  .hero-art { margin-right: .75rem; }
  .feature-card { padding: 1.2rem; }
}
@media (max-width: 44rem) {
  .shell { width: calc(100% - 2rem); }
  .masthead { min-height: 4.6rem; }
  .brand { font-size: 1.15rem; gap: .45rem; }
  .brand img { width: 34px; height: 34px; }
  nav { gap: .45rem .85rem; }
  .hero { grid-template-columns: 1fr; border-radius: 1.3rem; }
  .hero-copy { padding: 2.05rem 1.45rem 0; }
  .hero h1 { font-size: clamp(2.45rem, 9vw, 3.7rem); }
  .hero p { margin: 1rem 0 1.3rem; }
  .hero-art { justify-self: center; width: min(100%, 22rem); margin: .55rem 0 .7rem; }
  .hero-art img { width: 86%; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 9.5rem; grid-template-columns: 1fr 34%; }
  .footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 22rem) {
  .masthead { align-items: flex-start; flex-direction: column; justify-content: center; gap: .45rem; padding-block: .65rem; }
}
