:root {
  color-scheme: light;
  --bg: #f8f7f2;
  --paper: #fffdf8;
  --ink: #1c302e;
  --muted: #4f605b;
  --green: #285b50;
  --light-green: #e7eee7;
  --line: #d9dfd5;
  --gold: #90652d;
  --sans: "Instrument Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --display: "Songti SC", "Noto Serif CJK SC", "SimSun", "Noto Serif SC", serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.7 var(--sans); }
main { min-height: 58vh; }
h1,h2,h3,p,figure { margin: 0; }
a { color: inherit; }
a:focus-visible, input:focus-visible { outline: 3px solid #996a2d; outline-offset: 5px; }
.wrap { width: min(1200px, calc(100% - 104px)); margin-inline: auto; }
.skip { position: absolute; left: 20px; z-index: 10; top: -100px; padding: .5rem 1rem; background: var(--paper); }
.skip:focus { top: 10px; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.header-inner { min-height: 73px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 760; font-size: 24px; letter-spacing: -.035em; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 9px; background: #28554a; color: #f5f5e9; font: 20px/1 var(--sans); }
nav { display: flex; gap: clamp(19px, 3.3vw, 43px); align-items: center; }
nav a { color: var(--muted); font-size: 14px; text-decoration: none; white-space: nowrap; padding-block: 7px; }
nav a:hover, nav a[aria-current="page"] { color: var(--green); border-bottom: 2px solid var(--green); padding-bottom: 5px; }
nav a[aria-current="page"] { font-weight: 700; }
.hero { display: grid; grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr); gap: clamp(28px, 4.9vw, 73px); align-items: center; padding-block: clamp(50px, 6vw, 88px) 63px; }
.eyebrow { color: var(--green); font-size: 13px; font-weight: 720; letter-spacing: .15em; display: flex; align-items: center; gap: 10px; }
.eyebrow > span { width: 22px; height: 1px; background: var(--gold); }
.hero h1 { margin-block: 20px 23px; font: 750 clamp(39px, 4.8vw, 76px)/1.18 var(--display); letter-spacing: -.055em; }
.hero-description { max-width: 29em; color: var(--muted); line-height: 1.85; }
.hero-actions { display: flex; align-items: center; gap: 23px; flex-wrap: wrap; margin-top: 29px; }
.button, .text-link, .back-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 14px; font-weight: 700; }
.button { color: var(--paper); background: #28554a; border-radius: 6px; padding: 11px 16px; }
.button:hover { background: #173f35; }
.text-link, .back-link { color: var(--green); text-underline-offset: 5px; }
.text-link:hover, .back-link:hover { text-decoration: underline; }
.hero-figure { position: relative; min-width: 0; }
.hero-figure figcaption { display: flex; align-items: center; gap: 9px; margin-top: 12px; color: var(--muted); font-size: 12px; letter-spacing: .075em; }
.caption-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.art { position: relative; overflow: hidden; background-color: #d6ded4; }
.art-elevator img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.hero-image { aspect-ratio: 1.43; border-radius: 11px; box-shadow: 0 12px 35px #203a301d; }
.art-caption { position: absolute; bottom: 12px; right: 12px; border-radius: 3px; padding: 2px 7px; color: #fff; background: #18322ee8; font-size: 11px; letter-spacing: .06em; }
.home-section { border-top: 1px solid var(--line); padding-block: 38px 60px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 22px; }
.section-heading h2, .about-inner h2 { font: 720 clamp(29px, 3.2vw, 45px)/1.25 var(--display); letter-spacing: -.045em; margin-top: 8px; }
.section-heading .text-link { padding-bottom: 3px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(14px, 2vw, 24px); }
.card { display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--paper); transition: border-color .18s, transform .18s, box-shadow .18s; }
.card:hover { border-color: #859c8f; transform: translateY(-3px); box-shadow: 0 8px 24px #203a3010; }
.card .art { aspect-ratio: 1.91; }
.card-body { position: relative; flex: 1; padding: 17px 40px 21px 18px; }
.category { display: block; font-size: 12px; color: var(--green); font-weight: 710; letter-spacing: .085em; }
.card h3,.note-row h3 { margin-block: 5px; font-size: clamp(17px, 1.7vw, 22px); line-height: 1.37; }
.card p,.note-row p { color: var(--muted); font-size: 14px; }
.card-arrow { position: absolute; right: 16px; top: 21px; color: var(--green); }
.art-mail { display: grid; place-items: center; background: radial-gradient(ellipse at 26% 25%, #e5ebe1, transparent 70%), #c9d7cc; }
.mail-window { width: 68%; height: 72%; padding: 7px 11px 10px; background: #f9fbf6; border: 1px solid #a5b9a9; border-radius: 7px; box-shadow: 0 5px 16px #23473822; transform: rotate(-4deg); }
.window-dots { display: flex; gap: 3px; border-bottom: 1px solid #d7e1d8; padding: 1px 0 5px; }
.window-dots i { width: 4px; height: 4px; border-radius: 50%; background: #94afa2; }
.mail-grid { display: grid; grid-template-columns: .87fr 1fr; gap: 9%; height: calc(100% - 12px); align-items: center; padding-top: 4px; }
.mail-lines { display: grid; gap: 6px; }
.mail-lines b, .paper i { display: block; height: 4px; border-radius: 4px; background: #b8c8bf; }
.mail-lines b:nth-child(2n) { width: 75%; }
.matrix { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; height: 100%; }
.matrix i { border-radius: 2px; }
.m0 { background: #e4ebe2; }.m1 { background: #cddcd0; }.m2 { background: #adc8b9; }.m3 { background: #82ae9e; }.m4 { background: #568b7c; }.m5 { background: #2f6759; }
.art-camera { display: grid; place-items: center; background: radial-gradient(ellipse at 23% 0%, #4d6762, transparent 86%), #263f3c; }
.camera-frame { position: relative; display: grid; place-items: center; width: 65%; height: 74%; border: 1px solid #a2b8ac90; border-radius: 8px; background: #142e29a0; box-shadow: 0 6px 17px #16282266; transform: rotate(3deg); }
.paper { position: relative; display: grid; align-content: center; gap: 5px; width: 51%; height: 85%; padding: 15% 9% 5%; background: #ecede0; border-radius: 2px; transform: rotate(-11deg); }
.paper i:nth-child(2n) { width: 82%; }
.roi { position: absolute; top: 13%; left: 14%; width: 69%; height: 27%; border: 2px solid #4c8b72; background: #79ad8b38; }
.camera-label { position: absolute; right: -3%; bottom: 8%; display: grid; border-radius: 4px; background: #e7f1e6; color: #214c3d; padding: 4px 8px; font-size: 10px; line-height: 1.45; }
.camera-label b { letter-spacing: .12em; }
.note-list { border-top: 1px solid var(--line); }
.note-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 17px; border-bottom: 1px solid var(--line); text-decoration: none; }
.note-row > span { color: var(--green); padding-right: 5px; }
.note-row:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.about-band { background: var(--light-green); border-top: 1px solid var(--line); }
.about-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding-block: 36px 40px; }
.about-inner p { margin-top: 10px; color: var(--muted); }
.about-inner .text-link { flex-shrink: 0; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-inner { padding-block: 23px; }
.footer-brand { font-size: 18px; color: var(--ink); font-weight: 720; letter-spacing: -.04em; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-icp { padding-block: 0 18px; text-align: center; }
.page-intro { padding-block: 56px 25px; }
.page-intro h1,.article-heading h1 { font: 750 clamp(37px, 5vw, 62px)/1.2 var(--display); letter-spacing: -.045em; }
.page-intro p,.article-heading > p:last-child { color: var(--muted); margin-top: 15px; max-width: 45em; }
.page-list { padding-block: 5px 65px; }
.listing-grid { grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 810px; }
.other-projects { margin-top: 36px; max-width: 810px; }
.other-projects h2,.prose h2 { font: 720 clamp(21px, 3vw, 28px)/1.4 var(--display); }
.other-projects dl > div { padding-block: 10px; border-top: 1px solid var(--line); }
.other-projects dt { font-weight: 700; }
.other-projects dd { margin: 3px 0 0; color: var(--muted); }
.article { max-width: 820px; padding-block: 45px 72px; }
.article-heading .back-link { margin-bottom: 23px; }
.article-heading .eyebrow { margin-bottom: 12px; }
.article-figure { margin-top: 28px; max-width: 680px; }
.prose { margin-top: 36px; max-width: 705px; }
.prose > p,.prose > ol { margin-block: 11px 20px; line-height: 1.85; }
.prose > h2:not(:first-child) { margin-top: 30px; }
.prose li + li { margin-top: 6px; }
.prose pre { background: #213a35; color: #f1f5e8; border-radius: 8px; padding: 20px; font-size: 15px; overflow: auto; }
.about-links { display: flex; flex-wrap: wrap; gap: 22px; color: var(--green); }
.demo { background: var(--paper); padding: clamp(10px, 3vw, 22px); border: 1px solid var(--line); border-radius: 8px; }
.demo fieldset { border: 0; padding: 0; margin: 0 0 15px; }
.demo legend { font-weight: 700; margin-bottom: 7px; }
.demo label { display: inline-block; margin: 3px 11px 3px 0; cursor: pointer; }
.demo input { accent-color: var(--green); }
.demo table { border-collapse: collapse; width: 100%; font-size: 14px; text-align: left; }
.demo th,.demo td { border-bottom: 1px solid var(--line); padding: 8px 6px; }
.demo tbody th { font-weight: 500; }
.demo thead { color: var(--green); background: var(--light-green); }
.demo-result { margin-top: 13px; font-weight: 700; color: var(--green); }
@media (max-width: 950px) { .wrap { width: calc(100% - 64px); } }
@media (max-width: 690px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { gap: 10px; min-height: 63px; }
  .brand { font-size: 20px; gap: 7px; }
  .brand-mark { width: 26px; height: 26px; font-size: 17px; border-radius: 7px; }
  nav { gap: clamp(9px, 3vw, 24px); }
  nav a { font-size: 13px; }
  .hero { grid-template-columns: 1fr; padding-block: 41px 35px; gap: 29px; }
  .hero h1 { font-size: clamp(39px, 9vw, 55px); margin-block: 15px; }
  .hero-actions { margin-top: 22px; }
  .hero-image { aspect-ratio: 1.55; }
  .home-section { padding-block: 29px 37px; }
  .card-grid { grid-template-columns: 1fr; gap: 16px; }
  .card .art { aspect-ratio: 2.08; }
  .about-inner { flex-direction: column; align-items: start; gap: 12px; padding-block: 26px; }
  .footer-inner { flex-wrap: wrap; justify-content: flex-start; gap: 5px 13px; }
  .footer-inner a { margin-left: auto; }
  .page-intro,.article { padding-top: 33px; }
}
@media (max-width: 435px) {
  .header-inner { flex-wrap: wrap; padding-block: 9px; }
  nav { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } }
