:root {
	--ink: #24292f;
	--muted: #57606a;
	--blue: #0969da;
	--blue-dark: #0550ae;
	--border: #d0d7de;
	--surface: #ffffff;
	--surface-soft: #f6f8fa;
	--surface-blue: #f0f6fc;
	--green: #1a7f37;
	--radius: 12px;
	--shadow: 0 12px 36px rgba(36, 41, 47, 0.09);
	--content-width: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--surface);
	color: var(--ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: fixed; top: -80px; left: 18px; z-index: 9999; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.eyebrow { display: block; margin-bottom: 6px; color: var(--blue); font-size: 12px; font-weight: 750; letter-spacing: .14em; }
.status-pill { display: inline-flex; align-items: center; padding: 2px 8px; border: 1px solid #bf8700; border-radius: 999px; background: #fff8c5; color: #7d4e00; font-size: 12px; font-weight: 650; }
.button-link { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 17px; border: 1px solid var(--blue); border-radius: 8px; background: var(--blue); color: #fff; font-weight: 650; }
.button-link:hover { background: var(--blue-dark); color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(208, 215, 222, .9); background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); }
.admin-bar .site-header { top: 32px; }
.header-inner { display: grid; grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr); align-items: center; gap: 24px; width: min(calc(100% - 40px), var(--content-width)); min-height: 72px; margin-inline: auto; }
.site-brand { display: flex; align-items: center; min-width: 0; color: var(--ink); justify-self: start; }
.site-brand:hover { color: var(--ink); }
.brand-logo { display: flex; flex: 0 0 auto; align-items: center; }
.brand-logo img { width: auto; max-width: 48px; height: 48px; margin-right: 11px; border-radius: 10px; object-fit: cover; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; margin-right: 11px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 800; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.25; }
.brand-copy strong { font-size: 16px; letter-spacing: .01em; }
.brand-copy small { max-width: 210px; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.primary-navigation { margin: 0; justify-self: center; }
.site-menu { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-menu li { position: relative; }
.site-menu a { display: block; padding: 8px 10px; border-radius: 7px; color: var(--ink); font-size: 14px; font-weight: 600; }
.site-menu a:hover, .site-menu .current-menu-item > a, .site-menu .current-menu-ancestor > a { background: var(--surface-soft); color: var(--blue); }
.site-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; width: 180px; margin: 0; padding: 8px; border: 1px solid var(--border); border-radius: 10px; background: #fff; box-shadow: var(--shadow); list-style: none; }
.site-menu li:hover > .sub-menu, .site-menu li:focus-within > .sub-menu { display: block; }
.header-search { display: flex; width: 200px; height: 40px; justify-self: end; }
.header-search input, .footer-search input, .not-found-actions input { flex: 1 1 auto; width: auto; min-width: 0; height: 40px; padding: 0 10px; border: 1px solid var(--border); border-radius: 7px 0 0 7px; outline: none; background: #fff; color: var(--ink); font-size: 13px; line-height: 40px; }
.header-search input:focus, .footer-search input:focus, .not-found-actions input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(9, 105, 218, .13); }
.header-search button, .footer-search button, .not-found-actions .search-submit { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-width: 54px; height: 40px; padding: 0 12px; border: 1px solid var(--ink); border-radius: 0 7px 7px 0; background: var(--ink); color: #fff; font-size: 13px; line-height: 1; white-space: nowrap; word-break: keep-all; }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.menu-toggle > span:not(.screen-reader-text) { display: block; width: 20px; height: 2px; margin: 4px 0; background: var(--ink); }

/* Homepage */
.home-shell, .archive-shell, .page-shell, .about-shell, .diary-shell, .single-shell { width: min(calc(100% - 40px), var(--content-width)); margin: 0 auto; }
.home-shell { padding: 32px 0 72px; }
.hero-slider { position: relative; height: 470px; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--ink); box-shadow: var(--shadow); }
.hero-track, .hero-slide { width: 100%; height: 100%; }
.hero-slide { visibility: hidden; position: absolute; inset: 0; opacity: 0; transition: opacity .65s ease, visibility .65s; }
.hero-slide.is-active { visibility: visible; opacity: 1; }
.hero-background { position: absolute; inset: 0; background: linear-gradient(120deg, #24292f, #0969da); background-position: center; background-size: cover; transform: scale(1.02); }
.hero-background::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 17, 23, .88) 0%, rgba(13, 17, 23, .58) 54%, rgba(13, 17, 23, .18) 100%); }
.hero-content { position: absolute; z-index: 2; left: clamp(28px, 6vw, 76px); bottom: clamp(40px, 8vw, 82px); width: min(610px, calc(100% - 80px)); color: #fff; }
.hero-content .eyebrow { color: #79c0ff; }
.hero-content h1 { margin: 0 0 16px; font-size: clamp(32px, 5vw, 54px); line-height: 1.14; letter-spacing: -.035em; }
.hero-content h1 a { color: #fff; }
.hero-content p { margin: 0; color: rgba(255,255,255,.84); font-size: 17px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 21px; color: rgba(255,255,255,.72); font-size: 13px; }
.hero-arrow { position: absolute; z-index: 4; top: 50%; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(13,17,23,.35); color: #fff; font-size: 28px; line-height: 1; transform: translateY(-50%); }
.hero-arrow:hover { background: rgba(13,17,23,.72); }
.hero-prev { left: 18px; }
.hero-next { right: 18px; }
.hero-dots { position: absolute; z-index: 4; right: 24px; bottom: 20px; display: flex; gap: 7px; }
.hero-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.48); }
.hero-dots button.is-active { width: 24px; border-radius: 999px; background: #fff; }
.home-intro { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); align-items: end; gap: 60px; margin: 64px 0 34px; padding-bottom: 34px; border-bottom: 1px solid var(--border); }
.home-intro h2 { max-width: 690px; margin: 0; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.25; letter-spacing: -.025em; }
.home-intro > p { margin: 0; color: var(--muted); }
.home-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.home-panel { display: flex; flex-direction: column; min-height: 580px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.panel-heading h2 { margin: 0; font-size: 23px; line-height: 1.25; }
.tab-buttons { display: flex; padding: 3px; border-radius: 8px; background: var(--surface-soft); }
.tab-buttons button { padding: 5px 9px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 650; white-space: nowrap; }
.tab-buttons button.is-active { background: #fff; color: var(--blue); box-shadow: 0 1px 4px rgba(36,41,47,.14); }
.tab-panel { flex: 1; }
.tab-panel[hidden] { display: none; }
.home-post-list { border-top: 1px solid var(--border); }
.home-post-item { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 15px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.home-post-thumb { width: 92px; height: 78px; overflow: hidden; border-radius: 8px; background: var(--surface-soft); }
.home-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.home-post-item:hover .home-post-thumb img { transform: scale(1.04); }
.home-post-thumb.no-image { display: grid; place-items: center; background: linear-gradient(135deg, var(--ink), var(--blue)); color: #fff; font-size: 24px; font-weight: 800; }
.home-post-item h3 { margin: 2px 0 4px; font-size: 16px; line-height: 1.4; }
.home-post-item h3 a { color: var(--ink); }
.home-post-item h3 a:hover { color: var(--blue); }
.home-post-item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.home-post-meta { display: flex; align-items: center; gap: 7px; font-size: 11px !important; }
.home-post-meta .status-pill { padding: 0 6px; font-size: 10px; }
.home-list-empty { display: grid; min-height: 330px; place-items: center; border-top: 1px solid var(--border); color: var(--muted); }
.panel-more { align-self: flex-start; margin-top: 20px; font-size: 13px; font-weight: 650; }
.panel-more span { margin-left: 4px; transition: margin .2s; }
.panel-more:hover span { margin-left: 8px; }

/* Cards and archives */
.archive-shell { padding: 58px 0 76px; }
.archive-heading { margin-bottom: 34px; padding-bottom: 26px; border-bottom: 1px solid var(--border); }
.archive-heading h1, .page-heading h1 { margin: 0 0 10px; font-size: clamp(32px, 4.5vw, 48px); line-height: 1.2; letter-spacing: -.03em; }
.archive-heading p, .archive-description { max-width: 720px; margin: 0; color: var(--muted); }
.archive-heading-banner { margin-bottom: 28px; padding: 24px 30px; border: 1px solid #b6d6f7; border-radius: 14px; background: linear-gradient(130deg, var(--surface-blue), #fff); }
.archive-heading-banner .eyebrow { margin-bottom: 2px; }
.archive-heading-banner .page-title { margin-bottom: 4px; font-size: clamp(28px, 3.4vw, 40px); }
.archive-heading-banner .archive-description, .archive-heading-banner .archive-description p { margin: 0; font-size: 15px; line-height: 1.55; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; transition: transform .2s, box-shadow .2s, border-color .2s; }
.post-card:hover { border-color: #afb8c1; box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card-media { display: block; height: 205px; overflow: hidden; background: var(--surface-soft); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.post-card:hover .post-card-media img { transform: scale(1.035); }
.post-card-media.no-image { display: grid; place-items: center; background: linear-gradient(145deg, var(--ink), #30363d 55%, var(--blue)); color: rgba(255,255,255,.9); font-size: 25px; font-weight: 850; letter-spacing: .16em; }
.post-card-body { padding: 20px; }
.post-card-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.post-card-body h2 { margin: 8px 0; font-size: 20px; line-height: 1.35; }
.post-card-body h2 a { color: var(--ink); }
.post-card-body h2 a:hover { color: var(--blue); }
.post-card-body > p { margin: 0; color: var(--muted); font-size: 14px; }
.navigation.pagination { margin-top: 42px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 7px; }
.page-numbers { display: grid; min-width: 38px; height: 38px; padding: 0 10px; place-items: center; border: 1px solid var(--border); border-radius: 7px; color: var(--ink); font-size: 13px; }
.page-numbers.current, .page-numbers:hover { border-color: var(--blue); background: var(--blue); color: #fff; }
.empty-state { padding: 70px 20px; text-align: center; }
.empty-mark { display: grid; width: 64px; height: 64px; margin: 0 auto 18px; place-items: center; border-radius: 16px; background: var(--ink); color: #fff; font-size: 28px; font-weight: 800; }
.empty-state h2 { margin: 0 0 6px; }
.empty-state p { margin: 0 0 22px; color: var(--muted); }

/* Single article */
.single-shell { padding: 30px 0 80px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 26px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--blue); }
.article-layout { display: grid; grid-template-columns: 165px minmax(0, 1fr) 220px; align-items: start; gap: 32px; }
.article-toc { position: sticky; top: 104px; max-height: calc(100vh - 135px); overflow: auto; padding-right: 12px; color: var(--muted); font-size: 13px; }
.admin-bar .article-toc { top: 136px; }
.article-toc strong { display: block; margin-bottom: 10px; color: var(--ink); font-size: 13px; }
.article-toc ol { margin: 0; padding: 0; border-left: 1px solid var(--border); list-style: none; }
.article-toc a { display: block; margin-left: -1px; padding: 5px 0 5px 12px; border-left: 2px solid transparent; color: var(--muted); line-height: 1.35; }
.article-toc a.toc-h3 { padding-left: 23px; font-size: 12px; }
.article-toc a:hover, .article-toc a.is-active { border-left-color: var(--blue); color: var(--blue); }
.article-main { min-width: 0; }
.article-header { margin-bottom: 30px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.article-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 12px; font-weight: 650; }
.article-kicker > a { padding: 3px 8px; border-radius: 999px; background: var(--surface-blue); }
.article-header h1 { margin: 0 0 16px; font-size: clamp(32px, 4.5vw, 52px); line-height: 1.18; letter-spacing: -.035em; overflow-wrap: anywhere; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; color: var(--muted); font-size: 13px; }
.article-cover { margin: 0 0 32px; overflow: hidden; border-radius: var(--radius); }
.article-cover img { width: 100%; max-height: 520px; object-fit: cover; }
.article-sidebar { position: sticky; top: 104px; display: grid; gap: 16px; }
.admin-bar .article-sidebar { top: 136px; }
.sidebar-card { padding: 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); }
.sidebar-card h2 { margin: 0 0 10px; font-size: 15px; }
.sidebar-card p { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.sidebar-card ul { display: block; width: 100%; margin: 0; padding: 0; list-style: none; }
.sidebar-card li { display: block; width: 100%; padding: 7px 0; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 13px; line-height: 1.5; }
.sidebar-card > ul > li:last-child, .sidebar-card .children > li:last-child { border-bottom: 0; }
.sidebar-card li a { color: var(--ink); overflow-wrap: anywhere; }
.sidebar-card .children { display: block; width: auto; margin: 6px 0 0 8px; padding-left: 11px; border-left: 2px solid var(--border); }
.sidebar-card .children li { padding: 5px 0; font-size: 12px; }
.sidebar-avatar { display: grid; width: 46px; height: 46px; margin-bottom: 10px; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; }
.article-footer { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--border); }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 28px; }
.tag-list > span { color: var(--muted); font-size: 13px; }
.tag-list a { padding: 3px 9px; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.post-navigation a { display: flex; flex-direction: column; height: 100%; padding: 14px; border: 1px solid var(--border); border-radius: 9px; }
.post-navigation .nav-next { text-align: right; }
.post-navigation small { color: var(--muted); font-size: 11px; }
.post-navigation span { color: var(--ink); font-weight: 650; }

/* Article content and image controls */
.entry-content { color: #24292f; font-family: "Noto Serif SC", "Songti SC", Georgia, serif; font-size: 17px; line-height: 1.9; overflow-wrap: anywhere; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p { margin: 0 0 1.35em; }
.entry-content h2, .entry-content h3, .entry-content h4 { scroll-margin-top: 110px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif; color: var(--ink); line-height: 1.35; }
.entry-content h2 { margin: 2.1em 0 .8em; padding-bottom: .38em; border-bottom: 1px solid var(--border); font-size: 27px; }
.entry-content h3 { margin: 1.8em 0 .7em; font-size: 22px; }
.entry-content h4 { margin: 1.5em 0 .6em; font-size: 18px; }
.entry-content a { text-decoration: underline; text-decoration-color: rgba(9,105,218,.35); text-underline-offset: 3px; }
.entry-content blockquote { margin: 1.7em 0; padding: 14px 18px; border-left: 4px solid var(--blue); border-radius: 0 8px 8px 0; background: var(--surface-blue); color: var(--muted); }
.entry-content blockquote > :last-child { margin-bottom: 0; }
.entry-content code { padding: .15em .35em; border-radius: 5px; background: rgba(175,184,193,.22); font-family: Consolas, "SFMono-Regular", monospace; font-size: .88em; }
.entry-content pre { max-width: 100%; overflow: auto; padding: 18px; border-radius: 10px; background: #0d1117; color: #e6edf3; line-height: 1.6; }
.entry-content pre code { padding: 0; background: transparent; color: inherit; }
.entry-content table { display: block; width: max-content; max-width: 100%; overflow-x: auto; border-spacing: 0; border-collapse: collapse; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; }
.entry-content th, .entry-content td { padding: 8px 12px; border: 1px solid var(--border); }
.entry-content th { background: var(--surface-soft); }
.entry-content hr { height: 1px; margin: 2.5em 0; border: 0; background: var(--border); }
.entry-content figure, .entry-content .blog-img-wrapper { margin: 2em auto; }
.entry-content img { max-width: 100%; height: auto; border-radius: 8px; }
.entry-content figcaption, .entry-content .wp-caption-text { margin-top: 7px; color: var(--muted); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 12px; text-align: center; }
.entry-content .aligncenter, .entry-content figure.aligncenter { margin-right: auto; margin-left: auto; }
.entry-content .alignleft { float: left; max-width: 48%; margin: .5em 1.6em 1em 0; }
.entry-content .alignright { float: right; max-width: 48%; margin: .5em 0 1em 1.6em; }
.entry-content::after { display: block; clear: both; content: ""; }
.entry-content .is-style-image-small, .entry-content .blog-img-wrapper.sm { max-width: 300px; }
.entry-content .is-style-image-medium, .entry-content .blog-img-wrapper.md { max-width: 520px; }
.entry-content .is-style-image-large, .entry-content .blog-img-wrapper.lg { max-width: 850px; }
.entry-content .wp-block-image.alignwide { width: min(850px, calc(100vw - 48px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .wp-block-gallery { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; }
.entry-content .wp-block-gallery figure { flex: 1 1 220px; margin: 0; }
.entry-content img.louiew-image-small { width: 300px; max-width: 100%; }
.entry-content img.louiew-image-medium { width: 520px; max-width: 100%; }
.entry-content img.louiew-image-large { width: 850px; max-width: 100%; }
.entry-content img.louiew-align-left { float: left; margin: .5em 1.6em 1em 0; }
.entry-content img.louiew-align-center { display: block; float: none; margin: 1.6em auto; }
.entry-content img.louiew-align-right { float: right; margin: .5em 0 1em 1.6em; }

/* Pages */
.page-shell { max-width: 830px; padding: 62px 0 80px; }
.page-heading { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.about-shell { padding: 68px 0 84px; }
.about-hero { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 52px; padding: 48px; border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(140deg, var(--surface-soft), #fff 65%); }
.about-avatar-wrap { position: relative; width: 170px; height: 170px; }
.about-avatar, .about-avatar-fallback { width: 170px; height: 170px; border: 5px solid #fff; border-radius: 50%; box-shadow: var(--shadow); object-fit: cover; }
.about-avatar-fallback { display: none; place-items: center; background: var(--ink); color: #fff; font-size: 60px; font-weight: 800; }
.about-hero h1 { margin: 0 0 14px; font-size: clamp(34px, 5vw, 56px); line-height: 1.16; letter-spacing: -.04em; }
.about-lead { margin: 0; color: var(--muted); font-size: 17px; }
.about-links { display: flex; gap: 10px; margin-top: 22px; }
.about-links a { padding: 8px 13px; border: 1px solid var(--border); border-radius: 7px; background: #fff; font-size: 13px; font-weight: 650; }
.about-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.about-card { padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); }
.about-card > span { color: var(--blue); font-size: 12px; font-weight: 750; letter-spacing: .12em; }
.about-card h2 { margin: 9px 0; font-size: 20px; }
.about-card p { margin: 0; color: var(--muted); font-size: 14px; }
.about-custom { max-width: 760px; margin: 56px auto 0; padding-top: 34px; border-top: 1px solid var(--border); }
.diary-shell { max-width: 850px; padding: 62px 0 84px; }
.diary-timeline { position: relative; }
.diary-timeline::before { content: ""; position: absolute; top: 14px; bottom: 14px; left: 49px; width: 1px; background: var(--border); }
.diary-entry { position: relative; display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 24px; padding: 0 0 34px; }
.diary-entry > time { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: 100px; }
.diary-entry > time::before { content: ""; position: absolute; top: 13px; left: 44px; z-index: -1; width: 11px; height: 11px; border: 3px solid #fff; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.diary-entry time strong { margin-top: 29px; color: var(--ink); font-size: 24px; line-height: 1; }
.diary-entry time span { color: var(--muted); font-size: 11px; }
.diary-entry > div { padding: 20px 24px; border: 1px solid var(--border); border-radius: var(--radius); }
.diary-entry h2 { margin: 4px 0 7px; font-size: 21px; }
.diary-entry h2 a { color: var(--ink); }
.diary-entry > div > p:last-child { margin: 0; color: var(--muted); font-size: 14px; }
.diary-meta { margin: 0; color: var(--blue); font-size: 11px; font-weight: 650; }
.not-found-shell { width: min(calc(100% - 40px), 720px); margin: 0 auto; padding: 100px 0 130px; text-align: center; }
.error-code { margin: 0; color: var(--blue); font-size: clamp(80px, 18vw, 150px); font-weight: 850; line-height: 1; letter-spacing: -.08em; }
.not-found-shell h1 { margin: 16px 0 7px; font-size: 34px; }
.not-found-shell > p:not(.error-code) { color: var(--muted); }
.not-found-actions { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.not-found-actions .search-form { display: flex; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface-soft); }
.footer-grid { display: grid; grid-template-columns: 1.25fr .8fr 1fr; gap: 68px; width: min(calc(100% - 40px), var(--content-width)); margin: 0 auto; padding: 52px 0 40px; }
.footer-grid h2 { margin: 0 0 12px; font-size: 15px; }
.footer-grid p { max-width: 480px; margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 5px 0; }
.footer-links a { color: var(--muted); font-size: 13px; }
.footer-search { display: flex; width: 100%; max-width: 270px; height: 40px; }
.footer-bottom { border-top: 1px solid var(--border); }
.footer-bottom p { width: min(calc(100% - 40px), var(--content-width)); margin: 0 auto; padding: 17px 0; color: var(--muted); font-size: 12px; text-align: center; }

@media (max-width: 1080px) {
	.header-search { display: none; }
	.article-layout { grid-template-columns: 145px minmax(0, 1fr); }
	.article-sidebar { display: none; }
	.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 850px) {
	.admin-bar .site-header { top: 46px; }
	.header-inner { display: flex; min-height: 64px; }
	.site-brand { min-width: 0; margin-right: auto; }
	.brand-copy small { display: none; }
	.menu-toggle { display: block; }
	.primary-navigation { display: none; position: absolute; top: calc(100% + 1px); right: 20px; left: 20px; margin: 0; padding: 10px; border: 1px solid var(--border); border-radius: 0 0 10px 10px; background: #fff; box-shadow: var(--shadow); }
	.primary-navigation.is-open { display: block; }
	.site-menu { display: block; }
	.site-menu a { padding: 10px 12px; }
	.site-menu .sub-menu { display: block; position: static; width: auto; padding: 0 0 0 15px; border: 0; box-shadow: none; }
	.hero-slider { height: 420px; }
	.home-intro { grid-template-columns: 1fr; gap: 18px; }
	.home-columns { grid-template-columns: 1fr; }
	.article-layout { display: block; }
	.article-toc { display: none; }
	.about-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px; }
	.footer-grid section:first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
	.home-shell, .archive-shell, .page-shell, .about-shell, .diary-shell, .single-shell { width: min(calc(100% - 28px), var(--content-width)); }
	.home-shell { padding-top: 14px; }
	.hero-slider { height: 390px; border-radius: 12px; }
	.hero-content { left: 24px; bottom: 52px; width: calc(100% - 48px); }
	.hero-content h1 { font-size: 30px; }
	.hero-content p { display: -webkit-box; overflow: hidden; font-size: 14px; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
	.hero-arrow { display: none; }
	.hero-dots { right: 20px; bottom: 17px; }
	.home-intro { margin-top: 45px; }
	.home-panel { min-height: auto; padding: 20px; }
	.panel-heading { display: block; }
	.tab-buttons { width: max-content; max-width: 100%; margin-top: 14px; }
	.home-post-item { grid-template-columns: 76px minmax(0, 1fr); }
	.home-post-thumb { width: 76px; height: 70px; }
	.home-post-item > div > p:last-child { display: none; }
	.archive-shell, .page-shell, .about-shell, .diary-shell { padding-top: 42px; }
	.archive-heading-banner { padding: 20px; }
	.post-grid { grid-template-columns: 1fr; }
	.post-card-media { height: 220px; }
	.single-shell { padding-top: 18px; }
	.article-header h1 { font-size: 34px; }
	.entry-content { font-size: 16px; line-height: 1.85; }
	.entry-content h2 { font-size: 24px; }
	.entry-content .alignleft, .entry-content .alignright, .entry-content img.louiew-align-left, .entry-content img.louiew-align-right { display: block; float: none; max-width: 100%; margin: 1.6em auto; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.about-hero { grid-template-columns: 1fr; gap: 28px; padding: 28px; text-align: center; }
	.about-avatar-wrap, .about-avatar, .about-avatar-fallback { width: 130px; height: 130px; margin: 0 auto; }
	.about-links { justify-content: center; }
	.diary-timeline::before { left: 17px; }
	.diary-entry { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
	.diary-entry > time { width: 36px; }
	.diary-entry > time::before { top: 18px; left: 12px; }
	.diary-entry time strong, .diary-entry time span { display: none; }
	.diary-entry > div { padding: 17px; }
	.not-found-actions { flex-direction: column; align-items: center; }
	.footer-grid { grid-template-columns: 1fr; gap: 28px; width: calc(100% - 28px); }
	.footer-grid section:first-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
