/* SecretNest — editorial theme. Serif display + reading text, sans-serif UI. Light/dark via prefers-color-scheme or [data-theme]. */
:root {
  --paper: #faf7f2;
  --surface: #fffdf9;
  --ink: #1f1c18;
  --ink-soft: #4a453e;
  --muted: #857d72;
  --rule: #e4ddd2;
  --rule-strong: #1f1c18;
  --accent: #a3361f;
  --accent-soft: #f6e6df;
  --mark: #fbe3a1;
  --code-bg: #f1ece4;
  --radius: 10px;
  --content: 700px;
  --serif: "Charter", "Bitstream Charter", "Iowan Old Style", "Sitka Text", Cambria, Georgia, "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #161512; --surface: #1d1b18; --ink: #ece6dc; --ink-soft: #c9c1b4; --muted: #958c80; --rule: #322e29; --rule-strong: #ece6dc;
    --accent: #e88b6e; --accent-soft: #3a2620; --mark: #6b4f12; --code-bg: #24221e; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #161512; --surface: #1d1b18; --ink: #ece6dc; --ink-soft: #c9c1b4; --muted: #958c80; --rule: #322e29; --rule-strong: #ece6dc;
  --accent: #e88b6e; --accent-soft: #3a2620; --mark: #6b4f12; --code-bg: #24221e; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img, video { max-width: 100%; height: auto; }
mark { background: var(--mark); color: inherit; padding: 0 2px; border-radius: 2px; }
::selection { background: var(--accent-soft); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---- Masthead ---------------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: saturate(150%) blur(10px); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-title { font-family: var(--serif); font-weight: 700; font-size: 1.55rem; letter-spacing: -0.01em; }
.brand-tagline { font-family: var(--serif); font-style: italic; font-size: 0.85rem; color: var(--muted); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 6px 12px; color: var(--ink-soft); text-decoration: none; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; border-radius: 6px; }
.site-nav a:hover { color: var(--accent); background: var(--accent-soft); }
.header-actions { display: flex; gap: 4px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--accent-soft); color: var(--accent); }
.icon-theme, .icon-menu, .icon-search { display: inline-block; width: 18px; height: 18px; background: currentColor; mask: var(--icon) center / contain no-repeat; -webkit-mask: var(--icon) center / contain no-repeat; }
.icon-theme { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a9 9 0 1 0 9 9 7 7 0 0 1-9-9z'/%3E%3C/svg%3E"); }
.icon-menu { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E"); }
.icon-search { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); }
.menu-btn { display: none; }

/* ---- Layout ------------------------------------------------------------------------------ */
.layout { display: grid; grid-template-columns: minmax(0, var(--content)) 260px; gap: 80px; justify-content: center; padding-top: 48px; padding-bottom: 80px; }
.content { min-width: 0; }

/* ---- Shared editorial bits --------------------------------------------------------------- */
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0 0 10px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.kicker > * + *::before { content: "·"; margin: 0 8px; color: var(--rule); font-weight: 400; }
.kicker a { color: var(--accent); text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
.kicker-flag { color: var(--paper); background: var(--accent); padding: 2px 7px; border-radius: 3px; }

/* ---- Lists: full posts --------------------------------------------------------------------- */
.post-list.full > .entry { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--rule); }
.post-list.full > .entry:last-child { border-bottom: 0; margin-bottom: 0; }
.entry-in-list .entry-title { font-size: clamp(1.6rem, 3.2vw, 2.1rem); }
.entry-in-list .entry-title a { color: var(--ink); text-decoration: none; }
.entry-in-list .entry-title a:hover { color: var(--accent); }
.entry-in-list.lead .entry-title { font-size: clamp(2rem, 4.6vw, 2.9rem); }
.entry-actions { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-top: 24px; font-size: 0.85rem; }
.read-more { font-weight: 600; }
.comment-link { color: var(--muted); text-decoration: none; }
.comment-link:hover { color: var(--accent); }

/* ---- Lists: excerpts ----------------------------------------------------------------------- */
.post-list:not(.full) { border-top: 2px solid var(--rule-strong); }
.item { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.item.has-thumb { grid-template-columns: 1fr 168px; }
.item-title { font-family: var(--serif); font-size: 1.45rem; line-height: 1.25; margin: 0 0 8px; letter-spacing: -0.005em; }
.item-title a { color: var(--ink); text-decoration: none; }
.item-title a:hover { color: var(--accent); }
.item.lead .item-title { font-size: clamp(1.9rem, 4.4vw, 2.6rem); }
.item.lead .item-excerpt { font-size: 1.12rem; -webkit-line-clamp: 4; }
.item-excerpt { margin: 0; font-family: var(--serif); color: var(--ink-soft); font-size: 1.02rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .comment-link { display: inline-block; margin-top: 8px; font-size: 0.8rem; }
.item-thumb { display: block; border-radius: 6px; overflow: hidden; background: var(--code-bg); align-self: start; }
.item-thumb img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.4s ease; }
.item:hover .item-thumb img { transform: scale(1.04); }

.archive-header { margin-bottom: 36px; padding-bottom: 20px; border-bottom: 2px solid var(--rule-strong); }
.archive-header h1 { margin: 0; font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -0.01em; }
.archive-header p { color: var(--muted); margin: 8px 0 0; font-family: var(--serif); font-style: italic; }
.archive-header:has(+ .post-list:not(.full)) { border-bottom: 0; padding-bottom: 0; }
.empty { color: var(--muted); font-family: var(--serif); font-style: italic; }

.pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 48px; padding-top: 24px; border-top: 2px solid var(--rule-strong); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.pagination .current { color: var(--muted); }
.pagination .older { justify-self: start; }
.pagination .newer { justify-self: end; }
.pagination a { color: var(--ink); text-decoration: none; }
.pagination a:hover { color: var(--accent); }

/* ---- Article ------------------------------------------------------------------------------- */
.entry-header { margin-bottom: 28px; }
.entry-header-single { text-align: center; margin-bottom: 44px; padding-bottom: 32px; border-bottom: 1px solid var(--rule); }
.entry-header-single .kicker { justify-content: center; }
.entry-title { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; letter-spacing: -0.015em; margin: 0; font-weight: 700; text-wrap: balance; }
.entry-header-single .meta { margin-top: 16px; }
.meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; margin: 0; color: var(--muted); font-size: 0.85rem; }
.meta > * + *::before { content: "·"; margin: 0 10px; color: var(--rule); }
.meta a { color: inherit; text-decoration: none; }
.meta a:hover { color: var(--accent); }

.entry-content { font-family: var(--serif); font-size: 1.15rem; line-height: 1.75; color: var(--ink); overflow-wrap: break-word; }
.entry-content > * { margin-top: 0; margin-bottom: 1.2em; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--serif); line-height: 1.3; margin-top: 1.9em; margin-bottom: 0.6em; letter-spacing: -0.01em; }
.entry-content h1 { font-size: 1.65rem; }
.entry-content h2 { font-size: 1.5rem; }
.entry-content h3 { font-size: 1.25rem; }
.entry-content h4 { font-size: 1.08rem; text-transform: uppercase; letter-spacing: 0.05em; font-family: var(--sans); }
.entry-content img { border-radius: 4px; }
.entry-content a { text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.entry-content a:hover { text-decoration-color: var(--accent); }
.entry-content blockquote { margin: 1.6em 0; padding: 0 0 0 24px; border-left: 3px solid var(--accent); color: var(--ink-soft); font-style: italic; font-size: 1.12em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: 0.3em; }
.entry-content li > p { margin: 0; }
.entry-content pre { background: var(--code-bg); padding: 18px 20px; border-radius: 8px; overflow-x: auto; font: 0.84rem/1.6 var(--mono); tab-size: 4; border: 1px solid var(--rule); }
.entry-content code { font-family: var(--mono); font-size: 0.82em; background: var(--code-bg); padding: 2px 5px; border-radius: 4px; }
.entry-content pre code { background: none; padding: 0; font-size: inherit; }
.entry-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; font-family: var(--sans); font-size: 0.9rem; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--rule); padding: 8px 12px; text-align: left; vertical-align: top; }
.entry-content th { font-weight: 600; border-bottom: 2px solid var(--rule-strong); }
.entry-content hr { border: 0; text-align: center; margin: 2.4em 0; }
.entry-content hr::before { content: "* * *"; letter-spacing: 0.8em; color: var(--muted); }
.entry-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-content .alignleft { float: left; margin: 0.3em 1.6em 1em 0; }
.entry-content .alignright { float: right; margin: 0.3em 0 1em 1.6em; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content iframe { max-width: 100%; }
.entry-content figcaption, .entry-content .wp-caption-text { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); text-align: center; margin-top: 6px; }

