/* xingkongmix homepage — a small visual system layered over Minimal Mistakes. */

:root {
  --xh-bg: #f7f8f7;
  --xh-panel: #ffffff;
  --xh-panel-2: #eef4f1;
  --xh-ink: #17221f;
  --xh-muted: #62706b;
  --xh-dim: #99a5a0;
  --xh-line: rgba(23, 34, 31, 0.13);
  --xh-acid: #237952;
  --xh-cyan: #0b8290;
  --xh-violet: #7659aa;
  --xh-max: 1180px;
}

html { scroll-behavior: smooth; }

body.home-shell {
  background: var(--xh-bg);
  color: var(--xh-ink);
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.home-shell::selection { background: #bfe8d2; color: #17221f; }
body.home-shell .masthead,
body.home-shell .page__footer { display: none; }
body.home-shell #main,
body.home-shell .splash,
body.home-shell .splash .page__content { width: 100%; max-width: none; margin: 0; padding: 0; }
body.home-shell .splash .page__content { float: none; }

.xing-home { overflow: hidden; background: var(--xh-bg); }
.xh-nav, .xh-hero, .xh-section, .xh-footer { max-width: var(--xh-max); margin: 0 auto; }
.xh-nav { min-height: 92px; padding: 22px 28px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.xh-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--xh-ink); text-decoration: none; }
.xh-brand:hover { color: var(--xh-acid); }
.xh-brand-mark, .xh-contact-mark { display: grid; place-items: center; color: #0a0d11; background: var(--xh-acid); font-weight: 900; letter-spacing: -0.08em; }
.xh-brand-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 12px; box-shadow: 0 0 24px rgba(201, 255, 80, 0.22); }
.xh-brand-copy { display: grid; gap: 2px; line-height: 1; }
.xh-brand-copy strong { font-size: 15px; letter-spacing: -0.02em; }
.xh-brand-copy small { color: var(--xh-dim); font-size: 8px; letter-spacing: 0.14em; }
.xh-nav-links { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.xh-nav-links a, .xh-nav-cta { color: var(--xh-muted); font-size: 12px; text-decoration: none; transition: color .2s ease; }
.xh-nav-links a:hover, .xh-nav-cta:hover { color: var(--xh-acid); }
.xh-nav-cta { padding: 10px 14px; border: 1px solid var(--xh-line); border-radius: 999px; color: var(--xh-ink); }
.xh-nav-cta span, .xh-button span, .xh-text-link span { color: var(--xh-acid); }

.xh-hero { min-height: 680px; padding: 72px 28px 96px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .88fr); align-items: center; gap: 72px; }
.xh-kicker, .xh-section-label, .xh-card-kicker { margin: 0; color: var(--xh-acid); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.xh-kicker { display: flex; align-items: center; gap: 9px; }
.xh-pulse, .xh-mini-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--xh-acid); box-shadow: 0 0 0 5px rgba(201, 255, 80, .09), 0 0 18px var(--xh-acid); }
.xh-hero h1 { max-width: 730px; margin: 22px 0 22px; color: var(--xh-ink); font-size: clamp(48px, 6vw, 88px); font-weight: 750; letter-spacing: -.075em; line-height: .98; }
.xh-hero h1 span, .xh-section h2 span, .xh-contact h2 span { color: var(--xh-acid); }
.xh-hero-lede { max-width: 520px; margin: 0; color: var(--xh-muted); font-size: 17px; line-height: 1.75; }
.xh-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.xh-button { display: inline-flex; align-items: center; gap: 18px; padding: 13px 17px; border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-decoration: none; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.xh-button:hover { transform: translateY(-3px); text-decoration: none; }
.xh-button-primary { background: var(--xh-acid); color: #0a0d11; box-shadow: 0 12px 28px rgba(201, 255, 80, .12); }
.xh-button-primary span { color: #0a0d11; }
.xh-button-ghost { border: 1px solid var(--xh-line); color: var(--xh-ink); }
.xh-button-ghost:hover { border-color: rgba(201, 255, 80, .6); }
.xh-principles { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 56px; }
.xh-principles div { display: grid; gap: 5px; padding-right: 22px; border-right: 1px solid var(--xh-line); }
.xh-principles div:last-child { border: 0; }
.xh-principles strong { color: var(--xh-cyan); font: 11px/1 "SFMono-Regular", Consolas, monospace; }
.xh-principles span { color: var(--xh-dim); font-size: 10px; }

.xh-hero-art { position: relative; min-height: 500px; display: grid; place-items: center; }
.xh-art-grid { position: absolute; inset: 3% 0; opacity: .46; background-image: linear-gradient(rgba(23, 34, 31, .11) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 34, 31, .11) 1px, transparent 1px); background-size: 34px 34px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 72%); }
.xh-orbit { position: absolute; border: 1px solid rgba(85, 214, 255, .26); border-radius: 50%; transform: rotate(-24deg); }
.xh-orbit::after { content: ""; position: absolute; width: 9px; height: 9px; right: 8%; top: 12%; border-radius: 50%; background: var(--xh-cyan); box-shadow: 0 0 22px 5px rgba(85, 214, 255, .4); }
.xh-orbit-a { width: 80%; height: 43%; animation: xh-spin 14s linear infinite; }
.xh-orbit-b { width: 72%; height: 66%; border-color: rgba(201, 255, 80, .25); transform: rotate(54deg); animation: xh-spin-reverse 18s linear infinite; }
.xh-orbit-b::after { top: 74%; right: 14%; background: var(--xh-acid); box-shadow: 0 0 22px 5px rgba(201, 255, 80, .35); }
.xh-orbit-c { width: 42%; height: 84%; border-color: rgba(159, 140, 255, .28); transform: rotate(70deg); animation: xh-spin 22s linear infinite; }
.xh-orbit-c::after { top: 9%; right: 50%; background: var(--xh-violet); box-shadow: 0 0 22px 5px rgba(159, 140, 255, .35); }
.xh-hero-card { position: relative; z-index: 2; width: min(100%, 340px); min-height: 270px; padding: 24px; background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(235, 244, 239, .98)); border: 1px solid rgba(35, 121, 82, .28); border-radius: 18px; box-shadow: 0 26px 80px rgba(45, 72, 60, .16), inset 0 1px rgba(255,255,255,.92); transform: rotate(3deg); }
.xh-card-top, .xh-card-bottom, .xh-work-meta, .xh-work-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.xh-card-top, .xh-work-meta, .xh-work-footer { color: var(--xh-dim); font: 10px/1.2 "SFMono-Regular", Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; }
.xh-card-top span:last-child { color: var(--xh-acid); font-size: 18px; }
.xh-card-line { width: 42px; height: 3px; margin: 44px 0 20px; background: var(--xh-acid); }
.xh-hero-card h2 { margin: 0; color: var(--xh-ink); font-size: 36px; letter-spacing: -.065em; line-height: .96; }
.xh-hero-card h2 em { color: var(--xh-acid); font-style: normal; }
.xh-hero-card p { max-width: 230px; margin: 18px 0 46px; color: var(--xh-muted); font-size: 12px; line-height: 1.65; }
.xh-card-bottom { color: var(--xh-muted); font: 10px/1 "SFMono-Regular", Consolas, monospace; }
.xh-card-arrow { margin-left: auto; color: var(--xh-acid); font-size: 18px; }
.xh-signal { position: absolute; z-index: 3; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--xh-panel-2); border: 1px solid var(--xh-line); color: var(--xh-acid); font: 12px "SFMono-Regular", Consolas, monospace; box-shadow: 0 10px 24px rgba(0,0,0,.28); }
.xh-signal-a { left: 5%; top: 16%; }
.xh-signal-b { right: 5%; bottom: 16%; color: var(--xh-cyan); }
@keyframes xh-spin { to { transform: rotate(336deg); } }
@keyframes xh-spin-reverse { to { transform: rotate(-306deg); } }

