/* 外掛大腦｜依「外掛大腦」設計系統 v1（2026-11-24 critique 第三輪修正版） */
:root{
  --paper:#F3EFE6; --paper-kraft:#E8DFCF; --paper-grid:#D7E1EA;
  --ink:#1F1D1B; --ink-muted:#67615A; --rule:#D3CBBE;
  --mustard:#DDA63A; --sky:#3E7FB8; --sky-deep:#2A5F8F; --sunset:#E07B32;
  --sticker:#FFFFFF; --highlight:rgba(224,123,50,.22);
  --shadow-paper:2px 3px 0 rgba(35,31,26,.18);
  --on-sky:#FFFFFF; --edge:var(--rule);
  --serif:"Noto Serif TC","Songti TC",serif;
  --sans:"Noto Sans TC","PingFang TC",system-ui,sans-serif;
  --mono:"Courier Prime","Courier New",ui-monospace,monospace;
}
@media (prefers-color-scheme:dark){
  :root{
    --paper:#1D1B19; --paper-kraft:#38322B; --paper-grid:#2E3540;
    --ink:#F2EEE6; --ink-muted:#A9A298; --rule:#48423B;
    --sky:#6FA5D6; --sky-deep:#9CC3E6; --sunset:#EA8C48; --highlight:rgba(234,140,72,.30);
    --shadow-paper:2px 3px 0 rgba(0,0,0,.55);
    --on-sky:#1D1B19; --edge:#6B635A;
  }
  .art img{filter:brightness(.88)}
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scrollbar-color:var(--rule) var(--paper);accent-color:var(--sky-deep)}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:17px;line-height:30px;line-break:strict}
a{color:var(--sky-deep)}
img{max-width:100%;height:auto}
mark{background:var(--highlight);color:inherit;padding:0 2px}
::selection{background:var(--highlight);color:var(--ink)}
:focus-visible{outline:2px solid var(--sky-deep);outline-offset:3px}
h1,h2,h3,p,.logo{text-wrap:pretty}
/* 中文標題只在標點、空白處換行，不把詞切開；放不下時才強制斷 */
h1,h2,h3,.post-nav .t,.toc a,.tagline,.byline,.question,.lede,.notfound li span{word-break:keep-all;overflow-wrap:anywhere}
.wrap{max-width:1080px;margin:0 auto;padding:0 24px}

/* 跳到內文（鍵盤） */
.skip{position:absolute;left:16px;top:-60px;z-index:10;background:var(--paper);color:var(--ink);border:1px solid var(--ink);padding:8px 14px;font-family:var(--mono);font-size:13px;font-weight:700;text-decoration:none}
.skip:focus{top:12px}

/* 標籤（打字機） */
.label{font-family:var(--mono);font-size:12px;line-height:16px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--sky-deep)}
.pill{display:inline-block;border:1px solid var(--sky-deep);border-radius:999px;padding:3px 12px}
.caption{font-family:var(--mono);font-size:13px;line-height:20px;color:var(--ink-muted)}

/* 頁首 */
.masthead{padding-top:56px}
.masthead .row{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:8px 24px}
.site-title{margin:0;font-size:56px;line-height:64px;font-weight:inherit}
.logo{font-family:var(--serif);font-weight:900;font-size:56px;line-height:64px;color:var(--ink);text-decoration:none}
.masthead .domain{font-family:var(--mono);font-size:13px;color:var(--ink-muted)}
.masthead .tagline{margin:8px 0 0;color:var(--ink-muted);font-size:15px;line-height:26px}
.nav{display:flex;gap:0 20px;flex-wrap:wrap;margin-top:24px;padding:2px 0;border-top:1px solid var(--ink);border-bottom:1px solid var(--rule)}
.nav a{display:inline-flex;align-items:center;min-height:44px;min-width:44px;font-family:var(--mono);font-size:13px;font-weight:700;letter-spacing:.08em;color:var(--ink);text-decoration:none;padding:0 2px}
.nav a:hover{color:var(--sky-deep);text-decoration:underline;text-underline-offset:4px}
.nav a[aria-current="page"],.nav a.in-section{color:var(--sky-deep);text-decoration:underline;text-decoration-color:var(--mustard);text-decoration-thickness:2px;text-underline-offset:6px}
/* 內頁：報頭收小，讓內文早一點出現 */
body:has(.post-head) .masthead{padding-top:32px}
body:has(.post-head) .logo{font-size:40px;line-height:48px}
body:has(.post-head) .site-title{font-size:40px;line-height:48px}
body:has(.post-head) .masthead .tagline{display:none}
body:has(.post-head) .nav{margin-top:16px}

