/* =========================================================
   不落月工作室 — corporate site
   white, black, one green accent
   ========================================================= */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-2: #424245;
  --muted: #6e6e73;
  --faint: #86868b;
  --line: #d2d2d7;
  --line-2: #b8b8bd;
  --accent: #0a7a5a;
  --accent-hover: #075e45;
  --accent-soft: #e8f5ee;
  --mint: #6ee7b7;

  --radius: 10px;
  --wrap: 760px;
  --wide: 1200px;
}

html[data-theme="dark"] {
  --bg: #000000;
  --bg-alt: #0b0b0b;
  --surface: #111111;
  --text: #f5f5f7;
  --text-2: #d2d2d7;
  --muted: #a1a1a6;
  --faint: #6e6e73;
  --line: #2c2c2e;
  --line-2: #3a3a3c;
  --accent: #6ee7b7;
  --accent-hover: #9af0cc;
  --accent-soft: #102a21;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .25s ease, color .25s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- shell ---------- */
.site { min-height: 100vh; display: flex; flex-direction: column; }
.site > main { flex: 1; }

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: relative;
  z-index: 60;
}
.header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 24px;
  height: 78px;
  display: flex;
  align-items: center;
  gap: 38px;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-mark {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--text);
  font-family: var(--font-serif); font-size: 21px; font-weight: 600;
  line-height: 1; color: var(--text);
  transition: background-color .15s ease, color .15s ease;
}
.brand-mark:hover { background: var(--text); color: var(--bg); }
.brand-copy { display: flex; flex-direction: column; gap: 1px; line-height: 1; }
.brand-copy strong { font-family: var(--font-serif); font-size: 17px; font-weight: 600; letter-spacing: .02em; }
.brand-copy small { font-family: var(--font-mono); font-size: 9px; letter-spacing: .11em; color: var(--faint); }
.site-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
}
.site-title:hover { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a {
  font-size: 13.5px;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav a:hover { color: var(--text); border-color: var(--line-2); }
.nav a.is-active { color: var(--text); border-color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; border-radius: 50%;
  color: var(--muted); cursor: pointer;
  transition: color .15s ease, background-color .15s ease;
}
.icon-btn:hover { color: var(--text); background: var(--line); }
.icon-btn .icon { width: 18px; height: 18px; }
#themeToggle .icon-moon { display: none; }
html[data-theme="dark"] #themeToggle .icon-sun { display: none; }
html[data-theme="dark"] #themeToggle .icon-moon { display: inline-flex; }
.menu-btn { display: none; }

.reading-progress {
  position: fixed; left: 0; top: 0; height: 2px; width: 0; z-index: 70;
  background: var(--accent); opacity: 0; transition: opacity .2s ease;
}
body.is-post .reading-progress { opacity: 1; }

/* mobile menu: a small dropdown, not a full-screen statement */
.mobile-menu {
  position: fixed; z-index: 80;
  top: 78px; left: 16px; right: 16px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  padding: 8px;
}
.mobile-menu-inner { display: flex; flex-direction: column; }
.mobile-link {
  display: flex; align-items: baseline; gap: 12px;
  padding: 9px 10px; border-radius: 2px;
  font-size: 15px; line-height: 1.4; color: var(--text);
}
.mobile-link:hover { background: var(--line); }
.mobile-link .idx { font-size: 11px; color: var(--faint); width: 18px; }
.mobile-link.is-active { color: var(--accent); }
.mobile-menu-head, .mobile-menu-foot { display: none; }

/* ---------- generic ---------- */
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.kicker { font-size: 11px; color: var(--faint); letter-spacing: .08em; }
.muted { color: var(--muted); }
.dot { color: var(--faint); margin: 0 6px; }

/* ---------- home ---------- */
.home { max-width: var(--wrap); margin: 0 auto; padding: 52px 24px 76px; }

.intro {
  display: flex; align-items: flex-start; gap: 16px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.intro-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-2); object-fit: cover; flex-shrink: 0;
  background: var(--surface);
}
.intro-body { min-width: 0; }
.intro-text {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-2);
}
.intro-text strong { color: var(--text); font-weight: 600; }
.intro-links { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }
.intro-links a { color: var(--muted); }
.intro-links a:hover { color: var(--accent); }

.home-notice {
  margin: 0 0 4px; padding: 9px 12px;
  border-left: 2px solid var(--accent);
  background: var(--surface);
  font-size: 13.5px; color: var(--text-2); line-height: 1.7;
}

.list-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 34px 0 10px;
}
.list-head h2 { font-size: 15px; font-weight: 600; margin: 0; color: var(--text); }
.list-head .list-note { font-size: 12.5px; color: var(--faint); }

.entry { padding: 22px 0 24px; border-bottom: 1px solid var(--line); }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.entry-title {
  font-size: 20px; font-weight: 600; line-height: 1.5;
  margin: 7px 0 6px; letter-spacing: 0;
}
.entry-title a:hover { color: var(--accent); }
.entry-excerpt {
  margin: 0 0 8px; font-size: 14px; color: var(--muted); line-height: 1.75;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.entry-tags, .post-tags { display: flex; flex-wrap: wrap; gap: 0; font-size: 12.5px; }
.tag-sep { color: var(--faint); margin: 0 1px; }
.tag { color: var(--muted); }
.tag:hover { color: var(--accent); }
.pin-label { font-size: 11.5px; color: var(--accent); }

.pagination { display: flex; align-items: center; gap: 4px; padding-top: 28px; }
.page-num {
  min-width: 32px; height: 30px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--muted); border-radius: 2px;
}
.page-num:hover { background: var(--line); color: var(--text); }
.page-num.is-current { background: var(--text); color: var(--bg); }
.pagination span { color: var(--faint); padding: 0 2px; }

.empty { padding: 54px 0; color: var(--muted); font-size: 14px; }

/* ---------- article ---------- */
.post { max-width: var(--wrap); margin: 0 auto; padding: 44px 24px 76px; }
.back-link { font-size: 13px; color: var(--muted); display: inline-block; margin-bottom: 22px; }
.back-link:hover { color: var(--accent); }
.post-title {
  font-size: 30px; line-height: 1.45; font-weight: 600;
  margin: 0 0 10px; letter-spacing: -.005em;
}
.post-excerpt { margin: 0 0 14px; font-size: 15px; color: var(--muted); line-height: 1.8; }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px; font-size: 12.5px; color: var(--muted); }
.post-cover { margin: 26px 0 0; }
.post-cover img { width: 100%; border: 1px solid var(--line); border-radius: 2px; }

