/*
Theme Name: Rick Classic
Description: A quiet personal weblog inspired by the early web and Hexo Classic.
Version: 1.1.0
Author: rick
Text Domain: rick-classic
*/
:root{color-scheme:light;--paper:#fffdf6;--bg:#e9e8df;--ink:#30382f;--muted:#64685e;--green:#405b49;--line:#d2d2bd;--link:#285779}
*{box-sizing:border-box}html{font-size:16px}body{margin:0;background:var(--bg);color:var(--ink);font-family:Georgia,"Noto Serif CJK SC","Songti SC",SimSun,serif;line-height:1.8}a{color:var(--link);text-underline-offset:3px}a:visited{color:#695d79}a:hover{color:#893e2e}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #a2622b;outline-offset:3px}.site{max-width:1080px;margin:28px auto;border:1px solid #bbbea9;background:var(--paper);box-shadow:2px 3px 0 #d6d6c8}.masthead{padding:25px 32px 20px;border-top:5px solid var(--green)}.masthead h1,.masthead .site-title{margin:0;font-size:36px;line-height:1.3;font-weight:bold;letter-spacing:-1px}.site-title a,.masthead h1 a{color:var(--green);text-decoration:none}.tagline{margin:7px 0 0;font-size:14px;color:var(--muted)}.topline{display:flex;align-items:center;justify-content:space-between;gap:20px}.small-note{font:12px/1.8 "Courier New",monospace;color:var(--muted);text-align:right}.navigation{background:var(--green);padding:8px 30px;font-size:15px;font-family:Arial,"Microsoft YaHei",sans-serif;display:flex;gap:25px;flex-wrap:wrap}.navigation a,.navigation a:visited{color:#fffdf1;text-decoration:none}.navigation a:hover{text-decoration:underline}.layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:28px;padding:28px 30px 35px}.sidebar{font-size:14px;min-width:0}.sidebar section{margin-bottom:25px}.sidebar h2{font-size:15px;margin:0 0 9px;border-bottom:1px solid #aebaa8;padding:3px 0;color:var(--green)}.sidebar p{margin:8px 0}.sidebar ul{margin:5px 0;padding:0;list-style:none}.sidebar li{margin:4px 0}.sidebar .tag-list{display:flex;gap:5px 12px;flex-wrap:wrap}.sidebar a{text-decoration:none}.sidebar a:hover{text-decoration:underline}.sidebar input{width:100%;font:14px/1.5 inherit;border:1px solid #b5b9a7;background:#fffefa;padding:6px;color:var(--ink)}.sidebar button{margin-top:7px;border:1px solid #89987f;background:#e6e9db;padding:3px 14px;color:#344735;font:14px/1.7 inherit;cursor:pointer}.main{min-width:0}.section-title{font-size:19px;color:var(--green);border-top:2px solid #85957b;border-bottom:1px solid var(--line);padding:6px 0;margin:0 0 10px}.post-row{padding:17px 0;border-bottom:1px dotted #c5c7b6}.post-row h2{font-size:20px;line-height:1.65;margin:0 0 6px;overflow-wrap:anywhere}.post-row h2 a{text-decoration:none}.post-row h2 a:hover{text-decoration:underline}.meta{font:13px/1.8 Arial,"Microsoft YaHei",sans-serif;color:var(--muted)}.post-row p{font-size:15px;line-height:1.9;margin:7px 0 0;color:#535e50}.entry-title{font-size:28px;line-height:1.55;margin:0 0 12px;color:#324c39;overflow-wrap:anywhere}.entry-header{padding-bottom:17px;border-bottom:1px solid var(--line);margin-bottom:25px}.post-content{font-size:18px;line-height:1.95;overflow-wrap:anywhere}.post-content p{margin:1.15em 0}.post-content h1{font-size:26px}.post-content h2{font-size:23px;border-bottom:1px solid var(--line);padding-bottom:5px;margin:1.7em 0 .7em;color:#40563f}.post-content h3{font-size:20px;margin:1.5em 0 .5em}.post-content img{display:block;max-width:100%!important;width:auto!important;height:auto!important;max-height:none!important;margin:20px auto;object-fit:contain;border:1px solid #d3d4c8;padding:3px;background:#fff;box-sizing:border-box}.post-content .original-image{display:block}.post-content pre{max-width:100%;overflow:auto;white-space:pre;font:14px/1.75 Consolas,"Courier New",monospace;tab-size:4;background:#f0f1e8;border:1px solid #d4d8c5;border-left:3px solid #879b79;padding:16px;overflow-wrap:normal}.post-content code{font-family:Consolas,"Courier New",monospace;font-size:.86em;background:#eeeee2;padding:2px 4px}.post-content pre code{font-size:inherit;background:transparent;padding:0}.post-content blockquote{margin:20px 0;border-left:3px solid #8c9b7b;background:#f1f2e7;padding:1px 18px;color:#535c4c}.post-content ul,.post-content ol{padding-left:1.6em}.post-content table{display:block;max-width:100%;overflow:auto;border-collapse:collapse;font-size:15px}.post-content th,.post-content td{border:1px solid #c4cbb7;padding:8px 12px;text-align:left}.post-content th{background:#e4e9d9}.hljs-comment,.hljs-quote{color:#647b54}.hljs-keyword,.hljs-selector-tag{color:#805178}.hljs-string,.hljs-title{color:#316b60}.hljs-number,.hljs-literal{color:#93612a}.post-tags{border-top:1px dotted var(--line);padding-top:15px;margin-top:26px;font-size:14px}.post-navigation{border-top:1px solid var(--line);margin-top:22px;padding-top:18px;font-size:14px;display:flex;justify-content:space-between;gap:22px}.post-navigation>div{max-width:48%}.pagination{padding-top:23px;font-size:15px}.page-numbers{display:inline-block;padding:2px 9px;margin-right:5px;border:1px solid #c2cbb4}.page-numbers.current{background:var(--green);color:#fff}.archive-year{font-size:21px;color:var(--green);border-bottom:1px solid var(--line);margin:25px 0 12px}.archive-list{list-style:none;padding:0}.archive-list li{padding:7px 0;border-bottom:1px dotted var(--line)}.archive-list time{font:13px/1.8 monospace;color:var(--muted);margin-right:12px;white-space:nowrap}.taxonomy-list{columns:2;padding-left:20px}.site-footer{padding:16px 30px;border-top:1px solid #bec6b3;background:#e9ecdf;font-size:12px;color:#56614d;display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap}.skip-link{position:absolute;left:-9999px}.skip-link:focus{left:15px;top:10px;background:white;padding:8px;z-index:2}.reading-note{font-size:12px;color:var(--muted);margin-top:15px}.comments-area{border-top:1px solid var(--line);margin-top:30px;padding-top:20px}.comments-area input,.comments-area textarea{max-width:100%}
@media(max-width:800px){.site{margin:12px;border:1px solid #bbbea9}.layout{grid-template-columns:minmax(0,1fr);padding:22px;gap:25px}.main{grid-row:1}.sidebar{border-top:1px solid var(--line);padding-top:20px;display:grid;grid-template-columns:1fr 1fr;gap:20px}.sidebar section{margin:0}.masthead{padding:20px 22px}.navigation{padding:9px 22px;gap:20px}.small-note{display:none}.entry-title{font-size:25px}.post-content{font-size:17px}.site-footer{padding:15px 22px}}
@media(max-width:430px){.site{margin:0;border-left:0;border-right:0}.layout{padding:20px 17px}.masthead{padding:20px 17px}.navigation{padding:9px 17px;gap:17px;font-size:14px}.sidebar{grid-template-columns:1fr}.masthead h1,.masthead .site-title{font-size:32px}.post-row h2{font-size:19px}.taxonomy-list{columns:1}.post-content pre{font-size:12px;padding:12px}.site-footer{padding:15px 17px}}
@media print{body,.site{background:#fff}.site{border:0;box-shadow:none;margin:0}.sidebar,.navigation,.site-footer,.post-navigation{display:none}.layout{display:block;padding:0}.post-content pre{white-space:pre-wrap}.post-content{font-size:12pt}}

/* Classic reference: compact directory, blue navigation, pale sidebar. */
:root{--paper:#fffef9;--bg:#f5f4ee;--ink:#30363d;--muted:#68717b;--green:#355675;--line:#d5dbe0;--link:#245784}
body{font-family:Arial,"Microsoft YaHei","PingFang SC",sans-serif;font-size:15px;line-height:1.8}
.site{max-width:1020px;margin:18px auto;background:var(--paper);border:1px solid #cdd3d7;box-shadow:none}
.masthead{padding:14px 18px;border-top:3px solid #47698b}.masthead .site-title{font-family:Georgia,"Times New Roman",serif;font-size:25px;letter-spacing:0}.tagline{margin-top:3px;font-size:12px}.topline>div:first-child{display:flex;align-items:baseline;gap:18px}.small-note{font-family:inherit;font-size:12px}
.navigation{background:#3e6084;gap:0;padding:0;display:grid;grid-template-columns:190px repeat(5,1fr);font-size:14px;line-height:2.5}.navigation a{text-align:center;border-right:1px solid #7890a8}.navigation a:last-child{border-right:0}.navigation a.current{background:#e3eaf0;color:#233f5f}.navigation a:hover{background:#58799a;color:#fff}
.layout{grid-template-columns:178px minmax(0,1fr);gap:16px;padding:12px;align-items:start}.sidebar{font-size:13px;background:#f0f0df;border:1px solid #dedfce;padding:12px}.sidebar section{margin-bottom:21px}.sidebar section:last-child{margin-bottom:0}.sidebar h2{font-size:14px;color:#354b5f;border-bottom:1px solid #c7cec1;padding:0 0 4px;margin-bottom:7px}.sidebar li{margin:5px 0;line-height:1.7}.sidebar a{text-decoration:underline;text-decoration-color:#a9b9c4}.sidebar .tag-list{gap:3px 9px}.sidebar input{background:#fffef8}.sidebar button{background:#e5e9ec;border-color:#a7b5c0;color:#334e68}.section-title{font-size:15px;background:#496b8b;color:#fff;border:0;padding:4px 9px;margin:0 0 4px;font-weight:bold}.post-row{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 12px;padding:9px 8px;border-bottom:1px dotted #d3dae0}.post-row:nth-of-type(even){background:#f5f7f7}.post-row h2{font-size:16px;line-height:1.75;font-weight:normal;margin:0}.post-row h2 a{text-decoration:underline;text-decoration-color:#9cbbd0}.post-row .meta{font-size:12px;color:#66717c}.pagination{padding:17px 8px;font-size:13px;text-align:center}.page-numbers{padding:1px 7px}.entry-title{font-size:24px;line-height:1.6;color:#2e4a66}.entry-header{padding:6px 7px 14px;margin-bottom:20px;border-bottom:1px solid #ccd7df}.post-content{font-size:18px;line-height:1.95;padding:0 7px}.post-content h2{font-size:22px;color:#355675}.post-content h3{font-size:20px}.post-content pre{background:#f3f5f6;border-color:#d3dce2;border-left-color:#809ab0}.post-content code{background:#eef1f3}.post-content pre code{background:transparent}.post-content blockquote{background:#f0f4f6;border-left-color:#91a8b8;color:#4c5c68}.post-content th{background:#e9eef2}.post-tags,.reading-note,.post-navigation{margin-left:7px;margin-right:7px}.site-footer{padding:12px 18px;background:#eff2f1;border-color:#cbd4da;color:#68717b;font-size:12px}.archive-year{color:#355675}.archive-list li{padding:6px 7px;font-size:15px}.taxonomy-list{font-size:15px}.main{padding-bottom:16px}
@media(min-width:801px){.main{min-height:420px}}
@media(max-width:800px){.site{margin:8px}.layout{grid-template-columns:minmax(0,1fr);gap:18px;padding:12px}.main{grid-row:1}.sidebar{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:14px}.sidebar section{margin:0}.navigation{grid-template-columns:repeat(6,1fr);font-size:13px}.masthead{padding:12px 14px}.topline>div:first-child{display:block}.small-note{display:none}.post-content{font-size:17px;padding:0 3px}.entry-title{font-size:22px}.post-row{padding:9px 6px;gap:2px 10px}.post-row h2{font-size:16px}}
@media(max-width:430px){.site{margin:0;border-left:0;border-right:0}.masthead .site-title{font-size:24px}.navigation{font-size:12px;line-height:2.8}.navigation a{padding:0 2px}.sidebar{grid-template-columns:1fr}.layout{padding:10px}.post-row .meta{font-size:11px}.post-content pre{font-size:12px}.site-footer{padding:10px 12px}.entry-header{padding:4px 3px 12px}.post-tags,.reading-note,.post-navigation{margin-left:3px;margin-right:3px}}