main.wrap{padding-top:64px;padding-bottom:96px}
body:has(.post-head) main.wrap{padding-top:48px}

/* 招牌圖紋：虛線串起的節點 */
.connector{display:flex;align-items:center;margin:0 0 24px}
.connector .node{width:12px;height:12px;border-radius:999px;background:var(--mustard);flex:none}
.connector .node.sun{background:var(--sunset)}
.connector .node.sky{background:var(--sky)}
.connector .dots{flex:1;border-top:2px dotted var(--ink-muted);margin:0 6px}

/* ── 編號封面：沒有主圖時，編號本身就是封面 ── */
.art{position:relative;overflow:hidden;background:var(--sky);min-height:340px}
.art .no{position:absolute;left:20px;bottom:10px;z-index:2;font-family:var(--serif);font-weight:900;font-size:64px;line-height:1;color:var(--ink)}
/* 太陽：以高度計算、永遠是正圓 */
.art .sun{position:absolute;height:44%;width:auto;aspect-ratio:1;border-radius:999px;background:var(--sunset);right:14%;top:16%}
.art .ground{position:absolute;left:0;right:0;bottom:0;height:26%;background:var(--mustard)}
/* 天空款：編號站在麥田上方的天空裡 */
.art.t-sky{background:var(--sky)}
.art.t-sky .no{color:var(--on-sky);bottom:calc(26% + 10px)}
/* 牛皮紙款：太陽＋一條虛線連起麥田與天空兩個節點 */
.art.t-kraft{background:var(--paper-kraft)}
.art.t-kraft::before{content:"";position:absolute;height:44%;aspect-ratio:1;border-radius:999px;background:var(--sunset);right:12%;top:14%}
.art.t-kraft::after,.art.t-grid::after{content:"";position:absolute;left:20px;right:var(--line-r,20px);bottom:var(--line-b,92px);height:12px;
  background:
    radial-gradient(circle at 6px 6px,var(--mustard) 5.5px,transparent 6px) left center/12px 12px no-repeat,
    radial-gradient(circle at 6px 6px,var(--sky) 5.5px,transparent 6px) right center/12px 12px no-repeat,
    repeating-linear-gradient(90deg,var(--ink-muted) 0 2px,transparent 2px 6px) center/calc(100% - 36px) 2px no-repeat}
/* 方格紙款：一張貼上去的天空紙片，白邊＋紙片陰影 */
.art.t-grid{background-color:var(--paper);background-image:linear-gradient(var(--paper-grid) 1px,transparent 1px),linear-gradient(90deg,var(--paper-grid) 1px,transparent 1px);background-size:20px 20px}
.art.t-grid::before{content:"";position:absolute;height:48%;aspect-ratio:4/3;right:10%;top:10%;background:var(--sky);border:6px solid var(--sticker);box-shadow:var(--shadow-paper);transform:rotate(-3deg)}
.card .art{--line-b:72px}
.post-hero .art{--line-b:86px;--line-r:34%}
/* 關鍵詞紙條：每篇不同，貼在封面左上 */
.art .kw{position:absolute;z-index:2;left:20px;top:20px;padding:5px 10px 4px;background:var(--paper);color:var(--ink);
  border:1px solid var(--rule);box-shadow:var(--shadow-paper);transform:rotate(-2deg);
  font-family:var(--sans);font-size:15px;line-height:22px;font-weight:700;letter-spacing:.02em}