.gallery { display: grid; gap: 6px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); margin: 1.6em 0; }
.gallery-cols-1 { --cols: 1; } .gallery-cols-2 { --cols: 2; } .gallery-cols-3 { --cols: 3; } .gallery-cols-4 { --cols: 4; } .gallery-cols-5 { --cols: 5; } .gallery-cols-6 { --cols: 6; }
.gallery-item { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 3px; background: var(--code-bg); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform 0.35s ease, opacity 0.2s; }
.gallery-item:hover img { transform: scale(1.05); opacity: 0.92; }

.audio-player { margin: 1.4em 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.audio-player audio { width: 100%; display: block; }
.audio-player figcaption { margin-top: 6px; font-family: var(--sans); font-size: 0.8rem; text-align: left; }

.entry-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; }
.entry-footer .label { color: var(--muted); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tag-list a, .tag-pills a { display: inline-block; padding: 3px 11px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-soft); text-decoration: none; font-size: 0.8rem; background: var(--surface); }
.tag-list a:hover, .tag-pills a:hover { border-color: var(--accent); color: var(--accent); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 56px 0; border-top: 2px solid var(--rule-strong); border-bottom: 1px solid var(--rule); }
.post-nav a { display: flex; flex-direction: column; gap: 4px; padding: 20px 0; text-decoration: none; }
.post-nav .prev { padding-right: 20px; }
.post-nav .next { padding-left: 20px; text-align: right; border-left: 1px solid var(--rule); }
.post-nav .label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.post-nav .title { font-family: var(--serif); color: var(--ink); font-size: 1.1rem; line-height: 1.35; }
.post-nav a:hover .title { color: var(--accent); }

