:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f4;
  --text: #1f1f1f;
  --muted: #6b6b6b;
  --line: #e6e6e3;
  --accent: #1a8917;
  --link: #0b5fff;
  --chip: #f0f0ed;
  --code-bg: #f6f6f4;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
:root[data-theme="dark"] {
  --bg: #121212;
  --bg-soft: #1b1b1b;
  --text: #ececec;
  --muted: #9a9a9a;
  --line: #2c2c2c;
  --accent: #4cc24a;
  --link: #7aa7ff;
  --chip: #232323;
  --code-bg: #1b1b1b;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212;
    --bg-soft: #1b1b1b;
    --text: #ececec;
    --muted: #9a9a9a;
    --line: #2c2c2c;
    --accent: #4cc24a;
    --link: #7aa7ff;
    --chip: #232323;
    --code-bg: #1b1b1b;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-inner { max-width: 960px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 22px; text-decoration: none; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); border-bottom-color: var(--text); }
.icon-btn { background: none; border: 1px solid var(--line); color: var(--muted); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 15px; line-height: 1; }
.icon-btn:hover { color: var(--text); border-color: var(--muted); }

.intro { padding: 40px 0 12px; }
.intro h1 { font-family: var(--serif); font-size: 40px; line-height: 1.15; margin: 0 0 10px; letter-spacing: -0.02em; }
.intro p { color: var(--muted); font-size: 18px; margin: 0; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 24px 0 8px; }
.search { flex: 1 1 220px; min-width: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft); color: var(--text); font: inherit; font-size: 14px; }
.search:focus { outline: 2px solid var(--link); outline-offset: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.chip { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--chip); color: var(--text); text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.chip:hover { border-color: var(--muted); }
.chip.on { background: var(--text); color: var(--bg); }

.list { margin-top: 16px; }
.card { padding: 28px 0; border-bottom: 1px solid var(--line); }
.card:last-child { border-bottom: 0; }
.meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.meta .dot::before { content: "\00b7"; margin-right: 10px; }
.card h2 { font-family: var(--serif); font-size: 26px; line-height: 1.25; margin: 8px 0 6px; letter-spacing: -0.01em; }
.card h2 a { text-decoration: none; }
.card h2 a:hover { text-decoration: underline; }
.card p { margin: 0 0 12px; color: var(--muted); font-size: 16px; font-family: var(--serif); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.empty { color: var(--muted); padding: 48px 0; text-align: center; }

.article { padding: 40px 0 24px; }
.article .back { font-size: 14px; color: var(--muted); text-decoration: none; }
.article .back:hover { color: var(--text); }
.article h1.title { font-family: var(--serif); font-size: 42px; line-height: 1.15; margin: 20px 0 12px; letter-spacing: -0.02em; }
.article .byline { padding: 14px 0; margin: 16px 0 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.byline .who { font-size: 14px; }
.byline .who strong { display: block; }
.byline .who span { color: var(--muted); font-size: 13px; }
.actions { display: flex; gap: 8px; }
.btn { font: inherit; font-size: 13px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer; }
.btn:hover { border-color: var(--muted); }

.prose { font-family: var(--serif); font-size: 20px; line-height: 1.7; letter-spacing: -0.003em; overflow-wrap: anywhere; }
.prose h2 { font-family: var(--sans); font-size: 26px; line-height: 1.3; margin: 2em 0 0.5em; letter-spacing: -0.01em; }
.prose h3 { font-family: var(--sans); font-size: 21px; margin: 1.7em 0 0.4em; }
.prose h4 { font-family: var(--sans); font-size: 17px; margin: 1.5em 0 0.4em; }
.prose p { margin: 0 0 1.2em; }
.prose a { color: var(--link); }
.prose img { max-width: 100%; height: auto; border-radius: 6px; margin: 0.6em 0; }
.prose blockquote { margin: 1.4em 0; padding: 0.1em 0 0.1em 1.1em; border-left: 3px solid var(--text); font-style: italic; color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin: 0.3em 0; }
.prose code { font-family: var(--mono); font-size: 0.82em; background: var(--code-bg); padding: 0.15em 0.4em; border-radius: 4px; }
.prose pre { position: relative; background: var(--code-bg); border: 1px solid var(--line); border-radius: 8px; padding: 16px; overflow-x: auto; margin: 1.4em 0; font-size: 15px; line-height: 1.55; }
.prose pre code { background: none; padding: 0; font-size: inherit; }
.prose pre .copy { position: absolute; top: 8px; right: 8px; font: inherit; font-family: var(--sans); font-size: 12px; padding: 3px 9px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); cursor: pointer; opacity: 0; transition: opacity 0.15s; }
.prose pre:hover .copy, .prose pre .copy:focus { opacity: 1; }
.prose table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: 15px; margin: 1.4em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); }