.art .kw i{font-style:normal;color:var(--sunset);margin-right:1px}
.card .art .kw{font-size:13px;line-height:18px;left:14px;top:14px}
.post-hero .art .kw{top:22px}
/* 有主圖：圖鋪滿，編號改成一張貼上去的小紙片 */
.art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.art:has(img)::before,.art:has(img)::after{content:none}
/* 有主圖：編號紙片騎在圖框上緣，不蓋住畫面主角 */
.art.art:has(img){overflow:visible}
.art.art:has(img) .no{top:-14px;bottom:auto;left:16px;padding:6px 12px 4px;background:var(--paper);color:var(--ink);border:1px solid var(--rule);box-shadow:var(--shadow-paper);font-size:28px}

/* 首頁：精選 */
.feature{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;text-decoration:none;color:var(--ink);margin-bottom:64px}
.feature .sheet{background:var(--paper);border:1px solid var(--edge);box-shadow:var(--shadow-paper);padding:32px;margin:40px 0 -24px -40px;position:relative;z-index:3;align-self:center}
.feature h2{font-family:var(--serif);font-size:36px;line-height:46px;font-weight:700;margin:12px 0}
.feature p{margin:0 0 16px;color:var(--ink-muted)}
.feature:hover h2{text-decoration:underline;text-decoration-color:var(--mustard);text-decoration-thickness:3px;text-underline-offset:6px}
.feature:focus-visible,.card:focus-visible{outline-offset:6px}
.feature .art{--line-r:64px}