.toc {
  margin: 30px 0 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px 12px;
  background: var(--surface);
}
.toc-head { font-size: 12px; color: var(--faint); margin-bottom: 6px; }
.toc nav { display: flex; flex-direction: column; }
.toc-item { font-size: 13.5px; color: var(--text-2); padding: 3px 0; line-height: 1.7; }
.toc-item:hover { color: var(--accent); }
.toc-item.level-3 { padding-left: 16px; font-size: 13px; color: var(--muted); }

.post-body { font-size: 16.5px; line-height: 1.9; color: var(--text-2); overflow-wrap: break-word; padding-top: 22px; }
.post-body > p { margin: 0 0 1.45em; }
.post-body > p:first-of-type { margin-top: 0; }
.post-body h2 {
  font-size: 21px; font-weight: 600; line-height: 1.5; color: var(--text);
  margin: 2.1em 0 .7em; scroll-margin-top: 24px;
}
.post-body h3 { font-size: 17.5px; font-weight: 600; color: var(--text); margin: 1.8em 0 .6em; scroll-margin-top: 24px; }
.post-body h4 { font-size: 16.5px; font-weight: 600; color: var(--text); margin: 1.5em 0 .5em; }
.post-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.post-body a:hover { color: var(--accent-hover); }
.post-body strong { color: var(--text); font-weight: 600; }
.post-body em { font-style: normal; }
.post-body ul, .post-body ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.post-body li { margin: .35em 0; }
.post-body blockquote {
  margin: 1.7em 0;
  padding: 2px 0 2px 16px;
  border-left: 2px solid var(--line-2);
  color: var(--muted);
  font-size: 15.5px;
}
.post-body blockquote p { margin: .4em 0; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.post-body img { border: 1px solid var(--line); border-radius: 2px; margin: 1.8em 0; cursor: zoom-in; }
.post-body figure { margin: 1.8em 0; }
.post-body figcaption { text-align: center; font-size: 12.5px; color: var(--faint); margin-top: 8px; }
.post-body table { width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: 14px; }
.post-body th, .post-body td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.post-body th { font-weight: 600; background: var(--bg); color: var(--text); }

.post-body code {
  font-family: var(--font-mono); font-size: .88em;
  background: #f2f2ef; color: #24292f;
  padding: .12em .36em; border-radius: 2px;
}
html[data-theme="dark"] .post-body code { background: #23262a; color: #d6d9dc; }
.post-body pre {
  position: relative;
  margin: 1.8em 0; padding: 14px 16px;
  background: #f6f7f8; border: 1px solid #e4e6e8;
  border-radius: 3px; overflow-x: auto;
  font-size: 13px; line-height: 1.7; color: #24292f;
}
html[data-theme="dark"] .post-body pre { background: #15181b; border-color: #2c3034; color: #dfe3e6; }
.post-body pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.hljs-comment, .hljs-quote { color: #6a737d; font-style: normal; }
.hljs-keyword, .hljs-selector-tag, .hljs-title, .hljs-section { color: #d73a49; }
.hljs-string, .hljs-attr, .hljs-template-variable { color: #032f62; }
.hljs-number, .hljs-literal { color: #005cc5; }
.hljs-built_in, .hljs-type, .hljs-class { color: #6f42c1; }
.hljs-function, .hljs-name { color: #22863a; }
.hljs-variable, .hljs-params { color: #24292f; }
html[data-theme="dark"] .hljs-comment { color: #7d858c; }
html[data-theme="dark"] .hljs-keyword, html[data-theme="dark"] .hljs-title { color: #f97583; }
html[data-theme="dark"] .hljs-string { color: #9ecbff; }
html[data-theme="dark"] .hljs-number { color: #79b8ff; }
html[data-theme="dark"] .hljs-function, html[data-theme="dark"] .hljs-name { color: #85e89d; }
html[data-theme="dark"] .hljs-variable, html[data-theme="dark"] .hljs-params { color: #e6e6e3; }
.copy-code {
  position: absolute; top: 8px; right: 8px;
  font-family: var(--font-mono); font-size: 10px;
  color: #6a737d; background: #fff; border: 1px solid #e4e6e8;
  padding: 2px 6px; border-radius: 2px; cursor: pointer; opacity: 0;
  transition: opacity .15s ease;
}
.post-body pre:hover .copy-code, .copy-code:focus { opacity: 1; }
html[data-theme="dark"] .copy-code { background: #202428; border-color: #3a3f44; color: #9aa0a6; }

.article-foot {
  margin-top: 42px; padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.article-actions { display: flex; align-items: center; gap: 16px; font-size: 12.5px; color: var(--muted); }
.action-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; color: var(--muted);
}
.action-btn .icon { width: 15px; height: 15px; }
.action-btn:hover, .action-btn.liked { color: var(--accent); }
.like-count { font-variant-numeric: tabular-nums; }

.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  border-top: 1px solid var(--line); margin-top: 22px; padding-top: 18px;
}
.post-nav-item { display: flex; flex-direction: column; gap: 3px; }
.post-nav-item.next { text-align: right; }
.nav-label { font-size: 11.5px; color: var(--faint); }
.nav-title { font-size: 14.5px; color: var(--text); }
.post-nav-item:hover .nav-title { color: var(--accent); }

.related { margin-top: 38px; padding-top: 18px; border-top: 1px solid var(--line); }
.related h2 { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.related-list { display: flex; flex-direction: column; }
.related-list a { display: flex; gap: 12px; padding: 6px 0; font-size: 14px; color: var(--text-2); }
.related-list a:hover { color: var(--accent); }
.related-list time { color: var(--faint); font-size: 12px; flex-shrink: 0; width: 86px; }

/* comments */
.comments { margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line); }
.comments-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.comments-head h2 { font-size: 16px; font-weight: 600; margin: 0; }
.comment-count { font-size: 12px; color: var(--faint); }
.comment { display: flex; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--line); color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.comment-main { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 2px; }
.comment-head strong { font-size: 13px; font-weight: 600; }
.comment-head span { font-size: 11.5px; color: var(--faint); }
.comment-content { font-size: 14px; line-height: 1.8; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-reply {
  margin-top: 10px; padding: 8px 12px;
  background: var(--bg); border-left: 2px solid var(--line-2);
  font-size: 13.5px;
}
.reply-label { font-size: 11px; color: var(--faint); display: block; margin-bottom: 2px; }
.comment-reply div { color: var(--text-2); white-space: pre-wrap; }

.comment-form { margin-top: 24px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field span { font-size: 12px; color: var(--muted); }
.field input, .field textarea {
  font-family: inherit; font-size: 14px; color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 2px;
  padding: 9px 11px; width: 100%; resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-note { font-size: 11.5px; color: var(--faint); margin: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 18px; border-radius: 2px; border: 1px solid transparent;
  font-size: 13.5px; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn.primary { background: #f0efea; color: var(--text); border-color: #d5d4cd; }
.btn.primary:hover { border-color: var(--accent); color: var(--accent); background: #f7f7f3; }
.btn.ghost { border-color: var(--line-2); color: var(--text-2); background: none; }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.form-status { font-size: 12.5px; margin-top: 10px; color: var(--accent); }
.form-status.ok { color: #3f7a4f; }

/* ---------- list pages ---------- */
.page { max-width: var(--wrap); margin: 0 auto; padding: 48px 24px 80px; }
.page-head { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 26px; font-weight: 600; margin: 0 0 6px; letter-spacing: -.005em; }
.page-desc { margin: 0; font-size: 13.5px; color: var(--muted); }
.page-desc a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* archive */
.year-block { padding-top: 34px; }
.year-head { display: flex; align-items: baseline; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.year { font-size: 18px; font-weight: 600; color: var(--text); }
.year-count { font-size: 12px; color: var(--faint); }
.archive-row {
  display: grid; grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 16px; align-items: baseline;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.archive-row:hover .archive-title { color: var(--accent); }
.archive-date { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.archive-title { font-size: 15px; color: var(--text); }
.archive-cat { font-size: 12px; color: var(--faint); }

/* tags */
.tags-block { padding-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.tag-link { font-size: 14px; color: var(--text-2); border-bottom: 1px solid var(--line-2); padding-bottom: 1px; }
.tag-link span { font-size: 11.5px; color: var(--faint); margin-left: 3px; }
.tag-link:hover { color: var(--accent); border-color: var(--accent); }

.categories-block { padding-top: 40px; }
.block-title { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.category-list { display: flex; flex-direction: column; }
.category-row {
  display: flex; align-items: baseline; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.category-row:hover { color: var(--accent); }
.category-count { font-size: 12px; color: var(--faint); margin-left: auto; }

/* list page posts (tag/category/search) */
.list-post { padding: 18px 0; border-bottom: 1px solid var(--line); }
.list-post-meta { font-size: 12px; color: var(--muted); }
.list-post h2 { font-size: 17px; font-weight: 600; margin: 4px 0 4px; }
.list-post h2 a:hover { color: var(--accent); }
.list-post p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* about */
.about { max-width: var(--wrap); margin: 0 auto; padding: 48px 24px 80px; }
.about-head { display: flex; align-items: center; gap: 18px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.about-avatar { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line-2); object-fit: cover; }
.about-name { font-size: 24px; font-weight: 600; margin: 0 0 4px; }
.about-sub { margin: 0; font-size: 13px; color: var(--muted); }
.about-links { display: flex; gap: 14px; margin-top: 6px; font-size: 12.5px; }
.about-links a { color: var(--muted); }
.about-links a:hover { color: var(--accent); }
.about-body { padding-top: 26px; font-size: 16px; line-height: 1.9; color: var(--text-2); }
.about-body h2 { font-size: 19px; font-weight: 600; margin: 1.8em 0 .6em; color: var(--text); }
.about-body h3 { font-size: 16.5px; font-weight: 600; margin: 1.5em 0 .5em; color: var(--text); }
.about-body p { margin: 0 0 1.35em; }
.about-body ul { padding-left: 1.4em; margin: 0 0 1.35em; }
.about-body li { margin: .3em 0; }
.about-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* links */
.links-list { padding-top: 12px; }
.link-row { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); }
.link-row:hover h3 { color: var(--accent); }
.link-row h3 { font-size: 16px; font-weight: 600; margin: 0 0 3px; }
.link-row p { margin: 0 0 3px; font-size: 13px; color: var(--muted); }
.link-url { font-size: 12px; color: var(--faint); }

/* 404 */
.error { max-width: var(--wrap); margin: 0 auto; padding: 100px 24px 120px; }
.error-code { font-size: 15px; color: var(--faint); margin: 0 0 8px; font-family: var(--font-mono); }
.error h1 { font-size: 26px; font-weight: 600; margin: 0 0 10px; }
.error p { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.error-actions { display: flex; gap: 16px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 24px 34px;
}
.footer-inner {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 24px;
  font-size: 12.5px; color: var(--muted);
}
.footer-left { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover, .footer-meta a:hover { color: var(--accent); }
.footer-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- search ---------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(6px);
  padding: 14vh 20px 40px;
  overflow-y: auto;
}
html[data-theme="dark"] .search-overlay { background: rgba(17, 18, 20, .96); }
.search-panel { max-width: 620px; margin: 0 auto; }
.search-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 10px 14px;
}
.search-icon { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.search-icon .icon { width: 18px; height: 18px; }
#searchInput {
  flex: 1; background: none; border: 0; outline: none;
  font-family: inherit; font-size: 16px; color: var(--text);
  padding: 3px 0;
}
#searchInput::placeholder { color: var(--faint); }
.search-close {
  font-size: 11px; color: var(--muted);
  border: 1px solid var(--line); background: none;
  padding: 1px 5px; border-radius: 2px; cursor: pointer;
}
.search-results { padding-top: 18px; }
.search-hint { color: var(--muted); font-size: 13px; }
.search-item { display: block; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.search-item h4 { font-size: 15px; font-weight: 600; margin: 0 0 3px; }
.search-item p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.7; }
.search-item .hit { color: var(--accent); background: var(--accent-soft); padding: 0 2px; }
.search-item:hover h4 { color: var(--accent); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(8, 9, 10, .9);
  display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out;
}
.lightbox img { max-width: 94vw; max-height: 90vh; object-fit: contain; }

/* ---------- admin ---------- */
.admin-body { background: var(--bg); }
.admin-shell { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar {
  border-right: 1px solid var(--line);
  padding: 20px 14px;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--surface);
  position: sticky; top: 0; height: 100vh;
}
.admin-brand { display: flex; align-items: center; gap: 9px; padding: 2px 8px 20px; }
.admin-brand-img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.admin-brand span { font-size: 16px; font-weight: 600; }
.admin-nav-link {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 2px; font-size: 13px; color: var(--muted);
}
.admin-nav-link:hover { background: var(--line); color: var(--text); }
.admin-nav-link.is-active { background: var(--text); color: var(--bg); }
.admin-sidebar-foot { margin-top: auto; font-size: 11px; color: var(--faint); padding: 10px; line-height: 1.9; }
.admin-main { padding: 28px 32px 56px; min-width: 0; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.admin-title { font-size: 22px; font-weight: 600; margin: 0; }
.admin-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.admin-actions { display: flex; gap: 8px; }
.admin-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.stat-tile { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 14px 16px; }
.stat-tile span { font-size: 11px; color: var(--muted); display: block; margin-bottom: 4px; }
.stat-tile b { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 11px; padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
.admin-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table a { color: var(--text); }
.admin-table a:hover { color: var(--accent); }
.badge { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 2px; border: 1px solid var(--line-2); color: var(--muted); }
.badge.green { color: #3f7a4f; border-color: #a9c3b0; }
.badge.red { color: #a8402f; border-color: #d3aaa2; }
.admin-form { display: grid; gap: 14px; }
.admin-form .field { margin: 0; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 18px; align-items: start; }
.editor-main { display: flex; flex-direction: column; gap: 10px; }
.editor-toolbar {
  display: flex; flex-wrap: wrap; gap: 3px; padding: 6px;
  border: 1px solid var(--line-2); border-bottom: 0;
  border-radius: 2px 2px 0 0; background: var(--bg);
}
.tool-btn {
  font-size: 11.5px; padding: 3px 7px; border: 1px solid transparent;
  background: none; border-radius: 2px; cursor: pointer; color: var(--text-2);
}
.tool-btn:hover { background: var(--surface); border-color: var(--line-2); }
.editor-textarea {
  font-family: var(--font-mono); font-size: 13px; line-height: 1.7;
  min-height: 540px; padding: 14px;
  border: 1px solid var(--line-2); border-radius: 0 0 2px 2px;
  background: var(--surface); color: var(--text); resize: vertical; width: 100%; outline: none;
}
.editor-textarea:focus { border-color: var(--accent); }
.editor-preview { border: 1px solid var(--line); border-radius: 2px; padding: 18px; min-height: 200px; background: var(--surface); }
.editor-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 20px; }
.side-field label { font-size: 11px; color: var(--muted); display: block; margin-bottom: 4px; }
.side-field input, .side-field select, .side-field textarea {
  width: 100%; padding: 7px 9px; border: 1px solid var(--line-2); border-radius: 2px;
  background: var(--surface); color: var(--text); font-family: inherit; font-size: 13px;
}
.check-row { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); }
.check-row input { width: auto; }
.admin-login { max-width: 340px; margin: 14vh auto 0; padding: 0 20px; }
.login-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.login-card h1 { font-size: 21px; font-weight: 600; margin: 0 0 4px; }
.login-card p { font-size: 12.5px; color: var(--muted); margin: 0 0 20px; }
.admin-note { font-size: 12px; color: var(--muted); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.media-item { border: 1px solid var(--line); border-radius: 2px; overflow: hidden; background: var(--surface); }
.media-item img { width: 100%; height: 110px; object-fit: cover; }
.media-meta { padding: 6px 8px; font-size: 10.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 6px; }
.media-meta button { border: 0; background: none; color: #a8402f; cursor: pointer; font-size: 10.5px; }
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(12px);
  background: var(--text); color: var(--bg); font-size: 12.5px; padding: 8px 16px; border-radius: 3px;
  opacity: 0; pointer-events: none; transition: all .2s ease; z-index: 120;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.title-input {
  font-family: var(--font-sans); font-size: 22px; font-weight: 600;
  border: 0; border-bottom: 1px solid var(--line-2);
  background: none; padding: 8px 0; outline: none; color: var(--text); width: 100%;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-inner { gap: 0; }
  .header-actions { margin-left: auto; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; flex-direction: row; overflow-x: auto; padding: 10px; }
  .admin-brand, .admin-sidebar-foot { display: none; }
  .admin-main { padding: 18px; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .editor-layout { grid-template-columns: 1fr; }
  .editor-side { position: static; }
}

@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .header-inner { height: 56px; padding: 0 16px; }
  .site-title { font-size: 17px; }
  .mobile-menu { top: 56px; }
  .home, .page, .post, .about { padding-left: 18px; padding-right: 18px; }
  .home { padding-top: 34px; }
  .intro { gap: 12px; }
  .intro-avatar { width: 40px; height: 40px; }
  .entry-title { font-size: 18px; }
  .post-title { font-size: 24px; }
  .post { padding-top: 30px; }
  .post-body { font-size: 16px; line-height: 1.85; }
  .post-body h2 { font-size: 19px; }
  .toc { padding: 12px 14px; }
  .form-row.two { grid-template-columns: 1fr; gap: 0; }
  .post-nav { grid-template-columns: 1fr; gap: 12px; }
  .post-nav-item.next { text-align: left; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .archive-row { grid-template-columns: 50px minmax(0, 1fr); }
  .archive-cat { display: none; }
  .copy-code { opacity: .65; }
  .search-overlay { padding-top: 9vh; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .article-foot, .post-nav, .related, .comments, .toc, .back-link { display: none; }
  body { background: #fff; color: #000; }
  .post { max-width: none; padding: 0; }
  .post-body { font-size: 11pt; line-height: 1.7; }
}

/* =========================================================
   不落月工作室 — editorial home
   ========================================================= */

.studio-home {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 24px 8px;
}

.studio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 410px);
  gap: 64px;
  align-items: end;
  padding: 76px 0 84px;
  border-bottom: 1px solid var(--line);
}

.studio-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--muted);
}
.dot-mark {
  width: 7px; height: 7px;
  display: inline-block;
  background: var(--accent);
}

.studio-hero h1 {
  margin: 26px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(44px, 5.6vw, 72px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.045em;
  color: var(--text);
}
.studio-hero h1 span { color: var(--accent); }

.studio-lead {
  max-width: 540px;
  margin: 28px 0 0;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-2);
}
.studio-lead-sub {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

.studio-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.studio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  background: transparent;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.4;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.studio-btn:hover { border-color: var(--text); }
.studio-btn-primary {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}
.studio-btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.studio-btn .arrow { font-family: var(--font-mono); font-size: 12px; }

.studio-footnote {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 46px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--faint);
}

.studio-ledger {
  position: relative;
  padding: 22px 24px 20px;
  border: 1px solid var(--line-2);
  background: var(--surface);
}
.ledger-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .08em;
  color: var(--faint);
}
.ledger-name {
  margin: 22px 0 18px;
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.03em;
}
.ledger-name span {
  display: block;
  margin-top: 5px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .18em;
  color: var(--muted);
}
.ledger-list { border-top: 1px solid var(--line-2); }
.ledger-list > div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.ledger-key { font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); }
.ledger-list p { margin: 0; font-size: 13.5px; color: var(--text-2); }
.ledger-list a { color: var(--text); border-bottom: 1px solid var(--line-2); }
.ledger-list a:hover { color: var(--accent); border-color: var(--accent); }
.ledger-note {
  margin: 18px 0 0;
  font-family: var(--font-serif);
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.studio-section {
  padding: 82px 0 88px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}
.studio-section-head {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 170px;
  gap: 30px;
  align-items: end;
  margin-bottom: 40px;
}
.section-index {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .09em;
  color: var(--muted);
}
.studio-section-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.2vw, 40px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.025em;
}
.section-note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
}
.text-link {
  justify-self: end;
  font-size: 12.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  white-space: nowrap;
}
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.text-link span { font-family: var(--font-mono); margin-left: 5px; }

.work-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, .72fr);
  gap: 52px;
  align-items: center;
}
.work-visual {
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line-2);
  background: var(--surface);
}
.work-visual img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}
.work-visual figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 2px 1px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .04em;
  color: var(--faint);
}
.work-copy { min-width: 0; }
.work-title-row { display: flex; align-items: center; gap: 13px; }
.work-icon {
  width: 44px; height: 44px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.work-copy h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.03em;
}
.work-ver {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .06em;
  color: var(--faint);
}
.work-lead {
  margin: 20px 0 0;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--text-2);
}
.work-facts {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-2);
}
.work-facts li {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.7;
}
.work-facts span { color: var(--faint); font-family: var(--font-mono); font-size: 10px; }
.work-facts p { margin: 0; color: var(--text-2); }
.work-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
}

.practice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 64px;
  align-items: start;
}
.practice-list { border-top: 1px solid var(--line-2); }
.practice-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0 21px;
  border-bottom: 1px solid var(--line);
}
.practice-num { font-family: var(--font-mono); font-size: 10px; color: var(--faint); padding-top: 5px; }
.practice-item h3 {
  margin: 0 0 5px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.02em;
}
.practice-item p { margin: 0; max-width: 520px; font-size: 13.5px; line-height: 1.8; color: var(--muted); }
.practice-note {
  padding: 18px 20px 20px;
  border-left: 2px solid var(--accent);
  background: var(--surface);
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-2);
}
.note-label {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  color: var(--faint);
}
.practice-note p { margin: 0 0 12px; }
.practice-note p:last-child { margin-bottom: 0; }
.practice-note a { color: var(--accent); border-bottom: 1px solid var(--accent); }

.journal-list { border-top: 1px solid var(--line-2); }
.journal-row {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) 86px;
  gap: 18px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.journal-row time { font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); }
.journal-title {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.5;
  color: var(--text);
}
.journal-row:hover .journal-title { color: var(--accent); }
.journal-cat { text-align: right; font-size: 11.5px; color: var(--muted); }

.studio-contact { padding: 70px 0 66px; border-bottom: 1px solid var(--line); }
.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 44px;
}
.contact-row h2 {
  margin: 18px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.6vw, 46px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.03em;
}
.contact-links { display: flex; flex-direction: column; min-width: 160px; }
.contact-links a {
  padding: 9px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 13px;
  color: var(--text-2);
}
.contact-links a:hover { color: var(--accent); border-color: var(--accent); }
.contact-links span { float: right; font-family: var(--font-mono); font-size: 11px; color: var(--faint); }

/* studio typography on inner pages */
.page-head .page-kicker {
  margin: 0 0 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--muted);
}
.page-head h1 {
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1.3;
  letter-spacing: -.03em;
}
.post-title {
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1.38;
  letter-spacing: -.03em;
}
.about-name {
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1.3;
  letter-spacing: -.03em;
}
.entry-title, .list-post h2, .archive-title { font-family: var(--font-serif); }
.year { font-family: var(--font-serif); font-size: 22px; }
.related h2, .comments-head h2 { font-family: var(--font-serif); }
.btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* footer */
.footer-inner { max-width: var(--wide); }
.site-footer { padding-top: 28px; padding-bottom: 38px; }

@media (max-width: 980px) {
  .studio-hero { grid-template-columns: 1fr; gap: 40px; padding: 58px 0 64px; }
  .studio-ledger { max-width: 500px; }
  .studio-section { padding: 66px 0 72px; }
  .studio-section-head { grid-template-columns: 1fr auto; gap: 12px 24px; }
  .studio-section-head .section-note { grid-column: 1 / -1; max-width: 480px; }
  .section-index { grid-column: 1 / -1; }
  .work-feature { grid-template-columns: 1fr; gap: 32px; }
  .practice-grid { grid-template-columns: 1fr; gap: 32px; }
  .practice-note { max-width: 560px; }
  .contact-row { flex-direction: column; align-items: flex-start; gap: 28px; }
  .contact-links { width: 100%; max-width: 500px; }
}

@media (max-width: 640px) {
  .header-inner { height: 64px; padding: 0 18px; }
  .brand-mark { width: 30px; height: 30px; font-size: 18px; }
  .brand-copy strong { font-size: 15px; }
  .mobile-menu { top: 64px; }
  .studio-home { padding: 0 18px; }
  .studio-hero { padding: 42px 0 52px; }
  .studio-hero h1 { font-size: 40px; margin-top: 22px; }
  .studio-lead { font-size: 15.5px; margin-top: 22px; }
  .studio-actions { flex-direction: column; align-items: stretch; }
  .studio-btn { justify-content: space-between; }
  .studio-footnote { margin-top: 34px; gap: 8px 14px; }
  .ledger-name { font-size: 42px; }
  .studio-section { padding: 52px 0 58px; }
  .studio-section-head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 28px; }
  .studio-section-head h2 { font-size: 30px; }
  .text-link { align-self: flex-start; }
  .work-copy h3 { font-size: 30px; }
  .work-facts li { grid-template-columns: 54px minmax(0, 1fr); }
  .practice-item h3 { font-size: 20px; }
  .journal-row { grid-template-columns: 1fr auto; gap: 3px 14px; padding: 14px 0; }
  .journal-row time { grid-column: 1 / -1; }
  .journal-title { font-size: 18px; }
  .journal-cat { font-size: 11px; }
  .contact-row h2 { font-size: 30px; }
  .page-head h1, .post-title, .about-name { font-size: 28px; }
  .post { padding-top: 30px; }
  .about-head { align-items: flex-start; gap: 14px; }
  .about-avatar { width: 52px; height: 52px; }
}

/* =========================================================
   corporate homepage
   ========================================================= */

html { scroll-padding-top: 72px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
html[data-theme="dark"] .site-header {
  background: rgba(0, 0, 0, .78);
  border-bottom-color: rgba(255, 255, 255, .14);
}
.header-inner {
  max-width: var(--wide);
  height: 52px;
  padding: 0 28px;
  gap: 32px;
}
.site-brand { gap: 9px; }
.brand-mark {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 5px;
  background: var(--text); color: var(--bg);
  font-family: var(--font-sans); font-size: 16px; font-weight: 600;
  line-height: 1;
}
.brand-mark:hover { background: var(--accent); color: #fff; }
.brand-copy { gap: 2px; }
.brand-copy strong { font-family: var(--font-sans); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.brand-copy small { font-family: var(--font-sans); font-size: 8px; letter-spacing: .08em; color: var(--faint); }
.nav { margin-left: 34px; gap: 26px; }
.nav a {
  font-size: 12px;
  color: var(--muted);
  padding: 3px 0;
  border-bottom: 0;
  transition: color .15s ease;
}
.nav a:hover { color: var(--text); border-color: transparent; }
.nav a.is-active { color: var(--text); font-weight: 500; border-color: transparent; }
.header-actions { margin-left: auto; gap: 5px; }
.icon-btn { width: 30px; height: 30px; }
.icon-btn .icon { width: 16px; height: 16px; }
.nav-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  margin-left: 7px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 12px;
  line-height: 1;
  transition: background-color .15s ease;
}
.nav-download:hover { background: var(--accent); color: #fff; }
.mobile-menu {
  top: 52px;
  background: rgba(255, 255, 255, .94);
  border-color: var(--line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
}
html[data-theme="dark"] .mobile-menu { background: rgba(18, 18, 18, .96); }
.mobile-link { font-size: 14px; color: var(--text-2); }

.corp-home { background: var(--bg); }

.eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--muted);
}
.eyebrow-light { color: #86868b; }

.product-hero {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 74px 28px 92px;
  text-align: center;
}
.product-hero-copy { max-width: 800px; margin: 0 auto; }
.product-wordmark {
  margin: 14px 0 0;
  font-family: var(--font-sans);
  font-size: clamp(70px, 8vw, 102px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.06em;
  color: var(--text);
}
.product-headline {
  margin: 14px 0 0;
  font-family: var(--font-sans);
  font-size: clamp(24px, 2.5vw, 31px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.02em;
}
.product-sub {
  max-width: 660px;
  margin: 16px auto 0;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--muted);
}
.product-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 28px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13.5px;
  line-height: 1.2;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.button-dark { background: var(--text); border-color: var(--text); color: var(--bg); }
.button-dark:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-self: auto;
  padding: 0;
  border: 0;
  color: var(--accent);
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
}
.text-link:hover { color: var(--accent-hover); border: 0; text-decoration: underline; text-underline-offset: 3px; }
.text-link span { margin-left: 2px; font-family: var(--font-sans); }
.product-meta {
  margin: 16px 0 0;
  font-size: 11.5px;
  color: var(--faint);
}
.product-hero-visual {
  max-width: 1080px;
  margin: 46px auto 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .12);
}
html[data-theme="dark"] .product-hero-visual { background: #111; border-color: var(--line-2); box-shadow: 0 28px 70px rgba(0, 0, 0, .4); }
.product-hero-visual img { width: 100%; height: auto; display: block; }
.product-hero-visual figcaption {
  padding: 9px 12px 10px;
  font-size: 10px;
  color: var(--faint);
  text-align: left;
  background: var(--surface);
}

.section { padding: 94px 28px; background: var(--bg); }
.section-alt { background: var(--bg-alt); }
.section > * { max-width: var(--wide); margin-left: auto; margin-right: auto; }
.section-heading { max-width: 760px; margin: 0 auto 54px; text-align: center; }
.section-heading h2 {
  margin: 9px 0 12px;
  font-family: var(--font-sans);
  font-size: clamp(36px, 4.2vw, 48px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.035em;
}
.section-heading p:not(.eyebrow) {
  max-width: 580px;
  margin: 0 auto;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--muted);
}
.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  text-align: left;
}
.section-heading-row h2 { margin-bottom: 0; }
.section-heading-row .text-link { flex-shrink: 0; margin-bottom: 4px; }

.features { padding-bottom: 100px; }
.feature-row {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 94px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row-reverse { grid-template-columns: .95fr 1.05fr; }
.feature-row-reverse .feature-media { order: 2; }
.feature-row-reverse .feature-copy { order: 1; }
.feature-media {
  margin: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .08);
}
html[data-theme="dark"] .feature-media { background: #111; border-color: var(--line-2); box-shadow: 0 18px 44px rgba(0, 0, 0, .36); }
.feature-media-portrait { max-width: 410px; justify-self: center; }
.feature-media-dark { background: #000; border-color: #2c2c2e; }

.feature-media img { display: block; width: 100%; height: auto; }
.feature-copy { max-width: 480px; }
.feature-label {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--accent);
}
.feature-copy h3 {
  margin: 9px 0 16px;
  font-size: clamp(32px, 3.8vw, 40px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.035em;
}
.feature-copy > p:not(.feature-label) {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--muted);
}
.feature-copy code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--bg-alt);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: .9em;
}
.feature-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.feature-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-2);
}
html[data-theme="dark"] .feature-list { border-color: var(--line-2); }
html[data-theme="dark"] .feature-list li { border-color: var(--line); }

.p2p-section {
  padding: 108px 28px 82px;
  background: #000;
  color: #f5f5f7;
}
.p2p-section > * { max-width: var(--wide); margin-left: auto; margin-right: auto; }
.p2p-copy { max-width: 860px; }
.p2p-copy h2 {
  margin: 10px 0 16px;
  font-size: clamp(48px, 6vw, 70px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.045em;
}
.p2p-lead {
  max-width: 620px;
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
  color: #a1a1a6;
}
.p2p-diagram {
  position: relative;
  max-width: 760px;
  height: 268px;
  margin: 52px auto 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  background: #080808;
}
.p2p-server {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 160px;
  padding: 10px 16px 9px;
  border: 1px dashed rgba(255, 255, 255, .28);
  text-align: center;
}
.p2p-server span { display: block; font-size: 12px; color: #f5f5f7; }
.p2p-server p { margin: 3px 0 0; font-size: 10px; color: #86868b; }
.peer-node {
  position: absolute;
  bottom: 36px;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: #111;
  font-size: 19px;
  color: #f5f5f7;
}
.peer-node:first-child { left: 76px; }
.peer-node:nth-child(3) { right: 76px; }
.p2p-line {
  position: absolute;
  left: 164px;
  right: 164px;
  bottom: 79px;
  height: 1px;
  background: var(--mint);
}
.p2p-line span {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 10px;
  background: #080808;
  color: var(--mint);
  font-size: 9.5px;
  letter-spacing: .1em;
}
.p2p-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 760px;
  margin: 36px auto 0;
  border-top: 1px solid rgba(255, 255, 255, .16);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.p2p-facts > div { padding: 18px 20px; border-right: 1px solid rgba(255, 255, 255, .16); }
.p2p-facts > div:last-child { border-right: 0; }
.p2p-facts strong { display: block; font-size: 19px; font-weight: 600; color: #f5f5f7; }
.p2p-facts span { display: block; margin-top: 3px; font-size: 10.5px; color: #86868b; }
.p2p-note { max-width: 680px; margin: 26px auto 0; font-size: 11.5px; line-height: 1.7; color: #86868b; }

.studio-block {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 100px 28px;
}
.studio-block-head h2 {
  margin: 10px 0 0;
  font-size: clamp(38px, 4.4vw, 56px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.04em;
}
.studio-block-body { max-width: 560px; }
.studio-block-body > p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--muted);
}
.studio-services {
  margin: 28px 0 26px;
  border-top: 1px solid var(--line);
}
.studio-services > div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.studio-services dt { font-size: 11px; color: var(--faint); }
.studio-services dd { margin: 0; font-size: 14px; color: var(--text-2); }

.journal-block { padding: 88px 28px; background: var(--bg-alt); }
.journal-block > * { max-width: var(--wide); margin-left: auto; margin-right: auto; }
.journal-block .section-heading-row { margin-bottom: 38px; }
.post-rows { border-top: 1px solid var(--line-2); }
.post-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 100px 22px;
  gap: 24px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.post-row time { font-size: 11.5px; color: var(--faint); }
.post-row-title { font-size: 17px; font-weight: 500; color: var(--text); }
.post-row-cat { font-size: 11.5px; color: var(--muted); text-align: right; }
.post-row-arrow { font-size: 18px; color: var(--faint); text-align: right; }
.post-row:hover .post-row-title { color: var(--accent); }
.post-row:hover .post-row-arrow { color: var(--accent); }

.download-block {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 100px 28px 104px;
}
.download-block h2 {
  margin: 10px 0 12px;
  font-size: clamp(42px, 5vw, 62px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.045em;
}
.download-block p:not(.eyebrow) {
  max-width: 520px;
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}
.download-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; padding-bottom: 4px; }

/* inner pages in the same system */
.page { max-width: 920px; padding: 80px 28px 100px; }
.page-head { padding-bottom: 30px; }
.page-head h1 {
  margin: 9px 0 10px;
  font-family: var(--font-sans);
  font-size: clamp(38px, 4.4vw, 50px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.04em;
}
.page-desc { font-size: 15px; color: var(--muted); }
.year-block { padding-top: 44px; }
.year-head { border-bottom: 1px solid var(--line-2); padding-bottom: 10px; }
.year { font-family: var(--font-sans); font-size: 28px; font-weight: 600; letter-spacing: -.03em; }
.archive-row { padding: 15px 0; }
.archive-title { font-family: var(--font-sans); font-size: 16px; }
.archive-date, .archive-cat { font-size: 11.5px; }

.post { max-width: 760px; padding: 78px 28px 100px; }
.back-link { margin-bottom: 28px; font-size: 12px; }
.post-title {
  font-family: var(--font-sans);
  font-size: clamp(36px, 4.6vw, 46px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.04em;
  margin-bottom: 14px;
}
.post-excerpt { font-size: 16px; line-height: 1.75; color: var(--muted); }
.post-meta { font-size: 12px; }
.post-body {
  padding-top: 28px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-2);
}
.post-body h2 {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.025em;
  margin-top: 2.2em;
}
.post-body h3 { font-size: 20px; }
.post-body a { color: var(--accent); }
.article-foot, .post-nav, .related, .comments { border-color: var(--line); }
.related h2, .comments-head h2 { font-family: var(--font-sans); font-weight: 600; }

.about { max-width: 1000px; padding: 80px 28px 100px; }
.about-intro { padding-bottom: 38px; border-bottom: 1px solid var(--line); }
.about-name {
  margin: 10px 0 8px;
  font-family: var(--font-sans);
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.05em;
}
.about-leader { margin: 0; font-size: 16px; color: var(--muted); }
.about-links { margin-top: 16px; }
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 68px;
  align-items: start;
  padding-top: 44px;
}
.about-body { padding-top: 0; font-size: 16px; line-height: 1.85; color: var(--text-2); }
.about-body h2 { font-family: var(--font-sans); font-size: 24px; font-weight: 600; margin: 1.6em 0 .5em; letter-spacing: -.025em; }
.about-body h3 { font-size: 18px; }
.about-side { padding: 22px 24px; background: var(--bg-alt); border-radius: 12px; }
.about-side .eyebrow { margin-bottom: 16px; }
.about-side dl { margin: 0; }
.about-side dl > div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.about-side dl > div:last-child { border-bottom: 0; }
.about-side dt { font-size: 10px; color: var(--faint); margin-bottom: 3px; }
.about-side dd { margin: 0; font-size: 13px; color: var(--text-2); }
.about-side a { color: var(--accent); }

.site-footer { padding: 46px 28px 26px; background: var(--bg-alt); border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--wide); align-items: flex-start; justify-content: space-between; gap: 64px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-mark {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 5px; background: var(--text); color: var(--bg);
  font-size: 16px; font-weight: 600;
}
.footer-brand strong { display: block; font-size: 13px; font-weight: 600; }
.footer-brand small { display: block; margin-top: 2px; font-size: 8px; letter-spacing: .08em; color: var(--faint); }
.footer-columns { display: grid; grid-template-columns: repeat(3, 130px); gap: 42px; }
.footer-col span { display: block; margin-bottom: 8px; font-size: 10px; color: var(--faint); }
.footer-col a { display: block; padding: 4px 0; font-size: 12px; color: var(--text-2); }
.footer-col a:hover { color: var(--accent); }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  max-width: var(--wide);
  margin: 34px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--faint);
}
.footer-legal a { color: var(--faint); }
.footer-legal a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-inner { gap: 0; }
  .header-actions { margin-left: auto; }
  .product-hero { padding-top: 62px; padding-bottom: 74px; }
  .feature-row, .feature-row-reverse { grid-template-columns: 1fr; gap: 30px; }
  .feature-row-reverse .feature-media, .feature-row-reverse .feature-copy { order: initial; }
  .feature-copy { max-width: 620px; }
  .feature-media-portrait { justify-self: center; }
  .studio-block { grid-template-columns: 1fr; gap: 36px; padding-top: 76px; padding-bottom: 80px; }
  .download-block { flex-direction: column; align-items: flex-start; gap: 30px; padding-top: 76px; padding-bottom: 80px; }
  .about-layout { grid-template-columns: 1fr; gap: 32px; }
  .about-side { max-width: 340px; }
  .footer-inner { flex-direction: column; gap: 34px; }
  .footer-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 520px; }
}

@media (max-width: 640px) {
  .header-inner { height: 48px; padding: 0 18px; }
  .brand-mark { width: 24px; height: 24px; font-size: 15px; }
  .brand-copy strong { font-size: 13px; }
  .brand-copy small { display: none; }
  .nav-download { display: none; }
  .mobile-menu { top: 48px; }
  .product-hero { padding: 48px 20px 58px; }
  .product-wordmark { font-size: 64px; margin-top: 12px; }
  .product-headline { font-size: 24px; margin-top: 12px; }
  .product-sub { font-size: 15.5px; margin-top: 14px; }
  .product-actions { flex-direction: column; gap: 15px; margin-top: 24px; }
  .product-actions .text-link { align-self: center; }
  .button { width: 100%; max-width: 300px; }
  .product-hero-visual { margin-top: 34px; border-radius: 11px; box-shadow: 0 18px 40px rgba(0, 0, 0, .1); }
  .section, .journal-block { padding: 62px 20px; }
  .section-heading { margin-bottom: 34px; }
  .section-heading h2 { font-size: 33px; }
  .section-heading p:not(.eyebrow) { font-size: 14.5px; }
  .feature-row { margin-bottom: 62px; gap: 20px; }
  .feature-copy h3 { font-size: 31px; }
  .feature-copy > p:not(.feature-label) { font-size: 14.5px; }
  .feature-media { border-radius: 11px; }
  .p2p-section { padding: 74px 20px 62px; }
  .p2p-copy h2 { font-size: 46px; }
  .p2p-lead { font-size: 15px; }
  .p2p-diagram { height: 220px; margin-top: 36px; }
  .p2p-server { top: 22px; min-width: 140px; padding: 8px 12px 7px; }
  .p2p-server span { font-size: 11px; }
  .peer-node { bottom: 28px; width: 66px; height: 66px; font-size: 15px; }
  .peer-node:first-child { left: 34px; }
  .peer-node:nth-child(3) { right: 34px; }
  .p2p-line { left: 100px; right: 100px; bottom: 61px; }
  .p2p-facts { margin-top: 26px; }
  .p2p-facts > div { padding: 14px 10px; }
  .p2p-facts strong { font-size: 15px; }
  .p2p-facts span { font-size: 9.5px; }
  .studio-block { padding: 62px 20px 70px; }
  .studio-block-head h2 { font-size: 36px; }
  .studio-services > div { grid-template-columns: 70px 1fr; gap: 14px; }
  .journal-block .section-heading-row { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 28px; }
  .post-row { grid-template-columns: 1fr 22px; gap: 3px 12px; padding: 15px 0; }
  .post-row time { grid-column: 1; }
  .post-row-title { grid-column: 1; font-size: 16px; }
  .post-row-cat { grid-column: 1; text-align: left; }
  .post-row-arrow { grid-column: 2; grid-row: 1 / 4; align-self: center; }
  .download-block { padding: 64px 20px 72px; }
  .download-block h2 { font-size: 38px; }
  .page, .post, .about { padding-left: 20px; padding-right: 20px; }
  .page { padding-top: 58px; }
  .page-head h1 { font-size: 34px; }
  .post { padding-top: 52px; }
  .post-title { font-size: 32px; }
  .post-body { font-size: 16px; }
  .about { padding-top: 58px; }
  .about-name { font-size: 40px; }
  .about-layout { padding-top: 30px; }
  .footer-inner { gap: 28px; }
  .footer-columns { grid-template-columns: 1fr 1fr; gap: 24px 30px; }
  .site-footer { padding: 36px 20px 24px; }
  .footer-legal { margin-top: 26px; }
}


