/* Detail pages share the home screen's quiet paper and frosted surfaces. */
html:has(.detail),html:has(.contact-page),body:has(.detail),body:has(.contact-page){background:#f8f8f6;color:#202328}
body:has(.detail) header,body:has(.contact-page) header{color:#202328;mix-blend-mode:normal;background:rgba(248,248,246,.78);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
body:has(.detail) #lang,body:has(.contact-page) #lang{border-color:#777a78}
.detail,.contact-page{background-color:#f8f8f6;background-image:radial-gradient(#dfdfdc 1px,transparent 1.4px);background-size:22px 22px;color:#202328}
.detail{padding:150px max(7%,calc((100% - 1200px)/2)) 100px;min-height:100svh}
.detail-top{color:#656a69;letter-spacing:.12em}.detail-top .back{color:#343b3c}.detail h1{color:#1e2428}.detail-headline{color:#303936}.detail-meta,.detail-project-index,.section-number,.detail .romanized-name{color:#687b78}
.detail-row,.bio-section,.about-extra{border:1px solid rgba(150,158,153,.25);border-radius:22px;background:rgba(255,255,255,.62);box-shadow:0 14px 45px rgba(35,45,42,.045);padding:clamp(24px,3.5vw,46px);margin-top:24px;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.detail-row{gap:6%}.section-content p,.about-extra p,.bio-item p{color:#323936}.section-heading h2,.bio-section h2,.about-extra h2{color:#202a28}.bio-item{border-color:#dfe4df}.bio-item>span,.caption,.research-figure figcaption{color:#626e6a}
.detail-art,.detail-art.mathnote{border-radius:22px;background:radial-gradient(ellipse at 58% 45%,#aebdb9,#667a7b 75%);box-shadow:0 18px 45px rgba(40,53,51,.12)}
.detail-art.icaif{background:radial-gradient(ellipse at 55% 45%,#bdc7c6,#798b8b 75%)}
.research-figure img,.midpoint-scroll{border-color:#d9dfda;border-radius:12px}.midpoint-scroll{background:rgba(255,255,255,.8)}.midpoint-table thead th{background:#eef1ed;color:#3d4a45}.midpoint-table td,.midpoint-table th{border-color:#e2e7e1}.midpoint-callout{border-color:#849990;background:#edf2ed;color:#304039;border-radius:0 12px 12px 0}
.next-project{border-color:#d5dcd5;color:#26312c}.next-project:hover{color:#536d61}
body:has(.detail) footer{background:#e9ede7;color:#202a25;border-top:1px solid #dce2da}body:has(.detail) footer .footer-bottom{border-color:#c8d2c9}body:has(.detail) footer .email,body:has(.detail) footer .mail-address{color:#202a25}
.contact-page{height:auto;min-height:100svh;padding:130px max(7%,calc((100% - 1200px)/2)) 28px;justify-content:center}.contact-inner{max-width:100%;margin:auto 0;padding:clamp(30px,6vw,80px);border:1px solid rgba(150,158,153,.28);border-radius:26px;background:rgba(255,255,255,.67);box-shadow:0 18px 55px rgba(35,45,42,.06);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}.contact-page h1{font-size:clamp(54px,8vw,110px);color:#202823}.contact-intro{color:#56615a}.contact-email{border-color:#a7b6a9;color:#283b31;overflow-wrap:anywhere}.contact-socials a,.about-extra a{text-decoration:underline;text-decoration-color:#aab9ad;text-underline-offset:5px}.contact-bottom{border-color:#d5ddd5;color:#58635d}
@media(max-width:800px){.detail{padding:115px 6% 70px}.detail-row,.bio-section,.about-extra{padding:24px;border-radius:18px;gap:16px}.detail-art,.detail-art.mathnote{border-radius:18px}.contact-page{padding:110px 6% 24px}.contact-inner{padding:28px 24px;border-radius:20px}.contact-page h1{font-size:clamp(48px,11vw,76px)}.contact-email{font-size:clamp(17px,5vw,26px);gap:12px}.contact-bottom{gap:16px}}
