/*
Theme Name: CKH 簡約閱讀
Description: CKH 網誌的繁體中文閱讀版型。
Template: twentytwentyfive
Version: 1.1.0
Text Domain: ckh-reading
*/
body { background:#faf9f5; color:#253830; }
.wp-site-blocks { max-width:1080px; margin:0 auto; padding:32px 44px; }
.ckh-header { display:flex; justify-content:space-between; align-items:center; gap:24px; padding:0 0 23px; border-bottom:1px solid #d9dfd6; }
.ckh-header .wp-block-site-title { margin:0; font-family:"Microsoft JhengHei","PingFang TC",sans-serif; font-size:22px; font-weight:700; }
.ckh-header .wp-block-site-title a { text-decoration:none; }
.ckh-header .wp-block-site-title::before { content:""; display:inline-block; width:8px; height:8px; border-radius:50%; background:#53705b; margin-right:11px; vertical-align:middle; }
.ckh-nav { display:flex; gap:26px; font-size:14px; }
.ckh-nav a { text-decoration:none; padding:8px 0; }
a:hover { text-decoration:underline; text-underline-offset:4px; }
.ckh-hero { padding:65px 0 60px; }
.ckh-kicker { color:#63706a; font-size:12px; letter-spacing:.14em; margin:0 0 18px; }
.ckh-hero h1 { font-family:Georgia,"Noto Serif TC","PMingLiU",serif; font-size:clamp(36px,5vw,52px); font-weight:500; line-height:1.5; letter-spacing:.02em; margin:0; }
.ckh-intro { max-width:480px; color:#63706a; font-size:16px; line-height:1.9; margin:20px 0 0; }
.ckh-body { display:grid; grid-template-columns:minmax(0,1fr) 180px; gap:50px; padding-bottom:55px; min-height:240px; }
.ckh-section-heading { font-family:"Microsoft JhengHei","PingFang TC",sans-serif; font-size:16px; font-weight:600; margin:0 0 23px; }
.ckh-post-list { list-style:none; padding:0; margin:0; }
.ckh-post-list>li { padding:27px 0; border-top:1px solid #d9dfd6; }
.ckh-post-list>li:first-child { padding-top:0; border-top:0; }
.ckh-post-list .wp-block-post-terms { color:#53705b; font-size:12px; margin:0 0 10px; }
.ckh-post-list .wp-block-post-terms a { text-decoration:none; }
.ckh-post-list .wp-block-post-title { font-family:Georgia,"Noto Serif TC","PMingLiU",serif; font-size:24px; line-height:1.6; font-weight:500; margin:0 0 12px; overflow-wrap:anywhere; }
.ckh-post-list .wp-block-post-title a { text-decoration:none; }
.ckh-post-list .wp-block-post-excerpt { color:#63706a; font-size:15px; line-height:1.9; margin:0; }
.ckh-post-list .wp-block-post-excerpt p { margin:0; }
.ckh-post-list .wp-block-post-date { color:#63706a; font-size:12px; margin-top:16px; }
.ckh-empty { padding:16px 0 38px; color:#63706a; font-size:16px; line-height:2; }
.ckh-empty p { margin:0; }
.ckh-about { border-left:1px solid #d9dfd6; padding-left:24px; font-size:14px; line-height:1.9; color:#63706a; }
.ckh-about h2 { color:#253830; font-size:15px; font-weight:600; line-height:1.9; margin:0 0 14px; }
.ckh-about p { margin:0 0 23px; }
.ckh-footer { padding-top:27px; padding-bottom:15px; border-top:1px solid #d9dfd6; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:15px; color:#63706a; font-size:12px; }
.ckh-footer p { margin:0; }
.ckh-footer a { color:#53705b; text-decoration:none; }
.ckh-pagination { margin-top:30px; gap:18px; font-size:14px; }
.ckh-article { max-width:720px; margin:0 auto; padding:48px 0 64px; }
.ckh-article>.wp-block-post-title { margin:0 0 16px; font-size:clamp(26px,3vw,34px); line-height:1.5; font-family:"Microsoft JhengHei","PingFang TC",sans-serif; font-weight:700; letter-spacing:.01em; text-wrap:balance; overflow-wrap:break-word; }
.ckh-keep-together { white-space:nowrap; }
.ckh-article>.wp-block-post-date { margin:0 0 30px; padding-bottom:24px; border-bottom:1px solid #d9dfd6; font-size:13px; color:#63706a; }
.ckh-article .wp-block-post-content { padding:0; font-size:17px; font-weight:400; line-height:1.9; overflow-wrap:break-word; }
.ckh-article .wp-block-post-content>p { margin:0 0 24px; }
.ckh-article .wp-block-post-content h2 { margin:46px 0 20px; padding-bottom:12px; border-bottom:1px solid #d9dfd6; font-size:25px; font-weight:700; line-height:1.55; text-wrap:balance; }
.ckh-article .wp-block-post-content h3 { margin:30px 0 14px; font-size:19px; font-weight:700; line-height:1.6; }
.ckh-article .wp-block-post-content :is(ul,ol) { margin:0 0 24px; padding-left:1.5em; }
.ckh-article .wp-block-post-content li+li { margin-top:8px; }
.ckh-article .wp-block-post-content a { color:#345842; text-decoration:underline; text-underline-offset:4px; text-decoration-thickness:1px; }
.ckh-article .wp-block-post-content :not(pre)>code { padding:.15em .35em; border-radius:4px; background:#e9ede6; font-size:.88em; }
.ckh-article .wp-block-post-content code { font-family:Consolas,"Cascadia Mono","SFMono-Regular",monospace; }
.ckh-article img { max-width:100%; height:auto; }
.ckh-article .wp-block-post-content pre { box-sizing:border-box; max-width:100%; margin:22px 0 28px; padding:22px 24px; border:1px solid #30473b; border-radius:10px; background:#20352d; color:#f0f4ee; overflow:auto; font-family:Consolas,"Cascadia Mono","SFMono-Regular",monospace; font-size:14px; font-weight:400; line-height:1.8; tab-size:4; }
.ckh-article .wp-block-post-content pre code { display:block; padding:0; border:0; background:transparent; color:inherit; font:inherit; white-space:pre; overflow-wrap:normal; word-break:normal; }
@media(max-width:700px) {
 .wp-site-blocks { padding:25px 24px; }
 .ckh-header { gap:16px; }
 .ckh-header .wp-block-site-title { font-size:20px; }
 .ckh-nav { gap:18px; }
 .ckh-nav a { min-height:44px; display:flex; align-items:center; }
 .ckh-hero { padding:50px 0 43px; }
 .ckh-body { grid-template-columns:1fr; gap:35px; padding-bottom:40px; }
 .ckh-about { border-left:0; border-top:1px solid #d9dfd6; padding:25px 0 0; }
 .ckh-article { padding:32px 0 44px; }
 .ckh-article>.wp-block-post-title { font-size:26px; line-height:1.55; }
 .ckh-article>.wp-block-post-date { margin-bottom:24px; padding-bottom:20px; }
 .ckh-article .wp-block-post-content { font-size:16px; line-height:1.9; }
 .ckh-article .wp-block-post-content h2 { margin-top:36px; font-size:22px; }
 .ckh-article .wp-block-post-content h3 { font-size:18px; }
 .ckh-article .wp-block-post-content pre { padding:18px 16px; font-size:13px; border-radius:8px; }
}
@media(prefers-reduced-motion:no-preference) { html { scroll-behavior:smooth; } }

/* Language controls stay usable on narrow displays. */
.ckh-header{flex-wrap:wrap!important;gap:12px 20px}.ckh-nav{flex-wrap:wrap;gap:12px 18px}.ckh-nav a{display:inline-flex;align-items:center;min-height:44px}.ckh-language{font-size:14px}.ckh-language[aria-current="page"]{border-bottom:2px solid currentColor}.ckh-topic{font-size:13px;letter-spacing:.03em;color:#526454;margin-bottom:10px}.ckh-single h1{overflow-wrap:break-word}.ckh-post-list h3{overflow-wrap:break-word}@media(max-width:700px){.ckh-header{align-items:flex-start!important}.ckh-nav{width:100%;justify-content:flex-start;gap:8px 20px}.ckh-hero h1{font-size:clamp(34px,9vw,48px)!important}.ckh-single h1{font-size:clamp(28px,7.5vw,40px)!important}.ckh-post-list .wp-block-post-excerpt{overflow-wrap:break-word}}
