:root {
  color-scheme: dark;
  --bg: #0f172a;
  --text: #e9eff7;
  --muted: #a9b7ca;
  --accent: #5eead4;
  --line: #2b3a50;
  --header-height: 70px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans', 'Microsoft YaHei', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.7; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1000px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 20; padding: 10px 16px; background: var(--accent); color: var(--bg); }
.skip-link:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--line); background: #0f172af2; z-index: 10; }
.resume-ready .site-header { position: sticky; top: 0; backdrop-filter: blur(12px); }
.header-inner { display: flex; align-items: center; min-height: 70px; gap: 20px; }
.park-return { display: flex; flex-direction: column; flex-shrink: 0; color: var(--accent); font-size: .85rem; line-height: 1.6; }
.park-return small { color: var(--muted); font-size: .6rem; letter-spacing: .12em; }
.desktop-nav { display: flex; gap: 4px; margin-left: auto; }
.desktop-nav a { padding: 7px 9px; font-size: .85rem; white-space: nowrap; border-radius: 5px; }
nav a:hover, nav a[aria-current] { color: var(--accent); background: #5eead40b; }
.portfolio-link { color: var(--accent); }
.language-controls { display: flex; gap: 4px; }
.lang-btn { padding: 6px 8px; min-height: 34px; font-size: .73rem; white-space: nowrap; border: 1px solid var(--line); border-radius: 5px; background: transparent; }
.lang-btn[aria-pressed="true"] { border-color: #3f8e88; color: var(--accent); background: #5eead40b; }
.lang-btn:hover { border-color: var(--accent); }
.menu-toggle { display: none; padding: 0; width: 34px; height: 34px; flex-shrink: 0; font-size: 1.2rem; line-height: 1; background: transparent; border: 1px solid var(--line); border-radius: 5px; }
.mobile-menu { max-height: calc(100dvh - var(--header-height)); overflow-y: auto; padding-block: 6px 12px; }
.mobile-menu a { display: block; padding: 9px 12px; }
.resume-section, .site-footer { scroll-margin-top: calc(var(--header-height) + 20px); }
.hero { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding-block: 32px; border-bottom: 1px solid var(--line); }
.eyebrow { font-size: .72rem; letter-spacing: .12em; color: var(--muted); margin-bottom: 8px; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.3; letter-spacing: -.025em; }
.hero-role { margin-top: 8px; font-size: .9rem; color: var(--accent); }
.print-button { padding: 7px 0; min-height: 36px; font-size: .8rem; color: var(--muted); background: transparent; border: none; }
.print-button:hover { color: var(--text); }
.print-portfolio { display: none; }
.projects { padding-top: 24px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 4px; }
.section-heading h2 { font-size: 1.2rem; font-weight: 600; }
.section-heading > a { font-size: .8rem; white-space: nowrap; color: var(--accent); }
.project-entry { padding-block: 22px; border-bottom: 1px solid var(--line); }
.project-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.project-heading h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; min-width: 0; }
.project-name { font-size: 1.15rem; font-weight: 600; }
.project-type { font-size: .9rem; font-weight: 400; color: var(--muted); }
.project-link { font-size: .8rem; color: var(--accent); flex-shrink: 0; }
.project-stack { color: #96b5c5; font-size: .78rem; margin-top: 6px; overflow-wrap: anywhere; }
.project-bullets { margin: 10px 0 0; padding-left: 19px; font-size: .92rem; }
.project-bullets li { padding-left: 2px; margin-top: 4px; }
.project-bullets li::marker { color: #6f8ca4; }
.legacy-anchor { display: block; scroll-margin-top: calc(var(--header-height) + 20px); }
.site-footer { display: flex; align-items: baseline; gap: 12px 28px; flex-wrap: wrap; padding-block: 24px 32px; font-size: .85rem; }
.site-footer h2 { font-size: .85rem; font-weight: 500; color: var(--muted); }
.site-footer a { overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--accent); }
html:not(.resume-ready) .header-inner { flex-wrap: wrap; padding-block: 14px; }
@media (max-width: 1100px) {
  .resume-ready .desktop-nav { display: none; }
  .resume-ready .menu-toggle { display: block; }
  .language-controls { margin-left: auto; }
}
@media (max-width: 600px) {
  :root { --header-height: 62px; }
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 62px; gap: 6px; }
  .park-return { font-size: .78rem; }
  .park-return small { font-size: .53rem; letter-spacing: .07em; }
  .lang-btn { padding: 6px; font-size: .7rem; }
  .menu-toggle { width: 32px; }
  .hero { padding-block: 24px; gap: 10px 18px; }
  .hero-role { font-size: .82rem; }
  .projects { padding-top: 20px; }
  .section-heading h2 { font-size: 1.08rem; }
  .project-entry { padding-block: 18px; }
  .project-heading { align-items: flex-start; gap: 8px; }
  .project-heading h3 { display: block; }
  .project-name, .project-type { display: block; }
  .project-name { font-size: 1.05rem; }
  .project-type { font-size: .83rem; margin-top: 2px; }
  .project-link { font-size: .75rem; margin-top: 3px; }
  .project-bullets { font-size: .9rem; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 8px; padding-top: 20px; }
  html:not(.resume-ready) .desktop-nav { margin: 0; flex-wrap: wrap; width: 100%; }
  html:not(.resume-ready) .desktop-nav a { padding: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@page { size: A4; margin: 14mm; }
@media print {
  :root { color-scheme: light; font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif; }
  html { scroll-behavior: auto; }
  body { background: white; color: #111; font-size: 10pt; line-height: 1.5; }
  .site-header, .skip-link, .print-button, .project-link, .section-heading > a { display: none !important; }
  .wrap { width: 100%; margin: 0; }
  .hero { display: block; padding: 0 0 4mm; border-color: #aaa; }
  .eyebrow { color: #444; margin-bottom: 1mm; }
  .hero h1 { font-size: 23pt; color: #111; }
  .hero-role { font-size: 10pt; color: #333; margin-top: 1mm; }
  .print-portfolio { display: block; font-size: 9pt; margin-top: 2mm; }
  .projects { padding-top: 4mm; }
  .section-heading h2 { font-size: 12pt; }
  .project-entry { padding-block: 4mm; border-color: #aaa; break-inside: avoid; }
  .project-heading h3 { display: flex; gap: 3mm; }
  .project-name { font-size: 11pt; font-weight: 700; font-family: inherit; }
  .project-type { font-size: 10pt; color: #333; }
  .project-stack { font-size: 9pt; color: #444; margin-top: 1mm; }
  .project-bullets { font-size: 10pt; margin-top: 2mm; }
  .project-bullets li { margin-top: 1mm; }
  .project-bullets li::marker { color: #444; }
  .site-footer { display: flex; flex-direction: row; padding-top: 4mm; font-size: 9pt; gap: 4mm; }
  .site-footer h2 { font-size: 9pt; color: #333; }
  h1, h2, h3 { break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
}