/* 首頁：列表 */
.section-head{display:flex;align-items:center;gap:16px;margin:0 0 24px}
.section-head h2{font-family:var(--serif);font-size:26px;line-height:36px;margin:0}
.section-head::after{content:"";flex:1;border-top:1px solid var(--rule)}
.section-head .more{order:3;display:inline-flex;align-items:center;min-height:44px;font-family:var(--sans);font-size:15px;font-weight:700;text-underline-offset:4px}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px 24px}
/* 只有兩篇：兩欄、圖改橫幅，不留空欄 */
.grid:has(> .card:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr));gap:40px 32px}
.grid:has(> .card:nth-child(2):last-child) .card .art{aspect-ratio:16/9}
/* 只有一篇：半寬 */
.grid:has(> .card:only-child){grid-template-columns:minmax(0,1fr);max-width:calc(50% - 16px)}
.card{display:flex;flex-direction:column;text-decoration:none;color:var(--ink)}
.card .art{min-height:0;aspect-ratio:1/1;border:1px solid var(--rule)}
.card .art .no{font-size:44px}
.card .art.art:has(img) .no{font-size:22px;top:-12px;bottom:auto;left:12px}
.card .art.t-sky .no{bottom:calc(26% + 8px)}
.card .label{margin-top:12px}
.card h3{font-family:var(--serif);font-size:20px;line-height:30px;margin:8px 0 4px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.card p{margin:0 0 8px;font-size:15px;line-height:26px;color:var(--ink-muted);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.card .caption{margin-top:auto}
.card:hover h3{text-decoration:underline;text-decoration-color:var(--mustard);text-decoration-thickness:2px;text-underline-offset:5px}

/* 文章頁 */
.post-head{max-width:680px;margin:0 auto 32px}
.post-head h1{font-family:var(--serif);font-size:36px;line-height:46px;font-weight:700;margin:12px 0 16px}
.post-head .question{margin:0;padding:12px 16px;background:var(--paper-kraft);font-size:15px;line-height:26px}
.post-head .lede{margin:0;color:var(--ink-muted);font-size:17px;line-height:30px}
.post-head .tags{margin:16px 0 0}
.post-hero{max-width:880px;margin:0 auto 48px}
.post-hero:has(img){margin-top:40px}
.post-hero .art{min-height:0;aspect-ratio:1200/630}
/* 沒有主圖：編號封面壓成橫條，內文提早進入首屏 */
.post-hero .art:not(:has(img)){aspect-ratio:auto;height:200px}
.post-hero .art:not(:has(img)) .no{font-size:56px}
.article{max-width:680px;margin:0 auto}
.article p{margin:0 0 16px}
.article h2{font-family:var(--serif);font-size:26px;line-height:36px;margin:40px 0 16px}
.article h3{font-family:var(--serif);font-size:20px;line-height:30px;margin:32px 0 12px}
.article blockquote{margin:32px 0;padding:20px 24px;background:var(--paper-kraft);border-left:3px solid var(--sunset);font-family:var(--serif);font-size:22px;line-height:36px;font-weight:500}
.article blockquote p:last-child{margin:0}
.article h4{font-family:var(--sans);font-size:16px;line-height:26px;font-weight:700;margin:28px 0 8px}
.article em{font-style:normal;color:var(--ink-muted)}
.article h2.appendix-start{margin-top:72px;padding-top:20px;border-top:1px solid var(--ink)}
.article h2[id],.article h3[id],.article h4[id]{scroll-margin-top:24px}
.article ul,.article ol{padding-left:1.4em;margin:0 0 16px}
.article li{margin-bottom:4px}
.article a{text-underline-offset:4px}
.article code{font-family:var(--mono);font-size:.9em;background:var(--paper-kraft);padding:1px 6px}
.article pre{background:var(--paper-kraft);padding:16px;overflow-x:auto;font-size:14px;line-height:24px;margin:0 0 16px}
.article pre code{background:none;padding:0;font-size:inherit;white-space:pre-wrap}
.article .code{position:relative;margin:0 0 16px}
.article .code pre{margin:0;padding-top:48px}
.copy{position:absolute;top:8px;right:8px;min-height:32px;min-width:64px;padding:0 12px;border:1px solid var(--ink);border-radius:2px;background:var(--paper);color:var(--ink);
  font-family:var(--sans);font-size:13px;font-weight:700;cursor:pointer}
.copy:hover{background:var(--ink);color:var(--paper)}
.copy:disabled{cursor:default;border-color:var(--sky-deep);color:var(--sky-deep);background:var(--paper)}

/* 提示框：小撇步、檢核清單、公式、提問範本（跟金句引言框分開） */
.article .callout{margin:32px 0;padding:16px 20px 18px;background:var(--paper);border:1px solid var(--rule);font-size:15px;line-height:26px}
.article .callout p{margin:0 0 8px}
.article .callout > :last-child{margin-bottom:0}
.callout-label{display:inline-block;margin-bottom:6px;font-family:var(--sans);font-size:13px;line-height:20px;font-weight:700;color:var(--sky-deep)}
.callout-label::before{content:"";display:inline-block;width:8px;height:8px;margin-right:8px;border-radius:999px;background:var(--sunset);vertical-align:1px}
.article .callout-title{font-weight:700;color:var(--ink)}
.article .c-check ul{list-style:none;padding-left:0}
.article .c-check li{position:relative;padding-left:26px}
.article .c-check li::before{content:"";position:absolute;left:0;top:6px;width:14px;height:14px;border:1.5px solid var(--ink-muted);background:var(--paper)}
.article .c-formula{background:var(--paper-kraft);border-color:var(--paper-kraft)}
.article .c-formula p{font-family:var(--serif);font-size:17px;line-height:30px}
.article .c-prompt{border-style:dashed;border-color:var(--ink-muted)}

/* 本篇目錄（長文） */
.toc{max-width:680px;margin:0 auto 48px;padding:16px 0;border-top:1px solid var(--ink);border-bottom:1px solid var(--rule)}
.toc-h{margin:0 0 8px;font-family:var(--serif);font-size:18px;line-height:28px;font-weight:700}
.toc ol{margin:0;padding-left:1.6em;font-size:15px;line-height:26px}
.toc li{margin:2px 0}
.toc li::marker{font-family:var(--mono);color:var(--ink-muted)}
.toc ol ol{padding-left:1.2em;list-style:none}
.toc a{display:inline-block;padding:3px 0;color:var(--ink);text-decoration:none}
.toc a:hover{color:var(--sky-deep);text-decoration:underline;text-underline-offset:4px}
.article img{display:block;margin:32px auto}
.article figure{margin:32px 0}
.article figure img{margin:0 auto}
.article figcaption{margin-top:8px;font-family:var(--mono);font-size:13px;line-height:20px;color:var(--ink-muted);text-align:center}
.article hr{border:0;border-top:2px dotted var(--ink-muted);margin:48px 0}
.article strong{font-weight:700}
/* 文章標籤：分類戳記，不是按鈕 */
.tags{display:flex;gap:4px 16px;flex-wrap:wrap}
.tags .pill{border:0;padding:0;border-radius:0;color:var(--ink-muted);letter-spacing:.02em;text-transform:none;font-family:var(--sans);font-size:13px;line-height:20px}
.tags .pill::before{content:"#";margin-right:2px;color:var(--mustard)}
.tags a.pill{color:var(--sky-deep);text-decoration:none}
.tags a.pill:hover{text-decoration:underline;text-underline-offset:4px}

/* 作品框：文章裡的互動作品、外部專案 */
.article .work-card{margin:40px 0;padding:24px 24px 20px;background:var(--paper-kraft);border:1px solid var(--ink);box-shadow:var(--shadow-paper)}
.article .work-card h3{margin:8px 0 12px;font-size:22px;line-height:32px}
.article .work-card p{margin:0 0 12px}
.article .work-card p:last-child{margin:0}
.article .work-card p:has(> a:only-child) a,.article .work-card p > strong:only-child > a{display:inline-flex;align-items:center;min-height:44px;padding:0 20px;background:var(--ink);color:var(--paper);border-radius:2px;text-decoration:none;font-weight:700}
.article .work-card p:has(> a:only-child) a:hover,.article .work-card p > strong:only-child > a:hover{background:var(--sky-deep)}
.article .work-card p:last-child:not(:has(a)){margin-top:16px;font-size:13px;line-height:20px;color:var(--ink-muted)}

/* 作者小註 */
.byline{max-width:680px;margin:48px auto 0;padding-top:16px;border-top:2px dotted var(--ink-muted);font-size:15px;line-height:26px;color:var(--ink-muted)}
.byline p{margin:0}
.byline a,.about-contact a{display:inline-block;padding:3px 0;text-underline-offset:4px}

/* 上一篇／下一篇 */
.post-nav{max-width:680px;margin:32px auto 0;display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--ink);border-bottom:1px solid var(--rule)}
.post-nav a{display:block;padding:16px 0;text-decoration:none;color:var(--ink)}
.post-nav a + a,.post-nav .next{text-align:right}
.post-nav a + a{border-left:1px solid var(--rule);padding-left:16px}
.post-nav .prev{padding-right:16px}
.post-nav:has(> a:only-child){grid-template-columns:1fr}
.post-nav .next:only-child{grid-column:1;border-left:0;padding-left:0}
.post-nav .label{display:block;margin-bottom:4px}
.post-nav .t{display:block;font-family:var(--serif);font-size:18px;line-height:28px;font-weight:700}
.post-nav a:hover .t{text-decoration:underline;text-decoration-color:var(--mustard);text-decoration-thickness:2px;text-underline-offset:5px}

/* 訂閱（預留 HubSpot 表單） */
.subscribe{max-width:680px;margin:48px auto 0;padding:20px 24px;background:var(--paper-kraft);display:grid;grid-template-columns:1fr auto;gap:4px 24px;align-items:center}
.subscribe h2{grid-column:1;font-family:var(--serif);font-size:22px;line-height:32px;margin:0}
.subscribe p{grid-column:1;margin:0;font-size:15px;line-height:26px;color:var(--ink-muted)}
.subscribe .btn{grid-column:2;grid-row:1 / span 2}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;background:var(--ink);color:var(--paper);border:1px solid var(--ink);border-radius:2px;
  font-family:var(--sans);font-size:15px;font-weight:700;text-decoration:none;cursor:pointer;white-space:nowrap}