.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 48px 0 8px; }
.pn a { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; text-decoration: none; font-size: 14px; }
.pn a:hover { border-color: var(--muted); }
.pn small { display: block; color: var(--muted); margin-bottom: 4px; }
.pn a:last-child { text-align: right; }

.note { padding: 22px 0; border-bottom: 1px solid var(--line); }
.note .prose { font-size: 17px; line-height: 1.6; font-family: var(--sans); }
.note .prose p:last-child { margin-bottom: 0; }
.note .meta { margin-bottom: 8px; }
.note .meta a { text-decoration: none; }
.note .meta a:hover { text-decoration: underline; }

.foot { border-top: 1px solid var(--line); margin-top: 56px; padding: 22px 0 40px; color: var(--muted); font-size: 13px; }
.foot-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

@media (max-width: 600px) {
  .intro h1 { font-size: 32px; }
  .article h1.title { font-size: 32px; }
  .prose { font-size: 18px; }
  .card h2 { font-size: 22px; }
  .pn { grid-template-columns: 1fr; }
  .pn a:last-child { text-align: left; }
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img, svg, video { max-width: 100%; height: auto; }

.top { padding-top: env(safe-area-inset-top); }
.top-inner,
.wrap {
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}
.foot { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }

.intro h1 { font-size: clamp(30px, 4.6vw, 42px); }
.article h1.title { font-size: clamp(28px, 5vw, 44px); overflow-wrap: anywhere; }
.prose { font-size: clamp(17px, 1.6vw + 12px, 20px); }
.card h2 { font-size: clamp(21px, 2.6vw, 26px); }

.card h2, .card p, .intro p, .meta { overflow-wrap: anywhere; }
.prose a { overflow-wrap: anywhere; }

@media (min-width: 1400px) {
  .wrap { max-width: 760px; }
  .top-inner { max-width: 1040px; }
}

@media (min-width: 601px) and (max-width: 1024px) {
  .wrap { max-width: 700px; }
}

@media (max-width: 600px) {
  .top-inner { padding-top: 10px; padding-bottom: 10px; gap: 8px; }
  .brand { font-size: 19px; }
  .nav { gap: 14px; font-size: 14px; }
  .intro { padding-top: 28px; }
  .article { padding-top: 24px; }
  .article .byline { margin-bottom: 22px; }
  .prose pre { padding: 12px; font-size: 13px; border-radius: 6px; margin-left: -4px; margin-right: -4px; }
  .prose table { font-size: 14px; }
  .prose th, .prose td { padding: 6px 9px; }
  .prose h2 { font-size: 23px; }
  .prose h3 { font-size: 19px; }
  .foot-inner { flex-direction: column; gap: 6px; }
}

@media (max-width: 360px) {
  .brand { font-size: 17px; }
  .nav { gap: 10px; font-size: 13px; }
  .icon-btn { width: 30px; height: 30px; }
}

@media (hover: none) and (pointer: coarse) {
  .nav a { padding: 10px 2px; }
  .icon-btn { width: 40px; height: 40px; }
  .btn { padding: 10px 16px; }
  .chip { padding: 8px 14px; }
  .search { padding: 12px 16px; font-size: 16px; } 
  .prose pre .copy { opacity: 1; padding: 6px 10px; }
  .pn a { padding: 16px; }
}

@media (max-height: 480px) and (orientation: landscape) {
  .top { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .top, .foot, .actions, .pn, .prose pre .copy { display: none !important; }
  body { background: #fff; color: #000; }
  .wrap { max-width: none; }
}

.brand { white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nav { flex-shrink: 0; }
@media (max-width: 360px) {
  .brand { font-size: 16px; }
  .nav { gap: 8px; font-size: 13px; }
  .top-inner { gap: 6px; }
}

.prose { overflow-wrap: break-word; }
.prose th, .prose td { overflow-wrap: normal; word-break: normal; }
.prose td code, .prose th code { white-space: nowrap; }
.prose table { -webkit-overflow-scrolling: touch; max-width: 100%; }
.prose pre { -webkit-overflow-scrolling: touch; max-width: 100%; }

.chips-wrap { position: relative; margin: 10px 0 6px; }
.chips-wrap .chips {
  display: flex; flex-wrap: nowrap; gap: 8px; margin: 0;
  overflow-x: auto; overflow-y: hidden; padding: 2px 0;
  scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch;
}
.chips-wrap .chips::-webkit-scrollbar { display: none; }
.chips-wrap .chip { flex: 0 0 auto; white-space: nowrap; font-size: 13px; line-height: 1; padding: 9px 14px; }

.chips-wrap::before, .chips-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 56px; z-index: 1;
  pointer-events: none; opacity: 0; transition: opacity 0.15s;
}
.chips-wrap::before { left: 0; background: linear-gradient(to right, var(--bg) 35%, transparent); }
.chips-wrap::after { right: 0; background: linear-gradient(to left, var(--bg) 35%, transparent); }
.chips-wrap.can-left::before, .chips-wrap.can-right::after { opacity: 1; }

.chip-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); cursor: pointer; font-size: 18px; line-height: 1;
  display: none; align-items: center; justify-content: center; padding: 0 0 2px;
}
.chip-arrow:hover { border-color: var(--muted); }
.chip-arrow.left { left: 0; }
.chip-arrow.right { right: 0; }
.chips-wrap.can-left .chip-arrow.left, .chips-wrap.can-right .chip-arrow.right { display: inline-flex; }
@media (hover: none) and (pointer: coarse) { .chip-arrow { display: none !important; } }

.card .tags { gap: 8px; }
.card .tags .chip { font-size: 12.5px; line-height: 1; padding: 7px 12px; }

@media (max-width: 480px) {
  .card .tags { gap: 6px; }
  .card .tags .chip { font-size: 12px; padding: 6px 10px; }
}

@media (max-width: 480px) {
  .card .tags { gap: 5px; }
  .card .tags .chip { font-size: 11.5px; padding: 6px 9px; }
}

.nav .ico { display: none; }
.nav-sep { display: none; }
.ico-theme { width: 18px; height: 18px; display: block; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0; }

@media (min-width: 900px) {
  .dock { display: contents; }
  :root { --dock: 64px; --dock-gap: 16px; }
  body { padding-left: calc(var(--dock) + var(--dock-gap) * 2); }

  .top {
    position: fixed; z-index: 30;
    top: 50%; left: max(var(--dock-gap), env(safe-area-inset-left));
    transform: translateY(-50%);
    width: var(--dock); padding: 0;
    background: var(--bg); border: 1px solid var(--line); border-radius: 24px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.05);
  }
  :root[data-theme="dark"] .top { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.4); }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .top { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.4); }
  }

  .top-inner {
    max-width: none; margin: 0; padding: 10px;
    flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px;
  }

  .brand {
    width: 44px; height: 44px; border-radius: 14px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 12.5px; font-weight: 700; letter-spacing: -0.02em; overflow: visible;
    background: var(--text); color: var(--bg);
  }

  .nav-sep { display: block; width: 24px; height: 1px; background: var(--line); margin: 6px 0; }

  .nav { flex: none; flex-direction: column; align-items: center; gap: 6px; width: auto; }
  .nav a, .icon-btn {
    position: relative; width: 44px; height: 44px; padding: 0; margin: 0;
    display: flex; align-items: center; justify-content: center;
    border: 0; border-radius: 14px; background: transparent; color: var(--muted);
    transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
  }
  .nav a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } 
  .nav .ico { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .ico-theme { width: 22px; height: 22px; }

  .nav a:hover, .icon-btn:hover, .brand:hover { transform: translateY(-1px) scale(1.1); }
  .nav a:hover, .icon-btn:hover { background: var(--bg-soft); color: var(--text); border-color: transparent; }
  .nav a.active { background: var(--chip); color: var(--text); }
  
  .nav a.active::before {
    content: ""; position: absolute; left: -10px; top: 50%; transform: translateY(-50%);
    width: 3px; height: 18px; border-radius: 0 3px 3px 0; background: var(--text);
  }
  .nav a:focus-visible, .icon-btn:focus-visible, .brand:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

  .top [data-tip]::after {
    content: attr(data-tip); position: absolute; left: calc(100% + 14px); top: 50%;
    transform: translateY(-50%) translateX(-4px);
    background: var(--text); color: var(--bg);
    font: 500 13px/1 var(--sans); padding: 8px 11px; border-radius: 9px; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: opacity 0.14s ease, transform 0.14s ease;
  }
  .top [data-tip]:hover::after, .top [data-tip]:focus-visible::after { opacity: 1; transform: translateY(-50%) translateX(0); }
  .brand { position: relative; }

  .foot-inner { max-width: 720px; }
}

