:root {
  --paper: #f3efe5;
  --paper-deep: #e8e1d2;
  --ink: #17233d;
  --blue: #173f96;
  --orange: #ed5938;
  --line: rgba(23, 35, 61, 0.2);
  --muted: #697083;
  --serif: "Noto Serif SC", "Songti SC", Georgia, serif;
  --sans: "DM Sans", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 8% 8%, rgba(237, 89, 56, 0.08), transparent 25%),
    radial-gradient(circle at 91% 36%, rgba(23, 63, 150, 0.08), transparent 26%),
    var(--paper);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 10;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }

.site-header {
  width: min(1440px, calc(100% - 80px));
  height: 92px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}

.brand { display: flex; align-items: center; gap: 13px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; color: var(--paper); background: var(--ink); border-radius: 50%; font-family: var(--serif); font-size: 19px; }
.site-nav { display: flex; align-items: center; gap: 34px; font-size: 13px; font-weight: 600; }
.site-nav > a { position: relative; }
.site-nav > a:not(.nav-contact)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--orange); transition: right .25s ease; }
.site-nav > a:hover::after { right: 0; }
.nav-contact { padding: 11px 18px; border: 1px solid var(--ink); transition: .2s ease; }
.nav-contact:hover { background: var(--ink); color: var(--paper); }
.nav-contact span, .text-link span { color: var(--orange); margin-left: 8px; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; }

.hero {
  width: min(1440px, calc(100% - 80px));
  min-height: 680px;
  margin: auto;
  padding: 74px 3vw 66px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 7vw;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(90deg, var(--paper) 0%, rgba(243, 239, 229, .96) 29%, rgba(243, 239, 229, .62) 51%, rgba(243, 239, 229, .16) 100%),
    linear-gradient(0deg, var(--paper) 0%, rgba(243, 239, 229, .1) 32%, transparent 60%),
    url("../img/li-hao.jpg");
  background-position: center, center, center;
  background-size: cover;
  filter: saturate(.86) contrast(.94);
  opacity: .72;
}

.hero-copy,
.profile-card,
.hero-index {
  position: relative;
  z-index: 1;
}

.eyebrow { margin: 0 0 22px; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .2em; }
.eyebrow > span, .eyebrow > i { display: inline-block; width: 29px; height: 2px; margin-right: 10px; vertical-align: middle; background: var(--orange); }
.hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(58px, 6.1vw, 94px); line-height: 1.1; letter-spacing: -.055em; font-weight: 900; }
.hero h1 em { color: var(--orange); font-style: normal; position: relative; }
.hero h1 em::after { content: ""; position: absolute; width: 13px; height: 13px; right: -18px; top: 18px; background: var(--blue); border-radius: 50%; }
.hero-intro { max-width: 500px; margin: 34px 0 0; color: var(--muted); font-family: var(--serif); font-size: 17px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; gap: 26px; padding: 15px 20px; font-size: 13px; font-weight: 700; }
.button-primary { color: #fff; background: var(--blue); box-shadow: 5px 5px 0 var(--orange); transition: transform .2s ease, box-shadow .2s ease; }
.button-primary:hover { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--orange); }
.text-link { font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--line); padding-bottom: 5px; }