.btn:hover{background:var(--sky-deep);border-color:var(--sky-deep)}
.btn-quiet{background:var(--paper);color:var(--ink)}
.btn-quiet:hover{background:var(--paper);color:var(--sky-deep)}
.btn:disabled{background:var(--paper);color:var(--sky-deep);border-color:var(--sky-deep);cursor:default}
.sub-actions{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0 12px}
.feed-url code{word-break:break-all}
.series-note{max-width:680px;margin:64px 0 0;font-size:15px;line-height:26px;color:var(--ink-muted)}
.series-note a{display:inline-block;padding:2px 0}
.notfound .maybe{margin:0 0 16px;padding:12px 16px;background:var(--paper-kraft);color:var(--ink)}
.subscribe input,.subscribe button{font:inherit;border-radius:2px}
.back{display:inline-flex;align-items:center;min-height:44px;margin:24px 0 0;font-family:var(--mono);font-size:13px;font-weight:700;letter-spacing:.06em;text-underline-offset:4px}
main > .back{display:flex;max-width:680px;margin:24px auto 0}

/* 關於我：聯絡出口 */
.about-contact{max-width:680px;margin:40px auto 0;padding-top:16px;border-top:2px dotted var(--ink-muted)}
.about-contact .label{display:block;margin-bottom:4px}
.about-contact p{margin:0;font-size:15px;line-height:26px;color:var(--ink-muted)}

