:root {
  color-scheme: light;
  --paper: #f7f3eb;
  --ink: #27211e;
  --muted: #655851;
  --red: #972e24;
  --line: #d2c5b8;
  --serif: "Noto Serif SC", "Songti SC", SimSun, serif;
  --sans: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.7 var(--sans); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
h1, h2, h3, p, figure, ul, dl, dd { margin: 0; }
.wrap { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: absolute; top: 8px; left: 8px; z-index: 2; background: var(--ink); color: white; padding: 8px 14px; transform: translateY(-150%); }
.skip:focus { transform: none; }
.masthead { border-bottom: 1px solid var(--line); }
.header, .brand, nav { display: flex; align-items: center; }
.header { min-height: 77px; justify-content: space-between; gap: 16px; }
.brand { gap: 11px; font-weight: 750; line-height: 1.15; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; background: var(--red); color: var(--paper); font: 800 22px/1 var(--serif); }
.brand small { display: block; margin-top: 4px; font: 650 .72rem/1.1 var(--sans); letter-spacing: .16em; }
nav { gap: clamp(14px, 3vw, 34px); font-size: .92rem; }
nav { flex-wrap: wrap; }
nav a[aria-current="page"] { color: var(--red); font-weight: 700; }
nav a { padding-block: 5px; white-space: nowrap; }
nav a:hover, .footer a:hover { color: var(--red); text-decoration: underline; }
.nav-contact { border-bottom: 1px solid var(--red); color: var(--red); }
.hero { display: grid; grid-template-columns: 1fr .8fr; align-items: center; gap: clamp(28px, 7vw, 105px); padding-block: clamp(52px, 8vw, 100px); }
.overline { color: var(--red); font-size: .875rem; font-weight: 720; letter-spacing: .15em; }
.overline span { display: inline-block; width: 17px; margin: 0 5px 4px; border-top: 1px solid currentColor; }
h1, h2 { font-family: var(--serif); font-weight: 850; }
h1 { margin: 15px 0 24px; font-size: clamp(3rem, 8.6vw, 7.25rem); line-height: 1.02; letter-spacing: -.065em; }
h1 span { color: var(--red); }
.lead { max-width: 33em; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.16rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 29px; }
.button { background: var(--red); color: #fff; padding: 11px 18px; font-weight: 680; }
.button:hover { background: #731e17; }
.text-link { color: var(--red); font-weight: 660; text-decoration: underline; text-underline-offset: 5px; }
.hero-figure { padding: 9px 9px 0; border: 1px solid var(--line); background: #fffaf2; }
.hero-figure img { display: block; width: 100%; height: auto; aspect-ratio: auto; background: #b7684c; }
figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; padding: 10px 3px; color: var(--muted); font-size: .875rem; }
.section { border-top: 1px solid var(--line); padding-block: clamp(38px, 6vw, 76px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 25px; }
.section-head > p { color: var(--muted); }
h2 { margin-top: 5px; font-size: clamp(2.15rem, 5vw, 4rem); line-height: 1.13; letter-spacing: -.04em; }
.writing-list, .channels { padding: 0; list-style: none; }
.writing-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 16px 2px; border-top: 1px solid var(--line); font-weight: 650; }
.writing-list li:last-child { border-bottom: 1px solid var(--line); }
.writing-list small, .channels span { color: var(--muted); font-weight: 400; font-size: .875rem; }
.channels { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.channels li { min-width: 0; border: 1px solid var(--line); }
.channels span { display: block; }
.contact { background: #762a23; color: #fff6ed; }
.contact-body { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: clamp(20px, 6vw, 90px); padding-block: clamp(42px, 7vw, 85px); }
.contact .overline, .contact dd { color: #f5cbb8; }
.contact h2 { margin-bottom: 12px; }
.contact dl div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid #be8273; padding-block: 11px; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-block: 22px; font-size: .875rem; color: var(--muted); }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .hero, .contact-body { grid-template-columns: 1fr; }
  .hero { gap: 29px; }
  .hero-figure { max-width: 530px; }
  .section-head { flex-direction: column; align-items: start; gap: 8px; }
}
@media (max-width: 430px) {
  .header { min-height: 0; flex-wrap: wrap; padding-block: 12px; gap: 10px 15px; }
  nav { gap: 17px; }
  .channels { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }

.intro .hero-intro { margin-bottom: 9px; color: var(--red); font-size: clamp(1.12rem, 2vw, 1.46rem); font-weight: 740; }
.hero h1 { margin: 11px 0 24px; font-family: Georgia, var(--serif); font-size: clamp(3.55rem, 9.2vw, 7.55rem); line-height: .9; letter-spacing: -.065em; }
.hero h1 span { display: block; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 238px), 1fr)); gap: 16px; padding: 0; list-style: none; }
.portfolio-item { min-width: 0; }
.portfolio-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fffdf8; }
.portfolio-card:hover { border-color: var(--red); }
.portfolio-cover { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #eeded1; }
.portfolio-cover-fallback { display: grid; place-items: center; color: var(--red); font: 750 3rem/1 var(--serif); }
.portfolio-card-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 18px; }
.project-type { color: var(--red); font-size: .875rem; font-weight: 650; }
.portfolio-card h3 { font-size: 1.25rem; }
.portfolio-description { color: var(--muted); }
.portfolio-link { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 10px; justify-content: space-between; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); color: var(--red); font-weight: 650; }
.portfolio-card:hover .portfolio-link { text-decoration: underline; text-underline-offset: 3px; }
.portfolio-link span, #portfolio-count { color: var(--muted); font-size: .875rem; font-weight: 400; overflow-wrap: anywhere; }
.archive { padding-block: clamp(41px, 7vw, 85px); }
.archive h1 { margin: 10px 0; font-size: clamp(2.75rem, 7vw, 5.5rem); }
.archive-heading { margin-bottom: 24px; }
.portfolio-controls { display: flex; flex-wrap: wrap; gap: 8px 15px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.portfolio-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.portfolio-filters[hidden] { display: none; }
.portfolio-filters button { background: transparent; border: 1px solid var(--line); color: var(--ink); padding: 5px 11px; cursor: pointer; font: inherit; font-size: .875rem; }
.portfolio-filters button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: white; }
.portfolio-filters button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.social-card { display: flex; min-height: 78px; height: 100%; align-items: center; justify-content: space-between; padding: 12px 14px; gap: 8px; }
.social-card img { flex-shrink: 0; }
.social-card span { overflow-wrap: anywhere; }
@media (min-width: 431px) and (max-width: 700px) { .channels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.channels a:hover strong { color: var(--red); text-decoration: underline; }
.writing-list small { flex-shrink: 0; }
.contact-details { display: grid; grid-template-columns: minmax(0, 1fr) 156px; gap: 16px; align-items: center; }
.contact-details dl div { flex-wrap: wrap; gap: 2px 10px; }
.contact-details dd { overflow-wrap: anywhere; }
.contact-details dd a { text-decoration: underline; text-underline-offset: 4px; }
.wechat-code { display: block; width: 100%; height: auto; }
@media (max-width: 410px) {
  .contact-details { grid-template-columns: 1fr; }
  .wechat-code { max-width: 184px; }
}
.writing-list a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 4px; }
.writing-list time { flex-shrink: 0; color: var(--muted); font-size: .875rem; font-weight: 400; }
.capabilities-heading { margin-bottom: 28px; }
.capabilities-heading .overline { text-transform: uppercase; }
.capabilities-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.capability-card { display: flex; flex-direction: column; gap: 18px; padding: 22px; background: linear-gradient(155deg, #fffaf2, #f1e5d2); border: 1px solid var(--line); }
.capability-card h3 { font: 750 1.35rem/1.3 var(--serif); }
.capability-card svg { width: 76px; height: 76px; margin: 7px auto; color: var(--red); }
.capability-card p { color: var(--muted); }
@media (max-width: 950px) { .capabilities-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .capabilities-grid { grid-template-columns: 1fr; } }