@media (min-width: 900px) and (max-height: 420px) {
  .top { position: absolute; top: 16px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nav a, .icon-btn, .brand, .top [data-tip]::after { transition: none !important; }
  .nav a:hover, .icon-btn:hover, .brand:hover { transform: none; }
}



.post-tags { margin-top: 32px; }

html { -webkit-tap-highlight-color: transparent; }
a, button, input { touch-action: manipulation; }

@media (max-width: 899px) {
  body { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }

  .top { position: static; border-bottom: 0; background: transparent; padding-top: env(safe-area-inset-top); }
  .top-inner { padding: 18px 16px 4px; justify-content: flex-start; }
  .brand { font-size: 20px; }
  .top-inner > .nav-sep { display: none; }

  .dock {
    position: fixed; z-index: 40; left: 50%; transform: translateX(-50%);
    bottom: calc(12px + env(safe-area-inset-bottom));
    display: flex; align-items: center; gap: 2px; padding: 6px;
    max-width: calc(100vw - 24px);
    background: var(--bg); border: 1px solid var(--line); border-radius: 26px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
  }
  :root[data-theme="dark"] .dock { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.5); }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .dock { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.5); }
  }
  .dock .nav { display: flex; gap: 2px; flex: none; width: auto; font-size: 11px; }
  .dock .nav-sep { display: block; width: 1px; height: 28px; margin: 0 4px; background: var(--line); }

  .dock .nav a, .dock .icon-btn {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; width: 66px; height: 52px; padding: 0; margin: 0; border: 0; border-radius: 18px;
    background: transparent; color: var(--muted); font-weight: 500; line-height: 1;
  }
  .dock .icon-btn { width: 52px; }
  .dock .nav a span { position: static; width: auto; height: auto; clip: auto; overflow: visible; font-size: 10.5px; letter-spacing: 0.01em; }
  .dock .nav .ico { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .dock .ico-theme { width: 22px; height: 22px; }
  .dock .nav a.active { background: var(--chip); color: var(--text); border-bottom: 0; }
  .dock .nav a.active::before { content: none; }
  .dock .nav a:active, .dock .icon-btn:active { background: var(--bg-soft); transform: scale(0.96); }

  body:has(input:focus) .dock { display: none; }

  .back, .article .back { display: inline-block; padding: 6px 0; }
  .btn { min-height: 40px; }
  .search { min-height: 46px; }
  .chip { min-height: 36px; display: inline-flex; align-items: center; }
  .card h2 a, .pn a { -webkit-touch-callout: none; }
}