/* 全部筆記、標籤頁 */
.archive{max-width:680px;margin:0 auto}
.archive-inline{margin-top:64px}
.sub-h{font-family:var(--serif);font-size:22px;line-height:32px;margin:0 0 16px}
.archive section + section{margin-top:56px}
.archive .year,.archive-inline .year{font-family:var(--mono);font-size:13px;line-height:20px;font-weight:700;letter-spacing:.08em;color:var(--ink-muted);margin:32px 0 8px}
.archive .year:first-child,.archive section > .sub-h + .year{margin-top:0}
.post-list{list-style:none;padding:0;margin:0;border-top:1px solid var(--rule)}
.post-list li{border-bottom:1px solid var(--rule)}
.post-list a{display:grid;grid-template-columns:56px 1fr auto;gap:16px;align-items:baseline;padding:12px 0;min-height:44px;text-decoration:none;color:var(--ink)}
.post-list .t{font-family:var(--serif);font-size:18px;line-height:28px;font-weight:700;word-break:keep-all;overflow-wrap:anywhere}
.post-list a:hover .t{text-decoration:underline;text-decoration-color:var(--mustard);text-decoration-thickness:2px;text-underline-offset:5px}
.tag-index{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:8px 12px}
.tag-index a{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border:1px solid var(--rule);background:var(--paper);color:var(--ink);text-decoration:none;font-size:15px;font-weight:700}
.tag-index a::before{content:"#";color:var(--sunset)}
.tag-index a:hover{border-color:var(--sky-deep);color:var(--sky-deep)}
.tag-index .n{font-family:var(--mono);font-size:13px;font-weight:400;color:var(--ink-muted)}
.post-head h1 .hash{color:var(--sunset);margin-right:4px}
.tags a.pill{display:inline-block;padding:2px 0}

/* 404 */
.notfound{max-width:680px;margin:0 auto}
.notfound h1{font-family:var(--serif);font-size:36px;line-height:46px;margin:0 0 8px}
.notfound > p{margin:0 0 32px;color:var(--ink-muted)}
.notfound ol{list-style:none;padding:0;margin:0;border-top:1px solid var(--rule)}
.notfound li{border-bottom:1px solid var(--rule)}
.notfound li a{display:flex;gap:16px;align-items:baseline;padding:12px 0;min-height:44px;text-decoration:none;color:var(--ink)}
.notfound li .label{flex:none}
.notfound li a:hover span:last-child{text-decoration:underline;text-decoration-color:var(--mustard);text-underline-offset:5px}

