/* Vidytian — full-width planes, quiet type, a little color. */
:root {
  color-scheme: light;
  --nav-bg: #eff5fa;
  --content-bg: #fcfdfe;
  --heading: #162536;
  --text: #27374a;
  --muted: #647587;
  --link: #256ea7;
  --line: #dce6ef;
  --field-bg: #f7fafc;
  --mascot-color: #111820;
  --focus: #247fbe;
  --reading-small: 16px;
  --reading-normal: 17px;
  --reading-large: 19px;
  --reading-font-size: var(--reading-normal);
  --corner-width: clamp(90px, 10vw, 175px);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
}
:root[data-reading-size="small"] { --reading-font-size: var(--reading-small); }
:root[data-reading-size="large"] { --reading-font-size: var(--reading-large); }
:root[data-theme="dark"] {
  color-scheme: dark;
  --nav-bg: #1c2936;
  --content-bg: #121c26;
  --heading: #dbe2e8;
  --text: #bcc8d3;
  --muted: #8ea1b2;
  --link: #84bdea;
  --line: #2b3a48;
  --field-bg: #192532;
  --mascot-color: #cdd7e0;
  --focus: #9cd2ff;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--content-bg); color: var(--text); font: 15px/1.75 var(--sans); overflow-wrap: break-word; }
a { color: var(--link); text-decoration: none; text-underline-offset: .23em; }
a:hover { text-decoration: underline; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; opacity: .6; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
img, svg { max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
h1, h2, h3, h4, h5, h6 { color: var(--heading); }
.icon { width: 22px; height: 22px; flex-shrink: 0; vertical-align: middle; }
.fa-icon { fill: currentColor; stroke: none; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; border: 0; padding: 9px; width: 42px; height: 42px; color: var(--heading); background: transparent; border-radius: 3px; }
.icon-button:hover { color: var(--link); }
.skip-link { position: fixed; top: 10px; left: 12px; z-index: 100; transform: translateY(-160%); padding: 8px 16px; background: var(--content-bg); color: var(--link); border: 1px solid var(--line); }
.skip-link:focus { transform: translateY(0); }
.site-shell { min-height: 100vh; min-height: 100dvh; background: linear-gradient(to right,var(--nav-bg) 0 30%,var(--content-bg) 30%); }
.site-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 30%; background: var(--nav-bg); border-right: 1px solid var(--line); }
.sidebar-inner { width: min(340px, calc(100% - 64px)); height: 100vh; height: 100dvh; margin-inline: auto; padding: 48px 0 24px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.sidebar-navigation-scroll { min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; margin-top: 25px; padding-block: 5px; }
.sidebar-bottom { display: grid; justify-items: center; min-width: 0; padding-top: 12px; }
.sidebar-collapse { position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; padding: 6px; color: var(--muted); }
.sidebar-collapse .icon { transform: rotate(180deg); }
.sidebar-restore { display: none; position: fixed; top: 16px; left: 16px; z-index: 30; align-items: center; gap: 8px; max-width: calc(100vw - 32px); padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--nav-bg); color: var(--heading); font-size: 12px; box-shadow: 0 3px 14px #09152212; }
.sidebar-restore .icon { width: 18px; height: 18px; }
.brand-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; align-items: center; gap: 8px; }
.brand { grid-column: 2; justify-self: center; display: inline-flex; align-items: center; justify-content: center; gap: 17px; min-width: 0; max-width: 100%; color: var(--heading); text-align: center; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 38px; height: 44px; flex-shrink: 0; }
.brand-name { min-width: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(24px, 1.8vw, 30px); line-height: 1.3; overflow-wrap: anywhere; }
.header-tools { grid-column: 3; display: flex; align-items: center; flex-shrink: 0; }
.menu-toggle { display: none; }
/* Compact centered links; native details keeps life sections usable without JavaScript. */
.primary-nav { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; row-gap: 4px; padding-inline: 26px; }
.nav-link { position: relative; display: block; width: fit-content; min-width: 0; max-width: 100%; min-height: 36px; color: var(--heading); font-size: 18px; line-height: 1.8; padding-block: 2px; text-align: center; overflow-wrap: anywhere; hyphens: auto; }
.nav-link:hover { color: var(--link); text-decoration: none; }
.nav-link[aria-current="page"] { color: var(--link); font-weight: 500; }
.nav-link[aria-current="page"]::before { content: ""; position: absolute; width: 12px; height: 17px; left: -26px; top: 10px; background: linear-gradient(145deg,#65c5fb 0 45%,#2a92e6 46% 68%,#1169bc 69%); clip-path: polygon(15% 0,100% 54%,0 100%); transform: rotate(8deg); }
.nav-group { width: 100%; min-width: 0; }
.nav-group-toggle { margin-inline: auto; list-style: none; cursor: pointer; }
.nav-group-toggle::-webkit-details-marker { display: none; }
.nav-group-chevron { position: absolute; right: -17px; top: 14px; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
.nav-group[open] > .nav-group-toggle .nav-group-chevron { top: 17px; transform: rotate(225deg); }
.nav-group.is-current > .nav-group-toggle { color: var(--link); }
.nav-submenu { display: grid; justify-items: center; gap: 1px; padding-block: 4px 7px; }
.nav-submenu .nav-link { min-height: 32px; font-size: 15px; color: var(--muted); }
.nav-submenu .nav-link:hover, .nav-submenu .nav-link[aria-current="page"] { color: var(--link); }
.nav-submenu .nav-link[aria-current="page"]::before { width: 8px; height: 12px; left: -19px; top: 10px; }
/* RSS, appearance and social links share one quiet row of icon buttons. */
.sidebar-controls { display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: clamp(2px, .7vw, 12px); padding-left: 0; color: var(--heading); }
.sidebar-controls .icon-button { flex: 0 0 42px; text-decoration: none; }
.sidebar-controls .icon { font-size: 20px; line-height: 22px; text-align: center; }
.rss-link { color: var(--heading); font-size: 14px; letter-spacing: .025em; padding-block: 10px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.mascot { width: min(220px, 88%, 22vh); aspect-ratio: 1206 / 1305; flex-shrink: 0; align-self: center; margin-top: auto; padding-top: 0; background-color: var(--mascot-color); -webkit-mask: url('../images/tenshi.png') center / contain no-repeat; mask: url('../images/tenshi.png') center / contain no-repeat; min-height: 0; }
.sidebar-mascot-slot { width: min(220px, 88%, 22vh); aspect-ratio: 1206 / 1305; min-height: 0; }
.sidebar-mascot-slot > .mascot { width: 100%; height: 100%; margin: 0; }
.site-main { position: relative; isolation: isolate; margin-left: 30%; min-height: 100vh; min-height: 100dvh; padding: 45px 0 24px; }
.content-frame { position: relative; z-index: 1; width: min(880px, calc(100% - 88px)); margin-inline: auto; display: flex; flex-direction: column; min-height: calc(100vh - 69px); min-height: calc(100dvh - 69px); }
.facet-corner { position: absolute; z-index: 0; pointer-events: none; right: 0; top: 0; width: var(--corner-width); height: auto; opacity: .65; }
[data-theme="dark"] .facet-corner { opacity: .28; }
/* Native disclosures remain usable without JavaScript; their panels never move the character. */
.reading-controls { display: grid; gap: 3px; width: min(240px, 100%); min-width: 0; margin: 8px auto 16px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.reading-choice { position: relative; min-width: 0; }
.reading-choice > summary { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 7px 12px; list-style: none; cursor: pointer; border-radius: 3px; }
.reading-choice > summary::-webkit-details-marker { display: none; }
.reading-choice > summary:hover, .reading-choice[open] > summary { background: var(--field-bg); color: var(--heading); }
.reading-current { margin-inline-start: auto; white-space: nowrap; color: var(--heading); }
.reading-choice-chevron { width: 6px; height: 6px; margin-inline-start: 3px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); flex-shrink: 0; }
.reading-choice[open] .reading-choice-chevron { transform: rotate(225deg); }
.reading-choice-panel { position: absolute; bottom: calc(100% + 5px); left: 0; z-index: 5; display: grid; gap: 2px; width: 100%; max-height: min(240px, 60vh); overflow-y: auto; padding: 7px; border: 1px solid var(--line); border-radius: 4px; background: var(--content-bg); box-shadow: 0 8px 28px #09152216; }
.font-controls button, .language-controls a { display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; min-height: 34px; padding: 6px 10px; border: 0; border-bottom: 1px solid transparent; border-radius: 2px; background: transparent; color: inherit; font: inherit; white-space: nowrap; text-decoration: none; }
.font-controls button:hover, .language-controls a:hover { color: var(--link); }
.font-controls button[aria-pressed="true"], .language-controls a[aria-current="true"], .language-controls a[aria-current="page"] { background: var(--nav-bg); color: var(--link); }
@media (min-width: 761px) {
  .js .nav-group > .nav-submenu { position: fixed; z-index: 40; left: var(--submenu-left, 30vw); top: var(--submenu-top, 16px); width: var(--submenu-width, 230px); max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; padding: 14px 26px; border: 1px solid var(--line); border-radius: 4px; background: var(--nav-bg); box-shadow: 0 8px 30px #0915221a; visibility: hidden; }
  .js .nav-group > .nav-submenu[data-positioned="true"] { visibility: visible; }
  .js .nav-group-chevron { transform: rotate(-45deg); }
  .js .nav-group[open] > .nav-group-toggle .nav-group-chevron { top: 14px; transform: rotate(135deg); }
  .js[data-sidebar-collapsed="true"] .site-sidebar { visibility: hidden; pointer-events: none; }
  .js[data-sidebar-collapsed="true"] .site-shell { background: var(--content-bg); }
  .js[data-sidebar-collapsed="true"] .site-main { margin-left: 0; padding-top: 76px; }
  .js[data-sidebar-collapsed="true"] .sidebar-restore { display: inline-flex; }
}
.page-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.page-heading h1 { font-size: 17px; font-family: var(--serif); letter-spacing: .04em; margin: 0; font-weight: 600; line-height: 1.5; }
.page-context { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.page-context .icon { width: 16px; height: 16px; }
.post-card { display: grid; grid-template-columns: minmax(0,1fr) 28%; column-gap: 28px; grid-template-areas: "meta cover" "title cover" "excerpt cover" "more cover"; padding: 18px 0 19px; border-bottom: 1px solid var(--line); align-content: start; }
.post-meta { grid-area: meta; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 11px; min-width: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.post-meta a { color: inherit; }
.pin-label { color: var(--link); font-size: 11px; }
.post-meta time::before, .reading-time::before { content: "·"; display: inline-block; margin-right: 11px; opacity: .7; }
.facet-marker { width: 13px; height: 15px; flex: 0 0 13px; clip-path: polygon(47% 0,100% 57%,47% 100%,0 52%); background: conic-gradient(from 35deg at 50% 53%, #2e96d4 0 110deg,#9ee0f5 110deg 200deg,#43bfea 200deg); transform: rotate(-6deg); margin-right: 2px; }
.post-card:nth-child(5n+2) .facet-marker { background: conic-gradient(from 30deg,#398d65 0 110deg,#abd6a5 110deg 210deg,#74b579 210deg); transform: rotate(6deg); }
.post-card:nth-child(5n+3) .facet-marker { background: conic-gradient(from 55deg,#587abf 0 110deg,#a0c2e6 110deg 210deg,#619dda 210deg); transform: rotate(12deg); }
.post-card:nth-child(5n+4) .facet-marker { background: conic-gradient(from 15deg,#e6aa39 0 110deg,#fce398 110deg 210deg,#f3c34f 210deg); transform: rotate(-10deg); }
.post-card:nth-child(5n) .facet-marker { background: conic-gradient(from 40deg,#7a62c2 0 110deg,#cab5e8 110deg 210deg,#aa87d6 210deg); transform: rotate(3deg); }
.post-title { grid-area: title; margin: 5px 0 4px; font-family: var(--serif); font-size: clamp(22px,1.55vw,26px); line-height: 1.45; letter-spacing: .01em; font-weight: 700; overflow-wrap: anywhere; }
.post-title a { color: var(--heading); }
.post-title a:hover { color: var(--link); text-decoration: none; }
.post-excerpt { grid-area: excerpt; font-size: 14px; font-weight: 400; line-height: 1.75; margin: 0; color: var(--text); }
.read-more { grid-area: more; width: fit-content; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; margin-top: 8px; line-height: 1.65; }
.read-more .icon { width: 19px; height: 19px; }
.post-cover { grid-area: cover; display: block; width: 100%; align-self: center; aspect-ratio: 16/9; overflow: hidden; background: var(--field-bg); }
.post-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-cover:hover img { filter: brightness(1.035); }
[data-theme="dark"] .post-cover img { filter: brightness(.94); }
.post-card--none { grid-template-columns: minmax(0,1fr); grid-template-areas: "meta" "title" "excerpt" "more"; }
.post-card--large { grid-template-columns: minmax(0,1fr); grid-template-areas: "meta" "title" "cover" "excerpt" "more"; padding-block: 22px 25px; }
.post-card--large .post-cover { margin-block: 14px; aspect-ratio: 3/1; }
.post-card--large .post-title { margin-top: 6px; }
.post-card--large .post-excerpt { max-width: 780px; }
.pagination { margin-top: 25px; }
.page-navigator { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; list-style: none; padding: 0; margin: 0; font-size: 13px; }
.page-navigator li a, .page-navigator li span { display: inline-flex; justify-content: center; align-items: center; min-width: 32px; min-height: 34px; padding: 4px 10px; color: var(--muted); border-radius: 2px; }
.page-navigator li.current a { background: var(--link); color: var(--content-bg); }
.page-navigator li a:hover { color: var(--heading); text-decoration: none; background: var(--nav-bg); }
.page-navigator li.current a:hover { background: var(--link); color: var(--content-bg); }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-top: 46px; margin-top: auto; color: var(--muted); font-size: 12px; }
.site-footer a { color: inherit; }
.article-detail { width: min(100%, 760px); margin-inline: auto; }
.article-header { margin: 5px 0 34px; }
.article-title { margin: 13px 0 0; font: 700 clamp(27px,2.1vw,34px)/1.5 var(--serif); overflow-wrap: anywhere; }
.page-eyebrow { font-size: 12px; color: var(--muted); letter-spacing: .12em; }
.article-content, .prose { font-size: var(--reading-font-size); line-height: 1.9; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.4em; }
.prose h1 { font-size: 34px; }
.prose h2 { font: 700 25px/1.5 var(--serif); margin: 2.1em 0 .8em; }
.prose h3 { font: 700 21px/1.5 var(--serif); margin: 1.8em 0 .7em; }
.prose h4, .prose h5, .prose h6 { margin: 1.5em 0 .6em; font-size: 18px; }
.prose a { text-decoration: underline; }
.prose img, .prose video { display: block; max-width: 100%; height: auto; margin: 1.6em auto; }
.prose iframe { max-width: 100%; border: 0; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { color: var(--muted); text-align: center; font-size: 13px; }
.prose blockquote { margin: 1.6em 0; padding: 3px 0 3px 22px; border-left: 3px solid var(--line); color: var(--muted); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.5em; margin-block: 1.2em; }
.prose li { margin-block: .4em; }
.prose pre { overflow-x: auto; padding: 20px 22px; border: 1px solid var(--line); background: var(--field-bg); font-size: 14px; line-height: 1.75; border-radius: 3px; tab-size: 4; white-space: pre; }
.prose code { font-family: "Cascadia Code", Consolas, monospace; font-size: .88em; padding: .12em .3em; background: var(--field-bg); border-radius: 2px; }
.prose pre code { padding: 0; background: transparent; font-size: inherit; }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.7em 0; font-size: 15px; }
.prose th, .prose td { padding: 10px 18px; border: 1px solid var(--line); text-align: left; min-width: 90px; }
.prose th { background: var(--nav-bg); font-weight: 500; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose input { max-width: 100%; }
.protected { max-width: 440px; }
.protected p:last-child { display: flex; gap: 12px; align-items: center; }
.protected input[type="submit"] { width: auto; flex-shrink: 0; padding: 10px 18px; border: 1px solid var(--link); border-radius: 3px; background: var(--link); color: var(--content-bg); cursor: pointer; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 32px; font-size: 13px; }
.article-tags a::before { content: "# "; color: var(--muted); }
.article-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 38px; padding-block: 24px; border-top: 1px solid var(--line); font-size: 14px; }
.article-navigation > div { min-width: 0; }
.article-navigation > div:last-child { text-align: right; }
.article-navigation span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.page-detail { margin-bottom: 16px; }
.page-archives { width: min(760px,100%); margin-inline: auto; }
.page-archives .page-heading { flex-direction: row-reverse; }
.page-archives > .prose { margin-top: 28px; }
.archive-year { margin-top: 42px; }
.archive-year h2 { font: 500 30px/1.3 var(--serif); margin: 0 0 23px; }
.archive-year h2 a { color: var(--heading); }
.archive-month { display: grid; grid-template-columns: 70px minmax(0,1fr); gap: 20px; margin: 0 0 24px; }
.archive-month h3 { margin: 7px 0 0; font-size: 14px; font-weight: 400; }
.archive-month h3 a { color: var(--muted); }
.archive-entries { list-style: none; padding: 0; margin: 0; }
.archive-entries li { display: flex; gap: 19px; padding: 7px 0; }
.archive-entries time { flex: 0 0 22px; color: var(--muted); font-size: 12px; padding-top: 3px; }
.archive-entries a { color: var(--heading); }
.archive-entries a:hover { color: var(--link); }
.comments-area { width: min(760px,100%); margin: 42px auto 0; padding-top: 27px; border-top: 1px solid var(--line); }
.comments-title { font: 600 21px/1.5 var(--serif); margin: 0 0 24px; }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-body { margin: 0; padding: 22px 0; border-bottom: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: 10px; color: var(--heading); font-weight: 500; font-size: 14px; }
.comment-author a { color: var(--heading); }
.comment-author-badge { color: var(--link); font-size: 11px; font-weight: 400; }
.comment-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; color: var(--muted); margin-top: 3px; }
.comment-meta a { color: inherit; }
.comment-content { margin: 13px 0 9px; font-size: 14px; overflow-wrap: anywhere; }
.comment-content p { margin: 0 0 .7em; }
.comment-content pre { overflow-x: auto; }
.comment-content img { max-width: 100%; }
.comment-reply { font-size: 12px; }
.comment-children { margin-left: 22px; padding-left: 20px; border-left: 1px solid var(--line); }
.comment-children .comment-body { border-bottom: 0; padding-bottom: 0; }
.comment-respond { margin-top: 38px; }
.comment-respond .comments-title { font-size: 20px; margin-bottom: 16px; }
.cancel-comment-reply { font-size: 12px; margin-bottom: 12px; }
.comments-pagination { margin-top: 22px; }
.comment-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; min-width: 0; gap: 6px; }
.form-field label, .search-form label { color: var(--muted); font-size: 12px; }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], textarea { width: 100%; min-width: 0; border: 1px solid var(--line); background: var(--field-bg); color: var(--text); border-radius: 3px; padding: 10px 12px; }
textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 12px; color: var(--muted); margin: 0; }
.form-note a { margin-inline: 4px; }
.button { width: fit-content; display: inline-flex; justify-content: center; align-items: center; gap: 10px; padding: 10px 18px; border: 1px solid var(--link); border-radius: 3px; background: var(--link); color: var(--content-bg); line-height: 1.5; font-size: 13px; }
.button:hover { text-decoration: none; filter: brightness(1.08); }
.button .icon { width: 18px; height: 18px; }
.empty-state { padding: 85px 0; max-width: 560px; margin-inline: auto; text-align: center; }
.empty-state h1, .empty-state h2 { font: 600 26px/1.5 var(--serif); }
.empty-state p { color: var(--muted); line-height: 1.9; }
.empty-state .button { margin-top: 18px; }
.empty-mark { display: block; width: 27px; height: 34px; margin: 0 auto 28px; background: linear-gradient(130deg,#71c6ec 45%,#378eca 46% 68%,#8fcdea 69%); clip-path: polygon(23% 0,100% 39%,62% 100%,0 75%); transform: rotate(-13deg); }
.search-dialog { width: min(550px,calc(100% - 40px)); padding: 28px; border: 1px solid var(--line); background: var(--content-bg); color: var(--text); border-radius: 5px; box-shadow: 0 20px 80px #09152226; }
.search-dialog::backdrop { background: #0e1b2a70; backdrop-filter: blur(4px); }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.dialog-header h2 { margin: 0; font: 600 22px/1.4 var(--serif); }
.search-form { display: grid; gap: 8px; }
.search-input-row { display: flex; gap: 10px; }
.search-input-row .button { flex-shrink: 0; }
body:has(.search-dialog[open]) { overflow: hidden; }
html:not(.js) .search-toggle, html:not(.js) .theme-toggle, html:not(.js) .menu-toggle, html:not(.js) .font-choice, html:not(.js) .sidebar-collapse, html:not(.js) .sidebar-restore { display: none; }
noscript .search-form { margin-top: 24px; }
@media (max-height: 850px) and (min-width: 761px) {
  .sidebar-inner { padding-block: 30px 24px; }
  .sidebar-navigation-scroll { margin-top: 19px; }
  .primary-nav { row-gap: 3px; }
  .sidebar-mascot-slot { width: min(170px, 85%, 22vh); }
}
@media (max-height: 550px) and (min-width: 761px) {
  .sidebar-inner { padding-block: 22px 12px; }
  .sidebar-navigation-scroll { margin-top: 10px; }
  .sidebar-bottom { padding-top: 6px; }
  .sidebar-mascot-slot { width: min(100px, 16vh); }
  .reading-controls { margin-block: 2px 8px; }
  .reading-choice > summary { min-height: 30px; padding-block: 5px; }
  .sidebar-controls .icon-button { height: 34px; }
}
@media (min-width: 1900px) and (min-height: 851px) {
  .sidebar-inner { padding-top: 60px; }
  .site-main { padding-top: 58px; }
  .content-frame { min-height: calc(100dvh - 82px); }
  .sidebar-navigation-scroll { margin-top: 31px; }
}
@media (min-width: 761px) and (max-width: 1150px) {
  .sidebar-inner { width: calc(100% - 48px); }
  .brand-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .brand, .header-tools { grid-column: 1; justify-self: center; }
  .brand { gap: 10px; }
  .brand-mark { width: 30px; }
  .brand-name { font-size: 23px; }
  .sidebar-navigation-scroll { margin-top: 19px; }
  .primary-nav { padding-inline: 26px; }
  .nav-link { font-size: 17px; }
  .sidebar-controls { gap: 2px; }
  .sidebar-controls .icon-button { flex-basis: 30px; width: 30px; padding-inline: 4px; }
  .content-frame { width: calc(100% - 60px); }
  .post-card { column-gap: 22px; grid-template-columns: minmax(0,1fr) 26%; }
  .post-card--none, .post-card--large { grid-template-columns: minmax(0,1fr); }
  .post-title { font-size: 22px; }
  .reading-time { display: none; }
}
@media (max-width: 760px) {
  :root { --reading-small: 15px; --reading-normal: 16px; --reading-large: 18px; }
  html { scroll-padding-top: 20px; }
  body { font-size: 14px; }
  .site-shell { background: var(--content-bg); }
  .site-sidebar { position: relative; inset: auto; width: 100%; height: auto; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .sidebar-inner { display: flex; flex-direction: column; width: auto; height: auto; min-height: 0; padding: 19px 24px; }
  .sidebar-navigation-scroll { overflow: visible; margin: 0; padding: 0; }
  .sidebar-bottom { padding-top: 0; }
  .sidebar-collapse, .sidebar-restore { display: none !important; }
  .brand-row { display: flex; justify-content: space-between; gap: 12px; }
  .brand { gap: 11px; text-align: left; }
  .brand-name { font-size: 24px; }
  .brand-mark { width: 29px; height: 34px; }
  .header-tools { gap: 1px; }
  .icon-button { width: 38px; height: 38px; padding: 8px; }
  .menu-toggle { display: inline-flex; }
  .primary-nav { margin: 18px 0 3px; padding: 0 22px; row-gap: 2px; grid-template-columns: minmax(0, 1fr); }
  .nav-link { min-height: 38px; padding-block: 4px; font-size: 17px; }
  .nav-submenu .nav-link { min-height: 36px; }
  .nav-link[aria-current="page"]::before { left: -22px; width: 10px; height: 14px; }
  .sidebar-controls { margin-top: 20px; padding-left: 0; gap: 10px; }
  .sidebar-controls .icon-button { flex-basis: 38px; }
  .mascot, .sidebar-mascot-slot { display: none; }
  .js .site-sidebar:not(.is-menu-open) .sidebar-navigation-scroll, .js .site-sidebar:not(.is-menu-open) .sidebar-bottom { display: none; }
  .site-main { margin-left: 0; padding: 28px 0 24px; min-height: calc(100dvh - 78px); }
  .content-frame { width: calc(100% - 48px); min-height: calc(100dvh - 131px); }
  .facet-corner { display: none; }
  .reading-controls { gap: 4px; margin: 12px auto 0; }
  .reading-choice-panel { position: static; margin-block: 5px; max-height: none; box-shadow: none; }
  .page-heading { gap: 14px; padding-bottom: 15px; }
  .page-heading h1 { font-size: 16px; }
  .post-card { padding: 21px 0 23px; grid-template-columns: minmax(0,1fr) 98px; column-gap: 17px; grid-template-areas: "meta meta" "title cover" "excerpt excerpt" "more more"; }
  .post-meta { font-size: 11px; gap: 4px 8px; }
  .post-meta time::before, .reading-time::before { margin-right: 8px; }
  .facet-marker { width: 11px; height: 13px; flex-basis: 11px; }
  .post-title { font-size: 21px; margin: 9px 0 7px; line-height: 1.5; }
  .post-excerpt { font-size: 14px; line-height: 1.75; }
  .post-cover { margin: 10px 0 11px; align-self: start; aspect-ratio: 4/3; }
  .read-more { margin-top: 12px; font-size: 12px; }
  .post-card--none { grid-template-columns: 1fr; grid-template-areas: "meta" "title" "excerpt" "more"; }
  .post-card--large { grid-template-columns: 1fr; grid-template-areas: "meta" "title" "cover" "excerpt" "more"; }
  .post-card--large .post-cover { aspect-ratio: 16/9; margin: 9px 0 15px; }
  .site-footer { padding-top: 35px; font-size: 11px; }
  .article-header { margin-top: 1px; margin-bottom: 27px; }
  .article-title { font-size: 28px; line-height: 1.5; }
  .article-content, .prose { line-height: 1.9; }
  .prose h1 { font-size: 32px; }
  .prose h2 { font-size: 23px; }
  .prose h3 { font-size: 20px; }
  .prose pre { margin-inline: 0; padding: 15px; font-size: 12px; }
  .prose blockquote { padding-left: 16px; }
  .article-navigation { gap: 22px; font-size: 13px; }
  .archive-month { grid-template-columns: 43px minmax(0,1fr); gap: 12px; }
  .archive-year { margin-top: 31px; }
  .archive-entries li { gap: 9px; }
  .comments-area { margin-top: 28px; }
  .comment-children { margin-left: 8px; padding-left: 12px; }
  .form-row { grid-template-columns: 1fr; gap: 16px; }
  input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], textarea { font-size: 16px; }
  .search-dialog { padding: 21px; }
  .search-input-row { flex-direction: column; }
  .search-input-row .button { align-self: flex-end; }
  .empty-state { padding: 54px 0; }
}
@media (max-width: 360px) {
  .sidebar-inner { padding-inline: 18px; }
  .content-frame { width: calc(100% - 36px); }
  .brand-name { font-size: 21px; }
  .post-card { grid-template-columns: minmax(0,1fr) 83px; column-gap: 12px; }
  .post-card--none, .post-card--large { grid-template-columns: 1fr; }
  .post-title { font-size: 20px; }
  .reading-time { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.prose .translation-notice, .translation-notice { margin: 0 0 22px; padding: 10px 14px; border-left: 2px solid var(--link); background: var(--nav-bg); color: var(--muted); font-size: 13px; line-height: 1.7; }
.translation-badge { color: var(--muted); font-size: 11px; white-space: nowrap; }
.translation-badge::before { content: ' · '; }
@media print {
  :root { --content-bg: #fff; --heading: #111; --text: #222; --muted: #555; --link: #222; --line: #ddd; }
  .site-sidebar, .sidebar-restore, .facet-corner, .reading-controls, .comments-area, .search-dialog, .pagination, .skip-link { display: none !important; }
  .site-main { margin: 0; padding: 0; }
  .content-frame { width: 100%; min-height: 0; }
  .post-card, .prose pre { break-inside: avoid; }
}