@media (max-width: 899px) and (max-height: 480px) and (orientation: landscape) {
  body { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .dock .nav a, .dock .icon-btn { height: 44px; }
}

@media (max-width: 360px) {
  .dock .nav a { width: 58px; }
  .dock .icon-btn { width: 46px; }
}

@media print {
  .dock { display: none !important; }
}

@media (max-width: 899px) {
  .dock > .nav-sep:first-child { display: none; }
}

@media (max-width: 899px) {
  body[data-page="home"] .brand, body[data-page="tag"] .brand { display: none; }
  body[data-page="home"] .top-inner, body[data-page="tag"] .top-inner { padding: 0; }
  body[data-page="home"] .intro, body[data-page="tag"] .intro { padding-top: 28px; }

  .prose { text-wrap: pretty; hyphens: manual; }
  .prose h2, .prose h3, .prose h4, .article h1.title, .card h2 { text-wrap: balance; }
  .prose h2 { margin: 1.6em 0 0.5em; }
  .prose h3 { margin: 1.4em 0 0.4em; }
  .prose hr { margin: 1.8em 0; }
  .prose ul, .prose ol { padding-left: 1.25em; }
  .prose li { margin: 0.35em 0; }
  .prose blockquote { margin: 1.2em 0; padding-left: 0.9em; }

  .prose code { padding: 0.05em 0.18em; font-size: 0.84em; border-radius: 4px; }
  .prose pre { padding: 12px 14px; font-size: 13px; line-height: 1.55; margin: 1.2em 0; }
  .prose pre code { font-size: inherit; }

  .prose pre {
    background:
      linear-gradient(to right, var(--code-bg) 30%, rgba(0, 0, 0, 0)) left center / 28px 100% no-repeat local,
      linear-gradient(to left, var(--code-bg) 30%, rgba(0, 0, 0, 0)) right center / 28px 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, rgba(128, 128, 128, 0.45), rgba(0, 0, 0, 0)) left center / 12px 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, rgba(128, 128, 128, 0.45), rgba(0, 0, 0, 0)) right center / 12px 100% no-repeat scroll,
      var(--code-bg);
  }
  .prose table {
    width: 100%; font-size: 14px; margin: 1.2em 0;
    background:
      linear-gradient(to right, var(--bg) 30%, rgba(0, 0, 0, 0)) left center / 28px 100% no-repeat local,
      linear-gradient(to left, var(--bg) 30%, rgba(0, 0, 0, 0)) right center / 28px 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, rgba(128, 128, 128, 0.45), rgba(0, 0, 0, 0)) left center / 12px 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, rgba(128, 128, 128, 0.45), rgba(0, 0, 0, 0)) right center / 12px 100% no-repeat scroll,
      var(--bg);
  }
  .prose th, .prose td { padding: 7px 10px; }
  .prose th { white-space: nowrap; }
  .prose td { min-width: 96px; }
  .prose td code, .prose th code { white-space: nowrap; }

  .article { padding-top: 12px; }
  .article h1.title { margin: 12px 0 10px; }
  .article .byline { padding: 12px 0; margin: 14px 0 22px; }
  .byline .who span { font-size: 12.5px; }
  .tags.post-tags { margin-top: 28px; }
  .pn { margin: 36px 0 8px; gap: 12px; }
  .pn a { padding: 14px; }
  .foot { margin-top: 32px; padding-top: 18px; }
}

