*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;overflow-x:clip}
body{margin:0;background:#fff;color:#000;font-family:'Montserrat',-apple-system,BlinkMacSystemFont,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;font-size:17px;line-height:1.78;font-weight:400;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block;height:auto}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{font-family:'Cormorant','Songti SC',Georgia,serif;font-weight:600;line-height:1.06;letter-spacing:-.035em;margin:0}
p{margin:0 0 1.1em}
button{font:inherit}
:focus-visible{outline:2px solid #000;outline-offset:3px}
article[id],section[id]{scroll-margin-top:1.5rem}

/* rail */
.rail{position:fixed;left:0;top:0;bottom:0;width:clamp(196px,17vw,252px);display:flex;flex-direction:column;gap:1.6rem;padding:1.6rem 1.3rem 1.8rem;border-right:1px solid #000;background:#fff;z-index:30;overflow-y:auto;overflow-x:hidden}
.mark{display:inline-flex;align-items:center;width:44px;min-height:44px}
.mark img{width:30px;height:30px;object-fit:contain;filter:grayscale(1)}
.mark-box{display:block;width:24px;height:24px;background:#000;transition:transform .35s cubic-bezier(.2,.7,.3,1)}
.mark:hover .mark-box{transform:rotate(45deg)}
.rail-nav{margin-top:.2rem;min-width:0}
.rail-nav p{display:flex;flex-direction:column;gap:.05rem;margin:0;min-width:0}
.rail-nav a{position:relative;display:flex;align-items:center;gap:.6rem;min-height:42px;padding:.35rem 0;font-size:1rem;font-weight:500;letter-spacing:.01em;transition:transform .25s ease}
.rail-nav a .dot{display:block;flex:none;width:8px;height:8px;border:1px solid #000;background:#fff;transition:background .25s ease,transform .25s ease}
.rail-nav a:hover{transform:translateX(3px)}
.rail-nav a:hover .dot{background:#000;transform:scale(1.15)}
.search{margin-top:auto;display:flex;flex-direction:column;gap:.4rem;min-width:0}
.search label{font-size:.8rem;letter-spacing:.26em;text-transform:uppercase}
.search input{width:100%;min-height:42px;padding:.5rem .65rem;font:inherit;font-size:.95rem;color:#000;background:#fff;border:1px solid #000;border-radius:0;appearance:none;min-width:0}
.search input::placeholder{color:#000;opacity:.5}
.search input:focus{outline:none;background:#000;color:#fff}
.search input:focus::placeholder{color:#fff;opacity:.6}

/* hero */
.hero{position:relative;display:grid;place-items:center;min-height:45vh;padding:5rem 1.4rem 4.5rem;background:#000;color:#fff;overflow:hidden;border-radius:0 0 50% 50%/0 0 13% 13%;isolation:isolate}
.hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1;filter:grayscale(1) contrast(1.15);opacity:.5;transform:scale(1.06);will-change:transform}
.hero-inner{position:relative;text-align:center;max-width:min(1080px,94%);min-width:0}
.hero h1{font-size:clamp(2.6rem,8.5vw,7.5rem);font-weight:600;letter-spacing:-.05em;line-height:.92;margin:0;overflow-wrap:break-word}

/* layout */
main{padding-left:0}
.wrap{display:grid;grid-template-columns:186px minmax(0,1fr);gap:clamp(1.6rem,4vw,4rem);max-width:1400px;margin:0 auto;padding:clamp(2.8rem,6vw,6rem) clamp(1.2rem,4vw,4rem) clamp(3rem,6vw,6rem)}
.side{position:sticky;top:2rem;align-self:start;border-top:1px solid #000;padding-top:.7rem;min-width:0}
.side-title{margin:0 0 .5rem;font-size:.8rem;letter-spacing:.26em}
.side ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.side a{display:flex;align-items:center;min-height:40px;padding:.3rem 0;font-size:.95rem;border-bottom:1px solid rgba(0,0,0,.12);transition:padding-left .25s ease}
.side a:hover{padding-left:.4rem;border-bottom-color:#000}

.doc{min-width:0;max-width:100%}
.lede{border-top:1px solid #000;padding-top:1rem;margin-bottom:clamp(2.2rem,5vw,3.6rem)}
.lede h2{font-size:clamp(1.35rem,2.4vw,1.9rem);letter-spacing:-.01em}
.subtitle{margin:.55rem 0 0;max-width:44ch;font-size:1.02rem;line-height:1.85;color:#000}

/* div body */
.body{font-size:1.02rem;min-width:0;max-width:100%;overflow-wrap:break-word}
.body > article{padding-top:clamp(2rem,4.5vw,3.4rem);border-top:1px solid rgba(0,0,0,.16)}
.body > article:first-child{border-top:0;padding-top:0}
.body h2{font-size:clamp(1.7rem,4vw,3rem);margin:0 0 1rem;letter-spacing:-.045em}
.body h3{font-size:clamp(1.15rem,2.4vw,1.5rem);margin:2.2rem 0 .7rem}
.body p,.body li{max-width:64ch}
.body p{margin:0 0 1.15em}
.body ul,.body ol{margin:0 0 1.3em;padding-left:1.25em}
.body li{margin-bottom:.5em}
.body a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.22em}
.body a:hover{background:#000;color:#fff;text-decoration:none}
.body strong{font-weight:600}
.body img{width:100%;margin:1.6rem 0}
.body figure{margin:1.6rem 0}
.body blockquote{margin:1.6rem 0;padding:.2rem 0 .2rem 1.2rem;border-left:3px solid #000;font-family:'Cormorant','Songti SC',Georgia,serif;font-size:1.25rem;line-height:1.6}
.body time{font-size:.85rem;letter-spacing:.08em}
.body code,.body pre{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.92rem}
.body pre{overflow-x:auto;padding:1rem;background:#000;color:#fff}
.body table{width:100%;border-collapse:collapse;margin:1.4rem 0}
.body th,.body td{border-bottom:1px solid #000;padding:.6rem .4rem;text-align:left}

/* footer */
.site-foot{border-top:1px solid #000;padding:clamp(2.4rem,5vw,4rem) clamp(1.2rem,4vw,4rem) 2.2rem;max-width:1400px;margin:0 auto}
.foot-cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(1.4rem,4vw,3rem)}
.foot-cols dl{margin:0;min-width:0}
.foot-cols dt{font-size:.8rem;letter-spacing:.26em;margin-bottom:.6rem}
.foot-cols dd{margin:0}
.foot-brand{font-family:'Cormorant','Songti SC',Georgia,serif;font-size:1.5rem;letter-spacing:-.02em}
.foot-cols dd a{display:inline-flex;align-items:center;min-height:40px;padding:.2rem 0;font-size:.95rem;border-bottom:1px solid transparent;transition:border-color .2s ease}
.foot-cols dd a:hover{border-bottom-color:#000}
.copy{text-align:center;margin:clamp(2rem,4vw,3rem) 0 0;padding-top:1.2rem;border-top:1px solid rgba(0,0,0,.16);font-size:.85rem;letter-spacing:.06em}

/* to top */
.totop{position:fixed;right:1rem;bottom:1rem;z-index:40;min-height:44px;padding:.55rem 1rem;font-size:.85rem;letter-spacing:.08em;color:#000;background:#fff;border:1px solid #000;border-radius:0;cursor:pointer;opacity:0;transform:translateY(8px);pointer-events:none;transition:opacity .3s ease,transform .3s ease,background .2s,color .2s}
.totop.is-on{opacity:1;transform:none;pointer-events:auto}
.totop:hover{background:#000;color:#fff}

@media (min-width:901px){
  body{padding-left:clamp(196px,17vw,252px)}
}

@media (max-width:900px){
  .rail{position:static;width:auto;max-width:100%;flex-direction:row;flex-wrap:wrap;align-items:center;gap:.7rem 1rem;padding:.8rem 1rem;border-right:0;border-bottom:1px solid #000;overflow:visible}
  .rail-nav{flex:1 1 100%;order:3;margin:0;min-width:0;width:100%;max-width:100%}
  .rail-nav p{flex-direction:row;flex-wrap:nowrap;gap:.9rem;width:100%;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}
  .rail-nav p::-webkit-scrollbar{display:none}
  .rail-nav a{white-space:nowrap;min-height:44px;padding:.45rem 0;font-size:.92rem;gap:.45rem}
  .search{order:2;margin:0 0 0 auto;flex-direction:row;align-items:center;gap:.4rem;min-width:0}
  .search label{font-size:.75rem;letter-spacing:.2em}
  .search input{width:min(8.5rem,40vw);min-height:40px;font-size:.9rem}
  .hero{min-height:40vh;padding:3rem 1.1rem 3rem;border-radius:0 0 42% 42%/0 0 10% 10%}
  .hero h1{font-size:clamp(2rem,9.5vw,3.4rem)}
  .wrap{grid-template-columns:minmax(0,1fr);gap:1.8rem;padding:2rem 1.1rem 3rem}
  .side{position:static;top:auto}
  .side ul{flex-direction:row;flex-wrap:wrap;gap:0 1rem}
  .side a{border-bottom:0;padding-right:.2rem}
  .body p,.body li{max-width:none}
  .foot-cols{grid-template-columns:1fr}
  .copy{font-size:.8rem}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important}
  .hero-img{transform:none!important}
}

button[aria-expanded]{min-width:44px;min-height:44px}
