/* YOGINISTYLER ── /with/ 静的層のスタイル。
   色・書体のトークンは LEXICON（/yoga-terms/assets/lexicon.css）と同一。
   ここは人のページなので、余白を広く、装飾を足さない。 */
:root{
  --ink:#23212b; --ink-soft:#4c4854;
  --ground:#faf6f1; --panel:#f2ebe3; --panel2:#efe6dc;
  --line:#e3d8cc; --muted:#8d8592;
  --lotus:#c27ba0; --lotus-deep:#a85f88;
  --serif:"Hoefler Text","Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;
  --sans:"Avenir Next",Avenir,"Segoe UI",system-ui,-apple-system,sans-serif;
  --ja:"Hiragino Mincho ProN","Yu Mincho","YuMincho",serif;
  --maxw:38rem;
}
@media (prefers-color-scheme:dark){:root{
  --ink:#ece7ee; --ink-soft:#c3bcc9; --ground:#17161d; --panel:#1f1d27; --panel2:#232029;
  --line:#302c39; --muted:#9a93a3; --lotus:#d896b9; --lotus-deep:#e6aecd;}}
:root[data-theme="light"]{--ink:#23212b;--ink-soft:#4c4854;--ground:#faf6f1;--panel:#f2ebe3;--panel2:#efe6dc;--line:#e3d8cc;--muted:#8d8592;--lotus:#c27ba0;--lotus-deep:#a85f88;}
:root[data-theme="dark"]{--ink:#ece7ee;--ink-soft:#c3bcc9;--ground:#17161d;--panel:#1f1d27;--panel2:#232029;--line:#302c39;--muted:#9a93a3;--lotus:#d896b9;--lotus-deep:#e6aecd;}

*{box-sizing:border-box}
body{margin:0;background:var(--ground);color:var(--ink);font-family:var(--sans);line-height:1.72;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;}
body>*{max-width:var(--maxw);margin-left:auto;margin-right:auto;padding-left:1.5rem;padding-right:1.5rem;}
main.list{max-width:44rem}
a{color:inherit;-webkit-tap-highlight-color:rgba(194,123,160,.20)}
img{max-width:100%;height:auto}

/* ── ヘッダー：帯だけ画面いっぱい。中身は本文と同じ柱に揃える ── */
.topbar{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding-top:1rem;padding-bottom:.85rem;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:30;background:var(--ground);flex-wrap:wrap;
  --hw:38rem;max-width:none;
  padding-left:max(1.5rem,calc((100% - var(--hw))/2 + 1.5rem));
  padding-right:max(1.5rem,calc((100% - var(--hw))/2 + 1.5rem))}
body:has(main.list) .topbar{--hw:44rem}
.brand{flex:none;text-decoration:none;font-family:var(--serif);font-size:.95rem;letter-spacing:.22em;color:var(--ink-soft);text-transform:uppercase;transition:color .2s}
.brand:hover{color:var(--ink)}
.langs{display:flex;gap:.15rem;align-items:center;font-size:.82rem;flex:none}
.langs a{color:var(--muted);text-decoration:none;padding:.25rem .5rem;border-radius:2rem;transition:.2s}
.langs a:hover{color:var(--ink)}
.langs a[aria-current="true"]{color:var(--ink);background:var(--panel);font-weight:600}
.langs span{color:var(--line);font-size:.7rem}

.crumbs{font-size:.72rem;letter-spacing:.06em;color:var(--muted);text-transform:uppercase;font-weight:600;margin-top:1rem;margin-bottom:2.4rem}
.crumbs .up{color:var(--lotus-deep);text-decoration:none}
.crumbs .up:hover{text-decoration:underline}
.crumbs .sep{color:var(--line)}
.crumbs.ja{text-transform:none;letter-spacing:.1em;font-family:var(--ja)}

/* ── 個別ページ ── */
.eyebrow{display:flex;align-items:center;gap:.8rem;margin-bottom:1.1rem}
.code{font-family:var(--sans);font-size:.78rem;letter-spacing:.08em;color:var(--lotus-deep);border:1px solid var(--line);padding:.2rem .55rem;border-radius:.35rem;background:var(--panel)}
.set{font-size:.68rem;text-transform:uppercase;letter-spacing:.22em;color:var(--muted);font-weight:600}
h1.name{font-family:var(--serif);font-weight:500;letter-spacing:-.01em;font-size:clamp(2.4rem,6.4vw,3.5rem);line-height:1.08;margin:.2rem 0 0;text-wrap:balance}
.rule{height:1px;background:var(--line);margin:2.1rem 0;border:0}

.prose{margin-top:2rem}
.prose p{margin:0 0 1.15rem;font-size:1.06rem;color:var(--ink)}
.prose.ja p{font-family:var(--ja);font-size:1.02rem;line-height:1.95}
.prose a{color:var(--lotus-deep);text-decoration:none;border-bottom:1px solid var(--line);word-break:break-word;transition:.2s}
.prose a:hover{border-bottom-color:var(--lotus)}
.prose strong{font-weight:600}
/* 原文の ◇===◇ は、そのまま置く。色だけ地に沈める */
.prose p.sep{color:var(--muted);opacity:.5;letter-spacing:.02em;overflow-wrap:anywhere;font-size:.9rem;margin-bottom:1.4rem}
.prose p.sep em{font-style:normal}
.prose p.colo{color:var(--muted);font-size:.78rem;letter-spacing:.04em;margin-top:2rem}
.prose p.colo em{font-style:normal}

.gallery{margin-top:2.6rem;padding-top:2.2rem;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(3,1fr);gap:.7rem}
.gallery figure{margin:0}
.gallery img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:.5rem;background:var(--panel)}
@media (max-width:520px){.gallery{grid-template-columns:1fr;gap:1rem}}

/* ── 一覧ページ ── */
.list-h{font-family:var(--serif);font-weight:500;font-size:clamp(2rem,5vw,2.6rem);letter-spacing:.02em;margin:1.6rem 0 .4rem}
.list-lead{font-family:var(--serif);font-size:1.16rem;line-height:1.7;color:var(--ink-soft);margin:0 0 2.2rem;text-wrap:pretty}
.list-lead.ja{font-family:var(--ja);font-size:1.06rem;line-height:1.95}
.entry{display:flex;gap:1rem;align-items:center;padding:.9rem .8rem;border-radius:.7rem;text-decoration:none;color:inherit;border:1px solid transparent;transition:.16s}
.entry:hover{background:var(--panel);border-color:var(--line)}
.entry .code{min-width:3.6rem;text-align:center}
.entry .n0{font-family:var(--serif);font-size:1.25rem;font-weight:600;line-height:1.2}
.entry .arrow{margin-left:auto;color:var(--muted);opacity:0;transition:.16s;font-size:1.1rem}
.entry:hover .arrow{opacity:1}
.entry:focus{outline:none}
.entry:focus-visible{outline:2px solid var(--lotus);outline-offset:2px}

footer{margin-top:3.6rem;padding-top:1.6rem;border-top:1px solid var(--line);padding-bottom:4rem}
.pager{display:flex;justify-content:center;font-size:.9rem}
.pager a{text-decoration:none;color:var(--ink-soft);transition:.2s;text-align:center}
.pager a:hover{color:var(--lotus-deep)}
.pager .dir{display:block;font-size:.66rem;text-transform:uppercase;letter-spacing:.16em;color:var(--muted);margin-bottom:.2rem}
.pager.ja .dir{text-transform:none;letter-spacing:.1em;font-family:var(--ja)}
.colophon{margin-top:1.8rem;text-align:center;font-size:.74rem;color:var(--muted);letter-spacing:.04em}
.colophon a{color:var(--lotus-deep);text-decoration:none;margin:0 .5rem}
.colophon a:hover{text-decoration:underline}
.colophon.ja{font-family:var(--ja)}
