/*
Theme Name: 瑄瑄请睡觉 (Xuan Reading)
Template: twentytwentyfive
Description: 轻量阅读型子主题：系统中文字体、舒适行距、蒂芙尼蓝点缀、自动暗色。
Version: 1.0
Text Domain: xuan-reading
*/
:root{--tif:#0ABAB5;--tif-soft:#81D8D0;--tif-ink:#0A7C78;--tif-bg:#EEF9F8;}
html{-webkit-text-size-adjust:100%;text-rendering:optimizeLegibility;}
body{font-feature-settings:"palt" 0;letter-spacing:.01em;word-break:break-word;overflow-wrap:anywhere;}
::selection{background:var(--tif-soft);color:#0b2b2a;}
/* top accent bar */
body::before{content:"";display:block;height:4px;background:linear-gradient(90deg,var(--tif),var(--tif-soft));}
.wp-block-site-title a{text-decoration:none;}
.wp-block-site-title a:hover{color:var(--tif-ink);}
.xuan-nav a{text-decoration:none;}
/* reading body */
.entry-content p,.entry-content li{text-align:justify;text-justify:inter-ideograph;}
.entry-content p{margin-block:0 1.3em;}
.entry-content a{text-decoration:underline;text-decoration-color:var(--tif-soft);text-decoration-thickness:2px;text-underline-offset:3px;}
.entry-content a:hover{text-decoration-color:var(--tif);}
.entry-content h2{padding-left:.6em;border-left:4px solid var(--tif);}
.entry-content blockquote,.wp-block-quote{border-left:4px solid var(--tif-soft);background:var(--tif-bg);padding:.9em 1.2em;margin-inline:0;border-radius:0 8px 8px 0;color:inherit;}
.entry-content blockquote p:last-child{margin-bottom:0;}
.entry-content :not(pre)>code{background:var(--tif-bg);color:var(--tif-ink);padding:.15em .4em;border-radius:4px;font-size:.88em;}
.entry-content pre,.wp-block-code{background:#0f1f1e;color:#e3f4f2;padding:1em 1.2em;border-radius:8px;overflow:auto;font-size:.88em;line-height:1.6;}
.entry-content pre code{background:none;color:inherit;padding:0;}
.entry-content img{border-radius:8px;height:auto;}
.entry-content hr{border:0;text-align:center;margin:2.5em 0;}
.entry-content hr::after{content:"♡  ♡  ♡";color:var(--tif);letter-spacing:.5em;}
.entry-content mark{background:linear-gradient(transparent 55%,var(--tif-soft) 55%);color:inherit;}
.entry-content table{border-collapse:collapse;width:100%;font-size:.92em;}
.entry-content th,.entry-content td{border:1px solid #d7e6e5;padding:.5em .7em;}
/* post list */
.xuan-list .wp-block-post{padding:1.6em 0;border-bottom:1px dashed #cfe5e3;}
.xuan-list .wp-block-post:last-child{border-bottom:0;}
.xuan-list .wp-block-post-title a{text-decoration:none;}
.xuan-list .wp-block-post-title a:hover{color:var(--tif-ink);}
.xuan-list .wp-block-post-excerpt__excerpt{color:#555;margin-top:.4em;}
.xuan-list .wp-block-post-excerpt__more-link{color:var(--tif-ink);font-size:.9em;text-decoration:none;}
.wp-block-post-date,.xuan-meta{color:#8a9796;font-size:.85em;}
.wp-block-post-terms a{color:var(--tif-ink);background:var(--tif-bg);padding:.1em .6em;border-radius:99px;text-decoration:none;font-size:.85em;}
.wp-element-button,.wp-block-button__link,input[type=submit]{background:var(--tif)!important;color:#fff!important;border-radius:99px!important;border:0!important;}
.wp-element-button:hover,.wp-block-button__link:hover,input[type=submit]:hover{background:var(--tif-ink)!important;}
.wp-block-query-pagination a{color:var(--tif-ink);text-decoration:none;}
/* dark mode */
@media (prefers-color-scheme:dark){
 :root{--tif-ink:#81D8D0;--tif-bg:#14302e;}
 body{background:#141a1a!important;color:#d9e2e1!important;}
 .wp-block-site-title a,h1,h2,h3,h4,.wp-block-post-title,.wp-block-post-title a{color:#eef5f4!important;}
 .xuan-list .wp-block-post-excerpt__excerpt{color:#a9b6b5;}
 .xuan-list .wp-block-post{border-color:#2a3b3a;}
 .wp-block-post-date,.xuan-meta,.xuan-footer{color:#7f9190!important;}
 a{color:#81D8D0;}
 .entry-content th,.entry-content td{border-color:#2a3b3a;}
 .entry-content pre,.wp-block-code{background:#0b1414;}
 input,textarea{background:#1c2424;color:#e5eeee;border-color:#2f4040;}
}
@media (max-width:600px){
 .entry-content p,.entry-content li{text-align:left;}
 .wp-block-post-title{font-size:1.6rem!important;}
}
.entry-content .wp-block-quote{margin-block:1.6em;font-size:1em;font-style:normal;}

/* author badges */
.wp-block-post-author-name,.wp-block-comment-author-name{display:inline-flex;align-items:center;gap:.4em;flex-wrap:nowrap;}
.wp-block-post-author-name a,.wp-block-comment-author-name a{color:inherit;text-decoration:none;}
.xuan-author{color:#4f5f5e;font-weight:600;}
.xuan-badge{display:inline-flex;align-items:center;min-height:1.6em;padding:0 .65em;border-radius:999px;background:var(--tif-bg);border:1px solid var(--tif-soft);color:var(--tif-ink);font-size:.75rem;font-weight:700;line-height:1;white-space:nowrap;letter-spacing:.02em;}
.xuan-badge--solid{background:var(--tif);border-color:var(--tif);color:#fff;}
.xuan-byline{color:#8a9796;font-size:.85em;}
@media (prefers-color-scheme:dark){
 .xuan-author{color:#c9d6d5;}
 .xuan-badge{background:#14302e;border-color:#2b6f6b;color:#81D8D0;}
 .xuan-badge--solid{background:#0A9C97;border-color:#0A9C97;color:#fff;}
}
