:root {
  color-scheme: light;
  --background: #fff;
  --surface: #f5f5f7;
  --text: #1d1d1f;
  --secondary: #626269;
  --blue: #0066cc;
  --button: #0071e3;
  --line: #e5e5e9;
  --width: 980px;
  --gutter: clamp(24px, 5vw, 48px);
  --duration: 180ms;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); }
a { color: var(--blue); text-decoration: none; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
::selection { background: #d5e9ff; color: #1d1d1f; }
.skip-link { position: absolute; top: 8px; left: 16px; padding: 12px 20px; background: white; border-radius: 12px; z-index: 10; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { background: #fafafc; border-bottom: 1px solid rgba(0, 0, 0, .065); }
@supports ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
  .site-header { background: rgba(250, 250, 252, .78); -webkit-backdrop-filter: saturate(150%) blur(20px); backdrop-filter: saturate(150%) blur(20px); }
}
.header-inner, main, .site-footer { width: min(var(--width), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.header-inner { min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.wordmark { font-size: 1.3125rem; font-weight: 650; letter-spacing: -.035em; }
.domain { color: var(--secondary); font-size: .875rem; letter-spacing: .015em; }
main:focus { outline: none; }
.hero { padding: clamp(72px, 10vh, 112px) 0 82px; text-align: center; animation: arrive 650ms ease-out both; }
.eyebrow { margin: 0 0 9px; font-size: 1.1875rem; font-weight: 500; letter-spacing: .08em; }
h1 { margin: 0; font-size: clamp(3rem, 8vw, 5rem); font-weight: 650; line-height: 1.12; letter-spacing: -.055em; }
.title-period { color: #85858b; }
.intro { color: var(--secondary); margin: 23px 0 0; font-size: 1.25rem; line-height: 1.7; letter-spacing: -.025em; }
.contact-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 18px 28px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 27px; border-radius: 999px; background: var(--button); color: white; font-size: 1.0625rem; line-height: 1.4; box-shadow: 0 2px 4px rgba(0, 77, 160, .08), inset 0 1px 0 rgba(255, 255, 255, .15); transition: background var(--duration), box-shadow var(--duration), transform var(--duration); }
.github-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; gap: 7px; font-size: 1.0625rem; border-radius: 5px; text-underline-offset: 5px; }
.github-link svg { flex: none; transition: transform var(--duration); }
.now-panel { display: flex; align-items: center; gap: 26px; padding: 38px 42px; border: 1px solid rgba(0, 0, 0, .035); border-radius: 24px; background: linear-gradient(115deg, #f7f7f9, #f3f3f6); box-shadow: 0 4px 16px rgba(25, 25, 40, .025), inset 0 1px 0 rgba(255, 255, 255, .85); }
.panel-mark { display: grid; place-items: center; flex: 0 0 60px; height: 60px; color: #55555d; background: #fff; border: 1px solid #ededf1; border-radius: 17px; box-shadow: 0 3px 7px rgba(0, 0, 0, .035); }
.panel-copy { min-width: 0; }
h2 { margin: 0 0 8px; font-size: 1.3125rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.4; }
.panel-copy p { margin: 0; color: var(--secondary); font-size: 1.0625rem; line-height: 1.85; text-wrap: pretty; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 24px 0 30px; margin-top: 48px; border-top: 1px solid var(--line); color: var(--secondary); font-size: .875rem; line-height: 1.6; }
.site-footer p { margin: 0; }
.site-footer p span { margin-inline: 5px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--secondary); overflow-wrap: anywhere; text-underline-offset: 4px; }
@media (hover: hover) {
  .button:hover { background: #0068d1; box-shadow: 0 4px 12px rgba(0, 90, 180, .16); transform: translateY(-1px); }
  .github-link:hover, .site-footer a:hover { text-decoration: underline; }
  .github-link:hover svg { transform: translate(1px, -1px); }
}
.button:active { transform: scale(.98); background: #005fbe; }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
  .header-inner { min-height: 60px; }
  .hero { padding: 76px 0 64px; }
  .intro { font-size: 1.0625rem; margin-top: 19px; }
  .now-panel { padding: 28px; gap: 20px; align-items: flex-start; flex-direction: column; }
  .panel-mark { flex-basis: auto; width: 48px; height: 48px; border-radius: 14px; }
  .panel-mark svg { width: 26px; height: 26px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 0; margin-top: 32px; padding-top: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* v1.1: single-page navigation and project presentation */
html { scroll-padding-top: 32px; }
.wordmark { color: var(--text); display: inline-flex; align-items: center; min-height: 44px; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 24px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--secondary); font-size: .875rem; }
.hero { padding-bottom: 76px; }
.hero-note { color: var(--secondary); font-size: 1rem; line-height: 1.8; margin: 7px 0 0; }
.section-label, .panel-copy .section-label { color: var(--secondary); font-size: .6875rem; font-weight: 600; letter-spacing: .12em; line-height: 1.7; margin: 0 0 12px; }
.content-section { padding-top: 100px; }
.section-heading { margin-bottom: 32px; }
.section-heading h2, .contact-panel h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); letter-spacing: -.04em; line-height: 1.25; font-weight: 650; }
.project-card { overflow: hidden; display: grid; grid-template-columns: .9fr 1.1fr; background: var(--surface); border: 1px solid #ededf0; border-radius: 28px; }
.project-art { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 24px; background: radial-gradient(ellipse at 50% 35%, #ffffff 0%, #e8eef3 70%, #e2e8ee 100%); }
.app-mark { display: grid; place-items: center; width: 112px; height: 112px; border-radius: 28px; color: #fff; background: linear-gradient(145deg, #465d70, #203545); box-shadow: 0 18px 32px -12px #20354566, inset 0 1px 1px #ffffff66; transform: rotate(-6deg); }
.art-name { margin-top: 28px; font-size: 1.5rem; font-weight: 650; letter-spacing: -.04em; color: #293e50; }
.art-caption { margin-top: 8px; font-size: .8125rem; letter-spacing: .16em; color: #526373; }
.project-copy { padding: 44px; min-width: 0; }
.project-copy h3 { margin: 0; font-size: 2rem; font-weight: 650; letter-spacing: -.04em; overflow-wrap: anywhere; }
.project-copy p:not(.section-label) { color: var(--secondary); line-height: 1.85; font-size: 1rem; }
.project-copy p.project-lead { color: var(--text); font-size: 1.1875rem; margin: 10px 0 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 24px 0 20px; list-style: none; }
.tags li { padding: 6px 10px; border: 1px solid #dedee4; border-radius: 8px; font-size: .75rem; line-height: 1.5; color: #54545b; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; line-height: 1.7; text-underline-offset: 5px; }
.about-section { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-bottom: 92px; }
.about-copy { min-width: 0; }
.about-copy p { margin: 0 0 16px; color: var(--secondary); font-size: 1.0625rem; line-height: 1.9; }
.contact-panel { padding: 60px 28px; text-align: center; background: var(--surface); border-radius: 28px; }
.contact-panel > p:not(.section-label) { color: var(--secondary); line-height: 1.8; margin: 18px 0 26px; }
.contact-panel .button { gap: 10px; }
.email-address { display: table; margin: 12px auto 0; padding: 12px 0; font-size: .875rem; color: var(--secondary); overflow-wrap: anywhere; max-width: 100%; }
@media (hover: hover) {
  nav a:hover, .text-link:hover, .email-address:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 5px; }
}
@media (max-width: 700px) {
  .header-inner { flex-wrap: wrap; gap: 0 16px; padding-block: 8px; }
  nav { gap: 0 18px; }
  .content-section { padding-top: 64px; }
  .project-card { grid-template-columns: 1fr; }
  .project-art { padding: 40px 24px; }
  .project-copy { padding: 28px; }
  .about-section { grid-template-columns: 1fr; gap: 0; padding-bottom: 56px; }
  .about-section .section-heading { margin-bottom: 20px; }
  .contact-panel { padding: 40px 24px; }
}

/* v1.2: typography, responsive surfaces and system appearance */
:root {
  color-scheme: light dark;
  --background: #f8fafc;
  --surface: #fff;
  --text: #182638;
  --secondary: #536579;
  --blue: #235db1;
  --button: #225cb0;
  --line: #dce4ed;
  --soft: #edf3fa;
  --header: rgba(248, 250, 252, .92);
  --shadow: 0 18px 56px -32px rgba(27, 55, 90, .25);
  --width: 1060px;
  --gutter: clamp(20px, 5vw, 48px);
}
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { line-height: 1.7; overflow-wrap: break-word; }
body::before { content: ""; position: absolute; inset: 0 0 auto; height: 670px; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 50% 5%, #deebfa 0%, transparent 68%); }
.site-header { position: sticky; top: 0; z-index: 5; background: var(--header); border-color: var(--line); }
.header-inner { min-height: 76px; }
.wordmark { font-size: 1.4rem; letter-spacing: -.05em; }
.wordmark::after { content: "."; color: var(--blue); }
nav { gap: 6px 12px; }
nav a { padding: 0 12px; border-radius: 10px; font-weight: 500; transition: color 180ms, background 180ms; }
.hero { position: relative; padding: clamp(76px, 12vw, 132px) 0 86px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--secondary); font-size: .875rem; letter-spacing: .08em; }
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--blue); border-radius: 50%; box-shadow: 0 0 0 5px var(--soft); }
h1 { font-size: clamp(4.25rem, 12vw, 7.5rem); font-weight: 700; letter-spacing: -.07em; line-height: 1.05; }
.title-period { color: var(--blue); }
.intro { color: var(--text); font-size: clamp(1.125rem, 2.5vw, 1.375rem); margin-top: 28px; }
.hero-note { font-size: 1rem; margin-top: 8px; }
.hero-interests { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 23px 0 0; list-style: none; }
.hero-interests li { color: var(--secondary); font-size: .75rem; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.contact-actions { margin-top: 30px; }
.button { font-size: .9375rem; font-weight: 600; min-height: 48px; padding: 13px 26px; box-shadow: 0 6px 18px -8px var(--blue); }
.github-link { font-size: .9375rem; }
.now-panel { padding: 32px 36px; gap: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.panel-mark { color: var(--blue); background: var(--soft); border: 1px solid var(--line); box-shadow: none; border-radius: 16px; }
.section-label, .panel-copy .section-label { color: var(--blue); font-size: .6875rem; font-weight: 650; letter-spacing: .14em; }
.panel-copy p { font-size: .9375rem; }
.panel-copy h2 { font-size: 1.25rem; margin-bottom: 8px; }
.content-section { padding-top: 100px; }
.section-heading { margin-bottom: 28px; }
.section-heading h2, .contact-panel h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.35; font-weight: 650; }
.project-card { border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); grid-template-columns: 1fr 1.15fr; }
.project-art { min-height: 350px; position: relative; background: radial-gradient(ellipse at 40% 35%, #f9fcff, #dfebf6); }
.app-mark { background: linear-gradient(145deg, #4875a5, #233f64); box-shadow: 0 22px 36px -14px #25436580, inset 0 1px 1px #ffffff66; transition: transform 240ms ease; }
.art-name { color: #243f5d; }
.art-caption { color: #4b637c; }
.project-copy { padding: clamp(28px, 4vw, 48px); align-self: center; }
.project-copy h3 { font-size: 2rem; }
.tags li { color: var(--secondary); background: var(--soft); border-color: var(--line); border-radius: 6px; }
.about-section { gap: 72px; padding-bottom: 88px; }
.about-copy { border-left: 2px solid var(--line); padding-left: 28px; }
.about-copy p { font-size: 1rem; }
.contact-panel { position: relative; padding: 64px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.contact-panel > p:not(.section-label) { max-width: 38em; margin-inline: auto; }
.site-footer { flex-wrap: wrap; margin-top: 64px; padding-bottom: 28px; font-size: .75rem; }
.skip-link { color: var(--text); background: var(--surface); border: 1px solid var(--line); z-index: 20; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 4px; }
@media (hover: hover) {
  nav a:hover { background: var(--soft); text-decoration: none; }
  .project-card:hover .app-mark { transform: rotate(0deg) translateY(-4px); }
  .button:hover { background: var(--blue); box-shadow: 0 10px 24px -12px var(--blue); }
}
@media (prefers-color-scheme: dark) {
  :root { --background: #10151e; --surface: #171f2b; --text: #e7edf6; --secondary: #a6b5c9; --blue: #9bc3ff; --button: #245ca8; --line: #303e50; --soft: #202e40; --header: rgba(16,21,30,.93); --shadow: 0 18px 56px -32px #0009; }
  body::before { background: radial-gradient(ellipse at 50% 5%, #1b2e49, transparent 68%); }
  .project-art { background: radial-gradient(ellipse at 40% 35%, #2b425b, #1a293b); }
  .art-name { color: #e1edfc; }
  .art-caption { color: #b0c5df; }
  .button:hover { background: #326dbd; }
  ::selection { background: #32587e; color: #fff; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 132px; }
  .header-inner { min-height: 64px; gap: 0 12px; padding-block: 8px; }
  nav { gap: 0 2px; }
  nav a { padding-inline: 9px; font-size: .8125rem; }
  .hero { padding: 72px 0 56px; }
  .now-panel { padding: 26px; gap: 18px; }
  .content-section { padding-top: 64px; }
  .project-card { grid-template-columns: 1fr; border-radius: 20px; }
  .project-art { min-height: 280px; padding: 36px 24px; }
  .app-mark { width: 96px; height: 96px; border-radius: 24px; }
  .project-copy { padding: 28px; }
  .about-section { grid-template-columns: 1fr; gap: 4px; padding-bottom: 56px; }
  .about-copy { padding-left: 20px; }
  .contact-panel { padding: 40px 24px; border-radius: 20px; }
  .site-footer { margin-top: 40px; gap: 2px; }
}
@media (max-width: 380px) {
  .header-inner { justify-content: center; }
  .wordmark { flex-basis: 100%; justify-content: center; min-height: 36px; }
  nav { justify-content: center; width: 100%; }
  .hero-interests { gap: 6px; }
  .hero-interests li { padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