.profile-card { width: min(100%, 460px); min-width: 0; justify-self: center; transform: rotate(1.2deg); background: rgba(23, 63, 150, .94); color: white; padding: 22px; box-shadow: 18px 18px 0 var(--orange); position: relative; backdrop-filter: blur(3px); }
.profile-card::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(255,255,255,.24); pointer-events: none; }
.profile-topline { display: flex; justify-content: space-between; font-size: 9px; letter-spacing: .18em; opacity: .78; }
.portrait { height: 380px; margin: 16px 0; position: relative; display: grid; place-items: center; overflow: hidden; background: #e8d7ba; color: var(--ink); }
.portrait::before { content: ""; position: absolute; width: 230px; height: 230px; border-radius: 50%; background: var(--orange); left: 50%; top: 50%; transform: translate(-50%, -44%); }
.portrait::after { content: ""; position: absolute; inset: 22px; border: 1px solid rgba(23,35,61,.35); }
.portrait-cn { z-index: 2; margin-top: -20px; font-family: var(--serif); font-size: 168px; font-weight: 900; line-height: 1; text-shadow: 7px 7px 0 rgba(243,239,229,.8); }
.portrait-number { position: absolute; z-index: 3; right: 33px; bottom: 28px; color: var(--blue); font-size: 46px; font-weight: 700; letter-spacing: -.06em; }
.portrait-orbit { position: absolute; z-index: 1; width: 310px; height: 120px; border: 2px solid var(--blue); border-radius: 50%; transform: rotate(-20deg); }
.profile-name { display: grid; grid-template-columns: .7fr 1.3fr; gap: 15px; border-top: 1px solid rgba(255,255,255,.35); padding-top: 16px; }
.profile-name div { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.profile-name small { font-size: 8px; letter-spacing: .18em; opacity: .65; }
.profile-name strong { font-family: var(--serif); font-size: 17px; }
.profile-name div:last-child strong { overflow-wrap: anywhere; font-family: var(--sans); font-size: 10px; letter-spacing: .06em; }
.hero-index { position: absolute; right: -12px; bottom: -36px; color: transparent; -webkit-text-stroke: 1px rgba(23,35,61,.12); font-size: 220px; font-weight: 700; line-height: 1; z-index: -1; }

.ticker { overflow: hidden; color: white; background: var(--ink); transform: rotate(-1deg) scale(1.01); }
.ticker div { width: max-content; padding: 15px 0; font-size: 12px; letter-spacing: .16em; animation: marquee 20s linear infinite; }
.ticker span { color: var(--orange); margin: 0 35px; }
@keyframes marquee { to { transform: translateX(-25%); } }

.about-strip { width: min(1240px, calc(100% - 80px)); margin: 145px auto 90px; display: grid; grid-template-columns: 230px 1fr; border-top: 1px solid var(--line); padding-top: 30px; }
.section-label { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.section-label b { color: var(--orange); font-size: 40px; letter-spacing: -.06em; }
.about-statement > p { margin: 0; font-family: var(--serif); font-size: clamp(34px, 4vw, 58px); line-height: 1.4; letter-spacing: -.035em; }
.about-statement strong { color: var(--blue); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 4px; text-underline-offset: 8px; }
.about-note { display: block; margin-top: 30px; color: var(--muted); font-size: 13px; }

.topics { width: min(1240px, calc(100% - 80px)); margin: auto auto 150px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.topic-card { min-height: 330px; padding: 34px; border-right: 1px solid var(--line); position: relative; transition: background .3s ease, color .3s ease; }
.topic-card:last-child { border-right: 0; }
.topic-card:hover { color: #fff; background: var(--blue); }
.topic-number { color: var(--orange); font-size: 11px; font-weight: 700; }
.topic-label { display: inline-block; margin-top: 55px; font-size: 10px; font-weight: 700; letter-spacing: .2em; }
.topic-card h2 { margin: 12px 0 20px; font-family: var(--serif); font-size: 30px; }
.topic-card p { max-width: 280px; color: var(--muted); font-size: 13px; line-height: 1.8; transition: color .3s ease; }
.topic-card:hover p { color: rgba(255,255,255,.72); }
.topic-arrow { position: absolute; right: 28px; bottom: 26px; color: var(--orange); font-size: 24px; }

.latest { width: min(1240px, calc(100% - 80px)); margin: 0 auto 150px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
.section-heading h2 { margin: 4px 0 0; font-family: var(--serif); font-size: clamp(42px, 5vw, 68px); letter-spacing: -.05em; }
.post-row { display: grid; grid-template-columns: 70px 1fr 50px; gap: 25px; align-items: center; padding: 35px 12px; border-top: 1px solid var(--line); }
.post-row:last-child { border-bottom: 1px solid var(--line); }
.post-index { color: var(--orange); font-size: 11px; font-weight: 700; }
.post-meta { display: flex; gap: 16px; color: var(--muted); font-size: 10px; letter-spacing: .1em; }
.post-meta span { color: var(--blue); font-weight: 700; }
.post-main h3 { margin: 9px 0; font-family: var(--serif); font-size: 28px; }
.post-main h3 a { background-image: linear-gradient(var(--orange), var(--orange)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .25s ease; }
.post-row:hover h3 a { background-size: 100% 2px; }
.post-main p { margin: 0; max-width: 730px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.post-open { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--ink); font-size: 20px; transition: .2s ease; }
.post-open:hover { color: white; background: var(--orange); border-color: var(--orange); transform: rotate(8deg); }

.quote-block { width: min(1240px, calc(100% - 80px)); min-height: 430px; margin: 0 auto 120px; padding: 65px 8%; color: white; background: var(--blue); position: relative; overflow: hidden; }
.quote-block::before { content: "66"; position: absolute; right: -20px; bottom: -90px; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.15); font-size: 360px; font-weight: 700; line-height: 1; }
.quote-block > span { color: #f6a48f; font-size: 10px; letter-spacing: .2em; }
.quote-block blockquote { margin: 45px 0; font-family: var(--serif); font-size: clamp(38px, 5vw, 67px); line-height: 1.35; position: relative; z-index: 1; }
.signature { color: #f6a48f; font-size: 11px; font-weight: 700; letter-spacing: .18em; }

.site-footer { width: min(1440px, calc(100% - 80px)); margin: auto; padding: 42px 0 50px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-end; }
.site-footer > div:first-child { display: flex; flex-direction: column; gap: 10px; }
.footer-kicker { color: var(--orange); font-size: 9px; font-weight: 700; letter-spacing: .2em; }
.site-footer strong { font-family: var(--serif); font-size: 20px; }
.footer-meta { display: flex; gap: 28px; color: var(--muted); font-size: 11px; }
.footer-meta a { border-bottom: 1px solid var(--line); }

.article-shell, .archive-shell { width: min(920px, calc(100% - 48px)); margin: 90px auto 140px; }
.article-header { padding-bottom: 50px; border-bottom: 1px solid var(--line); }
.back-link { display: inline-block; margin-bottom: 60px; color: var(--blue); font-size: 12px; font-weight: 700; }
.article-header h1, .archive-header h1 { margin: 15px 0 20px; font-family: var(--serif); font-size: clamp(48px, 8vw, 82px); line-height: 1.16; letter-spacing: -.05em; }
.article-header > p, .archive-header > p { max-width: 650px; color: var(--muted); font-family: var(--serif); font-size: 17px; line-height: 1.8; }
.article-content { max-width: 760px; margin: 55px auto 0; font-family: var(--serif); font-size: 17px; line-height: 2; }
.article-content h2, .article-content h3 { margin: 2.2em 0 .8em; color: var(--blue); line-height: 1.4; }
.article-content h2 { font-size: 29px; }
.article-content h3 { font-size: 22px; }
.article-content a { color: var(--blue); border-bottom: 1px solid var(--orange); }
.article-content blockquote { margin: 2em 0; padding: 22px 30px; color: var(--blue); background: var(--paper-deep); border-left: 4px solid var(--orange); font-size: 20px; font-weight: 700; }
.article-content code { padding: 2px 6px; background: var(--paper-deep); font-family: Consolas, monospace; font-size: .88em; }
.article-content pre { overflow-x: auto; padding: 22px; color: #e8eaf0; background: var(--ink); }
.article-content pre code { padding: 0; background: transparent; }
.article-content img { max-width: 100%; }
.page-shell .article-header { text-align: center; }

.archive-header { margin-bottom: 70px; }
.archive-row { display: grid; grid-template-columns: 130px 1fr 40px; gap: 25px; align-items: center; padding: 29px 0; border-top: 1px solid var(--line); }
.archive-row:last-child { border-bottom: 1px solid var(--line); }
.archive-row > span { color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.archive-row h2 { margin: 0; font-family: var(--serif); font-size: 24px; }
.archive-row > a { color: var(--orange); font-size: 22px; }

.contact-shell {
  width: min(1240px, calc(100% - 80px));
  margin: 80px auto 140px;
}

.contact-heading {
  max-width: 920px;
  margin-bottom: 70px;
}

.contact-heading .back-link { margin-bottom: 55px; }

.contact-heading h1 {
  margin: 12px 0 28px;
  font-family: var(--serif);
  font-size: clamp(55px, 7.4vw, 102px);
  line-height: 1.12;
  letter-spacing: -.06em;
}

.contact-heading h1 em {
  color: var(--orange);
  font-style: normal;
}

.contact-heading > p {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.9;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.contact-card {
  min-height: 350px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.contact-card:last-child { border-right: 0; }

.contact-card-primary {
  color: white;
  background: var(--blue);
}

.contact-card-primary::after {
  content: "@";
  position: absolute;
  right: -18px;
  bottom: -70px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .17);
  font-family: var(--serif);
  font-size: 250px;
  line-height: 1;
}

.contact-card-number {
  color: var(--orange);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
}

.contact-card-primary .contact-card-number { color: #f7ab98; }

.contact-card div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.contact-card small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .12em;
}

.contact-card-primary small { color: rgba(255, 255, 255, .6); }

.contact-card strong {
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-size: clamp(21px, 2vw, 28px);
}

.contact-card > a,
.contact-card > button {
  width: fit-content;
  padding: 0 0 6px;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.contact-card > a span,
.contact-card > button span {
  margin-left: 12px;
  color: var(--orange);
}

.contact-card-primary > a span { color: #f7ab98; }

.contact-card-copy { transition: color .3s ease, background .3s ease; }
.contact-card-copy:has(.is-copied) { color: white; background: var(--orange); }
.contact-card-copy:has(.is-copied) .contact-card-number,
.contact-card-copy:has(.is-copied) small,
.contact-card-copy:has(.is-copied) button span { color: white; }

.contact-note {
  margin-top: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-note span {
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
}

.contact-note p {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
}

.toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 100;
  padding: 14px 18px;
  color: white;
  background: var(--ink);
  border-left: 4px solid var(--orange);
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.toast.is-visible { opacity: 1; transform: translateY(0); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal-delay { transition-delay: .18s; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .site-header { width: calc(100% - 40px); height: 76px; }
  .menu-toggle { display: flex; flex-direction: column; gap: 6px; }
  .menu-toggle span { display: block; width: 25px; height: 2px; background: var(--ink); transition: .2s ease; }
  .site-nav { position: fixed; inset: 76px 0 auto; padding: 30px; display: flex; flex-direction: column; align-items: stretch; gap: 0; color: white; background: var(--ink); transform: translateY(-130%); transition: transform .3s ease; z-index: -1; }
  .site-nav a { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .nav-contact { margin-top: 12px; text-align: center; border: 1px solid rgba(255,255,255,.5) !important; }
  .menu-open .site-nav { transform: translateY(0); }
  .menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .hero { width: calc(100% - 40px); grid-template-columns: 1fr; padding: 60px 0 100px; gap: 75px; }
  .hero::before {
    background-image:
      linear-gradient(180deg, rgba(243, 239, 229, .92) 0%, rgba(243, 239, 229, .72) 42%, rgba(243, 239, 229, .32) 70%, var(--paper) 100%),
      linear-gradient(90deg, rgba(243, 239, 229, .6), rgba(243, 239, 229, .12)),
      url("../img/li-hao.jpg");
    background-position: center, center, 53% center;
    opacity: .67;
  }
  .hero > * { min-width: 0; }
  .hero-copy { padding: 0 4vw; }
  .profile-card { width: min(430px, calc(100% - 35px)); max-width: calc(100vw - 55px); }
  .about-strip { grid-template-columns: 1fr; gap: 45px; }
  .section-label { flex-direction: row; justify-content: space-between; align-items: center; }
  .topics { grid-template-columns: 1fr; }
  .topic-card { min-height: 250px; border-right: 0; border-bottom: 1px solid var(--line); }
  .topic-card:last-child { border-bottom: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { min-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-card:last-child { border-bottom: 0; }
}

@media (max-width: 600px) {
  .brand { font-size: 9px; letter-spacing: .1em; }
  .hero h1 { font-size: 52px; }
  .hero h1 em::after { width: 9px; height: 9px; right: -12px; top: 12px; }
  .hero-intro { font-size: 15px; }
  .hero-actions { gap: 22px; }
  .portrait { height: 315px; }
  .portrait-cn { font-size: 138px; }
  .about-strip, .topics, .latest, .quote-block { width: calc(100% - 40px); }
  .about-strip { margin-top: 105px; }
  .about-statement > p { font-size: 30px; }
  .topics, .latest { margin-bottom: 100px; }
  .section-heading { align-items: center; }
  .section-heading h2 { font-size: 40px; }
  .post-row { grid-template-columns: 1fr 38px; padding: 28px 0; }
  .post-index { display: none; }
  .post-main h3 { font-size: 23px; }
  .post-main p { display: none; }
  .post-open { width: 36px; height: 36px; }
  .quote-block { min-height: 350px; padding: 48px 30px; }
  .quote-block blockquote { font-size: 36px; }
  .site-footer { width: calc(100% - 40px); flex-direction: column; align-items: flex-start; gap: 35px; }
  .footer-meta { flex-direction: column; gap: 10px; }
  .article-shell, .archive-shell { margin-top: 60px; }
  .back-link { margin-bottom: 40px; }
  .article-header h1, .archive-header h1 { font-size: 45px; }
  .article-content { font-size: 16px; }
  .archive-row { grid-template-columns: 1fr 28px; gap: 14px; }
  .archive-row > span { grid-column: 1 / -1; }
  .archive-row h2 { font-size: 21px; }
  .contact-shell { width: calc(100% - 40px); margin-top: 55px; margin-bottom: 100px; }
  .contact-heading { margin-bottom: 45px; }
  .contact-heading .back-link { margin-bottom: 40px; }
  .contact-heading h1 { font-size: 48px; }
  .contact-heading > p { font-size: 15px; }
  .contact-card { min-height: 235px; padding: 25px; }
  .contact-note { align-items: flex-start; gap: 30px; }
  .contact-note p { text-align: right; font-size: 15px; }
  .toast { right: 20px; bottom: 20px; }
}

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