:root {
  color-scheme: light dark;
  --bg: #fff;
  --text: #202124;
  --muted: #666b73;
  --line: #e9eaed;
  --accent: #2563d4;
  --panel: #f5f7fa;
  --icon: #edf3ff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #181a1e;
    --text: #f0f1f3;
    --muted: #a4a9b2;
    --line: #30343b;
    --accent: #8bb4ff;
    --panel: #20242b;
    --icon: #26344e;
  }
}
* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 3px; }
::selection { background: var(--icon); color: var(--text); }
.page { max-width: 960px; padding: 0 40px; margin: auto; }
.skip { position: fixed; top: 12px; left: 12px; padding: 12px; background: var(--bg); transform: translateY(-160%); z-index: 5; }
.skip:focus { transform: none; }
header { min-height: 100px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { font-size: 24px; font-weight: 650; letter-spacing: -1px; }
.brand-dot, .title-dot { color: var(--accent); }
nav { display: flex; flex-wrap: wrap; gap: 24px; color: var(--muted); font-size: 14px; }
nav a { padding: 8px 0; }
nav a[aria-current="page"] { color: var(--accent); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 1.5rem + 2dvw, 2.75rem); font-weight: 650; letter-spacing: -1px; line-height: 1.25; }
h2 { font-size: 18px; font-weight: 600; line-height: 1.5; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.5; }
.intro { padding: 64px 0 72px; }
.intro h1 { font-size: clamp(2.75rem, 2rem + 3dvw, 4rem); letter-spacing: -2px; }
.intro p { margin-top: 14px; font-size: 18px; color: var(--muted); }
.home-intro { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; min-height: 62dvh; padding: 64px 0 88px; }
.home-intro h1 { font-size: clamp(3rem, 2rem + 4dvw, 4.5rem); letter-spacing: -2.5px; }
.home-intro p { margin-top: 18px; font-size: 18px; color: var(--muted); }
.home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 32px; }
.home-copy { min-width: 0; }
.hero-art { position: relative; width: 100%; max-width: 390px; height: 340px; justify-self: center; isolation: isolate; }
.hero-art::before { content: ""; position: absolute; inset: 20px 0; background: radial-gradient(ellipse at 25% 30%, #6aa8ff26, transparent 65%), radial-gradient(ellipse at 80% 75%, #ff8e5726, transparent 65%); border-radius: 50%; z-index: -1; }
.hero-app { position: absolute; display: block; border-radius: 30px; }
.hero-app img { display: block; width: 100%; height: auto; aspect-ratio: 1; filter: drop-shadow(0 18px 20px #111c3d18); }
.hero-clone { width: 200px; top: 0; left: 0; transform: rotate(-10deg); }
.hero-cleaner { width: 160px; right: 0; top: 24px; transform: rotate(12deg); }
.hero-kototap { width: 174px; left: 108px; bottom: 0; transform: rotate(-4deg); }
.hero-kototap img, .app-art-kototap img { border-radius: 24%; }
.hero-app:hover { transform: rotate(0); }
.about-identity { display: flex; align-items: center; gap: 24px; }
.personal-mark { display: grid; place-items: center; width: 96px; height: 96px; flex-shrink: 0; border-radius: 28px; background: var(--icon); color: var(--accent); font-size: 56px; font-weight: 650; letter-spacing: -5px; padding-right: 5px; line-height: 1; }
.support-icon { width: 88px; height: 88px; aspect-ratio: 1; flex-shrink: 0; }
.social-name { display: flex; align-items: center; gap: 18px; min-width: 0; }
.social-icon { width: 28px; height: 28px; flex-shrink: 0; }
.social-list li:first-child .social-icon { color: var(--text); }
.social-list li:last-child .social-icon { color: #ee719e; }
.standalone-page { min-height: 62dvh; padding-top: 32px; }
.about-copy { padding-bottom: 64px; }
.about-copy p { font-size: 16px; margin-bottom: 20px; }
.social-list { list-style: none; padding: 0 0 64px; margin: 0; max-width: 34rem; }
.social-list a { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
.social-list small { display: inline-block; margin-left: 12px; font-size: 14px; color: var(--muted); }
.social-list a > span:last-child { color: var(--muted); font-size: 15px; }
.section { margin-bottom: 64px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.text-link { font-size: 14px; color: var(--accent); }
.text-link:hover, .detail-copy a:hover { text-decoration: underline; text-underline-offset: 4px; }
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.project { display: flex; align-items: flex-start; gap: 20px; padding: 22px 16px; margin: 0 -16px; border-radius: 12px; transition: background-color .15s; }
.project:hover { background: var(--panel); }
.project-icon { position: relative; display: grid; place-items: center; width: 64px; height: 64px; aspect-ratio: 1; flex-shrink: 0; border-radius: 15px; background: var(--icon); color: var(--accent); }
.project-icon span { position: absolute; width: 24px; height: 28px; border: 1.5px solid var(--accent); border-radius: 5px; top: 15px; left: 16px; }
.project-icon span + span { top: 22px; left: 24px; background: var(--icon); }
.project-info { min-width: 0; }
.project-info h2, .project-info h3 { font-size: 18px; font-weight: 600; margin: 0 0 5px; letter-spacing: -.25px; }
.project-info p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.project-kind { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }
.project-arrow { color: var(--muted); margin-left: auto; }
.social-links { display: flex; flex-wrap: wrap; gap: 16px 28px; }
.social-links a { padding: 4px 0; font-size: 15px; }
.social-links span { margin-left: 6px; color: var(--muted); font-size: 12px; }
footer { border-top: 1px solid var(--line); padding: 24px 0 36px; font-size: 12px; color: var(--muted); }
.breadcrumbs { gap: 10px; align-items: center; font-size: 12px; padding-top: 20px; }
.breadcrumbs a { padding: 4px 0; }
.page-intro { padding: 32px 0 40px; }
.page-summary { max-width: 42rem; font-size: 16px; line-height: 1.8; color: var(--muted); margin-top: 16px; }
.eyebrow { font-size: 11px; color: var(--muted); letter-spacing: 1px; margin-bottom: 10px; }
.apps-page { padding-top: 16px; }
.apps-page .page-intro { padding: 20px 0 28px; }
.apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0 0 48px; }
.apps-grid .project { display: flex; align-items: center; gap: 20px; padding: 24px; margin: 0; border: 1px solid var(--line); background: var(--panel); border-radius: 20px; }
.apps-grid .project:hover { border-color: var(--accent); }
.apps-grid .project-info h2 { font-size: 18px; line-height: 1.4; }
.apps-grid .project-kind { display: inline-flex; align-items: center; margin-top: 12px; color: var(--muted); vertical-align: middle; }
.apps-grid .project-kind svg { display: block; flex-shrink: 0; }
.apps-grid .project:hover h2 { color: var(--accent); }
.app-art { width: 72px; aspect-ratio: 1; flex-shrink: 0; }
.app-art img { display: block; width: 100%; height: auto; aspect-ratio: 1; filter: drop-shadow(0 5px 7px #16213b14); }
.app-identity { display: flex; gap: 16px; align-items: center; }
.app-identity > div { min-width: 0; }
.detail-icon { width: 56px; height: 56px; aspect-ratio: 1; border-radius: 13px; flex-shrink: 0; }
.app-identity .eyebrow { margin-bottom: 4px; }
.app-identity h1 { font-size: clamp(1.5rem, 1.25rem + 1dvw, 2rem); }
.app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 24px; }
.primary-link { display: inline-flex; align-items: center; gap: 16px; background: var(--accent); color: var(--bg); padding: 12px 18px; border-radius: 8px; font-size: 14px; }
.primary-link:hover { color: var(--bg); text-decoration: underline; text-underline-offset: 4px; }
.app-meta { color: var(--muted); font-size: 12px; line-height: 1.9; margin-top: 16px; }
.app-meta span { margin: 0 6px; }
.detail-toc { gap: 8px 24px; padding-bottom: 32px; }
.detail-section { padding-top: 28px; border-top: 1px solid var(--line); margin-bottom: 36px; }
.detail-section .section-heading { margin-bottom: 16px; }
.index { display: none; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; }
.feature-list h3, .steps h3, .important-note h3 { font-size: 16px; }
.feature-list p, .steps p, .detail-copy p, .important-note p { font-size: 14px; line-height: 1.9; color: var(--muted); margin: 8px 0 0; }
.detail-copy { max-width: 42rem; }
.detail-copy p { margin: 0 0 12px; }
.detail-copy a { color: var(--accent); }
.detail-copy code { background: var(--panel); border-radius: 3px; padding: 2px 5px; }
.steps { padding-left: 24px; display: grid; gap: 20px; }
.steps li { padding-left: 8px; }
.steps li::marker { color: var(--muted); }
.important-note { padding: 20px; border-left: 3px solid var(--accent); background: var(--panel); }
.version-note { margin-top: 20px; color: var(--muted); font-size: 12px; }
.detail-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding: 0 0 40px; }
.language-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-bottom: 24px; }
.apps-page, .app-detail { overflow-wrap: anywhere; }
@media (max-width: 650px) {
  .page { padding: 0 24px; }
  .home-intro { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 40px 0 48px; min-height: auto; }
  .home-copy { text-align: center; }
  .home-actions { justify-content: center; }
  .hero-art { max-width: 310px; height: 280px; }
  .hero-clone { width: 165px; }
  .hero-cleaner { width: 135px; }
  .hero-kototap { width: 150px; left: 84px; }
  .apps-page { padding-top: 8px; }
  .apps-page .page-intro { padding: 12px 0 20px; }
  .apps-grid .project { gap: 16px; padding: 18px; border-radius: 16px; }
  .apps-grid .project-info h2 { font-size: 17px; }
  .app-art { width: 56px; }
  .personal-mark { width: 72px; height: 72px; font-size: 42px; border-radius: 22px; }
  header { min-height: 84px; }
  nav { gap: 18px; font-size: 13px; }
  .intro { padding: 40px 0 48px; }
  .intro p { font-size: 16px; }
  .app-grid, .feature-list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .project { gap: 18px; padding: 18px 12px; margin: 0 -12px; }
  .section { margin-bottom: 44px; }
  .section-heading { margin-bottom: 16px; }
  .page-intro { padding: 24px 0 32px; }
  .apps-grid { gap: 12px; margin-bottom: 32px; }
  .feature-list { gap: 24px; }
  .detail-section { margin-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
