:root {
  color-scheme: light;
  --paper: #f7f5ee;
  --ink: #283c32;
  --muted: #667166;
  --accent: #3e6350;
  --on-accent: #fcfcf7;
  --line: #d9ddd2;
  --wash: #eeeee5;
  --gold: #d2ab61;
  --glass: #dfebe1;
  --note: #edddaa;
  --cover: #eeebf3;
  --cover-ink: #655675;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1f2923;
  --ink: #edece1;
  --muted: #b3bdb1;
  --accent: #adc9af;
  --on-accent: #203126;
  --line: #455247;
  --wash: #2a372e;
  --gold: #c3a66e;
  --glass: #364d3d;
  --note: #645b38;
  --cover: #39333e;
  --cover-ink: #d6c9df;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 15px/1.85 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--on-accent); }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
[hidden] { display: none !important; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.container { width: min(1120px, calc(100% - 112px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 20; left: 20px; top: 10px; transform: translateY(-160%); padding: 8px 15px; background: var(--accent); color: var(--on-accent); border-radius: 5px; }
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 30px; min-height: 92px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 18px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex: none; }
.brand-mark .icon { width: 19px; height: 19px; }
.site-nav { display: flex; gap: 28px; margin-left: auto; font-size: 13px; color: var(--muted); }
.site-nav a { padding-block: 9px; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 6px; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); text-decoration-color: var(--accent); }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 40px; padding: 6px 13px; background: transparent; font-size: 12px; min-height: 35px; }
.theme-toggle:hover { background: var(--wash); }
.theme-toggle .icon { width: 15px; height: 15px; }
.theme-sun { display: none; }
[data-theme="dark"] .theme-sun { display: block; }
[data-theme="dark"] .theme-moon { display: none; }
.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: 44px; padding: 79px 0 67px; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--accent); letter-spacing: .07em; }
.status-dot { display: inline-block; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--accent); }
h1 { font-family: var(--serif); font-size: clamp(32px, 3.55vw, 47px); font-weight: 600; line-height: 1.55; letter-spacing: -.035em; margin: 17px 0 20px; }
h1 em { font-style: normal; color: var(--accent); }
.hero-description { font-size: 14px; color: var(--muted); line-height: 2; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 27px; font-size: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; padding: 11px 19px; border-radius: 6px; border: 1px solid transparent; font-weight: 500; font-size: 13px; min-height: 45px; }
.button-primary { background: var(--accent); color: var(--on-accent); }
.button-primary:hover { filter: brightness(1.07); }
.button .icon, .text-link .icon { width: 16px; height: 16px; }
.text-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; }
.text-link:hover { color: var(--accent); }
.small-print { margin-top: 30px; color: var(--muted); font: 11px/1.8 var(--mono); letter-spacing: .11em; }
.desk-scene { position: relative; height: 277px; width: min(100%, 340px); margin: 15px auto 0; }
.desk-halo { position: absolute; width: 230px; height: 230px; border-radius: 50%; background: var(--wash); top: 9px; left: 44px; }
.desk-window { position: absolute; right: 26px; top: 6px; width: 114px; height: 133px; border: 2px solid var(--line); border-radius: 58px 58px 3px 3px; background: var(--glass); overflow: hidden; }
.desk-window::before { content: ""; position: absolute; width: 28px; height: 28px; border-radius: 50%; top: 26px; left: 21px; background: var(--gold); }
.desk-window::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent calc(50% - 1px), var(--line) calc(50% - 1px), var(--line) calc(50% + 1px), transparent calc(50% + 1px)), linear-gradient(transparent 73%, var(--line) 73%, var(--line) 75%, transparent 75%); }
.desk-monitor { position: absolute; left: 35px; top: 74px; width: 166px; height: 112px; border: 2px solid var(--accent); border-radius: 9px; background: var(--paper); padding: 11px 13px; box-shadow: 5px 5px 0 var(--wash); }
.monitor-top { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.monitor-top span { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); opacity: .6; }
.monitor-code { font: 36px/1.5 Georgia, serif; letter-spacing: 10px; color: var(--accent); text-align: center; padding-left: 10px; }
.monitor-stand { position: absolute; left: 106px; top: 185px; width: 23px; height: 19px; border-inline: 2px solid var(--accent); background: var(--paper); }
.monitor-stand::after { content: ""; position: absolute; top: 17px; left: -12px; width: 43px; border-top: 2px solid var(--accent); }
.desk-notebook { position: absolute; top: 137px; right: 13px; width: 94px; height: 82px; transform: rotate(8deg); border: 1px solid var(--gold); background: var(--note); border-radius: 2px 7px 7px 2px; padding: 13px 8px 8px 17px; font: 12px/1.9 var(--serif); letter-spacing: .1em; }
.desk-notebook::before { content: ""; position: absolute; top: 0; bottom: 0; left: 8px; border-left: 1px solid var(--gold); }
.desk-line { position: absolute; top: 216px; left: 8px; right: 0; border-top: 2px solid var(--accent); }
.desk-line::before, .desk-line::after { content: ""; position: absolute; top: 1px; width: 2px; height: 20px; background: var(--line); }
.desk-line::before { left: 30px; }
.desk-line::after { right: 22px; }
.desk-caption { position: absolute; top: 244px; left: 21px; color: var(--muted); font: 11px/1.5 var(--mono); letter-spacing: .07em; }
.section { padding: 35px 0 42px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; flex-wrap: wrap; margin-bottom: 25px; }
h2 { font: 600 27px/1.5 var(--serif); letter-spacing: .035em; }
.section-label { color: var(--muted); font: 11px/1.8 var(--mono); letter-spacing: .11em; }
.project { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.project-visual { position: relative; display: block; min-height: 420px; background: var(--cover); overflow: hidden; color: var(--cover-ink); }
.project-visual:focus-visible { outline-offset: -6px; z-index: 1; }
.visual-caption { position: absolute; top: 23px; left: 25px; font: 10px/1.8 var(--mono); letter-spacing: .16em; z-index: 2; }
.phone-composition { position: absolute; width: 310px; height: 330px; left: 50%; top: 58%; transform: translate(-50%, -50%); }
.phone { position: absolute; width: 163px; padding: 6px; background: #faf8fc; border: 1px solid #d9d4df; border-radius: 24px; box-shadow: 0 15px 32px #31244418; }
.phone img { width: 100%; height: auto; border-radius: 18px; }
.phone-back { right: 0; top: -5px; transform: rotate(8deg); }
.phone-front { left: 6px; top: 13px; transform: rotate(-7deg); }
.visual-footer { position: absolute; bottom: 20px; left: 25px; display: flex; align-items: center; gap: 7px; font-size: 11px; z-index: 2; background: var(--cover); padding: 2px 8px 2px 0; }
.visual-dot { height: 5px; width: 5px; border-radius: 50%; background: currentColor; }
.project-content { padding: 35px 36px 33px; align-self: center; }
.project-brand { display: flex; align-items: center; gap: 13px; }
.app-icon { width: 54px; height: 54px; border-radius: 13px; flex: none; }
.project-kind { font-size: 11px; letter-spacing: .03em; margin-bottom: 3px; }
.project h3 { font-size: 25px; font-weight: 600; line-height: 1.35; letter-spacing: .04em; }
.project-english { font: 11px/1.8 var(--mono); letter-spacing: .07em; color: var(--muted); margin-top: 16px; }
.project-tagline { font-family: var(--serif); font-size: clamp(21px, 2.3vw, 27px); line-height: 1.6; margin: 9px 0 14px; font-weight: 500; }
.project-description { color: var(--muted); font-size: 13px; line-height: 2; }
.project-tags { display: flex; gap: 8px 15px; flex-wrap: wrap; list-style: none; padding: 0; margin: 17px 0 23px; color: var(--muted); font-size: 11px; }
.project-tags li { display: inline-flex; align-items: center; gap: 6px; }
.project-tags li::before { content: ""; width: 3px; height: 3px; background: var(--accent); border-radius: 50%; }
.project-link { display: inline-flex; align-items: center; gap: 27px; border-bottom: 1px solid var(--line); padding: 4px 0 6px; font-size: 13px; font-weight: 500; color: var(--accent); }
.project-link .icon { width: 16px; height: 16px; transition: transform .2s; }
.project-link:hover { border-color: var(--accent); }
.project-link:hover .icon { transform: translate(2px, -2px); }
.collection-note { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 24px; color: var(--muted); font-size: 12px; }
.collection-note .status-dot { width: 4px; height: 4px; }
.about { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 45px; padding-block: 36px 48px; }
.about h2 { font-size: 23px; }
.about .section-label { margin-top: 7px; }
.about-copy { color: var(--muted); font-size: 14px; line-height: 2; }
.about-copy p + p { margin-top: 10px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 25px; padding-block: 22px 27px; font-size: 11px; color: var(--muted); }
.footer-inner a { display: inline-flex; align-items: center; gap: 6px; }
.footer-inner .icon { height: 13px; width: 13px; }
.footer-icp { padding-bottom: 22px; text-align: center; color: var(--muted); font-size: 12px; }
.footer-icp a { text-decoration: underline; text-underline-offset: .25em; }
.footer-icp a:hover { color: var(--accent); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin-top: 27px; min-height: 40px; }
.back-link:hover { color: var(--accent); }
.back-link .icon { width: 15px; height: 15px; }
.work-intro { padding: 26px 0 46px; max-width: 840px; }
.work-heading { display: flex; align-items: center; gap: 19px; margin: 14px 0 23px; }
.work-heading .app-icon { height: 76px; width: 76px; border-radius: 18px; }
.work-heading h1 { font-size: clamp(34px, 5vw, 48px); margin: 0; line-height: 1.4; }
.work-heading .project-english { margin-top: 2px; }
.work-subtitle { font: 500 clamp(23px, 3.4vw, 34px)/1.6 var(--serif); }
.work-lead { max-width: 700px; margin-top: 18px; color: var(--muted); font-size: 15px; line-height: 2; }
.work-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; margin-top: 25px; }
.work-tags { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; color: var(--muted); font: 11px/1.8 var(--mono); margin-top: 24px; }
.feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 27px; }
.feature { border-left: 2px solid var(--line); padding: 0 0 0 18px; }
.feature > .icon { color: var(--accent); margin: 3px 0 15px; width: 23px; height: 23px; }
.feature h3 { font-size: 17px; font-weight: 500; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 13px; line-height: 2; }
.section-description { color: var(--muted); font-size: 13px; margin-top: 8px; }
.screen-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 25px; margin-top: 28px; }
.screen-button { display: block; background: var(--wash); padding: 9px; border: 1px solid var(--line); border-radius: 22px; width: 100%; }
.screen-button:hover { border-color: var(--accent); }
.screen-button img { width: 100%; height: auto; border-radius: 14px; }
.screen-gallery figcaption { margin-top: 13px; font-size: 12px; text-align: center; color: var(--muted); }
.project-details { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 40px; }
.detail-list { margin: 0; }
.detail-list > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.detail-list > div:first-child { padding-top: 0; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }
.detail-links { display: flex; flex-wrap: wrap; gap: 20px; padding-top: 20px; font-size: 13px; color: var(--accent); }
.detail-links a { text-decoration: underline; text-underline-offset: 5px; }
.work-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 20px 0 38px; }
.work-bottom p { font-size: 12px; color: var(--muted); }
.image-dialog { width: min(560px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); overscroll-behavior: contain; }
.image-dialog::backdrop { background: #102018bb; backdrop-filter: blur(4px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; padding-left: 4px; font-size: 13px; }
.dialog-close { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); display: grid; place-items: center; flex: none; }
.dialog-image { max-height: calc(100dvh - 125px); width: auto; max-width: 100%; margin: auto; border-radius: 7px; }
@media (min-width: 1450px) { .hero { padding-block: 90px 78px; } }
@media (max-width: 1000px) {
  .container { width: calc(100% - 76px); }
  .hero { gap: 25px; padding-block: 65px 50px; }
  .project-content { padding: 29px; }
  .project-visual { min-height: 410px; }
  .screen-gallery { gap: 17px; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 44px); }
  .header-inner { min-height: 82px; gap: 20px; }
  .brand { font-size: 16px; gap: 9px; }
  .brand-mark { height: 32px; width: 32px; border-radius: 9px; }
  .site-nav { gap: 18px; font-size: 12px; }
  .hero { grid-template-columns: 1fr; padding-block: 42px 28px; gap: 25px; }
  h1 { font-size: clamp(28px, 5.8vw, 40px); }
  .desk-scene { height: 260px; margin-top: 0; }
  .project { grid-template-columns: 1fr; }
  .project-visual { min-height: 380px; }
  .phone-composition { top: 59%; height: 330px; }
  .phone { width: 150px; border-radius: 22px; }
  .phone-composition { width: 285px; }
  .project-content { padding: 29px; }
  .project-tagline { font-size: 26px; }
  .project-description { max-width: 460px; }
  .about, .project-details { grid-template-columns: 1fr; gap: 23px; }
  .feature-list { grid-template-columns: 1fr; gap: 26px; }
  .feature { padding-left: 20px; }
  .feature > .icon { float: left; margin-right: 15px; margin-top: 2px; }
  .feature p { clear: both; }
  .screen-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .work-intro { padding-bottom: 35px; }
  .work-heading .app-icon { height: 64px; width: 64px; border-radius: 15px; }
  .work-lead { font-size: 14px; }
  .section-heading { margin-bottom: 21px; }
  h2 { font-size: 25px; }
  .footer-inner { font-size: 11px; }
  .footer-inner > span:nth-child(2) { margin-left: auto; }
}
@media (max-width: 560px) {
  .header-inner { flex-wrap: wrap; gap: 13px; padding-block: 20px 14px; }
  .brand { width: 100%; }
  .site-nav { margin-left: 0; margin-right: auto; gap: 24px; }
  .theme-toggle { min-height: 36px; }
  .hero-actions { gap: 21px; }
  .hero-description { font-size: 13px; }
  .small-print { margin-top: 28px; }
  .desktop-break { display: none; }
  .section-label { font-size: 10px; }
  .section { padding-block: 29px 34px; }
  .collection-note { align-items: baseline; font-size: 11px; gap: 7px; }
  .collection-note .status-dot { flex: none; }
  .project-content { padding: 25px 23px 29px; }
  .project-visual { min-height: 360px; }
  .phone { width: 139px; padding: 5px; border-radius: 20px; }
  .phone img { border-radius: 15px; }
  .phone-composition { width: 264px; height: 300px; top: 58%; }
  .visual-caption { left: 21px; font-size: 9px; }
  .visual-footer { left: 21px; font-size: 10px; bottom: 16px; }
  .about { gap: 18px; padding-bottom: 36px; }
  .about-copy { font-size: 13px; }
  .footer-inner > span:nth-child(2) { margin-left: 0; }
  .footer-inner { gap: 10px 14px; padding-block: 20px; }
  .footer-inner > a { width: 100%; }
  .work-heading { gap: 14px; }
  .work-heading h1 { font-size: 35px; }
  .work-actions { gap: 17px; font-size: 13px; }
  .work-tags { gap: 10px 18px; }
  .screen-gallery { gap: 20px 14px; }
  .screen-button { padding: 5px; border-radius: 15px; }
  .screen-button img { border-radius: 10px; }
  .detail-list > div { grid-template-columns: 70px minmax(0, 1fr); gap: 15px; }
}
@media (pointer: coarse) {
  .site-nav a, .theme-toggle, .project-link, .back-link, .detail-links a, .footer-inner a, .footer-icp a { min-height: 44px; display: inline-flex; align-items: center; }
  .dialog-close { min-height: 44px; min-width: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