.breadcrumbs ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; font-size: 0.78rem; letter-spacing: 0.04em; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--rule); }
.child-pages { margin-top: 48px; padding-top: 20px; border-top: 2px solid var(--rule-strong); }
.child-pages h2 { font-size: 0.72rem; margin: 0 0 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.child-pages ul { margin: 0; padding: 0; list-style: none; }
.child-pages li { border-bottom: 1px solid var(--rule); }
.child-pages a { display: block; padding: 12px 0; font-family: var(--serif); font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.child-pages a:hover { color: var(--accent); }
.child-pages a::after { content: " →"; color: var(--muted); }

/* ---- Comments ------------------------------------------------------------------------------ */
.comments { margin-top: 64px; padding-top: 24px; border-top: 2px solid var(--rule-strong); }
.comments h2 { font-family: var(--serif); font-size: 1.5rem; margin: 0 0 24px; }
.comment-list, .comment-replies { list-style: none; margin: 0; padding: 0; }
.comment-list > li { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.comment-list > li:first-child { padding-top: 0; }
.comment-replies { margin: 16px 0 0 18px; padding-left: 20px; border-left: 2px solid var(--rule); }
.comment-replies > li + li { margin-top: 16px; }
.comment-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.88rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-family: var(--serif); font-weight: 700; font-size: 0.95rem; }
.comment.by-author .avatar { background: var(--accent); color: var(--paper); }
.comment-author { font-weight: 600; }
.comment-author a { color: var(--ink); }
.badge { margin-left: 8px; padding: 1px 7px; border-radius: 3px; background: var(--accent); color: var(--paper); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; vertical-align: 2px; }
.comment-date { margin-left: auto; color: var(--muted); text-decoration: none; font-size: 0.78rem; }
.reply-to { margin: 6px 0 0 44px; color: var(--muted); font-size: 0.78rem; }
.comment-content { font-family: var(--serif); font-size: 1.02rem; line-height: 1.65; margin: 8px 0 0 44px; overflow-wrap: anywhere; }
.comment-content > :last-child { margin-bottom: 0; }
.comment-content p { margin: 0 0 0.7em; }
.comments-closed { color: var(--muted); font-style: italic; font-family: var(--serif); }
.reply-btn { margin: 6px 0 0 44px; border: 0; background: none; color: var(--accent); cursor: pointer; padding: 0; font: inherit; font-size: 0.8rem; font-weight: 600; }

.comment-form { margin-top: 40px; padding: 28px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.comment-form h3 { margin: 0 0 16px; font-family: var(--serif); font-size: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-bottom: 14px; min-width: 0; }
.field input, .field textarea { font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 10px 12px; width: 100%; }
.field textarea { resize: vertical; min-height: 130px; font-family: var(--serif); font-size: 1.05rem; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.field .invalid, .field input.invalid, .field textarea.invalid { border-color: #c2410c; }
.field-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot { margin: 4px 0 14px; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn { padding: 11px 22px; border: 0; border-radius: 6px; background: var(--ink); color: var(--paper); font: inherit; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.btn:hover { background: var(--accent); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.form-note { color: var(--muted); font-size: 0.82rem; }
.form-status { margin: 12px 0 0; font-size: 0.92rem; min-height: 1.4em; }
.form-status.success { color: #2f7a4b; }
.form-status.error { color: #c2410c; }
.replying { margin: 0 0 12px; font-size: 0.88rem; color: var(--muted); }
.link-btn { border: 0; background: none; color: var(--accent); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }

/* ---- Sidebar ------------------------------------------------------------------------------- */
.sidebar { font-size: 0.9rem; }
.sidebar > .widget:first-child { margin-top: 0; }
.widget { margin-bottom: 40px; }
.widget-title { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--rule-strong); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget a { color: var(--ink-soft); text-decoration: none; }
.widget a:hover { color: var(--accent); }
.count { color: var(--muted); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.topics > li { border-bottom: 1px solid var(--rule); }
.topics > li.topic, .topics summary { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; }
.topics summary .count { margin-left: auto; }
.topics summary { cursor: pointer; list-style: none; }
.topics summary::-webkit-details-marker { display: none; }
.topics summary::after { content: "+"; color: var(--muted); margin-left: 8px; font-weight: 600; }
.topics details[open] summary::after { content: "−"; }
.topics summary .count { margin-left: auto; }
.topics details ul { padding: 0 0 8px 12px; }
.topics details li { display: flex; justify-content: space-between; padding: 3px 0 3px calc(var(--depth, 0) * 12px); font-size: 0.85rem; }
.tag-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.tag-pills a { font-size: 0.75rem; padding: 2px 9px; }
.year-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 0; }
.year-grid a { display: block; text-align: center; padding: 6px 0; border: 1px solid var(--rule); border-radius: 4px; font-size: 0.8rem; font-variant-numeric: tabular-nums; background: var(--surface); }
.year-grid a:hover { border-color: var(--accent); }
.link-list li { padding: 5px 0; }
.search-form { display: flex; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); overflow: hidden; }
.search-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-form input { flex: 1; min-width: 0; padding: 10px 12px; border: 0; background: transparent; color: var(--ink); font: inherit; outline: none; }
.search-form button { width: 42px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.search-form button:hover { color: var(--accent); }
.archive-header .search-form { margin-top: 18px; max-width: 480px; }

/* Search results reuse the excerpt list look. */
.search-results { border-top: 2px solid var(--rule-strong); }
.search-results .card { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.search-results .card-title { font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; margin: 0 0 6px; }
.search-results .card-title a { color: var(--ink); text-decoration: none; }
.search-results .card-title a:hover { color: var(--accent); }
.search-results .meta { justify-content: flex-start; font-size: 0.78rem; }
.search-results .card-excerpt { margin: 6px 0 0; font-family: var(--serif); color: var(--ink-soft); }

.message { text-align: center; padding: 64px 0; }
.message h1 { font-family: var(--serif); font-size: 2.4rem; margin-bottom: 8px; }
.message p { font-family: var(--serif); color: var(--ink-soft); font-size: 1.1rem; }
.message .search-form { max-width: 420px; margin: 24px auto; }

/* ---- Footer -------------------------------------------------------------------------------- */
.site-footer { border-top: 2px solid var(--rule-strong); background: var(--surface); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; padding-top: 36px; padding-bottom: 40px; align-items: start; }
.footer-brand { display: flex; flex-direction: column; gap: 2px; }
.footer-brand .brand-title { font-size: 1.25rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-links a { color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { grid-column: 1 / -1; color: var(--muted); font-size: 0.8rem; padding-top: 16px; border-top: 1px solid var(--rule); }

/* ---- Lightbox ------------------------------------------------------------------------------ */
.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgb(12 10 8 / 0.94); padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: calc(100vh - 120px); max-width: 100%; object-fit: contain; }
.lightbox figcaption { color: #ddd; text-align: center; margin-top: 10px; font-family: var(--serif); font-size: 0.95rem; }
.lightbox button { position: absolute; border: 0; background: rgb(255 255 255 / 0.1); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.lightbox button:hover { background: rgb(255 255 255 / 0.22); }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; }
.lightbox .lb-next { right: 16px; top: 50%; }

/* ---- Responsive ---------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .layout { grid-template-columns: minmax(0, var(--content)); gap: 0; }
  .sidebar { margin-top: 64px; padding-top: 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 40px; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .wrap { padding: 0 18px; }
  .header-inner { min-height: 60px; gap: 12px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 8px; }
  .brand-title { font-size: 1.3rem; }
  .brand-tagline { display: none; }
  .menu-btn { display: grid; }
  .site-nav { position: fixed; inset: 60px 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px 12px 16px; display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 12px; font-size: 0.85rem; }
  .header-actions { margin-left: auto; }
  .layout { padding-top: 28px; }
  .entry-content { font-size: 1.08rem; }
  .entry-header-single { margin-bottom: 32px; padding-bottom: 24px; }
  .post-list.full > .entry { padding-bottom: 36px; margin-bottom: 36px; }
  .item.has-thumb { grid-template-columns: 1fr 96px; gap: 16px; }
  .item-title { font-size: 1.2rem; }
  .gallery { --cols: 3 !important; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); text-align: left; }
  .comment-replies { margin-left: 4px; padding-left: 12px; }
  .comment-content, .reply-to, .reply-btn { margin-left: 0; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .comment-form { padding: 18px; }
  .footer-inner { grid-template-columns: 1fr; }
  .entry-content .alignleft, .entry-content .alignright { float: none; margin: 0 auto 1em; display: block; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
