:root {
  color-scheme: light;
  --background: #f7f8fa;
  --ink: #202532;
  --muted: #647083;
  --blue: #3159d8;
  --line: #e1e5ed;
  --font: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--background); color: var(--ink); font-family: var(--font); -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(--blue); outline-offset: 5px; border-radius: 4px; }
.site-shell { max-width: 1120px; margin: auto; padding: 0 44px; }
.site-header { height: 104px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; font-size: 18px; font-weight: 650; letter-spacing: -.5px; }
.brand-mark { display: grid; place-content: center; background: var(--ink); color: white; width: 32px; height: 32px; border-radius: 9px; font-size: 28px; line-height: 1; padding-bottom: 5px; }
.site-header nav { display: flex; gap: 30px; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 13px; font-weight: 600; }
.nav-links a:hover { color: var(--blue); }
.nav-github { font-size: 13px; font-weight: 600; }
.nav-github span { margin-left: 5px; color: var(--muted); }
.language-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 8px; gap: 3px; }
.language-switch button { border: 0; border-radius: 5px; background: transparent; padding: 5px 9px; min-height: 32px; color: var(--muted); font-size: 12px; cursor: pointer; }
.language-switch button[aria-pressed=true] { background: white; color: var(--ink); box-shadow: 0 1px 4px #20253214; }
.skip-link { position: absolute; left: 20px; top: -60px; background: white; padding: 12px; z-index: 5; }
.skip-link:focus { top: 12px; }
.hero { position: relative; padding: 75px 0 64px; overflow: hidden; }
.eyebrow { font-size: 10px; font-weight: 650; letter-spacing: 2.3px; display: flex; align-items: center; gap: 10px; margin: 0 0 23px; color: var(--muted); }
.small-line { height: 2px; width: 20px; background: var(--blue); }
h1 { font-size: clamp(42px, 5.5vw, 64px); font-weight: 680; line-height: 1.28; letter-spacing: -2.7px; margin: 0 0 23px; position: relative; z-index: 1; }
.accent { color: var(--blue); }
.hero-description { max-width: 505px; font-size: 15px; color: var(--muted); line-height: 1.95; margin: 0 0 26px; position: relative; z-index: 1; }
.hero-link { display: inline-flex; align-items: center; gap: 29px; font-size: 13px; font-weight: 600; }
.hero-link span:last-child { color: var(--blue); font-size: 18px; }
.hero-art { position: absolute; width: 300px; height: 280px; right: 20px; top: 94px; pointer-events: none; }
.orbit { position: absolute; border: 1px solid #dce2ee; border-radius: 50%; width: 246px; height: 246px; top: 4px; left: 20px; }
.orbit-two { width: 175px; height: 175px; top: 40px; left: 55px; }
.orbit-one:before, .orbit-two:after { content: ""; position: absolute; width: 7px; height: 7px; background: #a1b3df; border-radius: 50%; top: 30px; left: 35px; }
.orbit-two:after { top: 143px; left: 133px; background: #c1cce4; }
.art-tile { position: absolute; display: grid; place-items: center; border-radius: 23px; box-shadow: 0 16px 35px #263e6c0d; }
.tile-code { background: #fff; border: 1px solid #e4e8f1; width: 124px; height: 124px; left: 45px; top: 48px; font: 500 39px ui-monospace, monospace; color: var(--blue); transform: rotate(-10deg); }
.tile-star { width: 90px; height: 90px; left: 148px; top: 132px; background: #e8edfc; color: var(--blue); font-size: 67px; transform: rotate(11deg); }
.art-coordinate { position: absolute; bottom: 0; left: 76px; font: 10px ui-monospace, monospace; letter-spacing: 2px; color: #768299; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 21px; }
.section-heading h2 { font-size: 19px; margin: 0; letter-spacing: -.4px; }
.section-note { font-size: 12px; color: var(--muted); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.project-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 27px 28px 22px; transition: box-shadow .2s, border-color .2s, transform .2s; }
.project-card:hover { border-color: #a9b8e3; box-shadow: 0 8px 25px #263e6c09; transform: translateY(-2px); }
.project-card:focus-within { border-color: var(--blue); }
.cipher-card { background: linear-gradient(120deg, #f0f4ff, #fff 80%); border-color: #d4dff8; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.project-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 12px; }
.project-icon svg { width: 29px; height: 29px; }
.cipher-icon { background: #e1e9ff; color: #3159d8; }
.team-icon { background: #e6f3ed; color: #358366; }
.book-icon { background: #fcf0df; color: #a97835; }
.resume-icon { background: #eeebfa; color: #7c60b0; }
.project-kind { font-size: 11px; color: var(--muted); }
h3 { font-size: 21px; font-weight: 650; letter-spacing: -.6px; margin: 0 0 12px; padding-right: 28px; }
.project-link:after { content: ""; position: absolute; inset: 0; border-radius: 15px; }
.card-arrow { position: absolute; right: 29px; font-size: 23px; line-height: 1; color: #9aa6ba; transition: color .2s, transform .2s; }
.project-card:hover .card-arrow { color: var(--blue); transform: translate(2px, -2px); }
.project-card p { font-size: 13px; line-height: 1.85; color: var(--muted); margin: 0 0 20px; max-width: 93%; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin: auto 0 22px; padding: 0; }
.tags li { font-size: 10px; color: #617085; background: #f4f6f9; border: 1px solid #e9edf3; border-radius: 5px; padding: 4px 7px; line-height: 1.4; }
.cipher-card .tags li { background: #fff9; border-color: #dfe6f5; }
.card-address { font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; color: #68778e; border-top: 1px solid #edf0f5; padding-top: 15px; letter-spacing: .2px; }
.archive-section { display: flex; justify-content: space-between; gap: 30px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 35px 0; margin-top: 48px; }
.archive-section .eyebrow { font-size: 9px; margin-bottom: 13px; letter-spacing: 1.8px; }
.archive-section h2 { font-size: 22px; letter-spacing: -.6px; margin: 0 0 10px; }
.archive-section p:last-child { font-size: 12px; color: var(--muted); line-height: 1.8; margin: 0; }
.archive-links { display: flex; flex-direction: column; align-items: center; gap: 13px; flex-shrink: 0; }
.archive-links a { font-size: 12px; }
.archive-primary { display: flex; align-items: center; gap: 35px; background: white; border: 1px solid var(--line); padding: 12px 16px; border-radius: 8px; font-weight: 600; }
.archive-primary:hover { border-color: var(--blue); }
.archive-secondary { display: flex; flex-wrap: wrap; gap: 16px; }
.archive-secondary a { color: var(--muted); }
.archive-secondary a:hover { color: var(--blue); text-decoration: underline; }
.site-footer { display: flex; justify-content: space-between; gap: 18px; align-items: center; min-height: 94px; color: var(--muted); font-size: 11px; }
.site-footer>a { display: flex; gap: 8px; }
.site-footer>a:hover { color: var(--blue); }
html[lang=en] h1 { letter-spacing: -2px; line-height: 1.18; }
html[lang=en] h3 { font-size: 20px; }
@media (min-width: 850px) {
  .hero-description { max-width: 53%; }
}
@media (max-width: 849px) {
  .site-shell { padding: 0 28px; }
  .site-header { height: 86px; }
  .hero { padding-top: 55px; }
  .hero-art { right: -63px; top: 72px; transform: scale(.7); transform-origin: right center; opacity: .65; }
  .hero-description { max-width: 68%; }
  h1 { font-size: 51px; }
  .project-card { padding: 23px; }
  .card-arrow { right: 23px; }
  .project-card p { max-width: 100%; }
}
@media (max-width: 600px) {
  .site-shell { padding: 0 22px; }
  .site-header { height: auto; min-height: 110px; flex-wrap: wrap; gap: 16px; padding: 18px 0; }
  .site-header nav { width: 100%; justify-content: space-between; }
  .nav-links { gap: 18px; font-size: 12px; }
  .brand { font-size: 16px; }
  .site-header nav { gap: 15px; }
  .nav-github { font-size: 12px; }
  .language-switch button { padding: 4px 7px; }
  .hero { padding: 43px 0 42px; }
  .eyebrow { font-size: 9px; margin-bottom: 20px; }
  h1 { font-size: 46px; letter-spacing: -2px; }
  .hero-description { max-width: 100%; font-size: 14px; line-height: 1.9; }
  .hero-art { display: none; }
  .section-heading h2 { font-size: 18px; }
  .section-note { font-size: 11px; }
  .project-grid { grid-template-columns: 1fr; gap: 14px; }
  .project-card { padding: 23px 24px 20px; }
  .card-top { margin-bottom: 19px; }
  .project-card p { font-size: 13px; margin-bottom: 18px; }
  .tags { margin-bottom: 18px; }
  .card-arrow { right: 24px; }
  .archive-section { margin-top: 34px; padding: 29px 0; flex-direction: column; align-items: stretch; gap: 23px; }
  .archive-links { flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
  .archive-primary { gap: 22px; }
  .site-footer { padding: 24px 0; min-height: 90px; flex-wrap: wrap; font-size: 10px; gap: 15px; }
  .site-footer>span:nth-child(2) { order: 3; flex-basis: 100%; }
  html[lang=en] h1 { font-size: clamp(35px, 12vw, 45px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition: none !important; }
}
