:root {
  color-scheme: light;
  --paper: #f7f8f3;
  --ink: #16251d;
  --muted: #4f5e54;
  --green: #246044;
  --line: #dce3d9;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
figure, h1, h2, h3, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid #387b60; outline-offset: 5px; }
[id] { scroll-margin-top: 24px; }

.wrap { width: min(1120px, calc(100% - 56px)); margin-inline: auto; }
.skip { position: fixed; z-index: 2; top: 12px; left: 12px; background: white; padding: 10px; transform: translateY(-160%); }
.skip:focus { transform: none; }
.site-header, .site-footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.site-header { min-height: 84px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 750; white-space: nowrap; }
.mark { display: inline-block; width: 25px; height: 25px; background: var(--green); border-radius: 8px 8px 8px 2px; position: relative; }
.mark::before { content: ""; position: absolute; inset: 6px; border: 1px solid #e6f2e7; border-radius: 3px; }
nav { display: flex; gap: clamp(14px, 3vw, 30px); }
nav a, .site-footer > a:last-child { color: var(--muted); font-size: .9rem; text-decoration: none; }
nav a:hover, .site-footer > a:last-child:hover { color: var(--green); text-decoration: underline; text-underline-offset: 5px; }

.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: 58px 70px; }
.hero-copy { padding-bottom: 20px; }
.eyebrow { color: var(--green); font-size: .9rem; font-weight: 700; letter-spacing: .08em; }
h1 { margin-block: 18px 22px; font-size: clamp(3rem, 5.1vw, 4.6rem); line-height: 1.18; letter-spacing: -.055em; font-weight: 800; }
h1 span { color: var(--green); }
.intro { max-width: 23em; color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.15rem); line-height: 1.9; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 28px; padding: 10px 21px; background: var(--green); color: #fff; border-radius: 8px; text-decoration: none; font-size: .97rem; font-weight: 700; }
.button:hover { background: #194c35; }
.hero-figure img { display: block; width: 100%; height: auto; aspect-ratio: 1.14; object-fit: cover; object-position: center 60%; border-radius: 20px; background: #1c3025; }
.hero-figure figcaption { padding-top: 9px; text-align: right; color: var(--muted); font-size: .8rem; }
.hero-figure a { text-underline-offset: 3px; }

.projects { border-top: 1px solid var(--line); padding-block: 42px 64px; }
.section-intro { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; justify-content: space-between; margin-bottom: 23px; }
.section-intro p { color: var(--muted); line-height: 1.65; }
h2 { font-size: clamp(1.75rem, 3.1vw, 2.5rem); line-height: 1.2; letter-spacing: -.035em; }
h3 { font-size: 1.25rem; line-height: 1.4; margin-top: 18px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 24px; }
.card p { margin-top: 8px; color: var(--muted); line-height: 1.8; }
.card-icon { display: block; position: relative; width: 36px; height: 36px; border-radius: 9px; background: #e9f2e9; color: var(--green); }
.card-icon::before, .card-icon::after { content: ""; position: absolute; }
.film::before { inset: 10px 8px; border: 1.5px solid; border-radius: 3px; }
.film::after { left: 16px; top: 14px; border: 4px solid transparent; border-right: 0; border-left: 6px solid; }
.flow::before { left: 9px; top: 9px; width: 6px; height: 6px; border: 1.5px solid; border-radius: 50%; box-shadow: 12px 0 0 -1.5px var(--green), 6px 12px 0 -1.5px var(--green); }
.flow::after { left: 12px; top: 12px; width: 12px; height: 11px; border: 1.5px solid; border-top: 0; border-radius: 0 0 6px 6px; }
.tool::before { inset: 10px; border: 1.5px solid; border-radius: 3px; }
.tool::after { inset: 15px 10px auto; border-top: 1.5px solid; }

.about { display: grid; grid-template-columns: .8fr 1.6fr; align-items: start; gap: 24px; border-radius: 18px; padding: clamp(26px, 5vw, 54px); background: #1c3a2c; color: #f1f7ef; }
.about p { max-width: 37em; line-height: 1.95; color: #e0ece0; }
.site-footer { min-height: 100px; }

@media (max-width: 820px) {
  h1 { font-size: clamp(2.25rem, 6.15vw, 3.4rem); }
  .cards { gap: 10px; }
  .card { padding: 17px; }
}

@media (max-width: 620px) {
  .wrap { width: calc(100% - 36px); }
  .site-header { min-height: 66px; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding-block: 38px 40px; }
  .hero-copy { padding: 0; }
  h1 { margin-block: 14px 16px; font-size: min(10vw, 3.6rem); }
  .button { margin-top: 21px; }
  .hero-figure img { aspect-ratio: 1.35; border-radius: 14px; }
  .projects { padding-block: 33px 40px; }
  .cards, .about { grid-template-columns: 1fr; }
  .about { gap: 14px; }
  .site-footer { min-height: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
