/*
Theme Name: TomHello
Version: 1.0.0
Text Domain: tomhello
Description: Bilingual portfolio and journal for TomHello.
*/

@font-face {
  font-family: 'DM Sans';
  src: url('assets/fonts/DM-Sans.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Serif SC';
  src: url('assets/fonts/Noto-Serif-SC-demo.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root{--paper:#f6f8fb;--ink:#1e2832;--muted:#5d6d7c;--line:#cbd5df;--blue:#245d88;--sage:#dce8f1;--serif:'Noto Serif SC','Songti SC',serif;--sans:'DM Sans',-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:15px;line-height:1.8}a{color:inherit;text-decoration:none}a:focus-visible,button:focus-visible{outline:3px solid var(--blue);outline-offset:4px}.wrap{width:min(1150px,calc(100% - 80px));margin:auto}.header{height:88px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:11px;font-size:21px;font-weight:700;letter-spacing:-.04em}.cat{width:35px;height:35px;color:var(--blue)}.nav{display:flex;align-items:center;gap:34px;font-size:14px}.nav a:hover,.text-link:hover{color:var(--blue)}.nav .contact{border:1px solid #9aaab9;border-radius:99px;padding:7px 20px}.menu{display:none;border:0;background:none;font-size:25px;color:var(--ink)}.hero{display:grid;grid-template-columns:1.2fr .8fr;gap:70px;align-items:center;padding:92px 0 100px}.eyebrow{display:flex;align-items:center;gap:10px;color:var(--blue);font-size:12px;font-weight:700;letter-spacing:.15em;text-transform:uppercase}.eyebrow:before{content:'';height:1px;width:30px;background:currentColor}.hero h1{font:600 clamp(37px,4.1vw,58px)/1.38 var(--serif);letter-spacing:.02em;margin:24px 0 24px}.hero h1 span{color:var(--blue)}.hero-copy{max-width:560px;color:#50606e;line-height:2;font-size:16px}.actions{display:flex;align-items:center;gap:26px;margin-top:34px}.button{display:inline-flex;align-items:center;gap:20px;background:var(--ink);color:white;border-radius:4px;padding:12px 20px;font-size:14px}.button:hover{background:var(--blue)}.text-link{font-size:14px;border-bottom:1px solid #8999a8;padding-bottom:3px}.hero-art{position:relative;background:#dce8f1;min-height:390px;padding:28px;display:flex;align-items:flex-end;overflow:hidden}.hero-art:before{content:'';position:absolute;right:-65px;top:-70px;width:275px;height:275px;border:1px solid #afc4d5;border-radius:50%}.art-photo{width:100%;height:265px;object-fit:cover;filter:saturate(.8);position:relative}.photo-caption{position:absolute;top:32px;left:32px;font-family:var(--serif);color:#4d687b;font-size:13px;letter-spacing:.12em}.stamp{position:absolute;right:12px;bottom:12px;background:var(--blue);color:#fff;font-family:var(--serif);writing-mode:vertical-rl;padding:12px 9px;font-size:14px;letter-spacing:.18em}.introline{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:22px 0;display:flex;justify-content:space-between;gap:20px;color:#526578;font-size:13px}.introline span:first-child{color:var(--ink);font-weight:600}.section{padding:100px 0;border-bottom:1px solid var(--line)}.section-head{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:44px}.small{font-size:12px;color:var(--blue);letter-spacing:.13em;font-weight:700;text-transform:uppercase}.section h2{font:600 clamp(28px,3vw,39px)/1.45 var(--serif);margin:10px 0 0}.section-head p{color:var(--muted);max-width:400px;margin:0}.services{display:grid;grid-template-columns:repeat(4,1fr);gap:0}.service{border-left:1px solid var(--line);padding:0 25px}.service:first-child{padding-left:0;border-left:0}.service h3{font:600 18px var(--serif);margin:18px 0 12px}.service p{color:#526474;font-size:14px;line-height:1.9;margin:0}.icon{color:var(--blue);font-size:22px;line-height:1}.projects{display:grid;grid-template-columns:1.08fr .92fr;gap:26px}.project-image{height:280px;overflow:hidden;background:#dce5dc}.project-image img{width:100%;height:100%;object-fit:cover;object-position:top}.project-meta{display:flex;justify-content:space-between;gap:15px;align-items:baseline;margin-top:18px}.project-meta h3{font:600 21px var(--serif);margin:0}.tag{font-size:12px;color:var(--muted)}.project p{font-size:14px;color:#526474;margin:8px 0 0}.project-feature{display:flex;flex-direction:column;justify-content:space-between;background:#d5e3ed;padding:34px;min-height:280px}.project-green{background:#c4d9e9}.project-cream{background:#dce4eb}.project-feature .mark{font:500 38px var(--serif);color:#476c88;letter-spacing:.04em}.project-feature .under{display:flex;align-items:end;justify-content:space-between;color:#425e73;font-size:13px}.more-projects{display:flex;gap:10px;flex-wrap:wrap;margin-top:32px}.pill{border:1px solid #cbd1c7;border-radius:30px;padding:8px 16px;font-size:13px;color:#57635a}.personal{display:grid;grid-template-columns:1fr 1fr;gap:18px}.personal-card{background:#e2eaf1;padding:30px;min-height:155px;display:flex;justify-content:space-between;gap:20px;transition:background .2s}.personal-card:hover{background:#cbddea}.personal-card h3{font:600 19px var(--serif);margin:0 0 10px}.personal-card p{margin:0;color:#526474;font-size:14px}.arrow{color:var(--blue);font-size:22px}.articles{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.article{border-top:1px solid #97acbd;padding-top:20px}.article .date{font-size:12px;color:var(--muted)}.article h3{font:600 17px/1.7 var(--serif);margin:12px 0}.article a:hover{color:var(--blue)}.bottom{display:grid;grid-template-columns:1fr 1fr;gap:50px;padding:92px 0}.bottom h2{font:600 clamp(28px,3vw,38px)/1.5 var(--serif);margin:0}.bottom p{margin:0 0 20px;color:#cedbe8;max-width:470px}.footer{border-top:1px solid var(--line);padding:25px 0 32px;color:var(--muted);font-size:12px;display:flex;justify-content:space-between;gap:20px}.footer strong{color:var(--ink);font-size:14px}.availability{display:inline-flex;align-items:center;gap:8px;margin-top:22px;color:#c8d7e3;font-size:13px}.availability:before{content:'';width:7px;height:7px;border-radius:50%;background:#9bc4e3}@media(max-width:800px){.wrap{width:calc(100% - 40px)}.header{height:72px}.menu{display:block}.nav{display:none;position:absolute;z-index:3;top:72px;left:0;right:0;padding:20px;background:var(--paper);box-shadow:0 12px 20px #20354b20;flex-direction:column;align-items:flex-start;gap:18px}.nav.open{display:flex}.hero{grid-template-columns:1fr;gap:36px;padding:58px 0 65px}.hero-art{min-height:335px}.art-photo{height:220px}.introline{flex-direction:column;gap:4px}.section{padding:68px 0}.section-head{align-items:start;flex-direction:column;gap:14px}.services{grid-template-columns:1fr 1fr;gap:30px 0}.service{padding:0 18px}.service:nth-child(3){border:0;padding-left:0}.projects,.personal,.bottom{grid-template-columns:minmax(0,1fr)}.project{min-width:0}.project-feature .mark{font-size:clamp(24px,7vw,38px);overflow-wrap:anywhere}.project-image{height:230px}.articles{grid-template-columns:1fr;gap:20px}.bottom{padding:65px 0;gap:22px}.footer{flex-direction:column}.hero h1{font-size:36px}}

/* Section colors extend to the edges while the content stays aligned. */
body { overflow-x: hidden; }
.hero, .introline, .section, .bottom { position: relative; isolation: isolate; }
.hero::before, .introline::before, .section::before, .bottom::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0;
  left: 50%; width: 100vw; transform: translateX(-50%);
}
.hero::before { background: #f6f8fb; }
.introline::before { background: #d9e7f1; }
#services::before { background: #eaf1f7; }
#work::before { background: #f0f2f5; }
#notes::before { background: #203a52; }
#notes h2 { color: #f7f9fc; }
#notes .small { color: #a5cbe8; }
#notes .section-head p { color: #cfdae5; }
#notes .personal-card { color: #1e2832; }
#notes .personal-card p { color: #526474; }
.writing::before { background: #e2ebf2; }
.bottom::before { background: #172d43; }
.bottom h2 { color: #f7f9fc; }
.bottom .small { color: #a5cbe8; }
.bottom .text-link { color: #f0f6fb; border-color: #98b2c8; }
.bottom .text-link:hover { color: #b8d9f2; }

/* Refined editorial layout */
:root { --paper: #f5f7fa; --ink: #17212d; --blue: #1765a0; --muted: #627181; --line: #cbd5df; }
body { font-size: 16px; line-height: 1.75; }
.wrap { width: min(1200px, calc(100% - 96px)); }
.header { height: 82px; }
.brand { font-size: 21px; }
.nav { gap: 38px; font-size: 14px; }
.nav .contact { border-color: #b8c9d7; padding: 8px 21px; }
.hero { min-height: 650px; grid-template-columns: 1.08fr .92fr; gap: 80px; padding: 110px 0 125px; }
.hero h1 { font-size: clamp(48px, 5.2vw, 74px); line-height: 1.3; letter-spacing: -.035em; margin: 25px 0 28px; }
.hero-copy { max-width: 550px; font-size: 17px; line-height: 1.95; color: #596a79; }
.actions { margin-top: 40px; }
.button { background: #1c5e91; border-radius: 999px; padding: 14px 24px; }
.button:hover { background: #174c75; }
.hero-art { min-height: 440px; padding: 0; background: #d8e5ee; border-radius: 18px; }
.hero-art::before { display: none; }
.art-photo { width: 100%; height: 440px; object-fit: cover; filter: saturate(.75); }
.photo-caption { z-index: 1; top: auto; left: 24px; bottom: 22px; color: #fff; font: 500 13px var(--sans); text-shadow: 0 1px 5px #000b; }
.introline { padding: 25px 0; }
.section { padding: 128px 0; }
.section h2 { font-size: clamp(35px, 3.8vw, 50px); letter-spacing: -.025em; }
.section-head { margin-bottom: 62px; }
.section-head p { font-size: 15px; line-height: 1.9; }
.services { gap: 16px; }
.service, .service:first-child { padding: 30px 24px; border: 0; background: #f7fafc; border-radius: 14px; }
.service h3 { font-size: 19px; margin-top: 25px; }
.service p { line-height: 1.95; }
.projects { gap: 42px 24px; }
.project-feature, .project-image { border-radius: 16px; height: 315px; min-height: 315px; }
.project-feature { padding: 34px; }
.project-feature .mark { font-size: clamp(27px, 3vw, 39px); }
.project-meta { margin-top: 20px; }
.project-meta h3 { font-size: 21px; }
.personal { gap: 20px; }
.personal-card { min-height: 190px; padding: 32px; border-radius: 14px; }
.personal-card h3 { font-size: 21px; }
.articles { gap: 28px; }
.article { padding-top: 24px; }
.article h3 { font-size: 18px; }
.bottom { padding: 120px 0; }
.bottom h2 { font-size: clamp(37px, 4.2vw, 53px); }
.footer { padding: 30px 0 38px; }
@media (max-width: 800px) {
 .wrap { width: calc(100% - 40px); }
 .header { height: 72px; }
 .hero { min-height: auto; grid-template-columns: 1fr; gap: 38px; padding: 72px 0 78px; }
 .hero h1 { font-size: clamp(38px, 10vw, 48px); line-height: 1.36; }
 .hero-copy { font-size: 15px; }
 .hero-art { min-height: 260px; }
 .art-photo { height: 270px; }
 .introline { padding: 20px 0; }
 .section { padding: 82px 0; }
 .section h2 { font-size: 33px; }
 .section-head { margin-bottom: 36px; }
 .services { grid-template-columns: 1fr 1fr; gap: 12px; }
 .service, .service:first-child, .service:nth-child(3) { padding: 24px 18px; }
 .service h3 { font-size: 17px; }
 .project-feature, .project-image { height: 250px; min-height: 250px; }
 .project-feature .mark { font-size: clamp(24px, 7vw, 34px); }
 .personal-card { min-height: 145px; padding: 25px; }
 .bottom { padding: 80px 0; }
 .bottom h2 { font-size: 37px; }
}

/* Primary blue and restrained warm accents. */
:root { --blue: #0a66c2; --warm: #996b2f; }
.hero h1 span, .cat, .eyebrow, .small, .icon, .arrow { color: var(--blue); }
.button { background: var(--blue); }
.button:hover { background: #084d91; }
.nav a:hover, .text-link:hover { color: var(--blue); }
.introline::before { background: #eee8dc; }
.introline span:first-child { color: #785625; }
#services::before { background: #eaf2fa; }
#work::before { background: #f1f3f5; }
.project-feature { background: #dcebf7; }
.project-green { background: #cbdff0; }
.project-cream { background: #eee8dd; }
.project-cream .mark, .project-cream .under { color: #745833; }
#notes::before { background: #203c56; }
#notes .small { color: #e8ca93; }
#notes .personal-card { background: #f2ece0; }
#notes .personal-card:hover { background: #e9ddc6; }
#notes .personal-card .arrow { color: var(--warm); }
.writing::before { background: #e5eef7; }
.bottom::before { background: #182f47; }
.bottom .small { color: #e8ca93; }
.availability:before { background: #d7b47d; }

/* Large, calm color fields. */
:root { --paper: #fff; --ink: #17191c; --muted: #62666c; --line: #d9dadd; --blue: #0a66c2; }
body { background: #fff; }
.hero::before { background: #fff; }
.introline::before { background: #fff; }
#services::before { background: #f8f8f8; }
#work::before { background: #fff; }
#notes::before { background: #151719; }
.writing::before { background: #f8f8f8; }
.bottom::before { background: #151719; }
.hero-art { background: #eee; }
.service, .service:first-child, .service:nth-child(3) { background: transparent; border-radius: 0; }
.project-feature, .project-green, .project-cream { background: #f2f2f2; }
.project-feature .mark, .project-cream .mark { color: #42464a; }
.project-feature .under, .project-cream .under { color: #555b61; }
#notes .small, .bottom .small { color: #aeb9c4; }
#notes .personal-card { background: #292b2d; color: #f4f4f4; }
#notes .personal-card:hover { background: #35383b; }
#notes .personal-card p { color: #c2c5c8; }
#notes .personal-card .arrow { color: #aabccc; }
.availability:before { background: #aabccc; }

/* A consistent paper mat and viewport ratio bring the project screenshots together. */
.projects { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 28px; }
.project-image { height: auto; min-height: 0; aspect-ratio: 1.72; padding: clamp(12px, 2vw, 22px); background: #f1f2f3; border: 1px solid #e6e7e8; border-radius: 12px; }
.project-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; border: 1px solid #e0e1e2; border-radius: 3px; filter: saturate(.48); transition: filter .25s ease; }
.project a:hover .project-image img, .project a:focus-visible .project-image img { filter: saturate(1); }
@media (max-width: 800px) { .projects { grid-template-columns: minmax(0, 1fr); gap: 38px; } .project-image { height: auto; min-height: 0; padding: 12px; } }
@media (prefers-reduced-motion: reduce) { .project-image img { transition: none; } }

.service .icon { width: 48px; height: 48px; line-height: 0; }
.service .icon img { display: block; width: 48px; height: 48px; }

/* Brand marks remain intact and share the same calm presentation. */
.project-logo { display: flex; align-items: center; justify-content: center; aspect-ratio: 2.75; padding: 24px 32px; background: #f5f5f4; }
.project-logo img { width: auto; height: auto; max-width: min(66%, 235px); max-height: 105px; object-fit: contain; border: 0; border-radius: 0; filter: none; }
.project-logo-smkst img { max-height: 100px; }
.project-logo-insongreen img { max-height: 100px; }
.project-logo-urbanflow img { max-width: min(68%, 245px); }
.project-logo-momogogo img { max-width: min(62%, 220px); }
.project-logo-insongreen { background: #f5f5f4; }
.project a:hover .project-logo img, .project a:focus-visible .project-logo img { filter: none; }
@media (max-width: 800px) { .project-logo { aspect-ratio: 2.2; padding: 22px; } .project-logo img { max-height: 90px; } }

/* Quiet social entry and footer placeholders until profile URLs are provided. */
.social-intro { margin: 24px 0 0; font-size: 13px; color: #62666c; }
.social-intro a { border-bottom: 1px solid #aeb5ba; }
.social-intro a:hover { color: var(--blue); }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; }
.footer-social-label { color: #62666c; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; color: #4e555b; font-size: 13px; }
.footer-social a:hover { color: var(--blue); }
.footer-social img { width: 24px; height: 24px; object-fit: contain; }
.footer-social .social-xhs { width: 31px; }
.fish-mark { display: inline-flex; align-items: center; justify-content: center; height: 24px; min-width: 30px; border-radius: 5px; background: #f8df45; color: #222; font-weight: 700; font-size: 11px; }


/* Ink landscape leaves the copy on a calm white field. */
.hero { grid-template-columns: minmax(0, 600px) 1fr; }
.hero::before { background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.97) 32%, rgba(255,255,255,.25) 62%, transparent 78%), url("assets/ink-westward-journey.webp") center right / cover no-repeat; }
.hero-art { display: none; }
@media (max-width: 800px) {
  .hero { display: block; padding-bottom: 275px; }
  .hero::before { background: linear-gradient(to bottom, #fff 0%, #fff 53%, rgba(255,255,255,.05) 78%), url("assets/ink-westward-mobile.webp") right bottom / auto 300px no-repeat, #fff; }
}

/* Full-bleed ink scenes: the visual weight moves across the page. */
#services::before {
  transform: translateX(-50%) scaleX(-1);
  background: linear-gradient(to bottom, transparent 0%, rgba(248,248,248,.15) 36%, rgba(248,248,248,.85) 70%, #f8f8f8 100%), linear-gradient(90deg, rgba(248,248,248,.97) 0%, rgba(248,248,248,.89) 45%, rgba(248,248,248,.63) 100%), url("assets/ink-sea-journey.webp") center / cover no-repeat;
}
#work::before {
  background: linear-gradient(to bottom, rgba(255,255,255,.48) 0%, rgba(255,255,255,.93) 37%, rgba(255,255,255,.98) 100%), url("assets/ink-voyage-fleet.webp") center top / 100% auto no-repeat, url("assets/ink-voyage-fleet.webp") center / cover no-repeat;
}
.writing::before {
  transform: translateX(-50%) scaleX(-1);
  background: linear-gradient(90deg, rgba(248,248,248,.98) 0%, rgba(248,248,248,.92) 50%, rgba(248,248,248,.72) 100%), url("assets/ink-mountains-hero.webp") center / cover no-repeat;
}
.bottom::after { content: ""; position: absolute; z-index: -1; right: 0; bottom: 10px; width: min(300px, 32%); aspect-ratio: 2 / 1; background: url("assets/ink-boat-vignette.webp") center / contain no-repeat; filter: invert(1); opacity: .12; pointer-events: none; }
@media (max-width: 800px) {
 #services::before { background-position: center, 55% center; }
 #work::before { background-position: center, center top, 68% center; }
 .writing::before { background-position: center, 70% center; }
 .bottom::after { width: 145px; bottom: 0; opacity: .1; }
}

/* Compact project strip directly beneath the introduction. */
.work-strip { position: relative; isolation: isolate; padding: 34px 0 26px; }
#work.work-strip::before { content: ""; position: absolute; z-index: -1; inset: 0 auto 0 50%; width: 100vw; transform: translateX(-50%); background: #fff; box-shadow: inset 0 1px #e5e5e5, inset 0 -1px #e5e5e5; }
.work-strip-main { display: flex; align-items: center; gap: 40px; }
.work-strip h2 { flex: 0 0 auto; margin: 0; font: 600 17px/1.5 var(--serif); color: var(--ink); }
.work-logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; gap: 35px; flex: 1; }
.work-logos a { min-width: 0; min-height: 60px; display: flex; justify-content: center; align-items: center; }
.work-logos img { display: block; max-width: 100%; width: auto; height: auto; max-height: 48px; object-fit: contain; }
.work-logos img.work-logo-smkst { max-height: 54px; }
.work-note { margin: 14px 0 0; font-size: 12px; color: #62666c; }
.work-note a { color: inherit; border-bottom: 1px solid #a9abad; }
.work-note a:hover { color: var(--blue); }
@media (max-width: 800px) { .work-strip { padding: 27px 0; } .work-strip-main { display: block; } .work-strip h2 { font-size: 16px; margin-bottom: 18px; } .work-logos { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 28px; } .work-logos a { min-height: 52px; } .work-logos img { max-width: 130px; max-height: 42px; } .work-logos img.work-logo-smkst { max-height: 48px; } .work-note { line-height: 1.8; margin-top: 16px; } }

/* A compact pair: client work and personal projects. */
.work-personal-area { position: relative; isolation: isolate; display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; }
.work-personal-area::before { content: ""; position: absolute; z-index: -1; inset: 0 auto 0 50%; width: 100vw; transform: translateX(-50%); background: linear-gradient(rgba(255,255,255,.80), rgba(255,255,255,.80)), url("assets/ink-peach-harvest.webp") center / cover no-repeat, #fff; }
#work.work-strip { padding: 68px 55px 68px 0; }
#work.work-strip::before, .work-personal-area #notes::before { display: none; }
.work-strip-main { display: block; }
.work-strip h2 { font-size: 24px; margin: 0 0 23px; }
.work-logos { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.work-logos img { max-height: 43px; }
.work-logos img.work-logo-smkst { max-height: 50px; }
.work-note { max-width: 510px; margin-top: 20px; line-height: 1.8; }
.work-personal-area #notes { padding: 68px 0 68px 55px; border: 0; border-left: 1px solid #e4e4e4; }
.work-personal-area #notes .section-head { display: block; margin: 0 0 20px; }
.work-personal-area #notes h2 { font-size: 24px; line-height: 1.5; margin: 0; }
.work-personal-area #notes .small, .work-personal-area #notes .section-head p { display: none; }
.work-personal-area .personal { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.work-personal-area #notes .personal-card { min-height: 115px; padding: 16px; background: #f8f8f8; border: 1px solid #ededed; }
.work-personal-area .personal-card h3 { font-size: 16px; margin-bottom: 5px; }
.work-personal-area .personal-card p { font-size: 12px; line-height: 1.7; }
.work-personal-area .personal-card .arrow { font-size: 17px; }
@media (max-width: 800px) {
 .work-personal-area { grid-template-columns: 1fr; }
 #work.work-strip { padding: 42px 0 36px; }
 .work-strip h2, .work-personal-area #notes h2 { font-size: 21px; }
 .work-logos { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 28px; }
 .work-personal-area #notes { border-left: 0; border-top: 1px solid #e4e4e4; padding: 36px 0 45px; }
}
@media (max-width: 380px) { .work-personal-area .personal { grid-template-columns: 1fr; } }

/* Alternating light sections, with only the footer kept dark. */
#notes::before { background: #f8f8f8; }
#notes h2 { color: var(--ink); }
#notes .small { color: var(--blue); }
#notes .section-head p { color: var(--muted); }
#notes .personal-card { background: #fff; color: var(--ink); border: 1px solid #e9e9e9; }
#notes .personal-card:hover { background: #f2f2f2; }
#notes .personal-card p { color: #62666c; }
#notes .personal-card .arrow { color: var(--blue); }
.writing::before { background-color: #f3f3f2; background-image: linear-gradient(90deg, rgba(243,243,242,.98) 0%, rgba(243,243,242,.93) 50%, rgba(243,243,242,.78) 100%), url("assets/ink-mountains-hero.webp"); }
.bottom::before { background: #f8f8f8; }
.bottom h2 { color: var(--ink); }
.bottom .small { color: var(--blue); }
.bottom p, .availability { color: #62666c; }
.bottom .text-link { color: var(--ink); border-color: #a9abad; }
.bottom .text-link:hover { color: var(--blue); }
.availability:before { background: var(--blue); }
.bottom::after { filter: none; opacity: .16; }

/* Large footer, continuing the dark contact area edge to edge. */
.footer { position: relative; isolation: isolate; display: block; border: 0; padding: 72px 0 30px; color: #c3c7ca; }
.footer::before { content: ""; position: absolute; z-index: -1; inset: 0 auto 0 50%; width: 100vw; transform: translateX(-50%); background: #151719; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr 1fr 1.2fr; gap: 48px; padding: 0 0 70px; border-bottom: 1px solid #424548; }
.footer-brand-logo { display: inline-flex; align-items: center; gap: 13px; color: #fff; font-size: 27px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.footer-cat { width: 52px; height: 52px; color: #d0666d; }
.footer-dot { color: #d0666d; }
.footer-brand p { max-width: 230px; margin-top: 20px; color: #aab0b5; font-size: 14px; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 14px; }
.footer-column h2 { margin: 0 0 11px; color: #fff; font-size: 15px; font-weight: 600; }
.footer-column p { margin: 0; max-width: 245px; color: #b9bec1; line-height: 1.9; }
.footer-column a:hover, .footer-bottom a:hover { color: #e1a5a8; }
.footer-social { gap: 8px; }
.footer-social a { color: #c3c7ca; min-height: 32px; }
.footer-social .social-xhs { filter: invert(1); }
.footer-social img { width: 22px; height: 22px; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 25px; font-size: 12px; color: #969da2; }
@media (max-width: 800px) { .footer { padding-top: 55px; } .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; padding-bottom: 45px; } .footer-brand { grid-column: 1 / -1; } .footer-brand-logo { font-size: 24px; } .footer-cat { width: 46px; height: 46px; } }
@media (max-width: 380px) { .footer-grid { grid-template-columns: 1fr; } .footer-brand { grid-column: auto; } }

/* Section backgrounds and spacing provide separation without divider rules. */
.header, .section, .footer, .footer-grid, .work-personal-area #notes { border: 0; }
#work.work-strip::before { box-shadow: none; }
@media (max-width: 800px) { .work-personal-area #notes { border-top: 0; } }

/* Compact article cards with locally hosted featured images. */
.articles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; max-width: none; }
.article { border: 0; padding: 0; }
.article-card { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 22px; align-items: center; padding: 14px; background: rgba(255,255,255,.88); border-radius: 9px; }
.article-card img { display: block; width: 112px; height: 76px; object-fit: cover; border-radius: 5px; }
.article-card h3 { font-size: 17px; line-height: 1.55; margin: 5px 0 0; }
.article-card:hover h3 { color: var(--blue); }
@media (max-width: 800px) { .articles { grid-template-columns: 1fr; } .article-card { grid-template-columns: 84px minmax(0,1fr); gap: 14px; padding: 10px; } .article-card img { width: 84px; height: 64px; } .article-card h3 { font-size: 15px; } }

/* Align the contact invitation and its action at the bottom on desktop. */
@media (min-width: 801px) { .bottom { align-items: start; } }

/* Smaller Chinese editorial headings on desktop. */
@media (min-width: 801px) {
 .hero h1 { font-size: clamp(38px, 4vw, 52px); line-height: 1.4; }
 .section h2 { font-size: clamp(29px, 3vw, 38px); }
 .bottom h2 { font-size: clamp(32px, 3.2vw, 42px); }
}

/* Match the modern version's sans-serif typography across both designs. */
:root { --serif: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
.hero h1, .section h2, .work-strip h2, .work-personal-area #notes h2, .bottom h2, .service h3, .article h3, .personal-card h3 { font-family: var(--sans); }

/* Keep the project logos on a clean field, with the peach painting to the right. */
@media (min-width: 801px) {
 .work-personal-area::before { background: linear-gradient(90deg, #fff 0%, #fff 42%, rgba(255,255,255,.9) 57%, rgba(255,255,255,.62) 100%), url("assets/ink-peach-harvest.webp") right center / cover no-repeat, #fff; }
}

/* On desktop, the service landscape emerges gently below a pale upper area. */
@media (min-width: 801px) {
 #services::before { background: linear-gradient(to bottom, rgba(248,248,248,.94) 0%, rgba(248,248,248,.76) 30%, rgba(248,248,248,.20) 100%), linear-gradient(90deg, rgba(248,248,248,.97) 0%, rgba(248,248,248,.88) 45%, rgba(248,248,248,.50) 100%), url("assets/ink-sea-journey.webp") center / cover no-repeat; }
}

/* Light, opaque tops transition into more visible ink artwork below. */
@media (min-width: 801px) {
 .writing::before { background: linear-gradient(to bottom, rgba(243,243,242,.97) 0%, rgba(243,243,242,.74) 35%, rgba(243,243,242,.10) 100%), linear-gradient(90deg, rgba(243,243,242,.98) 0%, rgba(243,243,242,.88) 50%, rgba(243,243,242,.50) 100%), url("assets/ink-mountains-hero.webp") center / cover no-repeat; }
}

/* Give the project section more breathing room and reveal the peach scene below. */
@media (min-width: 801px) {
 #work.work-strip { padding-top: 100px; padding-bottom: 100px; }
 .work-personal-area #notes { padding-top: 100px; padding-bottom: 100px; }
 .work-personal-area::before { background: linear-gradient(to bottom, rgba(255,255,255,.94) 0%, rgba(255,255,255,.68) 38%, rgba(255,255,255,.18) 100%), linear-gradient(90deg, #fff 0%, #fff 42%, rgba(255,255,255,.90) 57%, rgba(255,255,255,.46) 100%), url("assets/ink-peach-harvest.webp") right center / cover no-repeat, #fff; }
}

/* Consistent vertical rhythm across desktop content sections. */
@media (min-width: 801px) {
 #services, .writing, .bottom { padding-top: 120px; padding-bottom: 120px; }
 #work.work-strip, .work-personal-area #notes { padding-top: 120px; padding-bottom: 120px; }
}

/* A consistent Chinese red accent throughout the site. */
:root { --blue: #a51f2d; --accent-hover: #791620; }
.button:hover { background: var(--accent-hover); }

.post-fallback{width:112px;height:76px;display:grid;place-items:center;background:#eae9e7;color:#a32b39;font-size:24px;flex:none}.post-copy img{max-width:100%;height:auto}.post-copy iframe{max-width:100%}.pagination{margin-top:40px}.comment-list{padding-left:22px}.comment-form textarea,.comment-form input:not([type=submit]){max-width:100%;padding:10px;border:1px solid #ccc}.article-section::before{background:#f3f3f2}.page-section.blog-list::before{background-color:#f3f3f2}


.page-hero,.page-section,.page-close {position:relative;isolation:isolate}
.page-hero::before,.page-section::before,.page-close::before {content:"";position:absolute;z-index:-1;inset:0 auto 0 50%;width:100vw;transform:translateX(-50%)}
.page-hero {padding:100px 0 90px;min-height:350px}
.page-hero::before {background:linear-gradient(90deg,#fff 0%,rgba(255,255,255,.97) 35%,rgba(255,255,255,.56) 100%),url('assets/ink-mountains-hero.webp') right center/cover no-repeat}
.page-hero .kicker,.page-section .kicker {font-size:14px;color:var(--blue);font-weight:600;letter-spacing:.08em}
.page-hero h1 {font:700 clamp(34px,4vw,52px)/1.35 var(--sans);letter-spacing:-.03em;max-width:800px;margin:18px 0 20px}
.page-hero p {font-size:17px;line-height:1.9;color:#515d68;max-width:620px;margin:0}
.page-section {padding:86px 0}.page-section::before {background:#f6f6f5}.page-section.white::before {background:#fff}
.page-section h2,.page-close h2 {font:700 clamp(26px,3vw,37px)/1.45 var(--sans);margin:0 0 24px;letter-spacing:-.025em}
.page-lead {font-size:17px;line-height:2;max-width:750px;color:#4e5963}
.page-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:36px}
.page-tile {display:block;background:#fff;border:1px solid #e9e9e8;border-radius:10px;padding:27px;min-width:0}
.page-tile h3 {font-size:19px;margin:0 0 8px}.page-tile p {margin:0;color:#5d6770;line-height:1.85;font-size:15px}
.page-tile a:hover,.page-links a:hover {color:var(--blue)}
.page-links {display:flex;gap:12px 25px;flex-wrap:wrap;margin-top:28px;font-size:14px}.page-links a {border-bottom:1px solid #c6c6c6}
.page-close {padding:75px 0}.page-close::before {background:#f6f6f5}.page-close p {color:#58626a}.page-close .button {margin-top:12px}
.post-layout {display:grid;grid-template-columns:minmax(0,720px) 240px;gap:70px;align-items:start}.post-copy {font-size:17px;line-height:2;color:#343b42}.post-copy h2 {margin:45px 0 12px;font-size:26px}.post-copy p {margin:0 0 20px}.post-aside {background:#fff;border:1px solid #ececeb;border-radius:10px;padding:22px;color:#58626a;font-size:14px}.post-aside strong {color:#20252a;display:block;margin-bottom:12px}
.page-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:35px}.page-list .article-card {background:#fff}.page-list .article-card img {width:112px;height:76px}.page-meta {font-size:14px;color:#68717b}.page-meta span {margin-right:14px}.demo-note {font-size:14px;color:#69727a;margin-top:22px}
.project-tiles {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:35px}.project-tile {background:#fff;border:1px solid #ececeb;border-radius:10px;padding:28px;display:grid;grid-template-columns:130px 1fr;align-items:center;gap:25px}.project-tile img {width:120px;max-height:80px;object-fit:contain}.project-tile h3 {margin:0 0 6px;font-size:19px}.project-tile p {margin:0;color:#5d6770;font-size:14px}.project-tile a:hover {color:var(--blue)}
.tool-panel {margin-top:30px;max-width:780px;background:#fff;border:1px solid #e8e8e8;border-radius:12px;padding:32px}.tool-panel h3 {margin:0 0 12px}.tool-panel p {color:#59646d}.tool-panel .button {margin-top:10px}
@media(max-width:800px){.page-hero{padding:66px 0 62px;min-height:0}.page-hero h1{font-size:35px}.page-hero p{font-size:15px}.page-section{padding:65px 0}.page-grid,.page-list,.project-tiles,.post-layout{grid-template-columns:1fr}.post-layout{gap:28px}.project-tile{grid-template-columns:95px 1fr;padding:18px;gap:16px}.project-tile img{width:90px;max-height:65px}.page-list .article-card img{width:84px;height:64px}.page-close{padding:60px 0}}

.article-hero { padding-top:65px; padding-bottom:65px; min-height:0; }
.article-hero h1 { max-width:850px; font-size:clamp(32px,3.6vw,48px); }
.breadcrumbs { margin-bottom:36px; color:#69727b; font-size:13px; }
.breadcrumbs a:hover { color:var(--blue); }
.article-byline { margin:0 0 18px; color:#626b73; font-size:14px; }
.article-section::before { background:#fff; }
.article-section .post-copy img { display:block; width:100%; height:auto; border-radius:6px; }
.article-section figure { margin:30px 0; }
.article-section figcaption { text-align:center; color:#69727b; font-size:13px; margin-top:8px; }
.article-section h3 { font-size:20px; margin:32px 0 10px; }
.article-section .post-copy a { color:var(--blue); text-decoration:underline; text-underline-offset:4px; }
.article-section code { font-family:ui-monospace,SFMono-Regular,monospace; font-size:.9em; }
.article-section pre { padding:20px; background:#f4f5f5; border-radius:8px; overflow-x:auto; }
.article-toc { position:sticky; top:24px; background:#f6f6f5; }
.article-toc a { display:block; margin-top:12px; line-height:1.6; }
.article-toc a:hover { color:var(--blue); }
.article-toc .toc-back { margin-top:22px; }
.article-author,.article-related,.article-comments { margin-top:55px; padding-top:25px; border-top:1px solid #e4e5e5; }
.article-author span,.article-author strong { display:block; }
.article-author span { color:#6d747b; font-size:13px; }
.article-author strong { font-size:20px; margin:4px 0; }
.article-author p,.article-comments p { font-size:15px; margin:0 0 8px; }
.article-related h2,.article-comments h2 { margin:0 0 15px; font-size:23px; }
.article-related a { display:block; font-size:15px; margin:9px 0; }
@media(max-width:800px) { .article-hero { padding-top:44px; } .article-hero h1 { font-size:30px; } .article-toc { position:static; grid-row:1; } .post-copy { font-size:16px; } }

/* Shared desktop alignment: content follows the navigation; section backgrounds span the viewport. */
.wrap { width:min(1200px, calc(100% - 96px)); }
.template-projects .page-section:not(.white)::before {background:linear-gradient(90deg,rgba(246,246,245,.98) 0%,rgba(246,246,245,.94) 53%,rgba(246,246,245,.68) 100%),url('assets/ink-peach-harvest.webp') right center/cover no-repeat;}
.template-projects .page-section.white::before {background:linear-gradient(90deg,rgba(255,255,255,.93),rgba(255,255,255,.98) 65%),url('assets/ink-mountains-hero.webp') left center/cover no-repeat;}
.template-project .page-section::before {background:linear-gradient(90deg,rgba(246,246,245,.98) 30%,rgba(246,246,245,.79)),url('assets/ink-peach-harvest.webp') right center/cover no-repeat;}
.template-tool .page-hero::before {background:linear-gradient(90deg,#fff 0%,rgba(255,255,255,.97) 42%,rgba(255,255,255,.68) 100%),url('assets/ink-sea-journey.webp') right center/cover no-repeat;}
.template-tool .page-section::before {background:linear-gradient(90deg,rgba(246,246,245,.95),rgba(246,246,245,.99) 60%),url('assets/ink-boat-vignette.webp') left center/cover no-repeat;}
.template-about .page-section:not(.white)::before {background:linear-gradient(90deg,rgba(246,246,245,.97),rgba(246,246,245,.83)),url('assets/ink-westward-journey.webp') right center/cover no-repeat;}
.template-about .page-section.white::before {background:linear-gradient(90deg,rgba(255,255,255,.9),#fff 65%),url('assets/ink-mountains-hero.webp') left center/cover no-repeat;}
.article-hero-grid {display:grid;grid-template-columns:minmax(0,1fr) minmax(260px, .68fr);gap:64px;align-items:center;}
.article-hero-grid .breadcrumbs {margin-bottom:38px}.article-feature {margin:0;min-width:0}.article-feature img {display:block;width:100%;aspect-ratio:1.5;object-fit:cover;border-radius:8px;box-shadow:0 16px 45px rgba(30,35,40,.09)}
.article-feature figcaption {font-size:12px;color:#747a80;margin-top:9px}
@media(max-width:800px){.wrap {width:calc(100% - 40px)}.article-hero-grid{grid-template-columns:1fr;gap:28px}.article-hero-grid .breadcrumbs{margin-bottom:24px}.article-feature img{aspect-ratio:1.7}.template-projects .page-section:not(.white)::before{background-position:center,right center}}

/* Give adjoining sections distinct light surfaces without divider lines. */
.template-blog-post .article-hero::before {background:linear-gradient(90deg,rgba(240,241,241,.99) 0%,rgba(240,241,241,.96) 45%,rgba(240,241,241,.68) 100%),url('assets/ink-mountains-hero.webp') right center/cover no-repeat,#f0f1f1;}
.template-blog-post .article-section::before {background:#fff;}
.template-blog-post .page-close::before {background:#f0f1f1;}
.template-blog .page-close::before,.template-project .page-close::before,.template-tool .page-close::before {background:#fff;}
.template-projects .page-close::before,.template-about .page-close::before {background:#f0f1f1;}
.template-contact .page-close::before {background:#f0f1f1;}


/* Light hero, grey reading section, light contact section. */
.template-blog-post .article-hero::before {background:linear-gradient(90deg,#fff 0%,rgba(255,255,255,.97) 42%,rgba(255,255,255,.67) 100%),url('assets/ink-mountains-hero.webp') right center/cover no-repeat;}
.template-blog-post .article-section::before {background:#f3f3f2;}
.template-blog-post .page-close::before {background:#fff;}

.article-feature img { height:auto; aspect-ratio:auto; object-fit:contain; }

.primary-menu{display:flex;align-items:center;gap:34px;list-style:none;margin:0;padding:0}.primary-menu a:hover{color:var(--blue)}@media(max-width:800px){.primary-menu{flex-direction:column;align-items:flex-start;gap:18px}}
.tom-toc[hidden]{display:none}.tom-toc ol{list-style:none;margin:0 0 22px;padding:0}.tom-toc li{margin:0 0 8px}.tom-toc li.toc-subheading{padding-left:12px;font-size:13px}.project-logo img{max-width:200px;height:auto;object-fit:contain}

html,body{overflow-x:clip}
/* Blog cards: the link owns the image/text grid so both remain aligned. */
.article-card {display:block;min-width:0;padding:0;}
.article-card-link {display:grid;grid-template-columns:112px minmax(0,1fr);align-items:center;gap:20px;min-height:112px;padding:14px;}
.article-card-copy {display:block;min-width:0;}
.article-card-meta {display:block;margin:0 0 5px;color:#737c83;font-size:12px;line-height:1.5;}
.article-card-title {display:block;color:#20252a;font-size:16px;font-weight:650;line-height:1.55;overflow-wrap:anywhere;}
.article-card-link:hover .article-card-title {color:var(--blue);}
.article-card img,.post-fallback {width:112px;height:76px;object-fit:cover;border-radius:5px;}
.pagination .nav-links {display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
.pagination .page-numbers {display:inline-flex;min-width:38px;min-height:38px;justify-content:center;align-items:center;padding:4px 10px;border:1px solid #dedfdf;border-radius:5px;background:#fff;}
.pagination .page-numbers.current {background:#a72332;border-color:#a72332;color:#fff;}
/* Older WordPress captions contain fixed inline widths. */
.post-layout > *, .post-copy, .article-content, .post-aside {min-width:0;}
.article-content .wp-caption, .article-content figure, .article-content img {max-width:100%;}
.article-content .wp-caption {height:auto;margin:28px 0;}
.article-content .wp-caption img {height:auto;}
.article-content .wp-caption-text {font-size:13px;color:#69727b;text-align:center;line-height:1.6;margin:8px 0 0;}
.article-content pre, .article-content table {max-width:100%;overflow-x:auto;}
.article-content {overflow-wrap:anywhere;}
.article-toc {overflow-wrap:anywhere;}
@media(max-width:800px){
 .page-list,.post-layout {grid-template-columns:minmax(0,1fr);}
 .article-card-link {grid-template-columns:84px minmax(0,1fr);gap:14px;min-height:90px;padding:12px;}
 .article-card img,.page-list .article-card img,.post-fallback {width:84px;height:64px;}
 .article-card-title {font-size:15px;line-height:1.5;}
 .article-card-meta {font-size:11px;}
}
/* WordPress comments: shared with existing comment and anti-spam plugins. */
.article-comments {margin-top:54px;padding:32px;background:#fff;border:1px solid #e8e8e6;border-radius:10px;}
.article-comments > h2 {margin:0 0 25px;font-size:25px;line-height:1.45;}
.article-comments .comment-reply-title {margin:0 0 8px;font-size:18px;line-height:1.5;}
.article-comments .comment-notes,.article-comments .logged-in-as {color:#707880;font-size:13px;line-height:1.7;}
.article-comments .comment-form {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px;}
.article-comments .comment-form > * {grid-column:1 / -1;min-width:0;}
.article-comments .comment-form p {margin:0;}
.article-comments .comment-form .comment-form-author {grid-column:1;}
.article-comments .comment-form .comment-form-email {grid-column:2;}
.article-comments .comment-form label {display:block;margin:0 0 6px;color:#414950;font-size:14px;font-weight:600;line-height:1.5;}
.article-comments .comment-form textarea,.article-comments .comment-form input:not([type=checkbox]):not([type=submit]):not([type=hidden]) {display:block;width:100%;max-width:100%;padding:12px 14px;border:1px solid #d9dcdd;border-radius:6px;background:#fafafa;color:#20252a;font:inherit;font-size:15px;line-height:1.6;}
.article-comments .comment-form textarea {min-height:145px;resize:vertical;}
.article-comments .comment-form textarea:focus,.article-comments .comment-form input:focus-visible {outline:2px solid #aa2938;outline-offset:2px;border-color:#aa2938;}
.article-comments .comment-form .comment-form-cookies-consent {display:flex;gap:9px;align-items:flex-start;}
.article-comments .comment-form-cookies-consent input {flex:0 0 auto;margin:5px 0 0;}
.article-comments .comment-form-cookies-consent label {margin:0;color:#707880;font-size:12px;font-weight:400;line-height:1.7;}
.article-comments .comment-form .submit {display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:5px;padding:12px 24px;background:#a72332;color:#fff;font:inherit;font-size:14px;font-weight:600;cursor:pointer;}
.article-comments .comment-form .submit:hover {background:#861927;}
.article-comments .comment-form > p:not([class]) {color:#707880;font-size:12px;line-height:1.7;}
.article-comments .comment-list,.article-comments .children {list-style:none;margin:0;padding:0;}
.article-comments .comment-list {margin:0 0 32px;}
.article-comments .comment-list .children {margin-left:28px;}
.article-comments .comment-body {padding:20px 0;border-bottom:1px solid #ededeb;}
.article-comments .comment-author {display:flex;align-items:center;gap:10px;font-size:14px;}
.article-comments .comment-author .avatar {width:38px;height:38px;border-radius:50%;}
.article-comments .comment-metadata,.article-comments .reply {font-size:12px;color:#707880;}
.article-comments .comment-content {margin-top:12px;font-size:15px;line-height:1.8;overflow-wrap:anywhere;}
.article-comments .comment-content p {margin:0 0 10px;}
@media(max-width:800px){.article-comments {margin-top:40px;padding:22px 18px;}.article-comments > h2 {font-size:22px;}.article-comments .comment-form {grid-template-columns:minmax(0,1fr);gap:14px;}.article-comments .comment-form .comment-form-author,.article-comments .comment-form .comment-form-email {grid-column:1;}.article-comments .comment-list .children {margin-left:16px;}.article-comments .g-recaptcha {max-width:100%;overflow-x:auto;}}

/* Shared contact section: white across all templates. */
.bottom::before { background: #fff; }
/* Use the sidebar as the single article directory; keep old plugin anchors intact. */
.article-content #ez-toc-container,.article-content .ez-toc-container,.article-content .ez-toc-split-section {display:none!important;}
.article-toc[hidden] {display:none;}
.article-toc {max-height:calc(100vh - 48px);overflow-y:auto;}
@media(max-width:800px){.article-toc {max-height:none;overflow:visible;}}

/* Align the article layout with the hero and give the contents room. */
@media(min-width:801px){.article-section .post-layout{grid-template-columns:minmax(0,1fr) minmax(260px,340px);gap:60px;}}
.article-toc { background: #fff; }
/* Readable tables inside article content, including legacy wide tables. */
.article-content table {border-collapse:collapse;width:100%;max-width:100%;margin:18px 0 24px;background:#fff;color:#343b42;font-size:14px;line-height:1.55;text-align:left;}
.article-content table th,.article-content table td {padding:12px 14px;border:1px solid #e5e6e5;text-align:left;vertical-align:top;overflow-wrap:normal;word-break:normal;}
.article-content table th {background:#f0f1f0;color:#20252a;font-size:13px;font-weight:700;}
.article-content table tbody tr:nth-child(even) td {background:#fafafa;}
.article-content table td p {margin:0;font-size:inherit;line-height:inherit;}
.article-content table td a {font-weight:600;text-underline-offset:3px;}
.article-content table[style*="min-width"] th,.article-content table[style*="min-width"] td {min-width:105px;}
.article-content table[style*="min-width"] th:first-child,.article-content table[style*="min-width"] td:first-child {min-width:130px;}
.article-content table[style*="min-width"] th:last-child,.article-content table[style*="min-width"] td:last-child {min-width:180px;}
.article-content .wp-block-table {max-width:100%;overflow-x:auto;}
@media(max-width:800px){.article-content table {font-size:13px;}.article-content table th,.article-content table td {padding:10px 12px;}.article-content table th {font-size:12px;}}
.article-content table:not([style*="min-width"]) {display:block;overflow-x:auto;}

.back-to-top {position:fixed;right:24px;bottom:24px;z-index:50;display:grid;place-items:center;width:48px;height:48px;padding:0;border:1px solid #dededb;border-radius:50%;background:#fff;color:#a72332;box-shadow:0 5px 20px rgba(30,30,30,.13);cursor:pointer;transition:background .2s,color .2s,box-shadow .2s;}
.back-to-top[hidden]{display:none}.back-to-top:hover{background:#a72332;color:#fff;box-shadow:0 7px 22px rgba(30,30,30,.18)}
@media(max-width:800px){.back-to-top{right:16px;bottom:calc(16px + env(safe-area-inset-bottom));width:44px;height:44px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.back-to-top{transition:none}}
/* Lists in article prose match paragraph typography. */
.article-content ul,.article-content ol,.article-content ul li,.article-content ol li {font-size:1em;line-height:inherit;}

.toc-disclosure summary {display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer;color:#20252a;font-weight:600;line-height:1.5;}
.toc-disclosure summary::-webkit-details-marker {display:none;}
.toc-disclosure summary:focus-visible {outline:3px solid var(--blue);outline-offset:4px;}
.toc-disclosure ol {margin-top:12px;}
@media(max-width:800px){.toc-disclosure summary::after {content:"";width:8px;height:8px;flex:none;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:0 3px 4px 0;}.toc-disclosure[open] summary::after {transform:rotate(225deg);margin-bottom:-4px;}}
@media(min-width:801px){.toc-disclosure summary {cursor:default;pointer-events:none;}}
@media(max-width:800px){.services{grid-template-columns:minmax(0,1fr);gap:12px}.service,.service:first-child,.service:nth-child(3){padding:24px 18px}}
@media(min-width:601px) and (max-width:1024px){.services{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.service,.service:first-child,.service:nth-child(3){padding:24px 18px}}

.work-logos a{flex-direction:column;gap:12px;text-align:center;justify-content:flex-start}.work-logos a img{flex:none}.work-project-meta{display:block;font-size:11px;line-height:1.5;color:#687178;overflow-wrap:anywhere}.project-tile .project-category{color:#9f2837;font-size:12px;margin-bottom:6px}.page-hero p.project-detail-meta{font-size:14px;color:#a72332;font-weight:600;margin-bottom:10px}.project-logo{margin-bottom:22px}.post-copy ul{padding-left:1.4em}
@media(max-width:800px){.work-project-meta{font-size:11px}.work-logos a{gap:8px}}
.project-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px, .55fr);gap:64px;align-items:center}.project-hero-logo{display:flex;align-items:center;justify-content:center;min-height:230px;background:rgba(255,255,255,.88);border:1px solid #efefed;border-radius:10px;padding:32px}.project-hero-logo img{display:block;max-width:min(100%,230px);max-height:140px;width:auto;height:auto;object-fit:contain}.project-body .post-copy{max-width:900px}.project-screenshot{margin:0 0 45px}.project-screenshot img{display:block;width:100%;height:auto;border:1px solid #e3e4e4;border-radius:8px}.project-screenshot figcaption{margin-top:9px;color:#707880;font-size:13px;line-height:1.5}.project-body .post-copy li{margin-bottom:12px}
@media(max-width:800px){.project-hero-grid{grid-template-columns:minmax(0,1fr);gap:28px}.project-hero-logo{min-height:145px;padding:24px}.project-hero-logo img{max-height:90px}.project-screenshot{margin-bottom:32px}}
.about-hero-grid {display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,340px);gap:70px;align-items:center}.about-portrait {margin:0;justify-self:end;width:min(100%,300px)}.about-portrait img {display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:10px}.about-section .post-layout {grid-template-columns:minmax(0,1fr) minmax(240px,300px);gap:70px}.about-section .post-copy {max-width:720px}.about-section .article-toc {background:#fff}
@media(max-width:800px){.about-hero-grid{grid-template-columns:minmax(0,1fr);gap:28px}.about-portrait{justify-self:start;width:min(65%,230px)}.about-section .post-layout{grid-template-columns:minmax(0,1fr);gap:28px}}
/* Alternate the About page's artwork between hero and body. */
.template-about .about-section::before {transform:translateX(-50%) scaleX(-1);}
.about-section .post-copy a {color:#a72332;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px;}
.about-section .post-copy a:hover {color:#751927;text-decoration-thickness:2px;}

@media (min-width:801px) and (max-width:1100px){.article-nav,.article-nav .primary-menu{gap:18px;font-size:13px}.article-nav .contact{padding:7px 12px}}

.nav-tools {position:relative;}
.nav-tools summary {display:flex;align-items:center;gap:7px;list-style:none;cursor:pointer;white-space:nowrap;}
.nav-tools summary::-webkit-details-marker {display:none;}
.nav-tools summary::after {content:"";width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-top:-4px;}
.nav-tools[open] summary::after {transform:rotate(225deg);margin-top:4px;}
.nav-tools summary:focus-visible {outline:3px solid var(--blue);outline-offset:4px;}
.nav-tools-menu {position:absolute;z-index:10;top:calc(100% + 12px);left:-16px;min-width:180px;padding:8px;background:#fff;border:1px solid #e7e7e5;border-radius:8px;box-shadow:0 10px 30px rgba(0,0,0,.10);}
.nav-tools-menu a {display:block;padding:9px 10px;border-radius:4px;white-space:nowrap;}
.nav-tools-menu a:hover {background:#f5f5f4;}
@media(max-width:800px){.nav-tools {width:100%;}.nav-tools-menu {position:static;min-width:0;margin-top:8px;padding:0 0 0 12px;border:0;box-shadow:none;background:transparent;}.nav-tools-menu a {white-space:normal;}}
.about-portrait {width:min(100%,150px);}
@media(max-width:800px){.about-portrait {width:min(65%,115px);}}
.solution-content {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:stretch}.solution-content .solution-lead{grid-column:1/-1;max-width:760px;margin:0 0 20px;color:#4f5961;font-size:17px;line-height:1.9}.solution-item,.solution-resources{min-width:0;padding:32px;background:#fff;border:1px solid #e9e9e7;border-radius:9px}.solution-content .solution-number{color:#a72332;font-size:12px;font-weight:700;letter-spacing:.06em}.solution-content h2{font-size:23px;line-height:1.45;margin:12px 0 18px}.solution-content p{color:#4d565d;font-size:15px;line-height:1.85;margin:0 0 16px}.solution-content p:last-child{margin-bottom:0}.solution-content a{color:#a72332;text-decoration:underline;text-underline-offset:3px}.solution-content a:hover{color:#771a26}.solution-resource{border-top:1px solid #ededeb;padding-top:14px;font-size:13px!important}.solution-resources{grid-column:1/-1;background:#fdfdfc}.solution-resources p{max-width:840px}.solution-hero h1{max-width:880px}
@media(max-width:800px){.solution-content{grid-template-columns:minmax(0,1fr);gap:14px}.solution-content .solution-lead,.solution-resources{grid-column:auto}.solution-item,.solution-resources{padding:24px 20px}.solution-content h2{font-size:20px}.solution-content .solution-lead{font-size:16px}}
.solution-content .solution-help {margin-top:22px;padding:16px 18px;border-left:3px solid #a72332;border-radius:0 5px 5px 0;background:#f6f5f3;color:#30373c;font-size:14px;line-height:1.8;}
.solution-help strong {display:block;margin-bottom:5px;color:#a72332;font-size:13px;}
.solution-content .solution-intro-heading{grid-column:1/-1;margin:12px 0 4px;font-size:clamp(24px,2.5vw,32px);}
@media(max-width:800px){.solution-content .solution-intro-heading{grid-column:auto;font-size:23px;}}

/* Solutions: recognizable illustrations and a clear service layer. */
.solution-content {column-gap:24px;row-gap:24px}
.solution-content .solution-lead {margin-bottom:4px}
.solution-content .solution-intro-heading {margin:10px 0 2px}
.solution-item {position:relative;display:flex;flex-direction:column;align-items:flex-start;padding:30px 32px 32px;border-color:#e9e8e5;border-radius:10px;box-shadow:0 8px 30px rgba(32,35,36,.035)}
.solution-item::before {content:"";display:block;width:54px;height:54px;margin-bottom:25px;background:center/contain no-repeat}
.solution-item:nth-of-type(1)::before {background-image:url('assets/icons/market.svg')}
.solution-item:nth-of-type(2)::before {background-image:url('assets/icons/website.svg')}
.solution-item:nth-of-type(3)::before {background-image:url('assets/icons/content-search.svg')}
.solution-item:nth-of-type(4)::before {background-image:url('assets/icons/social.svg')}
.solution-content .solution-item h2 {margin:10px 0 24px;font-size:clamp(21px,2vw,25px)}
.solution-content .solution-item > p {width:100%;margin:auto 0 0;padding:18px 20px;background:#f8f6f4;border-radius:5px;color:#424a50}
.solution-item > p::before {content:'我可以帮你';display:block;margin-bottom:6px;color:#a72332;font-size:12px;font-weight:700;letter-spacing:.08em}
.solution-resources {position:relative;margin-top:18px;padding:34px 38px;background:#eeefed;border:0;border-radius:10px}
.solution-resources p:last-child {font-size:13px;color:#687178}
@media(max-width:800px){.solution-content{gap:14px}.solution-content .solution-intro-heading{margin:14px 0 6px}.solution-item{padding:22px 20px}.solution-item::before{width:44px;height:44px;margin-bottom:15px}.solution-content .solution-item h2{font-size:20px;margin:8px 0 18px}.solution-content .solution-item > p{padding:14px 16px}.solution-resources{margin-top:14px;padding:25px 20px}}
.solution-item > p:empty {display:none}

/* Mirror the hero landscape into the lower left of the reading section. */
.blog .page-section.blog-list::before,
.category .page-section.blog-list::before,
.template-blog-post .article-section::before,
.template-contact .page-section::before {
  --landscape-width: clamp(340px, 66vw, 1040px);
  transform: translateX(-50%) scaleX(-1);
  background-color: #f3f3f2;
  background-image:
    linear-gradient(to bottom, #f3f3f2, rgb(243 243 242 / 84%) 42%, rgb(243 243 242 / 40%)),
    linear-gradient(to right, #f3f3f2, transparent 55%),
    url('assets/ink-mountains-hero.webp');
  background-position: right bottom;
  background-size: var(--landscape-width) calc(var(--landscape-width) * 897 / 1752);
  background-repeat: no-repeat;
}

.header .tools-nav { position: relative; }
.tools-nav summary, .tools-toggle { cursor: pointer; font: inherit; color: inherit; background: none; border: 0; padding: 0; list-style: none; }
.tools-nav summary::-webkit-details-marker { display: none; }
.tools-nav summary::after, .tools-toggle::after { content: ''; display: inline-block; width: .4em; height: .4em; margin: 0 .15em .2em .55em; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); }
.tools-nav[open] summary::after, .tools-toggle[aria-expanded=true]::after { transform: rotate(225deg); }
.nav .tools-links { position: absolute; z-index: 5; top: 100%; left: 0; min-width: max-content; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid #e5e5e5; border-radius: 8px; box-shadow: 0 8px 20px #0001; }
.nav .tools-links a { display: block; padding: 8px 12px; }
.tools-toggle[aria-expanded=false] + .tools-links { display: none; }
@media (max-width:800px) {
  .nav .tools-links { position: static; margin-top: 6px; padding: 0 0 0 8px; border: 0; box-shadow: none; }
}

.nav a[aria-current="page"], .nav a.active-section,
.nav .current-menu-item > a, .nav .current-menu-ancestor > .tools-toggle,
.nav .tools-nav summary:hover, .nav .tools-toggle:hover { color: var(--blue); }

.header .language-switch { white-space: nowrap; font-size: 13px; }
@media (min-width:801px) { .header .language-switch { margin-inline-start: 12px; } }
@media (max-width:800px) { .header .menu { margin-inline-start:auto; } .header .language-switch { margin-inline-start:14px; } }
.article-card-title { margin:0; }

.footer-bottom { align-items:center; flex-wrap:wrap; gap:4px 16px; }
.footer-languages { display:inline-flex; align-items:center; gap:12px; margin-inline-start:auto; white-space:nowrap; }
.footer-languages a { text-decoration:underline; text-underline-offset:3px; padding-block:6px; }
