@charset "UTF-8";
:root {
  color-scheme: light;
  --bg: #f7f8f4; --surface: #fff; --text: #26382d; --muted: #606e62;
  --accent: #3e6650; --on-accent: #fff; --line: #d6ded2; --soft: #edf1e8;
  --code: #edf1e8; --signal: #8a6c28; --focus: #285b42; --danger: #a63131;
  --sans: "Noto Sans CJK SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", "Noto Sans Mono", ui-monospace, monospace;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #16221d; --surface: #1e2d25; --text: #ebeee7; --muted: #b0bcaf;
  --accent: #b3d5a5; --on-accent: #18261b; --line: #425347; --soft: #24362a;
  --code: #102018; --signal: #d7b66d; --focus: #c6e9b7; --danger: #ffb5aa;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.7; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; min-width: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .28em; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: not-allowed; opacity: .6; }
input, select, textarea { color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 3px; min-height: 44px; padding: 10px 12px; width: 100%; min-width: 0; }
input:focus { border-color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
main:focus { outline: none; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; overflow-wrap: anywhere; }
p { text-wrap: pretty; overflow-wrap: anywhere; }
code, pre { font-family: var(--mono); }
svg { display: block; max-width: 100%; }
.wrap { width: min(1184px, calc(100% - 96px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-header { min-height: 96px; display: flex; align-items: center; gap: 32px; border-bottom: 1px solid var(--line); position: relative; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 23px; font-family: var(--serif); font-weight: 600; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; border: 1px solid var(--accent); color: var(--accent); width: 34px; height: 35px; font-size: 26px; line-height: 1; letter-spacing: -2px; padding-right: 4px; border-radius: 4px; }
.site-header nav { margin-left: auto; display: flex; gap: 30px; align-items: center; }
.site-header nav a { display: grid; align-items: center; min-height: 48px; text-decoration: none; font-size: 14px; position: relative; }
.site-header nav a[aria-current="page"]::after { content: ""; position: absolute; bottom: 2px; left: 0; right: 0; height: 2px; background: var(--accent); }
.theme-toggle { background: none; border: 0; border-left: 1px solid var(--line); padding: 8px 0 8px 24px; min-height: 44px; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.theme-toggle > span:first-child { font-size: 21px; }
.nav-toggle { display: none; }
.skip-link { position: absolute; top: 8px; left: 0; z-index: 10; padding: 10px 16px; background: var(--text); color: var(--bg); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 24px; padding: 10px 22px; min-height: 46px; background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent); border-radius: 3px; text-decoration: none; font-size: 14px; font-weight: 550; transition: filter .15s; }
.button:hover { color: var(--on-accent); filter: brightness(.91); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; text-decoration-line: underline; font-size: 14px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 14px; }
.section-heading h2 { font-size: 25px; font-weight: 600; line-height: 1.5; }
.section-context { font-size: 13px; color: var(--accent); margin-bottom: 6px; }
.article-row { display: grid; grid-template-columns: 94px minmax(0, 1fr); gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.article-date { color: var(--muted); font-size: 12px; padding-top: 3px; display: flex; flex-direction: column; gap: 7px; font-variant-numeric: tabular-nums; }
.article-date > span { font-size: 11px; }
.article-category { color: var(--accent); font-size: 12px; text-decoration: none; min-height: 24px; display: inline-block; }
.article-row h3 { font-size: 20px; font-weight: 550; line-height: 1.6; margin: 4px 0 10px; }
.article-row h3 a { text-decoration: none; }
.article-row-main > p { color: var(--muted); font-size: 14px; line-height: 1.95; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; color: var(--muted); font-size: 12px; }
.article-tags .reading-time { margin-left: auto; }
.status-label { display: inline-block; color: var(--accent); font-size: 12px; padding: 3px 9px; border-radius: 2px; background: var(--soft); white-space: nowrap; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding: 32px 0 36px; color: var(--muted); font-size: 12px; }
.footer-name { font-family: var(--serif); color: var(--text); font-size: 20px; text-decoration: none; }
.site-footer p { margin-top: 7px; }
.footer-meta { text-align: right; display: flex; flex-direction: column; gap: 8px; align-self: center; }
.footer-meta a { min-height: 24px; }
.page-main { padding-top: 64px; padding-bottom: 90px; }
.page-heading { margin-bottom: 52px; }
.page-heading h1 { font-size: clamp(30px, 3.3vw, 44px); font-weight: 600; line-height: 1.5; letter-spacing: -.025em; margin: 12px 0 18px; }
.page-heading > p:last-of-type:not(.section-context) { color: var(--muted); max-width: 600px; font-size: 15px; line-height: 1.9; }
.blog-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 72px; border-top: 1px solid var(--line); padding-top: 30px; }
.small-heading { font-size: 15px; font-weight: 550; margin-bottom: 18px; }
.blog-tools form label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.search-input { display: flex; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); }
.search-input input { width: 100%; border: 0; background: transparent; font-size: 13px; padding-left: 10px; }
.search-input button { border: 0; background: transparent; color: var(--accent); min-width: 48px; font-size: 12px; padding: 0 10px; }
.category-list { margin: 32px 0; display: flex; flex-direction: column; align-items: stretch; }
.category-list a { text-decoration: none; padding: 10px 12px; font-size: 14px; border-left: 2px solid transparent; }
.category-list a[aria-current] { color: var(--accent); background: var(--soft); border-left-color: var(--accent); }
.prototype-note { color: var(--muted); font-size: 12px; line-height: 1.9; padding-top: 22px; border-top: 1px solid var(--line); }
.results-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; font-size: 12px; color: var(--muted); min-height: 38px; }
.blog-results .article-row { padding: 26px 0 32px; }
.pagination { display: flex; justify-content: flex-end; align-items: center; gap: 24px; margin-top: 28px; font-size: 13px; font-variant-numeric: tabular-nums; }
.pagination a { min-height: 44px; display: flex; align-items: center; }
.empty-state { padding: 60px 24px 80px; text-align: center; }
.empty-state h2 { font-size: 22px; }
.empty-state p { margin: 16px 0; font-size: 14px; color: var(--muted); }
.article-main { padding-top: 42px; padding-bottom: 72px; }
.article-heading { max-width: 820px; padding-bottom: 42px; }
.back-link { display: inline-flex; min-height: 44px; align-items: center; font-size: 13px; color: var(--muted); text-decoration: none; }
.back-link::before { content: "←"; margin-right: 10px; }
.article-heading-labels { display: flex; align-items: center; gap: 16px; margin: 24px 0 14px; color: var(--accent); font-size: 13px; }
.article-heading-labels a { text-decoration: none; }
.sample-label { color: var(--muted); font-size: 12px; border-left: 1px solid var(--line); padding-left: 16px; }
.article-heading h1 { font-size: clamp(28px, 3.2vw, 42px); font-weight: 600; line-height: 1.5; max-width: 780px; }
.article-summary { margin: 20px 0 24px; font-size: 16px; line-height: 1.9; color: var(--muted); max-width: 720px; }
.article-byline { display: flex; flex-wrap: wrap; gap: 12px 24px; color: var(--muted); font-size: 12px; }
.article-byline span:first-child { color: var(--text); }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 268px; gap: 40px; padding-top: 42px; border-top: 1px solid var(--line); }
.prose { min-width: 0; font-size: 17px; line-height: 2; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 22px; }
.prose h2 { font-size: 25px; font-weight: 600; line-height: 1.6; margin-top: 44px; margin-bottom: 20px; scroll-margin-top: 24px; }
.prose h3 { font-size: 20px; font-weight: 600; margin-top: 32px; scroll-margin-top: 24px; }
.prose > h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 22px; }
.prose p code, .prose li code { font-size: .86em; padding: 2px 5px; border-radius: 3px; background: var(--soft); }
.prose blockquote { margin: 0 0 34px; border-left: 2px solid var(--accent); padding: 12px 20px; color: var(--muted); background: var(--soft); font-size: 14px; line-height: 1.9; }
.prose blockquote p { margin: 0; }
.prose ul, .prose ol { padding-left: 1.5em; margin-bottom: 24px; }
.prose li { padding-left: 5px; margin-top: 8px; }
.prose pre { margin: 0; background: var(--code); padding: 24px; overflow: auto; max-width: 100%; font-size: 14px; line-height: 1.85; tab-size: 2; border-radius: 3px; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); }
.prose table th, .prose table td { min-width: 64px; padding: 10px 14px; font-size: 14px; white-space: nowrap; }
.prose table th { color: var(--text); background: var(--soft); }
.prose table td:first-child { min-width: 64px; }
.code-block { margin: 28px 0; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.code-toolbar { display: flex; justify-content: space-between; align-items: center; min-height: 40px; padding: 0 16px; background: var(--soft); font-size: 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
.code-toolbar button { background: none; border: 0; font-size: 12px; min-height: 40px; min-width: 44px; }
.article-toc { align-self: start; position: sticky; top: 28px; min-width: 0; }
.article-toc details { position: relative; }
.article-toc summary { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 8px 0 12px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; list-style: none; }
.article-toc summary::-webkit-details-marker { display: none; }
.article-toc summary::after { content: ""; width: 6px; height: 6px; margin-left: 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); }
.article-toc details[open] summary::after { transform: rotate(45deg); }
.article-toc details[data-toc-mode="manual"] summary { padding-right: 104px; }
.article-toc nav { display: flex; flex-direction: column; gap: 0; margin-top: 8px; max-height: max(120px, calc(100dvh - 104px)); overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: transparent transparent; padding: 2px 8px 6px 0; }
.article-toc nav:hover, .article-toc nav:focus-within { scrollbar-color: var(--line) transparent; }
.article-toc nav::-webkit-scrollbar { width: 4px; }
.article-toc nav::-webkit-scrollbar-thumb { background: transparent; }
.article-toc nav:hover::-webkit-scrollbar-thumb, .article-toc nav:focus-within::-webkit-scrollbar-thumb { background: var(--line); }
.article-toc nav a { position: relative; display: flex; align-items: center; min-width: 0; min-height: 32px; padding: 6px 8px 6px 12px; flex-shrink: 0; color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; word-break: normal; }
.article-toc .toc-nested, .article-toc nav > a[data-toc-depth="1"], .article-toc nav > a[data-toc-depth="2"] { color: var(--muted); font-size: 13px; font-weight: 400; padding-left: 24px; }
.article-toc nav > a[data-toc-depth="2"] { padding-left: 36px; }
.article-toc .toc-entry { display: flex; align-items: start; padding-left: 0; }
.article-toc .toc-entry[data-toc-depth="0"]:not(:first-child) { margin-top: 6px; }
.article-toc .toc-entry[data-toc-depth="1"] { padding-left: 12px; }
.article-toc .toc-entry[data-toc-depth="2"] { padding-left: 24px; }
.article-toc .toc-entry a { flex: 1; color: var(--muted); font-size: 13px; font-weight: 400; padding-left: 12px; }
.article-toc .toc-entry[data-toc-depth="0"] a { color: var(--text); font-size: 14px; font-weight: 600; }
.article-toc .toc-entry[data-toc-ancestor]:not([data-toc-depth="0"]) a { color: var(--text); font-weight: 500; }
.article-toc nav a:hover, .article-toc .toc-entry a:hover { color: var(--accent); }
.article-toc nav a[aria-current="location"], .article-toc .toc-entry a[aria-current="location"] { color: var(--accent); font-weight: 600; }
.article-toc nav a[aria-current="location"]::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 2px; background: var(--accent); }
.article-toc .toc-toggle { display: grid; place-items: center; flex: 0 0 28px; width: 28px; min-height: 32px; padding: 0; color: var(--muted); border: 0; background: transparent; }
.article-toc .toc-toggle::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); }
.article-toc .toc-toggle[aria-expanded="true"]::before { transform: rotate(45deg); }
.article-toc .toc-toggle:hover { color: var(--accent); background: var(--soft); }
.article-toc .toc-follow { position: absolute; top: 0; right: 8px; min-height: 36px; padding: 0 4px; border: 0; background: transparent; color: var(--accent); font-size: 12px; }
.article-toc .toc-follow:hover { text-decoration: underline; text-underline-offset: .25em; }
.article-toc :is(a, button, summary):focus-visible { outline-offset: -2px; }
.article-toc .toc-entry[hidden], .article-toc nav a[hidden], .article-toc .toc-follow[hidden] { display: none; }
.article-end { max-width: 760px; display: flex; justify-content: space-between; align-items: center; margin: 40px 0; padding: 24px 0; border-block: 1px solid var(--line); font-size: 14px; }
.plain-button { border: 1px solid var(--line); background: transparent; border-radius: 3px; min-height: 44px; padding: 8px 16px; font-size: 13px; }
.plain-button:hover { background: var(--soft); border-color: var(--accent); }
.related-section, .comment-placeholder { max-width: 760px; margin-top: 42px; }
.related-section h2, .comment-placeholder h2 { font-size: 18px; font-weight: 550; margin-bottom: 18px; }
.related-section > a { display: flex; align-items: baseline; gap: 24px; padding: 14px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.related-section span { flex-shrink: 0; font-size: 12px; color: var(--muted); }
.related-section strong { font-size: 15px; font-weight: 500; }
.comment-placeholder p { color: var(--muted); font-size: 14px; }
.project-index { border-top: 1px solid var(--line); }
.project-index article { padding: 44px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; border-bottom: 1px solid var(--line); }
.project-index h2 { font-size: 29px; font-weight: 550; margin-top: 16px; }
.project-index h2 a { text-decoration: none; }
.project-index article p { font-size: 15px; color: var(--muted); line-height: 1.9; }
.project-index .text-link { margin-top: 20px; }
.project-detail-heading { max-width: 850px; }
.project-detail-heading .status-label { display: table; margin-top: 20px; }
.project-detail { display: grid; grid-template-columns: minmax(0, 760px) 240px; gap: 72px; border-top: 1px solid var(--line); padding-top: 40px; }
.project-note { background: var(--soft); padding: 24px; align-self: start; }
.project-note h2 { font-size: 15px; margin-bottom: 16px; }
.project-note p { font-size: 13px; line-height: 1.9; color: var(--muted); }
.project-note a { font-size: 13px; margin-top: 12px; }
.friends-empty { border-top: 1px solid var(--line); padding: 60px 0 80px; max-width: 800px; }
.empty-line { display: block; width: 48px; height: 2px; background: var(--accent); margin-bottom: 24px; }
.friends-empty h2 { font-size: 23px; font-weight: 550; }
.friends-empty p { color: var(--muted); font-size: 15px; margin: 16px 0; max-width: 500px; }
.about-layout { display: grid; grid-template-columns: minmax(0, 720px) 250px; gap: 96px; border-top: 1px solid var(--line); padding-top: 40px; }
.about-margin { border-left: 1px solid var(--line); padding-left: 24px; align-self: start; }
.about-margin h2 { font-size: 15px; font-weight: 550; margin-bottom: 18px; }
.about-margin a { display: flex; align-items: center; min-height: 44px; font-size: 14px; }
.about-margin p { color: var(--muted); font-size: 12px; margin-top: 24px; }
.login-main { display: grid; grid-template-columns: 420px 1fr; gap: 160px; align-items: center; padding-block: 72px 100px; }
.login-panel .section-context { margin-top: 22px; }
.login-panel h1 { font-size: 36px; font-weight: 600; margin: 10px 0 14px; }
.login-panel > p { color: var(--muted); font-size: 14px; }
.login-panel form { margin-top: 30px; display: flex; flex-direction: column; gap: 10px; }
.login-panel form label { font-size: 14px; margin-top: 12px; }
.login-panel .button { margin-top: 20px; width: 100%; }
.password-field { display: flex; gap: 8px; }
.password-field .plain-button { min-width: 60px; }
.login-aside { border-left: 1px solid var(--line); padding: 50px 0 50px 56px; }
.login-aside p { font-size: 28px; font-weight: 500; line-height: 1.8; margin-bottom: 22px; }
.login-aside span { color: var(--muted); font-size: 13px; }
.form-message { color: var(--danger); padding: 12px 0; font-size: 14px; }
.admin-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.admin-heading .page-heading { margin-bottom: 30px; }
.admin-summary { display: grid; grid-template-columns: repeat(3, 1fr); padding: 28px 0; border-block: 1px solid var(--line); margin-bottom: 44px; }
.admin-summary > div { display: flex; flex-direction: column; gap: 10px; padding-left: 28px; border-left: 1px solid var(--line); }
.admin-summary > div:first-child { border: 0; padding-left: 0; }
.admin-summary span { color: var(--muted); font-size: 13px; }
.admin-summary strong { font-size: 36px; font-family: var(--serif); font-weight: 500; font-variant-numeric: tabular-nums; }
.admin-notice { color: var(--muted); font-size: 14px; max-width: 760px; margin: 20px 0 30px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { font-size: 12px; font-weight: 500; color: var(--muted); padding: 14px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { font-size: 14px; padding: 20px 18px; border-bottom: 1px solid var(--line); }
td:first-child { min-width: 280px; }
td strong { display: block; font-weight: 500; }
td code { display: block; font-size: 11px; color: var(--muted); margin-top: 7px; }
td:last-child a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.preview-banner { border: 1px solid var(--line); padding: 12px 20px; margin-bottom: 20px; color: var(--accent); font-size: 14px; background: var(--soft); }
.preview-banner a { margin-left: 16px; }
.error-main { padding-block: 64px; }
.error-code { font-size: 96px; font-family: var(--serif); color: var(--accent); margin: 60px 0 12px; }
.error-main h1 { font-size: 32px; font-weight: 550; }
.error-main > p:last-of-type { color: var(--muted); margin: 18px 0 28px; }
.error-main > .text-link { margin-left: 24px; }
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 64px); }
  .site-header { gap: 24px; } .site-header nav { gap: 20px; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 236px; gap: 28px; }
  .blog-layout { gap: 36px; grid-template-columns: 210px minmax(0, 1fr); }
  .project-detail, .about-layout { gap: 40px; grid-template-columns: minmax(0, 1fr) 220px; }
  .login-main { gap: 80px; grid-template-columns: 380px 1fr; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 78px; flex-wrap: wrap; gap: 0; padding: 16px 0; }
  .brand { font-size: 22px; } .brand-mark { width: 30px; height: 31px; font-size: 23px; }
  .site-header nav { width: 100%; order: 4; margin: 14px 0 0; gap: 0; display: flex; justify-content: space-between; }
  .site-header nav a { font-size: 13px; min-height: 44px; padding: 0 4px; }
  .js .nav-toggle { display: block; margin-left: auto; border: 0; background: none; min-height: 44px; min-width: 56px; font-size: 13px; }
  .js .site-header:not([data-nav-open]) nav { display: none; }
  .theme-toggle { margin-left: auto; border-left: 0; padding: 8px; }
  .js .theme-toggle { margin-left: 8px; border-left: 1px solid var(--line); padding-left: 16px; }
  .theme-toggle [data-theme-label] { font-size: 12px; }
  .site-footer { font-size: 11px; padding-top: 26px; }
  .page-main { padding-top: 40px; padding-bottom: 56px; }
  .page-heading { margin-bottom: 32px; }
  .page-heading h1 { font-size: 32px; }
  .blog-layout { display: block; padding-top: 24px; }
  .blog-tools > .small-heading, .category-list .small-heading, .blog-tools .prototype-note { display: none; }
  .blog-tools form { max-width: 500px; }
  .category-list { flex-direction: row; flex-wrap: wrap; gap: 4px; margin: 20px 0 24px; }
  .category-list a { border-left: 0; padding: 8px 12px; font-size: 13px; min-height: 40px; }
  .results-heading { border-top: 1px solid var(--line); padding-top: 16px; }
  .article-row { grid-template-columns: 74px minmax(0, 1fr); gap: 18px; }
  .article-date { font-size: 11px; }
  .article-row h3 { font-size: 19px; }
  .article-tags .reading-time { margin-left: 0; }
  .article-main { padding-top: 22px; padding-bottom: 50px; }
  .article-heading { padding-bottom: 28px; }
  .article-heading h1 { font-size: 29px; }
  .article-summary { font-size: 15px; }
  .article-layout { display: flex; flex-direction: column-reverse; gap: 28px; padding-top: 24px; }
  .article-toc { width: 100%; position: static; border-bottom: 1px solid var(--line); }
  .article-toc summary { min-height: 44px; padding-left: 0; }
  .article-toc nav { margin-top: 4px; margin-bottom: 14px; max-height: min(50dvh, 24rem); }
  .article-toc nav a { min-height: 44px; padding-block: 11px; }
  .article-toc .toc-toggle { flex-basis: 44px; width: 44px; min-height: 44px; }
  .article-toc .toc-follow { min-height: 44px; }
  .prose { font-size: 17px; line-height: 1.95; }
  .prose h2 { font-size: 23px; }
  .prose pre { padding: 20px 16px; font-size: 13px; }
  .related-section > a { gap: 14px; }
  .project-index article { gap: 24px; padding: 30px 0; grid-template-columns: .9fr 1.1fr; }
  .project-index h2 { font-size: 25px; }
  .project-detail, .about-layout { grid-template-columns: 1fr; gap: 32px; padding-top: 30px; }
  .project-note { max-width: 500px; }
  .about-margin { padding-left: 0; padding-top: 24px; border-left: 0; border-top: 1px solid var(--line); }
  .login-main { grid-template-columns: minmax(0, 420px); justify-content: center; padding-block: 40px 64px; }
  .login-aside { display: none; }
  .login-panel h1 { font-size: 32px; }
  .admin-heading { align-items: flex-start; }
  .admin-heading h1 { font-size: 28px; }
  .admin-heading > form { margin-top: 8px; flex-shrink: 0; }
}
@media (max-width: 440px) {
  .section-heading h2 { font-size: 23px; }
  .article-row { grid-template-columns: 1fr; gap: 7px; }
  .article-date { flex-direction: row; gap: 14px; }
  .article-row h3 { font-size: 20px; }
  .article-row .article-category { margin-top: 2px; }
  .site-footer { flex-direction: column; gap: 20px; }
  .footer-meta { text-align: left; align-self: flex-start; }
  .project-index article { grid-template-columns: 1fr; gap: 18px; }
  .project-index h2 { margin-top: 12px; }
  .project-index .text-link { margin-top: 12px; }
  .admin-summary > div { padding-left: 14px; }
  .admin-summary span { font-size: 11px; }
  .admin-summary strong { font-size: 29px; }
  .admin-heading .plain-button { padding-inline: 10px; }
  .article-heading h1 { font-size: 28px; }
}
.admin-tabs { display: flex; gap: 28px; margin: 0 0 28px; }
.post-filters { display: flex; gap: 24px; align-items: end; margin: 28px 0; }
.post-filters label { flex: 1; font-size: 13px; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.row-actions > a { margin-right: 12px; }
.editor-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin: 24px 0; }
.editor-actions a.plain-button { text-decoration: none; display: inline-flex; align-items: center; }
.editor-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.editor-fields [data-technical-field][hidden] { display: none; }
.editor-fields label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.editor-fields small { color: var(--muted); font-size: 12px; }
.field-wide { grid-column: 1/-1; }
.editor-cover-preview { width: min(100%, 480px); margin: 16px 0; }
.editor-cover-preview img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: contain; background: var(--soft); border: 1px solid var(--line); }
.editor-cover-preview img[hidden] { display: none; }
.editor-cover-preview figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.editor-body-heading { margin: 36px 0 16px; }
.editor-columns { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px; align-items: start; }
.editor-columns > div { min-width: 0; }
#markdown { min-height: 480px; font-family: var(--mono); }
#markdown-editor { border: 1px solid var(--line); border-radius: 3px; }
.editor-preview-panel { border: 1px solid var(--line); padding: 24px; min-width: 0; min-height: 480px; max-height: 720px; overflow: auto; }
#preview-state { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.editor-seo { margin-top: 28px; }
.editor-seo summary { min-height: 44px; cursor: pointer; }
.editor-save { display: flex; align-items: center; gap: 24px; margin-top: 32px; }
.editor-save p, #editor-save-state { font-size: 12px; color: var(--muted); }
.form-errors { border: 1px solid var(--danger); padding: 20px; margin: 24px 0; color: var(--danger); }
@media(max-width:760px) { .editor-fields,.editor-columns { grid-template-columns: minmax(0,1fr); } .post-filters { flex-wrap: wrap; } .post-filters label { min-width: 180px; } .admin-tabs { flex-wrap: wrap; gap: 16px; } .editor-save { flex-wrap: wrap; } }
.admin-tabs a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.admin-tabs a[aria-current] { color: var(--accent); text-decoration-thickness: 2px; }
.import-list { border-top: 1px solid var(--line); }
.import-list > article { display: grid; grid-template-columns: 1fr 200px; gap: 60px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.import-list h2 { font-size: 24px; font-weight: 550; margin: 18px 0; }
.import-list h2 a { text-decoration: none; }
.import-list p { color: var(--muted); max-width: 680px; font-size: 15px; }
.import-meta { display: flex; flex-direction: column; font-size: 13px; align-items: flex-start; color: var(--muted); gap: 8px; }
.import-review-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 300px); gap: 64px; border-top: 1px solid var(--line); padding-top: 40px; }
.editorial-notes { border-left: 1px solid var(--line); padding-left: 28px; align-self: start; }
.editorial-notes h2 { font-size: 16px; font-weight: 550; margin: 0 0 18px; }
.editorial-notes h2:not(:first-child) { margin-top: 32px; }
.editorial-notes p, .editorial-notes li, .editorial-notes dl { font-size: 13px; line-height: 1.9; color: var(--muted); }
.editorial-notes ul { padding-left: 18px; margin: 0; }
.editorial-notes li + li { margin-top: 12px; }
.editorial-notes dl { margin-block: 20px; }
.editorial-notes dt { margin-top: 12px; }
.editorial-notes dd { margin: 6px 0; overflow-wrap: anywhere; color: var(--text); }
.editorial-notes .text-link { margin-top: 18px; }
@media (max-width: 1050px) { .import-review-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 36px; } }
@media (max-width: 760px) {
  .import-list > article { grid-template-columns: 1fr; gap: 24px; }
  .import-review-layout { grid-template-columns: 1fr; gap: 40px; }
  .editorial-notes { border-left: 0; padding: 32px 0 0; border-top: 1px solid var(--line); }
}
.home-cover { position: relative; min-height: max(680px, calc(100svh - 96px)); display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; padding: 48px 0 100px; }
.cover-copy { position: relative; z-index: 1; min-width: 0; }
.cover-copy h1 { font-size: clamp(60px, 6.4vw, 96px); line-height: 1.2; font-weight: 600; letter-spacing: -.055em; }
.cover-copy h1 span { display: block; }
.cover-copy .home-heading-measure { position: fixed; inset: 0 auto auto 0; width: max-content; max-width: none; white-space: pre; text-wrap: nowrap; overflow-wrap: normal; visibility: hidden; pointer-events: none; }
.cover-copy > p { color: var(--muted); font-size: 15px; line-height: 2; margin-top: 32px; }
.cover-links { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; margin-top: 32px; }
.cover-links .button { min-width: 136px; }
.cover-art { width: 118%; margin-left: -8%; max-width: 680px; }
.cover-art svg { width: 100%; }
.cover-art figcaption { color: var(--muted); font-size: 12px; text-align: center; margin-top: -28px; }
.die-trace { fill: none; stroke: var(--line); stroke-width: 2; }
.die-pins { fill: none; stroke: var(--accent); stroke-width: 7; }
.die-package { fill: var(--soft); stroke: var(--accent); stroke-width: 2; }
.die-frame { fill: var(--bg); stroke: var(--accent); stroke-width: 1; }
.die-route { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.die-cell { fill: var(--line); }
.die-node, .die-index { fill: var(--signal); }
.die-signature { fill: var(--accent); font-family: var(--serif); font-size: 56px; letter-spacing: -5px; }
.cover-scroll { position: absolute; bottom: 32px; left: 0; display: inline-flex; align-items: center; gap: 22px; min-height: 44px; font-size: 12px; color: var(--muted); text-decoration: none; }
.cover-scroll span { font-size: 20px; }
.home-writing { border-top: 1px solid var(--line); padding-top: 44px; }
#writing-title { scroll-margin-top: 32px; }
.home-sample-note { color: var(--muted); font-size: 12px; margin-bottom: 24px; }
.home-story { display: grid; grid-template-columns: 108px 1fr 100px; align-items: baseline; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.home-story time, .home-story > span { color: var(--muted); font-size: 12px; }
.home-story > span { text-align: right; }
.home-story h3 { font-size: 21px; font-weight: 500; line-height: 1.65; }
.home-story h3 a { text-decoration: none; }
.home-work { padding: 72px 0 80px; }
.home-work-link { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 21px; }
.home-work-link small { color: var(--muted); font-size: 12px; }
@media (max-width: 1050px) {
  .home-cover { min-height: max(620px, calc(100svh - 96px)); }
  .cover-copy h1 { font-size: clamp(58px, 7vw, 78px); }
}
@media (max-width: 760px) {
  .home-cover { min-height: calc(100svh - 78px); grid-template-columns: 1fr; align-content: center; gap: 0; padding: 36px 0 72px; }
  .cover-copy h1 { font-size: clamp(56px, 12vw, 76px); }
  .cover-copy > p { margin-top: 22px; font-size: 14px; }
  .cover-links { margin-top: 24px; }
  .cover-art { width: min(100%, 320px); justify-self: end; margin: -8px 0 0; }
  .cover-art figcaption { display: none; }
  .cover-scroll { bottom: 20px; }
  .home-writing { padding-top: 32px; }
  .home-story { grid-template-columns: 1fr auto; gap: 8px 16px; padding: 24px 0; }
  .home-story h3 { grid-column: 1 / -1; grid-row: 2; font-size: 20px; }
  .home-work { padding: 48px 0 60px; }
}
@media (max-width: 440px) {
  .home-cover { padding-top: 30px; }
  .cover-copy h1 { font-size: 58px; }
  .cover-art { max-width: 250px; margin-top: -16px; }
  .home-work-link { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.management-form { max-width: 680px; display: grid; gap: 24px; margin-block: 32px; }
.management-form label, .media-item label { display: grid; gap: 8px; font-size: 14px; }
.management-form small, .field-help { color: var(--muted); font-size: 13px; line-height: 1.8; }
.management-form .button { justify-self: start; }
.site-home-heading, .site-home-intro { white-space: pre-line; overflow-wrap: anywhere; }
.site-settings-form { max-width: none; grid-template-columns: minmax(0, 680px) minmax(0, 1fr); gap: 32px 64px; align-items: start; }
.settings-wide { grid-column: 1/-1; }
.settings-fields { min-width: 0; display: grid; gap: 36px; }
.settings-section { min-width: 0; margin: 0; padding: 0; border: 0; display: grid; }
.settings-section legend { padding: 0 0 20px; font-size: 22px; font-weight: 600; }
.settings-section label { margin-top: 20px; margin-bottom: 8px; }
.settings-section legend + label { margin-top: 0; }
.settings-section .field-help { margin-top: 8px; }
.settings-section .field-error { margin-top: 4px; }
.settings-section input[type="file"] { max-width: 100%; }
.settings-save { display: flex; gap: 16px 24px; flex-wrap: wrap; align-items: center; }
.settings-preview { min-width: 0; border-top: 2px solid var(--accent); padding-top: 20px; }
.settings-preview h2 { font-size: 20px; margin-bottom: 8px; }
.settings-browser-preview { margin-top: 24px; padding: 12px; display: flex; gap: 10px; align-items: start; border: 1px solid var(--line); background: var(--soft); font-size: 13px; }
.settings-browser-preview img { flex-shrink: 0; object-fit: contain; }
.settings-browser-preview span { min-width: 0; overflow-wrap: anywhere; }
.settings-identity-preview { margin-top: 24px; display: flex; align-items: center; gap: 16px; }
.settings-identity-preview img { flex-shrink: 0; object-fit: contain; }
.settings-identity-preview strong { min-width: 0; overflow-wrap: anywhere; font-size: 22px; }
.settings-description-preview { margin-top: 16px; color: var(--muted); font-size: 14px; white-space: pre-line; }
.settings-preview > a { margin-top: 20px; }
.site-header .brand { min-width: 0; white-space: normal; }
.site-header .brand > span:last-child { overflow-wrap: anywhere; }
@media(max-width:900px) { .site-settings-form { grid-template-columns: minmax(0,1fr); } .settings-preview { grid-row: 1; } }
.media-upload { padding-block: 28px; border-block: 1px solid var(--line); }
.media-upload h2 { font-size: 22px; }
.media-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 40px; margin-top: 48px; }
.media-item { min-width: 0; border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; gap: 16px; }
.media-item img { width: 100%; height: 200px; object-fit: contain; background: var(--soft); }
.media-item h2 { font-size: 18px; overflow-wrap: anywhere; }
.media-item p { font-size: 12px; color: var(--muted); }
.media-item textarea { font: 13px/1.7 var(--mono); }
.article-cover { max-width: 880px; margin-block: 36px; }
.article-cover img, .prose img { max-width: 100%; height: auto; display: block; }
.taxonomy-directory a { display: flex; justify-content: space-between; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.taxonomy-directory strong { font-size: 24px; font-weight: 500; }
.taxonomy-directory small { display: block; color: var(--muted); margin-top: 12px; }
@media(max-width:1050px) { .media-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:760px) { .media-grid { grid-template-columns: minmax(0,1fr); } }
.field-error { color: var(--danger); font-size: 13px; }
[aria-invalid="true"] { border-color: var(--danger); }
.project-related { margin-top: 28px; display: grid; gap: 12px; }
.management-form h1,.page-heading h1 { text-wrap: balance; }
.media-item form { display: grid; gap: 8px; }
.media-item a { min-height: 44px; display: inline-flex; align-items: center; }
.cover-art-pixel { display: none; }
.brand-mark { width: 48px; height: 48px; padding: 0; border: 0; border-radius: 0; background: #fff; overflow: hidden; flex-shrink: 0; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; }
.appearance-message { background: var(--soft); border-left: 3px solid var(--accent); padding: 16px 20px; margin-bottom: 28px; }
.theme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 24px; }
.theme-card { min-width: 0; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.theme-card[data-active="true"] { border-color: var(--accent); }
.theme-card-body { padding: 28px; }
.theme-card-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.theme-card-heading h2 { font-size: 22px; }
.theme-card-body > p { font-size: 14px; line-height: 1.9; color: var(--muted); }
.theme-card-body .theme-version { display: flex; gap: 16px; font-size: 12px; margin-top: 16px; }
.theme-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.theme-card-actions .plain-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.theme-download { margin-left: auto; }
.theme-thumbnail { padding: 24px 32px; background: #e8ece4; color: #26382d; border-bottom: 1px solid var(--line); }
.thumbnail-bar { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #b5c1b0; }
.thumbnail-bar span { width: 36px; height: 8px; background: #3e6650; margin-right: auto; }
.thumbnail-bar i { width: 24px; height: 4px; background: #7b8e7b; }
.thumbnail-content { display: grid; grid-template-columns: minmax(0, 1fr) 100px; gap: 24px; align-items: center; padding-top: 22px; }
.thumbnail-content strong { display: block; font: 36px/1.25 Georgia, serif; }
.thumbnail-content strong > span { display: block; font: 12px/1.8 var(--sans); margin-top: 4px; }
.thumbnail-content b { display: block; background: #b5c1b0; height: 3px; width: 100%; max-width: 112px; margin-top: 8px; }
.thumbnail-content b + b { max-width: 80px; }
.thumbnail-content em { display: block; width: 52px; height: 16px; margin-top: 16px; background: #3e6650; }
.thumbnail-chip { width: 76px; height: 76px; border: 2px solid #3e6650; outline: 6px dashed #7b8e7b; outline-offset: 4px; transform: rotate(-15deg); background: #d6ded2; display: grid; place-items: center; }
.thumbnail-chip span { font: 36px/1 Georgia, serif; }
.thumbnail-pixel { background: #e2edff; color: #082a61; }
.thumbnail-pixel .thumbnail-bar { border-bottom: 2px solid #829fc7; }
.thumbnail-pixel .thumbnail-bar span, .thumbnail-pixel .thumbnail-content em { background: #0057e5; }
.thumbnail-pixel .thumbnail-bar i, .thumbnail-pixel .thumbnail-content b { background: #829fc7; }
.thumbnail-pixel .thumbnail-content strong, .thumbnail-pixel .thumbnail-content strong > span, .thumbnail-pixel .thumbnail-chip span { font-family: "Fusion Pixel", var(--mono), var(--sans); }
.thumbnail-pixel .thumbnail-content strong > span { font-size: 16px; }
.thumbnail-pixel .thumbnail-chip { transform: none; border-color: #082a61; outline-color: #2995ff; background: #c4dfff; box-shadow: 6px 6px 0 #9ab7df; }
.thumbnail-pixel .thumbnail-content em { box-shadow: 3px 3px 0 #9ab7df; }
.thumbnail-custom { background: #e8eaf0; color: #384355; }
.theme-install { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 32px; border: 1px solid var(--line); background: var(--surface); margin-top: 48px; }
.theme-install h2 { font-size: 26px; margin-bottom: 12px; }
.theme-install p { color: var(--muted); font-size: 14px; line-height: 1.9; margin-top: 12px; }
.theme-upload { display: grid; gap: 12px; }
.theme-upload label { font-size: 14px; }
.theme-upload .button { justify-self: start; margin-top: 8px; }
.theme-preview-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--accent); background: var(--surface); padding: 20px 24px; margin-top: 24px; }
.theme-preview-banner p { display: grid; gap: 4px; }
.theme-preview-banner p span { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) {
  .admin-tabs { flex-wrap: wrap; }
  .theme-grid, .theme-install { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .theme-card-body { padding: 24px 20px; }
  .theme-thumbnail { padding: 20px 24px; }
  .theme-install { padding: 24px 20px; margin-top: 32px; }
  .theme-card-actions { gap: 12px; }
}
.page-main > .section-heading h1 { font-size: clamp(30px,3.5vw,44px); }
@media(max-width:760px) {
  .page-main > .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .management-form input,.management-form select,.management-form textarea,.editor-fields input,.editor-fields select,.editor-fields textarea { font-size: 16px; }
  .editor-columns .cm-editor { font-size: 16px; }
}
.checkbox-label { display: flex !important; align-items: center; gap: 12px; min-height: 44px; }
.checkbox-label input { width: 22px; height: 22px; min-height: 22px; flex: 0 0 auto; }
.comment-honeypot { display: none; }
.comments-section { border-top: 1px solid var(--line); padding-top: 44px; margin-top: 44px; }
.comment-list article,.moderation-list article { border-bottom: 1px solid var(--line); padding-block: 28px; }
.comment-list header,.moderation-list header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 24px; }
.comment-list time,.moderation-list time { color: var(--muted); font-size: 13px; }
.comment-body { white-space: pre-wrap; overflow-wrap: anywhere; margin-block: 16px; }
.comment-depth-1 { margin-left: 32px; border-left: 1px solid var(--line); padding-left: 20px; }
.comment-depth-2 { margin-left: 64px; border-left: 1px solid var(--line); padding-left: 20px; }
.friends-directory { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 64px; }
.friends-directory article { display: flex; align-items: flex-start; gap: 20px; border-top: 1px solid var(--line); padding-block: 28px; min-width: 0; }
.friends-directory article > div { min-width: 0; }
.friend-avatar { position: relative; display: grid; place-items: center; flex: 0 0 64px; width: 64px; height: 64px; background: var(--soft); color: var(--accent); font-size: 26px; font-weight: 600; }
.friend-avatar img { position: absolute; inset: 0; width: 64px; height: 64px; object-fit: contain; background: var(--bg); }
.friend-avatar img[hidden] { display: none; }
.friend-avatar img[data-icon-pending] { opacity: 0; }
.friends-directory h2 { font-size: 24px; margin-bottom: 12px; }
.friends-directory p { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.friend-group { color: var(--muted); font-size: 12px; }
@media(max-width:760px) { .friends-directory { grid-template-columns: 1fr; } .comment-depth-1 { margin-left: 12px; padding-left: 12px; } .comment-depth-2 { margin-left: 24px; padding-left: 12px; } }

/* Public pages share a wider, quieter scale; long-form reading keeps its measure. */
.site-header.wrap, .site-footer.wrap, .public-page.wrap { width: min(1328px, calc(100% - 96px)); }
.site-header { min-height: 112px; gap: 40px; }
.site-header nav a { font-size: 18px; }
.site-header .theme-toggle { font-size: 16px; }
.site-footer { padding-block: 40px; font-size: 16px; }
.site-footer .footer-meta a { min-height: 32px; }
.public-page { padding-block: 96px 112px; }
.public-page .page-heading { margin-bottom: 72px; }
.public-page .section-context { font-size: 20px; font-family: var(--serif); margin-bottom: 24px; }
.public-page .page-heading h1 { font-size: clamp(40px, 4.5vw, 64px); line-height: 1.4; font-weight: 400; }
.public-page .page-heading > p:last-of-type:not(.section-context) { font-size: 20px; line-height: 1.9; max-width: 40em; }
.public-page .article-row { padding-block: 36px; }
.public-page .article-row h3 { font-size: 28px; margin-bottom: 16px; }
.public-page .article-row-main > p, .public-page .project-index article p { font-size: 18px; }
.public-page .article-date, .public-page .article-date > span, .public-page .article-category, .public-page .article-tags { font-size: 16px; }
.public-page .results-heading, .public-page .pagination, .public-page .text-link, .public-page .back-link { font-size: 16px; }
.public-page .small-heading, .public-page .category-list a, .public-page .about-margin h2, .public-page .about-margin a { font-size: 18px; }
.public-page .blog-tools form label, .public-page .prototype-note { font-size: 16px; }
.public-page .project-index article { padding-block: 64px; }
.public-page .project-index h2 { font-size: 40px; }
.public-page .status-label { font-size: 16px; }
.public-page .about-layout .prose { font-size: 20px; }
.public-page .about-layout .prose h2 { font-size: 32px; }
.public-page .friends-empty p { font-size: 18px; }
@media (max-width: 1050px) {
  .site-header.wrap, .site-footer.wrap, .public-page.wrap { width: calc(100% - 64px); }
  .site-header { gap: 16px; min-height: 100px; flex-wrap: wrap; padding-block: 16px; }
  .site-header nav { order: 4; width: 100%; margin: 0; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
  .site-header .theme-toggle { margin-left: auto; }
  .public-page { padding-block: 72px 88px; }
}
@media (max-width: 760px) {
  .site-header.wrap, .site-footer.wrap, .public-page.wrap { width: calc(100% - 40px); }
  .site-header { min-height: 88px; gap: 0; }
  .site-header .nav-toggle, .site-header nav a, .site-header .theme-toggle [data-theme-label] { font-size: 16px; }
  .site-footer { flex-direction: column; gap: 24px; font-size: 16px; padding-block: 32px; }
  .site-footer .footer-meta { align-self: start; text-align: left; }
  .site-footer .footer-links { justify-content: flex-start; }
  .public-page { padding-block: 48px 64px; }
  .public-page .page-heading { margin-bottom: 40px; }
  .public-page .section-context { font-size: 18px; margin-bottom: 20px; }
  .public-page .page-heading h1 { font-size: 36px; }
  .public-page .page-heading > p:last-of-type:not(.section-context) { font-size: 18px; }
  .public-page .article-row h3 { font-size: 24px; }
  .public-page .project-index article { padding-block: 40px; }
  .public-page .project-index h2 { font-size: 32px; }
  .public-page .about-layout .prose { font-size: 18px; }
}
@media (max-width: 360px) {
  .site-header .brand { font-size: 22px; gap: 12px; }
  .site-header .brand-mark { width: 44px; height: 44px; }
  .site-header .theme-toggle [data-theme-label] { display: none; }
  .js .site-header .theme-toggle { margin-left: 4px; padding-left: 12px; }
}

.interests-form { max-width: 1040px; }
.interests-success { color: var(--accent); }
.interests-form > section + section { margin-top: 48px; }
.interest-section-heading { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.interest-section-heading h2 { margin: 0 0 8px; font: 400 28px/1.4 var(--serif); }
.interest-section-heading > button { flex-shrink: 0; }
.interest-category-list { display: grid; gap: 16px; }
.interest-category-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(100px, .6fr) auto; gap: 20px; align-items: center; padding: 20px 24px; border: 2px solid var(--line); background: var(--bg); }
.interest-category-row label { margin: 0; }
.interest-category-row .row-actions { flex-wrap: wrap; }
.interest-editor-list { display: grid; gap: 32px; }
.interest-editor { min-width: 0; margin: 0; padding: 24px; border: 2px solid var(--line); background: var(--bg); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.interest-editor .interest-description-field, .interest-editor .row-actions { grid-column: 1 / -1; }
.interest-editor legend { font-size: 20px; padding-inline: 8px; }
.interest-editor label { font-size: 16px; }
.skill-icon { display: inline-block; width: 24px; height: 24px; flex: 0 0 24px; fill: currentColor; vertical-align: middle; }
.interest-icon-field { grid-column: 1 / -1; min-width: 0; }
.interest-icon-current { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.interest-icon-current > span { overflow-wrap: anywhere; min-width: 0; }
.interest-icon-current > button { margin-left: auto; }
.interests-form button:disabled { opacity: .5; cursor: not-allowed; }
.interest-category-row button, .interest-editor button, .icon-picker-heading button { min-height: 44px; }
.skill-icon-picker { width: min(800px, calc(100% - 32px)); max-height: calc(100dvh - 48px); margin: auto; padding: 28px; border: 2px solid var(--accent); border-radius: 0; background: var(--surface); color: var(--text); box-shadow: 8px 8px 0 var(--pixel-shadow, var(--line)); overflow-y: auto; }
.skill-icon-picker::backdrop { background: rgb(0 0 0 / .55); }
.icon-picker-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 20px; }
.icon-picker-heading h2 { font: 400 28px/1.4 var(--serif); margin: 0 0 8px; }
.icon-picker-heading button { min-width: 44px; padding: 0; font-size: 28px; }
.icon-picker-filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
.icon-picker-filters label { display: grid; gap: 8px; }
.skill-icon-picker input, .skill-icon-picker select { width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--line); border-radius: 0; padding: 10px 12px; background: var(--bg); color: var(--text); font: inherit; }
.icon-picker-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px; margin: 20px 0; }
.icon-picker-results button { min-width: 0; min-height: 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 12px 8px; border: 1px solid var(--line); border-radius: 0; color: var(--text); background: var(--bg); font: inherit; cursor: pointer; }
.icon-picker-results button:hover, .icon-picker-results button[aria-pressed="true"] { border-color: var(--accent); background: var(--soft); color: var(--accent); }
.icon-picker-results span { max-width: 100%; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.icon-picker-results .skill-icon { width: 28px; height: 28px; flex-basis: 28px; }
.icon-picker-credit { padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--line); }
.skill-icon-picker [hidden], .interests-form [hidden] { display: none !important; }
.interest-controls { display: none; }
.js .interest-controls { display: flex; }
.js button.interest-controls { display: inline-flex; }
@media (max-width: 760px) {
  .interest-editor { padding: 20px 16px; grid-template-columns: 1fr; }
  .interest-section-heading { flex-direction: column; gap: 12px; }
  .interest-category-row { padding: 16px; grid-template-columns: 1fr; gap: 12px; }
  .skill-icon-picker { padding: 20px 16px; }
  .icon-picker-filters { grid-template-columns: 1fr; }
}

/* Publishing uses the existing theme tokens and keeps setup steps in reading order. */
.obsidian-page .page-heading { margin-bottom: 32px; }
.obsidian-section { border-top: 1px solid var(--line); padding-block: 28px; }
.obsidian-section h2, .obsidian-authorization h2 { font-size: 23px; margin-bottom: 16px; }
.obsidian-section ol { padding-left: 24px; max-width: 48em; margin-block: 0 24px; }
.obsidian-section li + li { margin-top: 12px; }
.obsidian-section label, .obsidian-authorization label { display: block; max-width: 640px; }
.obsidian-section input, .obsidian-authorization input { display: block; margin-top: 8px; }
.obsidian-section .field-help { margin-block: 12px 20px; max-width: 48em; }
.obsidian-authorization { border: 2px solid var(--accent); padding: 24px; margin-block: 24px; }
.obsidian-authorization p { margin-block: 12px; }
.obsidian-authorization input { font-family: var(--mono); }
.project-detail.project-detail-without-note { grid-template-columns: minmax(0, 760px); }
