/*
Theme Name: MRRH Coastal
Theme URI: https://mrrh.cn/
Author: MRRH
Description: 海岸风格的中文个人博客主题，包含全屏封面、交错文章卡片、归档、分类、相册和深色模式。独立运行，无需页面构建插件。
Version: 1.0.6
Requires at least: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mrrh-coastal
Tags: blog, two-columns, right-sidebar, custom-menu, featured-images, threaded-comments
*/

:root{--accent:#49b1f5;--accent-deep:#2396df;--page:#f7f9fe;--card:#fff;--text:#36424c;--muted:#87939f;--line:#edf0f5;--shadow:0 3px 16px rgba(31,45,61,.065);--radius:9px;--header-offset:0px;color-scheme:light}
html[data-theme=dark]{--page:#181c24;--card:#222833;--text:#dce2eb;--muted:#97a3b5;--line:#343b49;--shadow:0 3px 16px rgba(0,0,0,.14);color-scheme:dark}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:90px}
body{margin:0;background:var(--page);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;font-size:15px;line-height:1.8;overflow-wrap:break-word;transition:background .25s,color .25s}
body.admin-bar{--header-offset:32px}
body.dialog-open{overflow:hidden}
a{color:inherit;text-decoration:none;transition:color .2s,background .2s,transform .2s}
a:hover{color:var(--accent)}
button,input,textarea,select{font:inherit}
button,a,input,textarea{touch-action:manipulation}
button{cursor:pointer}
button:disabled{cursor:default}
button{color:inherit}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
img{max-width:100%;height:auto;vertical-align:middle}
svg{vertical-align:middle}
.icon{display:inline-block;flex-shrink:0;vertical-align:-3px}
button .icon,a .icon{pointer-events:none}
[hidden]{display:none!important}
::selection{background:#49b1f5;color:#fff}
.screen-reader-text,.skip-link:not(:focus){border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}
.skip-link:focus{position:fixed;top:12px;left:12px;z-index:2000;background:var(--card);padding:8px 15px;border-radius:6px}
.site-header{position:fixed;top:var(--header-offset);left:0;width:100%;z-index:100;color:#fff;background:transparent;transition:background .25s,color .25s,transform .3s ease}
.nav-inner{height:52px;max-width:1680px;margin:auto;padding:0 20px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.site-brand{display:flex;align-items:center;gap:11px;white-space:nowrap;color:inherit;min-width:0}
.site-brand img{height:38px;width:38px;object-fit:cover;border-radius:50%;border:2px solid rgba(255,255,255,.7)}
.site-brand span{display:none}
.site-brand:hover{color:#fff;transform:translateY(-1px)}
.nav-right{display:flex;align-items:center;gap:17px}
.nav-links{display:flex;gap:21px;list-style:none;margin:0;padding:0;align-items:center}
.nav-links>li{position:relative}
.nav-links a{display:flex;align-items:center;gap:5px;font-size:14px;white-space:nowrap;position:relative;padding:13px 0;line-height:26px}
.nav-links a:after{content:"";position:absolute;bottom:12px;left:0;width:0;height:2px;background:var(--accent);transition:width .2s}
.nav-links a:hover:after{width:100%}
.nav-links a:hover,.nav-links .is-active{color:#8ed9ff}
.nav-links .sub-menu{display:none;position:absolute;top:100%;left:-14px;list-style:none;min-width:130px;padding:8px 14px;background:var(--card);color:var(--text);border-radius:6px;box-shadow:var(--shadow)}
.nav-links li:hover>.sub-menu,.nav-links li:focus-within>.sub-menu{display:block}
.nav-links .sub-menu a{padding:7px 0}
.icon-button{display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;padding:5px;color:inherit;border-radius:6px;width:31px;height:31px}
.icon-button:hover{background:#ffffff26}
.search-toggle .icon{width:21px;height:21px}
.login-link{display:flex;align-items:center;gap:5px;font-size:14px;white-space:nowrap}
.login-link:hover{color:#8ed9ff}
.theme-toggle{position:relative}
.theme-sun{display:none}
html[data-theme=dark] .theme-sun{display:inline-flex}
html[data-theme=dark] .theme-moon{display:none}
.menu-toggle{display:none}
.site-header.is-fixed{background:rgba(255,255,255,.5);color:var(--text);box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
html[data-theme=dark] .site-header.is-fixed{background:rgba(29,30,31,.5)}
.site-header.is-hidden{transform:translateY(calc(-100% - var(--header-offset)));transition:background .25s,color .25s,transform .65s cubic-bezier(.4,0,.2,1)}
.site-header.is-fixed .site-brand span{text-shadow:none}
.site-header.is-fixed .site-brand:hover{color:var(--accent)}
.site-header.is-fixed .icon-button:hover{background:var(--line)}
.site-header.is-fixed .nav-links a:hover,.site-header.is-fixed .nav-links .is-active{color:var(--accent)}
@keyframes nav-in{from{transform:translateY(-100%)}to{transform:translateY(0)}}
.hero{position:relative;display:flex;align-items:center;justify-content:center;isolation:isolate;color:#fff;background:#143b52;overflow:hidden}
.hero--full{height:100vh;height:100svh;min-height:520px;max-height:1600px}
.hero--inner{height:360px;min-height:300px}
.hero__image,.hero__shade{position:absolute;inset:0;width:100%;height:100%;z-index:-2}
.hero__image{object-fit:cover;object-position:center 48%;animation:hero-in 1.2s ease-out}
.hero--full .hero__image{transform:scale(var(--hero-scale,1));transform-origin:center;animation:hero-fade-in 1.2s ease-out;will-change:transform}
@keyframes hero-fade-in{from{opacity:.7}to{opacity:1}}
.hero--inner .hero__image{object-position:center 42%}
.hero__shade{z-index:-1;background:linear-gradient(180deg,rgba(7,25,43,.32),rgba(7,25,43,.16) 45%,rgba(7,25,43,.28))}
.hero--full .hero__shade{background:rgba(0,0,0,.2)}
html[data-theme=dark] .hero--full .hero__shade{background:rgba(0,0,0,.4)}
.hero--full .hero__title{display:inline-block;transition:text-shadow .5s cubic-bezier(.445,.05,.55,.95)}
@media(hover:hover) and (pointer:fine){.hero--full .hero__title:hover{text-shadow:1px 1px 0 #00e6e6,2px 2px 0 #01cccc,5px 5px 5px #dda121}}
.hero__content{max-width:1000px;text-align:center;padding:70px 24px 90px;margin-top:-4px;text-shadow:0 2px 8px #0005;animation:content-in .9s ease-out}
.hero h1{font-size:42px;line-height:1.5;font-weight:650;letter-spacing:1px;margin:0 0 20px}
.hero__subtitle{font-size:19px;min-height:35px;margin:0;font-weight:400;letter-spacing:1px}
.typewriter-cursor{margin-left:3px;animation:blink 1s step-end infinite}
.hero__inner-subtitle{font-size:15px;margin:0;opacity:.9}
.hero__meta{display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap;font-size:13px}
.hero__meta .icon{width:15px;height:15px}
.hero__scroll{position:absolute;bottom:40px;left:calc(50% - 18px);width:36px;height:40px;display:flex;align-items:center;justify-content:center;animation:scroll-cue 1.7s infinite;color:#fff;z-index:3}
.hero__scroll:hover{color:#fff}
.hero__scroll .icon{width:30px;height:30px;stroke-width:2}
.hero__waves{position:absolute;bottom:-1px;left:0;height:58px;width:100%;min-width:800px;z-index:2;pointer-events:none}
.hero__waves use{fill:var(--page);animation:wave-move 20s cubic-bezier(.55,.5,.45,.5) infinite}
.hero__waves use:nth-child(1){opacity:.2;animation-duration:25s;animation-delay:-2s}
.hero__waves use:nth-child(2){opacity:.35;animation-duration:18s;animation-delay:-3s}
.hero__waves use:nth-child(3){opacity:.5;animation-duration:16s;animation-delay:-4s}
.hero__waves use:nth-child(4){animation-duration:12s;animation-delay:-5s}
@keyframes blink{50%{opacity:0}}
@keyframes wave-move{0%{transform:translateX(-90px)}100%{transform:translateX(85px)}}
@keyframes scroll-cue{0%,100%{transform:translateY(0);opacity:1}50%{transform:translateY(8px);opacity:.65}}
@keyframes hero-in{from{transform:scale(1.035);opacity:.7}to{transform:scale(1);opacity:1}}
@keyframes content-in{from{transform:translateY(12px);opacity:0}to{transform:translateY(0);opacity:1}}
.site-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:24px;max-width:1140px;margin:48px auto 0;padding:0 20px;align-items:start;scroll-margin-top:90px;min-height:400px}
.single-column{display:block;max-width:850px}
.post-list,.article-column{min-width:0}
.section-heading{display:flex;align-items:center;justify-content:space-between;font-size:16px;font-weight:600;margin:0 1px 20px;gap:10px}
.section-heading>span:first-child{display:flex;align-items:center;gap:8px}
.section-heading .icon{color:var(--accent)}
.section-heading__note{font-size:12px;font-weight:400;color:var(--muted)}
.post-card{display:flex;min-height:230px;margin:0 0 23px;background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;transition:box-shadow .25s,transform .25s;position:relative}
.post-card:hover{box-shadow:0 9px 30px #263f6320;transform:translateY(-3px)}
.post-card__image{width:40%;flex-shrink:0;position:relative;overflow:hidden;display:block;min-height:230px;background:#b7ddec}
.post-card__image img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;transition:transform .65s cubic-bezier(.2,.65,.3,1),filter .4s}
.post-card:hover .post-card__image img{transform:scale(1.07)}
.post-card__image:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,#00000010)}
.post-card__image-arrow{position:absolute;left:50%;top:50%;display:flex;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid #ffffffb0;border-radius:50%;color:white;background:#0002;transform:translate(-70%,-50%);opacity:0;transition:opacity .3s,transform .3s;z-index:1}
.post-card:hover .post-card__image-arrow{opacity:1;transform:translate(-50%,-50%)}
.post-card__body{display:flex;flex:1;flex-direction:column;justify-content:center;padding:26px 27px;min-width:0}
.post-card h2{font-size:21px;line-height:1.55;font-weight:600;margin:0 0 10px}
.post-card h2 a{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.post-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px 7px;font-size:11px;line-height:1.9;color:var(--muted)}
.post-meta>span{display:inline-flex;align-items:center;gap:4px;flex-wrap:wrap}
.post-meta .icon{width:12px;height:12px}
.meta-divider{opacity:.45}
.post-meta .sticky-label{color:#f1847b}
.post-card__excerpt{font-size:14px;line-height:1.95;margin:12px 0 0;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.read-more{font-size:12px;color:var(--accent);margin-top:15px;display:inline-flex;align-items:center;gap:7px;align-self:flex-start}
.read-more .icon{width:14px;height:14px;transition:transform .2s}
.read-more:hover .icon{transform:translateX(4px)}
.post-card--reverse{flex-direction:row-reverse}
.post-card--reverse .post-card__image img{object-position:70% center}
.sidebar{display:flex;flex-direction:column;gap:20px;min-width:0}
.side-card{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:22px;overflow:hidden}
.side-card h2{font-size:16px;font-weight:550;margin:0 0 15px;display:flex;gap:9px;align-items:center}
.side-card h2 .icon{width:17px;height:17px;color:var(--accent)}
.side-card p{font-size:13px;line-height:1.95;margin:0}
.profile-card{padding:0 20px 20px;text-align:center}
.profile-card__cover{width:calc(100% + 40px);max-width:none;height:125px;object-fit:cover;margin-left:-20px;object-position:center 45%}
.profile-card__avatar{width:82px;height:82px;border-radius:50%;object-fit:cover;margin:-42px auto 10px;position:relative;border:4px solid var(--card);transition:transform .7s}
.profile-card__avatar:hover{transform:rotate(360deg)}
.profile-card h2{display:block;font-size:19px;line-height:1.5;margin:0 0 8px}
.profile-card__bio{color:var(--muted);padding:0 2px;min-height:46px}
.profile-stats{display:flex;justify-content:center;margin:18px 0 17px}
.profile-stats a{flex:1;display:flex;flex-direction:column;line-height:1.8;font-size:13px}
.profile-stats strong{font-weight:500;font-size:21px;line-height:1.5}
.profile-button{display:flex;align-items:center;justify-content:center;gap:8px;background:var(--accent);color:#fff;border-radius:5px;padding:7px 16px;font-size:14px;line-height:1.8;border:0}
.profile-button:hover{color:#fff;background:var(--accent-deep);transform:translateY(-1px)}
.profile-button .icon{width:17px;height:17px}
.profile-social{display:flex;justify-content:center;align-items:center;gap:20px;margin:16px 0 0;color:var(--muted)}
.profile-social a{display:flex;align-items:center}
.profile-social .icon{width:20px;height:20px}
.rss-subscribe{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0;border:0;background:transparent;color:inherit;cursor:pointer;font:inherit}
.rss-subscribe:hover{color:var(--accent)}
.profile-social .rss-subscribe{font-size:12px;line-height:20px}
.notice-card h2 .icon{color:#fa8278;animation:bell-ring 5s ease-in-out infinite}
@keyframes bell-ring{0%,80%,100%{transform:rotate(0)}84%,92%{transform:rotate(12deg)}88%,96%{transform:rotate(-12deg)}}
.recent-card ul,.category-card ul{list-style:none;margin:0;padding:0}
.recent-card li{display:flex;gap:11px;padding:10px 0;border-bottom:1px dashed var(--line);align-items:center}
.recent-card li:last-child{border-bottom:0;padding-bottom:0}
.recent-card li:first-child{padding-top:0}
.recent-card__image{width:64px;height:51px;flex-shrink:0;overflow:hidden;border-radius:4px}
.recent-card__image img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.recent-card li:hover img{transform:scale(1.08)}
.recent-card li>div{min-width:0;font-size:13px;line-height:1.6}
.recent-card li>div>a{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.recent-card time{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.category-card li a{display:flex;align-items:center;justify-content:space-between;font-size:13px;gap:10px;padding:6px 0}
.count-badge{display:inline-flex;align-items:center;justify-content:center;min-width:24px;min-height:22px;background:var(--page);border-radius:5px;color:var(--muted);font-size:12px;padding:0 5px}
.tag-cloud{display:flex;align-items:center;flex-wrap:wrap;gap:3px 9px}
.tag-cloud a:nth-child(6n+1){color:#49b1f5}.tag-cloud a:nth-child(6n+2){color:#a77dde}.tag-cloud a:nth-child(6n+3){color:#68b88e}.tag-cloud a:nth-child(6n+4){color:#ee9b6d}.tag-cloud a:nth-child(6n+5){color:#e78db1}.tag-cloud a:nth-child(6n){color:#6fbac3}
.tag-cloud a:hover{transform:scale(1.08)}
.muted{color:var(--muted);font-size:13px}
.site-info dl{margin:0;font-size:12px;line-height:2.3}
.site-info dl>div{display:flex;justify-content:space-between;gap:15px}
.site-info dt{color:var(--muted)}
.site-info dd{margin:0}
.pagination{display:flex;justify-content:center;align-items:center;gap:8px;margin:28px 0;flex-wrap:wrap}
.pagination:empty{display:none}
.page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:34px;min-height:34px;border-radius:5px;background:var(--card);box-shadow:var(--shadow);font-size:13px;padding:3px 10px}
.page-numbers.current,.page-numbers:hover{background:var(--accent);color:white}
.content-panel{background:var(--card);padding:35px;border-radius:var(--radius);box-shadow:var(--shadow);min-width:0}
.article-panel{padding:38px 40px}
.article-body{line-height:2;font-size:16px}
.article-body>*:first-child{margin-top:0}
.article-body h1,.article-body h2,.article-body h3,.article-body h4{color:var(--text);line-height:1.5;margin:1.7em 0 .7em;font-weight:600;scroll-margin-top:90px}
.article-body h2{font-size:25px;border-bottom:1px solid var(--line);padding-bottom:10px}
.article-body h3{font-size:21px}
.article-body p{margin:1.1em 0}
.article-body a{color:var(--accent);border-bottom:1px solid #49b1f540}
.article-body a:hover{border-color:var(--accent)}
.article-body blockquote{border-left:4px solid var(--accent);margin:25px 0;background:var(--page);padding:12px 22px;color:var(--muted);border-radius:0 5px 5px 0}
.article-body blockquote>*:first-child{margin-top:0}.article-body blockquote>*:last-child{margin-bottom:0}
.article-body pre{font:13px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace;background:#202a36;color:#d8e5ef;border-radius:7px;padding:22px;overflow:auto;max-width:100%;tab-size:4}
.article-body :not(pre)>code{font-size:.9em;background:var(--page);color:#dd7774;padding:2px 5px;border-radius:4px}
.article-body img{border-radius:6px}
.article-body table{border-collapse:collapse;width:100%;font-size:14px;display:block;overflow:auto}
.article-body td,.article-body th{padding:8px 14px;border:1px solid var(--line)}
.article-body th{background:var(--page)}
.article-body .alignwide,.article-body .alignfull{margin-left:0;margin-right:0;max-width:100%}
.article-body iframe{max-width:100%}
.article-categories{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:25px}
.article-categories a,.article-tags a{font-size:12px;border:1px solid #49b1f540;color:var(--accent);padding:2px 9px;border-radius:4px}
.article-tags{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:30px}
.article-credit{border:1px solid var(--line);padding:16px 20px;margin:32px 0;color:var(--muted);border-radius:6px;font-size:12px;background:var(--page)}
.article-credit strong{color:var(--text);font-size:14px}
.article-credit p{margin:3px 0;word-break:break-all}
.article-credit a{color:var(--accent)}
.article-end{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--muted);font-size:13px;padding:18px 0 0}
.article-like{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:9px 23px;color:#df6e86;background:#e8789210;border:1px solid #df6e8660;border-radius:24px;transition:color .2s,background .2s,transform .2s}
.article-like .icon{width:20px;height:20px;transition:fill .2s,transform .2s}
.article-like:hover:not(:disabled){background:#e8789225;transform:translateY(-2px)}
.article-like[aria-pressed=true]{color:#fff;border-color:#df6e86;background:#df6e86}
.article-like[aria-pressed=true] .icon{fill:currentColor}
.article-like:disabled{opacity:.6}
.like-count{font-variant-numeric:tabular-nums;border-left:1px solid currentColor;padding-left:10px;line-height:1}
.like-status{font-size:12px;min-height:22px;line-height:22px;margin:0;text-align:center;color:var(--muted)}
.post-navigation{margin:22px 0}
.nav-links:has(.nav-previous),.post-navigation .nav-links{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.post-navigation a{display:flex;flex-direction:column;padding:20px;background:var(--card);border-radius:6px;font-size:13px;box-shadow:var(--shadow);height:100%}
.post-navigation .nav-next{text-align:right;grid-column:2}
.post-navigation span{color:var(--muted);font-size:11px}
.post-navigation strong{font-weight:500}
.toc-card{position:sticky;top:calc(85px + var(--header-offset))}
#article-toc{display:flex;flex-direction:column;max-height:55vh;overflow:auto;font-size:12px;gap:3px}
#article-toc a{padding:5px 9px;border-left:2px solid var(--line);line-height:1.7}
#article-toc a.is-sub{padding-left:20px}
#article-toc a.is-active{border-color:var(--accent);color:var(--accent);background:var(--page)}
.collection-heading{margin:0 0 30px}
.eyebrow{font-size:10px;letter-spacing:2.4px;font-weight:650;color:var(--accent)}
.collection-heading h2{font-size:25px;font-weight:550;line-height:1.5;margin:10px 0}
.collection-heading h2 small{font-size:13px;font-weight:400;color:var(--muted);margin-left:8px}
.collection-heading p{font-size:13px;color:var(--muted);margin:0}
.timeline{border-left:2px solid var(--line);padding-left:28px;margin:20px 0 0 8px}
.timeline-year{position:relative;font-size:23px;font-weight:500;margin:28px 0 20px}
.timeline-year:before{content:"";position:absolute;left:-36px;top:15px;width:12px;height:12px;background:var(--accent);border:3px solid var(--card);border-radius:50%;box-shadow:0 0 0 1px var(--accent)}
.timeline-item{display:flex;align-items:baseline;gap:20px;margin:0 0 22px;position:relative}
.timeline-item:before{content:"";position:absolute;left:-33px;top:10px;width:8px;height:8px;background:var(--muted);border:2px solid var(--card);border-radius:50%}
.timeline-item time{color:var(--muted);font-size:12px;flex-shrink:0}
.timeline-item>a{font-size:15px}
.timeline-item:hover:before{background:var(--accent)}
.category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.category-grid>a{display:flex;align-items:center;gap:10px;padding:18px;border:1px solid var(--line);border-radius:7px}
.category-grid>a .icon{color:var(--accent)}
.category-grid>a .count-badge{margin-left:auto}
.category-grid>a:hover{border-color:var(--accent);background:var(--page)}
.collection-tags{display:flex;flex-wrap:wrap;gap:12px}
.collection-tags>a{display:flex;align-items:center;gap:8px;border:1px solid var(--line);padding:9px 15px;border-radius:7px}
.collection-tags>a:hover{border-color:var(--accent);background:var(--page)}
.gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.gallery-item{position:relative;overflow:hidden;border-radius:7px;background:var(--page);display:block;aspect-ratio:4/3}
.gallery-item img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.gallery-item span{position:absolute;inset:auto 0 0;padding:25px 15px 10px;background:linear-gradient(transparent,#0009);color:#fff;font-size:13px;transform:translateY(100%);transition:transform .3s}
.gallery-item:hover span,.gallery-item:focus-visible span{transform:translateY(0)}
.gallery-item:hover img{transform:scale(1.05)}
.note-item{border-left:2px solid var(--accent);padding:0 0 20px 23px;margin:0 0 30px;position:relative}
.note-item:before{content:"";width:9px;height:9px;background:var(--accent);border:3px solid var(--card);border-radius:50%;position:absolute;left:-7px;top:8px}
.note-item time{font-size:12px;color:var(--muted)}
.note-item h3{font-size:18px;font-weight:500;margin:5px 0 12px}
.note-item .entry-content{font-size:14px}
.empty-state{text-align:center;padding:55px 25px;color:var(--muted)}
.empty-state>.icon{width:42px;height:42px;color:var(--accent);margin-bottom:10px;stroke-width:1.3}
.empty-state h2,.empty-state h3{color:var(--text);font-size:20px;font-weight:500;margin:12px 0}
.empty-state p{font-size:14px}
.empty-state .search-form{max-width:400px;margin:25px auto}
.empty-state .profile-button{max-width:180px;margin:25px auto 0}
.text-link{display:inline-flex;gap:6px;align-items:center;color:var(--accent);font-size:13px;margin-top:15px}
.error-number{font-size:90px;font-weight:750;line-height:1;color:var(--accent);opacity:.7}
.guestbook-intro{text-align:center;padding:10px 0 25px}
.guestbook-intro>.icon{width:40px;height:40px;color:var(--accent);stroke-width:1.3}
.guestbook-intro h2{font-size:23px;font-weight:500;margin:18px 0 7px}
.guestbook-intro p{font-size:14px;color:var(--muted);margin:0}
.comments-area{margin-top:24px;font-size:14px}
.comments-area>h2{display:flex;align-items:center;gap:8px;font-size:20px;font-weight:550;margin:0 0 25px}
.comments-area>h2 .icon{color:var(--accent)}
.comment-list,.comment-list .children{list-style:none;padding:0;margin:0}
.comment-list .children{padding-left:35px}
.comment-list .comment-body{padding:18px 0;border-bottom:1px solid var(--line)}
.comment-author{display:flex;align-items:center;gap:9px}
.comment-author .avatar{border-radius:50%;margin-right:2px}
.comment-author .fn{font-style:normal}
.comment-author .says{display:none}
.comment-meta{font-size:11px;color:var(--muted);margin:3px 0 10px}
.comment-content{font-size:14px}
.comment-content a{color:var(--accent)}
.comment-reply-link{font-size:12px;color:var(--accent)}
.comment-reply-title{font-size:17px;font-weight:500;margin:25px 0 15px}
.comment-reply-title small{font-size:12px;margin-left:10px}
.comment-form{display:flex;flex-wrap:wrap;gap:14px}
.comment-form>p{margin:0;width:100%}
.comment-form .comment-form-author,.comment-form .comment-form-email,.comment-form .comment-form-url{flex:1 1 180px}
.comment-form label{font-size:12px;color:var(--muted);display:block;margin-bottom:5px}
.comment-form input:not([type=checkbox]):not([type=submit]),.comment-form textarea{width:100%;border:1px solid var(--line);border-radius:6px;background:var(--page);color:var(--text);padding:10px 13px;resize:vertical}
.comment-form textarea{min-height:130px}
.comment-form .comment-form-cookies-consent{display:flex;align-items:flex-start;gap:8px}
.comment-form-cookies-consent input{margin-top:5px}
.comment-form .logged-in-as,.comment-notes{color:var(--muted);font-size:12px}
.comment-form .logged-in-as a{color:var(--accent)}
.comment-form .submit{background:var(--accent);color:#fff;border:0;border-radius:5px;padding:9px 24px;font-size:13px;cursor:pointer}
.comment-form .submit:hover{background:var(--accent-deep)}
.site-footer{text-align:center;padding:45px 20px 38px;color:var(--muted);font-size:12px;line-height:1.9;margin-top:35px}
.site-footer p{margin:2px 0}
.footer-credit{display:flex;align-items:center;justify-content:center;gap:9px;font-size:11px;opacity:.8;margin-top:12px!important}
.footer-credit .icon{width:12px;height:12px}
.floating-tools{position:fixed;right:20px;bottom:28px;z-index:50;display:flex;flex-direction:column;gap:6px}
.tool-button{display:flex;align-items:center;justify-content:center;background:var(--card);color:var(--muted);border:1px solid var(--line);border-radius:6px;width:35px;height:35px;box-shadow:var(--shadow);transition:background .2s,color .2s,transform .2s}
.tool-button:hover{background:var(--accent);color:white;transform:translateY(-2px)}
.tool-button .icon{width:17px;height:17px}
dialog{color:var(--text);background:var(--card);border:0;border-radius:12px;box-shadow:0 20px 80px #0003;max-width:calc(100% - 32px)}
dialog::backdrop{background:#10203688;backdrop-filter:blur(5px)}
.search-dialog{width:590px;padding:28px;margin:18vh auto auto}
.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}
.dialog-heading h2{font-size:20px;font-weight:550;display:flex;gap:9px;align-items:center;margin:0}
.dialog-heading h2 .icon{color:var(--accent)}
.dialog-heading .icon-button:hover{background:var(--line)}
.search-form{display:flex;align-items:stretch;gap:0;width:100%}
.search-form label{flex:1;min-width:0}
.search-field{height:48px;width:100%;background:var(--page);border:1px solid var(--line);border-radius:6px 0 0 6px;padding:10px 15px;color:var(--text);font-size:14px}
.search-form button{width:50px;flex-shrink:0;border:0;background:var(--accent);color:white;border-radius:0 6px 6px 0}
.search-form button:hover{background:var(--accent-deep)}
.search-hint{font-size:12px;color:var(--muted);margin:13px 0 0}
.rss-dialog{width:570px;padding:28px;margin:auto;max-height:calc(100svh - 40px);overflow:auto}
.rss-dialog>p{font-size:14px;line-height:1.9;color:var(--muted);margin:0 0 20px}
.rss-address-label{display:block;font-size:12px;color:var(--muted);margin-bottom:7px}
.rss-address{width:100%;padding:11px 13px;border:1px solid var(--line);background:var(--page);color:var(--text);border-radius:6px;font-size:14px;min-width:0}
.rss-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:17px}
.rss-actions>a{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:var(--muted)}
.rss-actions>a:hover{color:var(--accent)}
.rss-actions .icon{width:14px;height:14px}
.rss-dialog>.rss-status{font-size:12px;color:var(--accent);margin:12px 0 0;min-height:23px}
.rss-dialog>.rss-note{font-size:12px;border-top:1px solid var(--line);padding-top:15px;margin:12px 0 0}
.image-dialog{background:transparent;box-shadow:none;padding:35px 0 0;width:max-content;max-width:92vw;max-height:95vh;overflow:visible;text-align:center;color:#fff}
.image-dialog img{max-height:80vh;max-width:90vw;width:auto;border-radius:5px}
.image-dialog p{margin:8px 0;font-size:13px}
.image-close{position:absolute;right:0;top:0;border:0;background:transparent;color:white;padding:3px}
.mobile-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:190}
.mobile-nav{position:fixed;inset:0 auto 0 0;width:60vw;max-width:280px;background:var(--card);color:var(--text);padding:18px 24px 30px;z-index:200;overflow:auto;box-shadow:7px 0 25px #0002;animation:mobile-menu-in .25s ease-out}
html[data-theme=dark] .mobile-nav{background:#444;color:#d5d5d5}
@keyframes mobile-menu-in{from{transform:translateX(-100%)}to{transform:translateX(0)}}
.mobile-nav__top{display:flex;align-items:center;justify-content:flex-end;height:22px}
.mobile-login-avatar{display:flex;align-items:center;justify-content:center;width:80px;height:80px;margin:19px auto 14px;border-radius:50%;background:linear-gradient(135deg,#7ca9cb,#ae91bb);font-size:16px;color:#fff}
.mobile-login-avatar:hover{color:white;filter:brightness(1.05)}
.mobile-login-avatar img{width:80px;height:80px;border-radius:50%;object-fit:cover}
.mobile-nav .nav-links{display:flex;flex-direction:column;align-items:stretch;gap:3px}
.mobile-nav .nav-links a,.mobile-more summary{padding:9px 8px;gap:10px;font-size:16px;line-height:27px;display:flex;align-items:center;cursor:pointer}
.mobile-nav .nav-links a:hover,.mobile-nav .nav-links .is-active{background:transparent;color:var(--accent)}
.mobile-nav .nav-links a:after{display:none}
.mobile-nav .icon-button:hover{background:var(--line)}
.mobile-more summary{list-style:none}
.mobile-more summary::-webkit-details-marker{display:none}
.mobile-more ul{list-style:none;padding:0;margin:0}
.mobile-more .more-chevron{width:13px;height:13px;margin-left:auto;transform:rotate(-90deg);transition:transform .2s}
.mobile-more[open] .more-chevron{transform:rotate(0)}
.mobile-nav .nav-links .icon{width:18px;height:18px}
.mobile-nav .nav-links a:after{display:none}
.mobile-login{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:13px;padding:18px 10px;margin-top:20px;border-top:1px solid var(--line)}
@media(min-width:1500px){.site-layout{max-width:1210px;grid-template-columns:minmax(0,1fr) 300px}.post-card{min-height:245px}.post-card__image{min-height:245px}.hero h1{font-size:45px}}
@media(max-width:1150px){.nav-inner{padding:0 22px}.site-brand span{display:none}.nav-links{gap:18px}.nav-right{gap:14px}.site-layout{grid-template-columns:minmax(0,1fr) 260px;gap:20px}.post-card__body{padding:23px}.post-card h2{font-size:20px}.side-card{padding:19px}.profile-card{padding:0 18px 18px}.profile-card__cover{width:calc(100% + 36px);margin-left:-18px}.article-panel{padding:30px}}
@media(max-width:900px){.desktop-nav,.login-link{display:none}.menu-toggle{display:inline-flex}.site-brand span{display:block}.nav-right{gap:12px}.site-layout{grid-template-columns:minmax(0,1fr);max-width:800px;margin-top:32px}.sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.profile-card{grid-row:span 2}.toc-card{position:static}.post-card{min-height:230px}.site-footer{margin-top:10px}.hero--inner{height:310px;min-height:280px}.hero h1{font-size:36px}.hero__subtitle{font-size:17px}.floating-tools{right:12px;bottom:18px}}
@media(max-width:600px){body{font-size:14px}.nav-inner{height:58px;padding:0 16px;gap:10px}.site-brand img{width:32px;height:32px}.site-brand{gap:8px}.site-brand span{font-size:15px;max-width:200px;overflow:hidden;text-overflow:ellipsis}.nav-right{gap:8px}.icon-button{width:28px;height:28px;padding:4px}.hero--full{min-height:540px}.hero h1{font-size:30px;line-height:1.5;letter-spacing:.5px;margin-bottom:18px}.hero__content{padding:65px 24px 80px}.hero__subtitle{font-size:15px;letter-spacing:.3px}.hero__scroll{bottom:28px}.hero__waves{height:35px}.hero--inner{height:270px;min-height:250px}.hero--inner h1{font-size:26px}.hero__inner-subtitle{font-size:12px}.hero__meta{font-size:11px;gap:6px}.hero__image{object-position:55% center}.site-layout{padding:0 14px;gap:23px;margin-top:25px}.section-heading{font-size:15px;margin-bottom:16px}.section-heading__note{font-size:10px}.post-card,.post-card--reverse{display:flex;flex-direction:column;margin-bottom:18px;min-height:0}.post-card__image{width:100%;height:190px;min-height:0}.post-card__body{padding:21px 23px 22px}.post-card h2{font-size:20px;margin-bottom:9px}.post-meta{font-size:10px;gap:3px 5px}.post-card__excerpt{font-size:13px;margin-top:10px}.read-more{font-size:11px;margin-top:12px}.sidebar{display:flex;gap:18px}.profile-card{padding:0 23px 23px}.profile-card__cover{width:calc(100% + 46px);margin-left:-23px;height:145px}.profile-card__bio{min-height:0}.side-card{padding:23px}.profile-card{padding-top:0}.recent-card__image{width:76px;height:58px}.content-panel{padding:25px 22px}.article-panel{padding:25px 22px}.article-body{font-size:15px}.article-body h2{font-size:22px}.article-body h3{font-size:19px}.article-credit{padding:14px}.category-grid,.friend-grid{grid-template-columns:1fr}.gallery-grid{gap:10px}.collection-heading h2{font-size:23px}.collection-heading{margin-bottom:24px}.timeline{padding-left:23px}.timeline-year:before{left:-31px}.timeline-item:before{left:-28px}.timeline-item{gap:14px}.timeline-item>a{font-size:14px}.comments-area{padding:25px 20px}.comment-list .children{padding-left:20px}.floating-tools{right:9px;bottom:15px}.tool-button{width:31px;height:31px;opacity:.9}.search-dialog{padding:22px;margin-top:15vh}.dialog-heading h2{font-size:18px}.guestbook-intro h2{font-size:21px}.footer-credit{font-size:10px}.site-footer{padding:30px 15px}.empty-state{padding:40px 20px}}
@media(max-width:782px){body.admin-bar{--header-offset:46px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}.typewriter-cursor{opacity:1}}
@media(max-width:600px){.sidebar{align-items:stretch}}

/* Match the reference's compact mobile header and profile-first home layout. */
@media(max-width:900px){
 .site-brand,.site-brand span{display:none}
 .nav-inner{height:52px;padding:0 10px}
 .nav-inner>.menu-toggle{display:inline-flex}
 .nav-right{margin-left:auto;gap:13px}
 .mrrh-landing .site-layout{grid-template-areas:"profile" "posts" "info";row-gap:20px;margin-top:25px;padding:0 8px}
 .mrrh-landing .post-list{grid-area:posts}
 .mrrh-landing .post-list>.section-heading{display:none}
 .mrrh-landing .sidebar{display:contents}
 .mrrh-landing .sidebar>.side-card{display:none}
 .mrrh-landing .sidebar>.profile-card{display:block;grid-area:profile;grid-row:auto}
 .mrrh-landing .sidebar>.site-info{display:block;grid-area:info}
 .mrrh-landing .hero__image{object-position:50% 50%}
 .mrrh-landing .hero h1{font-size:20px;font-weight:500}
 .mrrh-landing .hero__subtitle{font-size:14px}
}

/* Guestbook: native WordPress comments presented as a shooting-star message wall. */
.guestbook-main{margin:0;padding:0}
.guestbook-stage{position:relative;height:100vh;height:100svh;min-height:540px;overflow:hidden;isolation:isolate;background:radial-gradient(ellipse at bottom,#1c2a3b 0%,#090c12 100%);color:#e5e7ed}
.shooting-stars{position:absolute;inset:0;pointer-events:none;z-index:-1}
.shooting-stars span{position:absolute;left:var(--star-x);top:var(--star-y);height:1px;width:80px;background:linear-gradient(90deg,transparent,#6595ff);filter:drop-shadow(0 0 4px #3975e9);opacity:0;animation:shooting-star var(--star-duration) linear var(--star-delay) infinite}
@keyframes shooting-star{0%,38%{opacity:0;transform:translate(-60px,-60px) rotate(45deg)}45%{opacity:1}62%{opacity:0;transform:translate(100px,100px) rotate(45deg)}100%{opacity:0;transform:translate(100px,100px) rotate(45deg)}}
.guestbook-center{position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);text-align:center;width:90%;z-index:2;pointer-events:none}
.guestbook-center h1{font-size:40px;line-height:1.5;margin:0 0 27px;font-weight:650;color:#e0e3ea;letter-spacing:3px}
.guestbook-write{display:inline-flex;justify-content:center;align-items:center;width:66px;height:66px;background:none;border:0;color:#979ba5;padding:5px;pointer-events:auto;transition:color .2s,transform .2s}
.guestbook-write .icon{width:52px;height:52px;stroke-width:1.1}
.guestbook-write:hover{color:var(--accent);transform:translateY(-5px)}
.guestbook-center>p{font-size:12px;color:#9ba5b4;margin:10px 0 0;letter-spacing:1px}
.guestbook-empty{display:block;font-size:11px;color:#69778c;margin-top:12px}
.message-wall{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:3}
.message-bubble{display:flex;align-items:center;max-width:360px;gap:5px;position:absolute;left:calc(100% + 10px);top:calc(75px + (100% - 150px)*var(--lane));white-space:nowrap;border:0;background:transparent;padding:5px;color:#fff;pointer-events:auto;animation:message-drift var(--drift-time) linear var(--drift-delay) infinite;text-shadow:0 1px 4px #0008;font-size:15px}
.message-bubble:hover,.message-bubble:focus-visible{animation-play-state:paused}
.message-avatar{width:34px;height:34px;flex-shrink:0;display:flex;align-items:center;justify-content:center;border-radius:50%;background:linear-gradient(135deg,hsl(var(--bubble-hue) 30% 55%),#a38db4);font-size:13px;color:white;text-shadow:none}
.message-author{font-size:12px;max-width:75px;overflow:hidden;text-overflow:ellipsis}
.message-text{max-width:230px;overflow:hidden;text-overflow:ellipsis}
@keyframes message-drift{from{transform:translateX(0)}to{transform:translateX(calc(-100vw - 100% - 40px))}}
.guestbook-transcript{max-width:950px;margin:0 auto;padding:20px;color:var(--muted);font-size:13px}
.guestbook-transcript summary{cursor:pointer;text-align:center}
.guestbook-transcript ol{padding:0;list-style:none}
.guestbook-transcript li{padding:18px 0;border-bottom:1px solid var(--line)}
.guestbook-transcript li>div{display:flex;gap:15px;justify-content:space-between}
.guestbook-transcript p{white-space:pre-wrap;overflow-wrap:anywhere}
.guestbook-transcript time{font-size:11px}
.mrrh-guestbook .site-footer{background:#22262d;color:#aeb7c4;margin:0;padding:30px 20px}
.guestbook-dialog{width:620px;max-height:85svh;overflow:auto;padding:27px}
.guestbook-dialog .comment-reply-title{margin:0 0 15px;font-size:16px}
.guestbook-dialog .comment-form{font-size:13px}
.guestbook-dialog .comment-notes{margin-bottom:2px}
.guestbook-pending{padding:12px;background:var(--page);border-left:3px solid var(--accent);font-size:13px}
.guestbook-detail-date{font-size:12px;color:var(--muted)}
.guestbook-detail-text{font-size:15px;line-height:2;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:600px){.guestbook-center h1{font-size:32px}.guestbook-center{top:48%}.guestbook-dialog{padding:22px}.message-bubble{font-size:13px;max-width:280px}.message-text{max-width:170px}.message-author{max-width:60px}}
@media(prefers-reduced-motion:reduce){.message-wall{display:flex;flex-wrap:wrap;align-content:flex-start;gap:10px;padding:70px 15px 15px;overflow:auto;max-height:30vh}.message-bubble{position:static;white-space:normal}.shooting-stars{display:none}}