.path-callout { display: block; margin: 8px 0 20px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); text-decoration: none; transition: border-color 0.15s ease, transform 0.15s ease; }
.path-callout:hover { border-color: var(--muted); transform: translateY(-1px); }
.path-callout span { display: block; }
.pc-kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.pc-title { font-family: var(--serif); font-size: 20px; font-weight: 700; margin: 2px 0; }
.pc-sub { font-size: 14px; color: var(--muted); }

.path-hero { padding: 40px 0 8px; }
.path-hero h1 { font-family: var(--serif); font-size: clamp(30px, 4.6vw, 42px); line-height: 1.15; margin: 0 0 10px; letter-spacing: -0.02em; }
.path-hero p { color: var(--muted); font-size: 17px; margin: 0 0 8px; }
.path-hero .path-facts { font-size: 14px; }
.path-progress { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; font-size: 14px; color: var(--muted); }
.path-progress progress { flex: 1; height: 8px; border: 0; border-radius: 999px; background: var(--chip); overflow: hidden; -webkit-appearance: none; appearance: none; }
.path-progress progress::-webkit-progress-bar { background: var(--chip); border-radius: 999px; }
.path-progress progress::-webkit-progress-value { background: var(--accent); border-radius: 999px; }
.path-progress progress::-moz-progress-bar { background: var(--accent); border-radius: 999px; }
.path-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-primary { display: inline-block; padding: 12px 20px; border-radius: 999px; background: var(--text); color: var(--bg); text-decoration: none; font-size: 15px; font-weight: 600; }
.btn-primary:hover { opacity: 0.9; }
.all-done { color: var(--accent); font-weight: 600; }
.link-btn { background: none; border: 0; padding: 8px 4px; font: inherit; font-size: 14px; color: var(--muted); text-decoration: underline; cursor: pointer; }

