:root {
  color-scheme: light;
  --bg: #f6f3ed;
  --paper: #eeebe4;
  --text: #272922;
  --muted: #696c61;
  --line: #d8d6cd;
  --accent: #a3432c;
  --on-accent: #fffaf3;
  --header-height: 80px;
  --container: 1180px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #22241f;
  --paper: #2c2f28;
  --text: #edece3;
  --muted: #b3b6a8;
  --line: #45483e;
  --accent: #e89b7d;
  --on-accent: #22241f;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
::selection { color: var(--on-accent); background: var(--accent); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input { border-radius: 0; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.container { width: min(calc(100% - 96px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 200; padding: 8px 16px; background: var(--text); color: var(--bg); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line); background: var(--bg); }
.nav-wrap { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-mark { font-family: Georgia, serif; font-size: 30px; font-weight: 700; line-height: 1; color: var(--accent); letter-spacing: -2px; }
.brand-name { font-size: 11px; letter-spacing: .15em; font-weight: 600; }
.nav-panel, .nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links { list-style: none; padding: 0; margin: 0; }
.nav-link { display: block; padding: 6px 0; color: var(--muted); font-size: 13px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav-link:hover, .nav-link.active { color: var(--accent); border-color: var(--accent); }
.icon-button { display: grid; width: 36px; height: 36px; padding: 0; place-items: center; border: 1px solid var(--line); background: transparent; }
.icon-button:hover { background: var(--paper); }
.menu-button { display: none; }
.hero { padding: 54px 0 0; }
.hero-folio { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 26px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; letter-spacing: .18em; }
.hero-folio span:last-child { letter-spacing: .06em; }
.hero-grid { display: grid; grid-template-columns: 1.55fr 1fr; align-items: stretch; gap: 70px; padding-top: 54px; padding-bottom: 64px; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #6f7d50; }
.hero h1 { margin: 26px 0 0; font-size: clamp(58px, 7vw, 94px); font-weight: 600; letter-spacing: -.065em; line-height: 1.1; }
.hero-english { margin: 13px 0 26px; font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-style: italic; letter-spacing: -.035em; color: var(--accent); line-height: 1.3; }
.hero-role { margin: 0 0 18px; font-size: 18px; font-weight: 500; line-height: 1.65; }
.hero-copy { max-width: 520px; margin: 0; color: var(--muted); font-size: 14px; line-height: 2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 47px; padding: 10px 22px; border: 1px solid var(--line); font-size: 12px; font-weight: 500; background: transparent; transition: background .2s, color .2s; }
.button-primary { background: var(--text); border-color: var(--text); color: var(--bg); }
.button-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.button-secondary:hover { background: var(--paper); }
.social-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; }
.social-link { font-size: 11px; color: var(--muted); }
.social-link:hover { color: var(--accent); }
.profile-card { align-self: center; padding: 32px; background: var(--paper); border-top: 3px solid var(--accent); }
.profile-caption { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.profile-caption span:last-child { color: var(--accent); }
.profile-statement { margin: 28px 0 32px; font-size: 25px; font-weight: 500; letter-spacing: -.025em; line-height: 1.6; }
.profile-statement span { color: var(--accent); }
.profile-stat { display: flex; align-items: baseline; gap: 16px; padding: 17px 0; border-top: 1px solid var(--line); }
.profile-stat strong { min-width: 122px; font-family: Georgia, "Times New Roman", serif; font-size: 43px; font-weight: 400; line-height: 1.2; letter-spacing: -.06em; }
.profile-stat strong small { font-family: "Microsoft YaHei", sans-serif; font-size: 13px; margin-left: 5px; letter-spacing: 0; }
.profile-stat > span { color: var(--muted); font-size: 11px; }
.profile-location { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted); }
.expertise-strip { display: flex; gap: 20px; justify-content: space-between; align-items: center; padding: 22px 0; border-block: 1px solid var(--line); }
.expertise-strip > span { color: var(--muted); font-size: 10px; letter-spacing: .14em; }
.expertise-strip p { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0; font-family: Georgia, serif; font-size: 16px; }
.section { padding: 76px 0; }
.section + .section .container { border-top: 1px solid var(--line); padding-top: 68px; }
.section + .section { padding-top: 0; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 70px; margin-bottom: 38px; }
.section-kicker { display: block; color: var(--accent); font-family: Consolas, monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
h2 { margin: 12px 0 0; font-size: 33px; font-weight: 500; letter-spacing: -.04em; line-height: 1.35; }
.section-heading > p { margin: 0; max-width: 470px; color: var(--muted); font-size: 12px; line-height: 2; }
h3 { font-weight: 500; }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 70px; }
.panel h3 { margin: 0 0 20px; font-size: 19px; }
.panel p { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 2.15; }
.facts-list { margin: 0; padding: 0; list-style: none; }
.facts-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; border-bottom: 1px solid var(--line); padding: 9px 0; font-size: 12px; }
.facts-list li:first-child { padding-top: 0; }
.facts-list li > span { color: var(--muted); flex-shrink: 0; }
.facts-list strong { font-weight: 500; text-align: right; }
.skills-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 36px; }
.skill-card { position: relative; border-top: 1px solid var(--line); padding: 24px 0 32px; }
.skill-number { font-family: Georgia, serif; font-size: 13px; font-style: italic; color: var(--accent); }
.skill-card h3 { margin: 10px 0 18px; font-size: 18px; }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0; padding: 0; }
.tag { font-size: 10px; color: var(--muted); background: var(--paper); padding: 3px 9px; }
.projects-grid { counter-reset: project; display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.project-card { counter-increment: project; display: flex; flex-direction: column; align-items: flex-start; padding: 30px; border: 1px solid var(--line); position: relative; }
.project-card-wide { grid-column: 1 / -1; }
.project-card::before { content: "0" counter(project); font-family: Georgia, serif; font-style: italic; font-size: 44px; color: var(--accent); line-height: 1; margin-bottom: 26px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; width: 100%; justify-content: space-between; color: var(--muted); font-size: 10px; }
.project-card h3 { margin: 15px 0 18px; font-size: 23px; line-height: 1.5; letter-spacing: -.025em; }
.project-card > p { margin: 0 0 24px; color: var(--muted); font-size: 12px; line-height: 2.1; }
.project-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0 0 24px; padding: 24px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 2.1; }
.project-highlights strong { display: block; margin-bottom: 8px; color: var(--text); font-size: 13px; font-weight: 500; }
.project-card .tag-list { margin-top: auto; }
.project-links { width: 100%; margin-top: 28px; border-top: 1px solid var(--line); padding-top: 16px; }
.text-link { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--accent); }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.timeline-item { display: grid; grid-template-columns: 240px 1fr; gap: 34px; padding: 30px 0; border-top: 1px solid var(--line); }
.timeline-dot { display: none; }
.timeline-date { font-family: Consolas, monospace; font-size: 12px; color: var(--accent); padding-top: 4px; }
.timeline-content h3 { margin: 0 0 8px; font-size: 21px; }
.timeline-content > strong { font-size: 12px; font-weight: 500; }
.timeline-content p { max-width: 740px; margin: 14px 0 0; font-size: 12px; color: var(--muted); line-height: 2.1; }
#contact .container { padding-top: 0; border: 0; }
.contact-card { position: relative; padding: 50px; background: var(--text); color: var(--bg); }
.contact-card .section-kicker { color: var(--bg); opacity: .7; }
.contact-card h2 { max-width: 660px; margin: 20px 0; font-size: 37px; }
.contact-card p { max-width: 600px; font-size: 12px; opacity: .75; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.contact-card .button-primary { background: var(--bg); border-color: var(--bg); color: var(--text); }
.contact-card .button-secondary { color: var(--bg); border-color: currentColor; }
.contact-card .button:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.site-footer { border-top: 1px solid var(--line); padding: 23px 0; color: var(--muted); font-size: 10px; }
.footer-wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.footer-links { display: flex; gap: 24px; }
.site-footer a:hover { color: var(--accent); }

@media (min-width: 901px) {
  .js [data-reveal] { animation: arrive .5s ease both; }
  .profile-card { animation-delay: .1s; }
}
@keyframes arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1100px) {
  .hero-grid, .about-grid, .section-heading { gap: 36px; }
  .profile-card { padding: 26px; }
  .profile-stat strong { min-width: 110px; }
  .brand-name { display: none; }
}
@media (max-width: 900px) {
  .container { width: calc(100% - 56px); }
  .hero-grid { grid-template-columns: 1.2fr 1fr; gap: 28px; }
  .hero h1 { font-size: 66px; }
  .profile-statement { font-size: 21px; }
  .profile-stat { gap: 8px; }
  .profile-stat strong { min-width: 95px; font-size: 35px; }
  .expertise-strip p { gap: 12px 18px; font-size: 14px; }
  .project-card { padding: 24px; }
  .project-card h3 { font-size: 20px; }
  .skills-grid { column-gap: 24px; }
  .timeline-item { grid-template-columns: 180px 1fr; }
}
@media (max-width: 700px) {
  :root { --header-height: 66px; }
  .container { width: calc(100% - 40px); }
  .brand-name { display: inline; font-size: 10px; }
  .menu-button { display: grid; margin-left: auto; }
  .nav-panel { display: none; position: absolute; left: 0; right: 0; top: 66px; padding: 20px; border-bottom: 1px solid var(--line); background: var(--bg); align-items: flex-start; justify-content: space-between; }
  .nav-panel.open { display: flex; }
  .nav-links { align-items: flex-start; flex-direction: column; gap: 10px; }
  .nav-link { font-size: 15px; }
  .hero { padding-top: 28px; }
  .hero-folio { font-size: 8px; letter-spacing: .1em; padding-bottom: 18px; }
  .hero-grid { grid-template-columns: 1fr; padding: 32px 0; gap: 36px; }
  .hero h1 { font-size: 70px; margin-top: 22px; }
  .hero-english { font-size: 26px; margin-bottom: 24px; }
  .hero-role { font-size: 16px; }
  .hero-copy { font-size: 13px; }
  .social-row { gap: 10px 18px; }
  .profile-card { padding: 26px; }
  .profile-statement { font-size: 24px; margin: 20px 0 26px; }
  .profile-stat { padding: 14px 0; gap: 24px; }
  .profile-stat strong { min-width: 114px; font-size: 39px; }
  .expertise-strip { align-items: flex-start; flex-direction: column; gap: 12px; padding: 20px 0; }
  .expertise-strip p { gap: 8px 22px; }
  .section { padding: 50px 0; }
  .section + .section .container { padding-top: 48px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 30px; }
  h2 { font-size: 29px; }
  .about-grid { grid-template-columns: 1fr; gap: 26px; }
  .skills-grid { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .skill-card h3 { font-size: 16px; }
  .tag { font-size: 10px; padding: 3px 7px; }
  .projects-grid { grid-template-columns: 1fr; gap: 22px; }
  .project-card h3 { font-size: 22px; }
  .project-highlights { grid-template-columns: 1fr; gap: 20px; }
  .timeline-item { grid-template-columns: 1fr; gap: 12px; padding: 26px 0; }
  .contact-card { padding: 30px 24px; }
  .contact-card h2 { font-size: 28px; }
  .footer-wrap { flex-direction: column; gap: 10px; }
}
@media (max-width: 360px) {
  .brand-name { display: none; }
  .hero h1 { font-size: 62px; }
  .hero-actions .button { padding-inline: 16px; gap: 18px; }
  .profile-stat { gap: 12px; }
  .profile-stat strong { min-width: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media print {
  :root, :root[data-theme="dark"] { --bg: #fff; --paper: #f4f4f2; --text: #222; --muted: #555; --line: #ddd; --accent: #8c3d29; }
  .site-header, .hero-actions, .contact-actions, .skip-link, .footer-links { display: none; }
  .container { width: 100%; }
  .hero { padding-top: 0; }
  .hero-grid { padding-block: 28px; gap: 30px; }
  .hero h1 { font-size: 54px; }
  .hero-english { font-size: 22px; }
  .profile-card { padding: 20px; }
  .profile-stat strong { font-size: 30px; }
  .section { padding-block: 28px; }
  .section + .section .container { padding-top: 28px; }
  .section-heading { margin-bottom: 22px; }
  .contact-card { padding: 24px; background: var(--paper); color: var(--text); }
  .contact-card .section-kicker { color: var(--accent); }
  .profile-card, .project-card, .skill-card, .timeline-item { break-inside: avoid; }
  a { text-decoration: none; }
}