footer{border-top:1px solid var(--ink);padding:24px 0 48px}
footer .wrap{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px}
footer a,.masthead a.domain{display:inline-block;padding:2px 0;color:var(--ink-muted);text-underline-offset:4px}

@media (max-width:820px){
  .feature{grid-template-columns:minmax(0,1fr)}
  .feature .sheet{margin:-32px 16px 0}
  .art{min-height:240px}
  .feature .art .no{bottom:44px}
  .feature .art{--line-b:126px;--line-r:46%}
  .feature .art.t-sky .no{bottom:calc(26% + 10px)}
  .grid,.grid:has(> .card:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 20px}
  .grid:has(> .card:only-child){max-width:none}
}
@media (max-width:540px){
  .logo{font-size:44px;line-height:52px}
  body:has(.post-head) .logo{font-size:32px;line-height:40px}
  .grid,.grid:has(> .card:nth-child(2):last-child){grid-template-columns:minmax(0,1fr)}
  .card .art,.grid:has(> .card:nth-child(2):last-child) .card .art{aspect-ratio:16/9}
  .feature h2,.post-head h1,.notfound h1{font-size:28px;line-height:38px}
  .post-hero .art:not(:has(img)){height:150px;--line-b:62px}
  .site-title{font-size:44px;line-height:52px}
  body:has(.post-head) .site-title{font-size:32px;line-height:40px}
  .subscribe{grid-template-columns:1fr}
  .subscribe .btn{grid-column:1;grid-row:auto;justify-self:start;margin-top:12px}
  .post-hero .art:not(:has(img)) .no{font-size:44px}
  .post-hero{margin-bottom:32px}
  .post-nav{grid-template-columns:1fr}
  .post-list a{grid-template-columns:44px 1fr}
  .post-list .caption{display:none}
  .post-nav a + a{border-left:0;border-top:1px solid var(--rule);padding-left:0}
  .post-nav .next:only-child{grid-column:1;border-left:0;padding-left:0}
}

/* ── 個人首頁 hsujasmine.com/：一張剪貼頁 ── */
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.home-head{padding-top:56px}
.home-head .row{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:8px 24px}
.home-name{margin:0;font-family:var(--serif);font-weight:900;font-size:56px;line-height:64px}
.home-name span{display:inline-block;margin-left:8px;font-weight:700;font-size:26px;line-height:36px;color:var(--ink-muted)}
.home-intro{max-width:36em;margin-top:12px;font-size:17px;line-height:30px}
.home-intro p{margin:0}
.home-start{font-family:var(--serif);font-size:26px;line-height:36px;margin:0 0 40px}
.scrap{--path:on;position:relative;list-style:none;margin:0;padding:0;display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:72px 72px;align-items:start}
.scrap > .piece:nth-of-type(even){margin-top:112px}
.scrap-line{position:absolute;left:0;top:0;z-index:0;pointer-events:none;overflow:visible;clip-path:inset(0 0 100% 0);animation:scrap-draw .8s cubic-bezier(.16,1,.3,1) .15s forwards}
.scrap-line path{fill:none;stroke:var(--ink-muted);stroke-width:2;stroke-linecap:round;stroke-dasharray:0 7}
@keyframes scrap-draw{to{clip-path:inset(0 0 0 0)}}
.piece{position:relative;z-index:1;--tilt:-1.5deg}
.piece:nth-of-type(2){--tilt:1.2deg}.piece:nth-of-type(3){--tilt:-.8deg}.piece:nth-of-type(4){--tilt:1.6deg}
.piece:nth-of-type(5){--tilt:-1.2deg}.piece:nth-of-type(6){--tilt:1deg}
.piece > a{display:block;padding:12px 12px 20px;background:var(--paper);border:1px solid var(--rule);box-shadow:var(--shadow-paper);
  color:var(--ink);text-decoration:none;transform:rotate(var(--tilt));transition:transform .25s cubic-bezier(.16,1,.3,1),box-shadow .25s}
