@charset "UTF-8";
:root {
  color-scheme: light;
  --bg: #fafbfc; --surface: #fff; --text: #202329; --muted: #616773;
  --line: #e2e5ea; --accent: #365fdb; --soft: #edf1fc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #15171c; --surface: #1c1f26; --text: #f0f1f5; --muted: #a7aebb;
  --line: #343842; --accent: #9ab3ff; --soft: #252f4d;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 4px; }
::selection { background: var(--soft); color: var(--accent); }
.shell { max-width: 1160px; margin: auto; padding-inline: 36px; }
.skip { position: absolute; top: -100px; left: 20px; padding: 12px 20px; background: var(--surface); z-index: 5; }
.skip:focus { top: 12px; }
.header { height: 100px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.home-link { font-size: 16px; font-weight: 600; letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav a { color: var(--muted); padding-block: 12px; }
.nav a:hover { color: var(--text); }
.theme-toggle { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; color: var(--text); background: transparent; cursor: pointer; }
.theme-toggle:hover { background: var(--surface); }
.theme-toggle svg { width: 17px; height: 17px; }
.profile-intro { padding-block: 56px 44px; border-bottom: 1px solid var(--line); }
.profile-intro h1 { font-size: 36px; font-weight: 600; line-height: 1.3; letter-spacing: -.04em; }
.profile-intro p { max-width: 34em; margin-top: 18px; font-size: 17px; line-height: 1.9; color: var(--muted); }
.profile-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 20px; font-size: 14px; }
.profile-links a { color: var(--accent); }
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-block: 36px 26px; }
.eyebrow { display: block; font-size: 12px; letter-spacing: .14em; font-weight: 500; color: var(--muted); }
h1, h2, h3, p { margin: 0; }
.intro h2 { font-size: 24px; font-weight: 600; line-height: 1.3; }
.index-note { font-size: 13px; color: var(--muted); padding-bottom: 5px; white-space: nowrap; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 30px; row-gap: 44px; }
.project { min-width: 0; }
.cover-link { display: block; border-radius: 15px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.cover-link img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; transition: transform .3s ease; }
.cover-link:hover img { transform: scale(1.025); }
.project-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 21px; }
.project h3 { font-size: 22px; font-weight: 600; letter-spacing: -.025em; line-height: 1.35; }
.project h3 a:hover { color: var(--accent); }
.status { font-size: 12px; font-weight: 400; border: 1px solid var(--line); padding: 5px 9px; border-radius: 6px; color: var(--muted); white-space: nowrap; }
.project p { color: var(--muted); font-size: 15px; line-height: 1.8; margin-top: 10px; max-width: 33em; }
.project-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.category { font-size: 12px; color: var(--muted); }
.project-links { display: flex; align-items: center; gap: 17px; font-size: 13px; white-space: nowrap; }
.text-link { padding-block: 5px; }
.text-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.footer { border-top: 1px solid var(--line); margin-top: 66px; padding-block: 25px 38px; display: flex; justify-content: space-between; gap: 20px; font-size: 13px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.detail-top { padding-top: 34px; }
.back { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--muted); }
.back svg { width: 15px; height: 15px; }
.back:hover { color: var(--accent); }
.detail-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: center; padding-block: 52px 48px; }
.detail-title h1 { font-size: clamp(32px, 3.7vw, 48px); line-height: 1.16; letter-spacing: -.045em; font-weight: 600; overflow-wrap: anywhere; margin-top: 20px; }
.detail-title .lead { font-size: 18px; line-height: 1.85; margin-top: 22px; }
.detail-action { margin-top: 26px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.button { display: inline-block; background: var(--text); color: var(--bg); border: 1px solid transparent; border-radius: 8px; padding: 12px 18px; font-size: 14px; }
.button-secondary { background: transparent; color: var(--text); border-color: var(--line); }
.button:hover { opacity: .85; }
.detail-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 12px; border: 1px solid var(--line); }
.detail-cover figcaption { color: var(--muted); font-size: 12px; text-align: right; margin-top: 10px; }
figure { margin: 0; }
.detail-body { border-top: 1px solid var(--line); }
.detail-section { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 40px; padding-block: 35px; border-bottom: 1px solid var(--line); }
.detail-section h2 { font-size: 18px; font-weight: 600; }
.detail-section p { font-size: 16px; line-height: 1.95; color: var(--muted); max-width: 47em; }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.step-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.step-num { font: 12px/26px ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--accent); }
.step-list h3 { font-size: 16px; font-weight: 500; line-height: 1.7; }
.step-list p { font-size: 15px; margin-top: 5px; }
.related { display: flex; justify-content: space-between; gap: 24px; margin-top: 35px; font-size: 14px; }
.related span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 7px; }
.related a:last-child { text-align: right; }
.not-found { padding-block: 100px; }
.not-found h1 { font-size: 42px; margin-bottom: 20px; }
.not-found p { margin-bottom: 24px; color: var(--muted); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; --bg:#15171c; --surface:#1c1f26; --text:#f0f1f5; --muted:#a7aebb; --line:#343842; --accent:#9ab3ff; --soft:#252f4d; }
}
@media (max-width: 760px) {
  .shell { padding-inline: 24px; }
  .header { height: 80px; }
  .profile-intro { padding-block: 40px 32px; }
  .profile-intro h1 { font-size: 30px; }
  .profile-intro p { font-size: 16px; }
  .intro { padding-block: 28px 22px; }
  .project-grid { gap: 36px 22px; }
  .project h3 { font-size: 19px; }
  .project-head { align-items: flex-start; }
  .project-foot { align-items: flex-start; flex-direction: column; gap: 8px; }
  .detail-hero { grid-template-columns: 1fr; gap: 30px; padding-block: 36px; }
  .detail-cover { max-width: 600px; }
  .detail-section { grid-template-columns: 1fr; gap: 18px; padding-block: 28px; }
}
@media (max-width: 540px) {
  .shell { padding-inline: 20px; }
  .nav { gap: 18px; }
  .nav .home-projects-link { display: none; }
  .project-grid { grid-template-columns: 1fr; row-gap: 36px; }
  .project h3 { font-size: 21px; }
  .project-foot { flex-direction: row; align-items: center; }
  .project-head { margin-top: 17px; }
  .index-note { font-size: 12px; }
  .footer { margin-top: 44px; padding-block: 22px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cover-link img { transition: none; }
}