.stage { margin-top: 44px; }
.stage-head .stage-no { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.stage-head h2 { font-family: var(--serif); font-size: 26px; line-height: 1.25; margin: 4px 0 6px; letter-spacing: -0.01em; text-wrap: balance; }
.stage-head p { margin: 0; color: var(--muted); font-size: 16px; }

.steps { list-style: none; margin: 20px 0 0; padding: 0; }
.step { position: relative; display: flex; gap: 14px; padding-bottom: 22px; }
.step::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--line); }
.step:last-child { padding-bottom: 6px; }
.step:last-child::before { display: none; }
.step-n { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; border: 2px solid var(--line); background: var(--bg); color: var(--muted); z-index: 1; }
.step.done .step-n { background: var(--accent); border-color: var(--accent); color: #fff; }
.step-body { min-width: 0; padding-top: 3px; }
.step-title { font-family: var(--serif); font-size: 19px; font-weight: 700; line-height: 1.3; text-decoration: none; overflow-wrap: anywhere; }
.step-title:hover { text-decoration: underline; }
.step-why { margin: 4px 0 6px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.step-meta { font-size: 12.5px; color: var(--muted); }

.stage-box { margin: 14px 0 0 46px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); font-size: 14.5px; }
.stage-box strong { display: block; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.stage-box p, .stage-box ul { margin: 0; }
.stage-box ul { padding-left: 1.1em; }
.stage-box li { margin: 3px 0; }
.stage-box a { color: var(--link); overflow-wrap: anywhere; }


.path-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 14px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft); text-decoration: none; font-size: 13px; }
.path-strip:hover { border-color: var(--muted); }
.ps-label { font-weight: 600; color: var(--accent); }
.ps-step { font-weight: 600; }
.ps-stage { color: var(--muted); }

.path-nav a.next { background: var(--text); color: var(--bg); border-color: var(--text); }
.path-nav a.next small { color: inherit; opacity: 0.75; }

@media (max-width: 899px) {
  .path-hero { padding-top: 24px; }
  .stage { margin-top: 34px; }
  .stage-head h2 { font-size: 22px; }
  .step-title { font-size: 18px; }
  .step-why { font-size: 15px; }
  .stage-box { margin-left: 0; }
  .dock .nav a { width: 62px; }
  .path-callout { padding: 14px 16px; }
}
@media (max-width: 360px) {
  .dock .nav a { width: 54px; }
  .dock .icon-btn { width: 46px; }
}