.piece > a:hover,.piece > a:focus-visible{transform:rotate(0);box-shadow:3px 4px 0 rgba(35,31,26,.22)}
.piece .art{min-height:0;aspect-ratio:4/3;border:1px solid var(--rule)}
.piece .art .no{font-size:48px}
.piece .art:has(img){aspect-ratio:1200/630}
.piece .label{display:block;margin:16px 4px 0}
.piece h3{margin:8px 4px 6px;font-family:var(--serif);font-size:22px;line-height:32px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.piece p{margin:0 4px;font-size:15px;line-height:26px;color:var(--ink-muted);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.piece > a:hover h3{text-decoration:underline;text-decoration-color:var(--mustard);text-decoration-thickness:2px;text-underline-offset:5px}
.piece-no{position:absolute;z-index:3;left:-14px;top:-14px;display:grid;place-items:center;width:32px;height:32px;border-radius:999px;
  background:var(--paper);border:2px solid var(--sunset);font-family:var(--mono);font-size:14px;font-weight:700;line-height:1;color:var(--ink)}
.piece:nth-of-type(3n+2) .piece-no{border-color:var(--mustard)}
.piece:nth-of-type(3n) .piece-no{border-color:var(--sky)}
.piece-work > a{padding:24px 24px 24px;background:var(--paper-kraft);border-color:var(--ink)}
.piece-work .label{margin:0}
.piece-work h3{margin:10px 0 8px}
.piece-work p{margin:0 0 20px}
.piece-work .go{display:inline-flex;align-items:center;min-height:44px;padding:10px 20px;background:var(--ink);color:var(--paper);border-radius:2px;font-weight:700}
.piece-work > a:hover .go{background:var(--sky-deep)}
.to-all{display:inline-flex;align-items:center;min-height:44px;margin-top:72px;font-family:var(--serif);font-size:20px;font-weight:700;text-underline-offset:6px}
@media (prefers-reduced-motion:reduce){
  .scrap-line{animation:none;clip-path:none}
  .piece > a{transition:none}
}
@media (max-width:760px){
  .home-name{font-size:44px;line-height:52px}
  .home-name span{display:block;margin:4px 0 0;font-size:20px;line-height:28px}
  .scrap{--path:none;grid-template-columns:minmax(0,1fr);gap:48px;padding-left:40px}
  .scrap::before{content:"";position:absolute;left:15px;top:8px;bottom:8px;border-left:2px dotted var(--ink-muted)}
  .scrap > .piece:nth-of-type(even){margin-top:0}
  .piece-no{left:-41px;top:12px}
  .piece{--tilt:0deg!important}
}

/* ---------- 其他系列：伊索寓言 職場版（輪播一張一段） ---------- */
.series-aesop .slide{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,4fr);gap:24px;align-items:center;margin:0 0 40px}
.series-aesop .slide p{margin:0 0 8px}
.series-aesop .slide img{display:block;width:100%;height:auto;margin:0;border:1px solid var(--rule)}
.series-aesop .slide .en{color:var(--ink-muted);font-size:15px;line-height:26px}
.series-aesop .post-caption{background:var(--paper-kraft);padding:16px 20px;margin:0 0 40px}
.series-aesop .post-caption p{margin:0 0 8px}
.series-aesop .post-caption p:last-child{margin:0}
@media (max-width:640px){.series-aesop .slide{grid-template-columns:minmax(0,1fr);gap:12px}}
.series-wall{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:32px 24px}
.series-wall a{display:block;color:var(--ink);text-decoration:none}
.series-wall img{display:block;width:100%;height:auto;border:1px solid var(--rule)}
.series-wall .label{display:block;margin-top:10px}
.series-wall .t{display:block;font-family:var(--serif);font-size:17px;line-height:26px}
.series-wall a:hover .t,.series-wall a:focus-visible .t{text-decoration:underline;text-decoration-color:var(--mustard);text-decoration-thickness:2px;text-underline-offset:4px}