.xh-marquee { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 24px; min-height: 70px; padding: 16px 24px; border-top: 1px solid var(--xh-line); border-bottom: 1px solid var(--xh-line); color: var(--xh-dim); font: 10px "SFMono-Regular", Consolas, monospace; letter-spacing: .16em; }
.xh-marquee i { color: var(--xh-acid); font-style: normal; }
.xh-section { padding: 120px 28px 0; }
.xh-section-label { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--xh-line); color: var(--xh-dim); }
.xh-section-label span:first-child { color: var(--xh-acid); font-family: "SFMono-Regular", Consolas, monospace; }
.xh-about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; padding-top: 44px; }
.xh-section h2 { margin: 0; color: var(--xh-ink); font-size: clamp(38px, 5vw, 68px); letter-spacing: -.075em; line-height: 1.03; }
.xh-section h2 span { color: var(--xh-acid); }
.xh-about-copy { padding-top: 8px; }
.xh-about-copy p { max-width: 450px; margin: 0 0 18px; color: var(--xh-muted); font-size: 15px; line-height: 1.8; }
.xh-text-link { display: inline-flex; align-items: center; gap: 14px; margin-top: 18px; color: var(--xh-ink); font-size: 12px; font-weight: 700; text-decoration: none; }
.xh-text-link:hover { color: var(--xh-acid); text-decoration: none; }
.xh-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; padding: 42px 0 34px; }
.xh-section-heading p { max-width: 250px; margin: 0; color: var(--xh-muted); font-size: 13px; line-height: 1.7; }
.xh-stack-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.xh-stack-card { min-height: 210px; padding: 24px; display: grid; grid-template-columns: 50px 1fr; gap: 22px; background: var(--xh-panel); border: 1px solid var(--xh-line); border-radius: 12px; transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.xh-stack-card:hover { transform: translateY(-5px); border-color: rgba(201, 255, 80, .45); background: var(--xh-panel-2); }
.xh-stack-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(201, 255, 80, .08); color: var(--xh-acid); font: 700 14px "SFMono-Regular", Consolas, monospace; }
.xh-stack-frontend .xh-stack-icon { background: rgba(85, 214, 255, .08); color: var(--xh-cyan); }
.xh-stack-backend .xh-stack-icon { background: rgba(159, 140, 255, .08); color: var(--xh-violet); }
.xh-stack-tools .xh-stack-icon { background: rgba(255, 173, 85, .08); color: #ffb26a; }
.xh-stack-card h3 { margin: 30px 0 20px; color: var(--xh-ink); font-size: 19px; letter-spacing: -.04em; }
.xh-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.xh-tags span { padding: 6px 8px; border: 1px solid var(--xh-line); border-radius: 4px; color: var(--xh-muted); font: 10px "SFMono-Regular", Consolas, monospace; }
.xh-work-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px; }
.xh-work-card { min-height: 320px; padding: 26px; display: flex; flex-direction: column; border: 1px solid var(--xh-line); border-radius: 12px; color: var(--xh-ink); text-decoration: none; overflow: hidden; transition: transform .25s ease, border-color .25s ease; }
.xh-work-card:hover { transform: translateY(-6px); border-color: rgba(201, 255, 80, .55); color: var(--xh-ink); text-decoration: none; }
.xh-work-main { background: radial-gradient(circle at 80% 20%, rgba(11, 130, 144, .16), transparent 35%), linear-gradient(135deg, #ffffff, #edf7f3); }
.xh-work-secondary { background: radial-gradient(circle at 90% 82%, rgba(35, 121, 82, .14), transparent 36%), var(--xh-panel); }
.xh-work-meta span:last-child { color: var(--xh-acid); font-size: 18px; }
.xh-work-card h3 { margin: auto 0 16px; font-size: clamp(29px, 4vw, 50px); letter-spacing: -.07em; line-height: .98; }
.xh-work-secondary h3 { font-size: clamp(26px, 3vw, 40px); }
.xh-work-card p { max-width: 430px; margin: 0 0 28px; color: var(--xh-muted); font-size: 13px; line-height: 1.7; }
.xh-work-footer { padding-top: 16px; border-top: 1px solid var(--xh-line); color: var(--xh-muted); letter-spacing: .06em; }
.xh-contact { max-width: var(--xh-max); margin: 120px auto 0; padding: 100px 28px 106px; text-align: center; border-top: 1px solid var(--xh-line); background: radial-gradient(circle at 50% 0, rgba(35,121,82,.11), transparent 48%); }
.xh-contact-mark { width: 56px; height: 56px; margin: 0 auto 32px; border-radius: 16px; font-size: 18px; box-shadow: 0 0 36px rgba(201, 255, 80, .22); }
.xh-contact .xh-kicker { justify-content: center; }
.xh-contact h2 { margin: 20px 0 17px; color: var(--xh-ink); font-size: clamp(40px, 6vw, 76px); letter-spacing: -.08em; line-height: .98; }
.xh-contact p:not(.xh-kicker) { max-width: 430px; margin: 0 auto 28px; color: var(--xh-muted); font-size: 14px; line-height: 1.7; }
.xh-footer { min-height: 78px; padding: 20px 28px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--xh-line); color: var(--xh-dim); font: 10px "SFMono-Regular", Consolas, monospace; letter-spacing: .05em; }
.xh-footer a { color: var(--xh-muted); text-decoration: none; }
.xh-footer a:hover { color: var(--xh-acid); }

/* Blog and archive pages keep the same paper-and-ink language as the home page. */
body.blog-shell, body.archive-shell {
  background: var(--xh-bg);
  color: var(--xh-ink);
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.blog-shell .masthead, body.archive-shell .masthead {
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid var(--xh-line);
}
body.blog-shell .masthead__inner-wrap, body.archive-shell .masthead__inner-wrap { max-width: var(--xh-max); }
body.blog-shell .masthead a, body.archive-shell .masthead a { color: var(--xh-ink); }
body.blog-shell .masthead a:hover, body.archive-shell .masthead a:hover { color: var(--xh-acid); }
body.blog-shell #main, body.archive-shell #main { max-width: 980px; margin: 0 auto; padding: 76px 28px 100px; }
body.blog-shell .sidebar, body.archive-shell .sidebar { display: none; }
body.blog-shell .page, body.archive-shell .archive { width: 100%; float: none; margin: 0; padding: 0; }
body.blog-shell .page__inner-wrap { max-width: 780px; margin: 0 auto; }
body.blog-shell .page__title, body.archive-shell .page__title { color: var(--xh-ink); font-size: clamp(38px, 5vw, 66px); letter-spacing: -.07em; line-height: 1.04; }
body.blog-shell .page__meta, body.archive-shell .page__meta { color: var(--xh-dim); font-size: 12px; }
body.blog-shell .page__content, body.archive-shell .archive { color: var(--xh-muted); }
body.blog-shell .page__content { font-size: 17px; line-height: 1.9; }
body.blog-shell .page__content h2 { margin-top: 2.2em; padding: 0; border: 0; color: var(--xh-ink); font-size: 29px; letter-spacing: -.04em; }
body.blog-shell .page__content h3 { color: var(--xh-ink); font-size: 21px; }
body.blog-shell .page__content a { color: var(--xh-acid); }
body.blog-shell .page__content blockquote { margin: 2em 0; padding: 18px 22px; border-left: 3px solid var(--xh-acid); background: #edf5f0; color: #53635b; }
body.blog-shell .page__content pre { padding: 20px; border: 1px solid #26352f; border-radius: 10px; background: #18231f; color: #e4f1e8; box-shadow: 0 16px 35px rgba(23, 34, 31, .12); }
body.blog-shell .page__content p > code, body.blog-shell .page__content li > code { background: #edf5f0; border-color: #d4e4da; color: #276b4d; box-shadow: none; }
body.blog-shell .page__meta, body.blog-shell .page__share { border-color: var(--xh-line); }
body.blog-shell .page__footer, body.archive-shell .page__footer { background: transparent; }

body.archive-shell #main { max-width: 900px; }
body.archive-shell .archive__subtitle { margin: 56px 0 0; padding: 0 0 14px; border-bottom: 1px solid var(--xh-line); color: var(--xh-acid); font: 700 12px/1 "SFMono-Regular", Consolas, monospace; letter-spacing: .16em; }
body.archive-shell .archive-intro { max-width: 560px; margin: -20px 0 58px; color: var(--xh-muted); font-size: 16px; line-height: 1.8; }
body.archive-shell .list__item { padding: 24px 0; border-bottom: 1px solid var(--xh-line); }
body.archive-shell .archive__item-title { margin: 0 0 10px; font-size: 25px; letter-spacing: -.045em; }
body.archive-shell .archive__item-title a { color: var(--xh-ink); text-decoration: none; }
body.archive-shell .archive__item-title a:hover { color: var(--xh-acid); }
body.archive-shell .archive__item-excerpt { max-width: 680px; margin: 10px 0 0; color: var(--xh-muted); font-size: 14px; line-height: 1.7; }

.xh-writing .xh-section-heading { padding-bottom: 28px; }
.xh-post-list { border-top: 1px solid var(--xh-line); }
.xh-post-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto 22px; align-items: center; gap: 18px; padding: 19px 0; border-bottom: 1px solid var(--xh-line); color: var(--xh-ink); text-decoration: none; transition: padding .2s ease, color .2s ease; }
.xh-post-row:hover { padding-left: 10px; color: var(--xh-acid); text-decoration: none; }
.xh-post-index, .xh-post-row time { color: var(--xh-dim); font: 10px "SFMono-Regular", Consolas, monospace; }
.xh-post-copy { display: grid; gap: 6px; min-width: 0; }
.xh-post-copy strong { overflow: hidden; color: inherit; font-size: 16px; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.xh-post-copy small { overflow: hidden; color: var(--xh-muted); font-size: 11px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.xh-post-row time { white-space: nowrap; }
.xh-post-arrow { color: var(--xh-acid); font-size: 18px; }
.xh-empty-post { display: flex; align-items: center; gap: 16px; padding: 26px 0; color: var(--xh-muted); }
.xh-empty-mark { color: var(--xh-acid); font-size: 22px; }
.xh-empty-post strong { color: var(--xh-ink); font-size: 15px; }
.xh-empty-post p { margin: 6px 0 0; font-size: 12px; }
.xh-empty-post code { padding: 3px 6px; background: #edf5f0; color: #276b4d; }
.xh-empty-arrow { margin-left: auto; color: var(--xh-acid); font-size: 22px; }

@media (max-width: 820px) {
  .xh-hero { grid-template-columns: 1fr; gap: 26px; padding-top: 52px; }
  .xh-hero-art { min-height: 430px; }
  .xh-about-grid { grid-template-columns: 1fr; gap: 28px; }
  .xh-section-heading { align-items: start; flex-direction: column; }
  body.blog-shell #main, body.archive-shell #main { padding-top: 54px; }
}

@media (max-width: 620px) {
  .xh-nav { min-height: 76px; padding: 18px 20px; }
  .xh-nav-links { display: none; }
  .xh-nav-cta { margin-left: auto; }
  .xh-hero, .xh-section { padding-left: 20px; padding-right: 20px; }
  .xh-hero { min-height: auto; padding-top: 52px; padding-bottom: 70px; }
  .xh-hero h1 { font-size: clamp(45px, 14vw, 66px); }
  .xh-hero-lede { font-size: 15px; }
  .xh-principles { gap: 12px; margin-top: 42px; }
  .xh-principles div { padding-right: 12px; }
  .xh-principles span { font-size: 9px; }
  .xh-hero-art { min-height: 360px; }
  .xh-hero-card { width: 270px; min-height: 240px; padding: 20px; }
  .xh-hero-card h2 { font-size: 30px; }
  .xh-card-line { margin-top: 30px; }
  .xh-hero-card p { margin-bottom: 30px; }
  .xh-signal-a { left: 0; }
  .xh-signal-b { right: 0; }
  .xh-marquee { justify-content: flex-start; gap: 14px; font-size: 8px; }
  .xh-marquee span:nth-of-type(3), .xh-marquee i:nth-of-type(3) { display: none; }
  .xh-section { padding-top: 84px; }
  .xh-section h2 { font-size: 42px; }
  .xh-stack-grid, .xh-work-grid { grid-template-columns: 1fr; }
  .xh-post-row { grid-template-columns: 26px minmax(0, 1fr) 18px; gap: 10px; }
  .xh-post-row time { display: none; }
  .xh-post-copy small { display: none; }
  .xh-stack-card { min-height: 185px; }
  .xh-work-card { min-height: 280px; }
  .xh-contact { margin-top: 86px; padding: 82px 20px 86px; }
  .xh-footer { padding: 20px; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
