@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

:root{
  --ink:#000;
  --paper:#fff;
  --soft:#e6e6e6;
  --mute:#575757;
  --rail:300px;
  --line:1px solid var(--ink);
}

*,*::before,*::after{box-sizing:border-box}

html{
  font-size:16px;
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  padding-left:var(--rail);
  background:var(--paper);
  color:var(--ink);
  font-family:'DM Sans',system-ui,-apple-system,'Segoe UI','PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  font-size:1.0625rem;
  line-height:1.7;
  overflow-wrap:break-word;
  -webkit-font-smoothing:antialiased;
}

img{display:block;max-width:100%;height:auto}
a{color:inherit}
p{margin:0 0 1.15rem}

.rail{
  position:fixed;
  top:0;
  left:0;
  bottom:0;
  width:var(--rail);
  display:flex;
  flex-direction:column;
  gap:1.35rem;
  padding:2rem 1.5rem;
  background:var(--paper);
  border-right:var(--line);
  overflow-y:auto;
  z-index:20;
}

.brand{
  display:flex;
  align-items:center;
  gap:.6rem;
  min-height:44px;
  font-size:1.25rem;
  font-weight:700;
  letter-spacing:-.02em;
  line-height:1.15;
  text-decoration:none;
}
.brand-mark{width:34px;height:34px;object-fit:contain;flex:none}

.rail-nav{flex:1}

.rail-details>summary{
  display:flex;
  align-items:center;
  gap:.7rem;
  min-height:48px;
  padding:.6rem 0;
  border-top:var(--line);
  border-bottom:var(--line);
  font-size:.9375rem;
  letter-spacing:.22em;
  cursor:pointer;
  list-style:none;
}
.rail-details>summary::-webkit-details-marker{display:none}
.rail-details>summary::before{
  content:"";
  width:9px;
  height:9px;
  flex:none;
  background:var(--ink);
  transition:background .2s ease;
}
.rail-details[open]>summary::before{background:var(--paper);box-shadow:inset 0 0 0 1px var(--ink)}

.rail-menu{
  display:flex;
  flex-direction:column;
  margin:.75rem 0 0;
  padding:0;
  list-style:none;
}
.rail-menu a{
  display:flex;
  align-items:center;
  gap:.75rem;
  min-height:48px;
  padding:.75rem 0;
  border-bottom:1px solid var(--soft);
  font-size:1rem;
  line-height:1.4;
  text-decoration:none;
  transition:letter-spacing .22s ease;
}
.rail-menu a::before{
  content:"";
  width:7px;
  height:7px;
  flex:none;
  background:var(--ink);
  transition:transform .22s ease;
}
.rail-menu a:hover{letter-spacing:.04em}
.rail-menu a:hover::before{transform:scale(1.7)}

.rail-cta{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:0 1rem;
  border:1px solid var(--ink);
  background:var(--ink);
  color:var(--paper);
  font-size:1rem;
  letter-spacing:.08em;
  text-decoration:none;
  transition:background .22s ease,color .22s ease;
}
.rail-cta:hover{background:var(--paper);color:var(--ink)}

.hero{
  display:grid;
  grid-template-columns:minmax(160px,23%) 1fr;
  gap:2rem;
  align-items:stretch;
  min-height:100vh;
  min-height:100svh;
  padding:3rem clamp(1.25rem,5vw,4rem);
  border-bottom:var(--line);
}

.hero-side{
  display:flex;
  flex-direction:column;
  padding-right:2rem;
  border-right:var(--line);
}

.hero-index{
  font-size:clamp(4rem,10vw,8.5rem);
  font-weight:700;
  line-height:.8;
  letter-spacing:-.06em;
  color:var(--soft);
}

.hero-h2{
  margin:auto 0 .5rem;
  font-size:1.0625rem;
  font-weight:700;
  line-height:1.35;
  letter-spacing:-.01em;
}

.subtitle,
.hero-side .subtitle{
  margin:0;
  padding-bottom:1rem;
  color:var(--mute);
  font-size:1rem;
  line-height:1.65;
  border-bottom:1px solid var(--soft);
}
.hero-side .subtitle{border-bottom:0;padding-bottom:0}

.hero-main{
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  align-items:flex-end;
  text-align:right;
}
.hero-main h1{
  margin:0 0 2rem;
  font-size:clamp(2.3rem,6.4vw,5.25rem);
  font-weight:700;
  line-height:.95;
  letter-spacing:-.045em;
  text-wrap:balance;
}

main>article{
  padding:clamp(3.5rem,7.5vw,6.5rem) clamp(1.25rem,5vw,4rem);
  border-bottom:var(--line);
  scroll-margin-top:5.5rem;
}
main>article:not(.hero)>*{max-width:66ch}
main>article:not(.hero)>figure,
main>article:not(.hero)>img,
main>article:not(.hero)>table,
main>article:not(.hero)>pre{max-width:100%}

main>article:not(.hero) h2{
  margin:0 0 .65rem;
  font-size:clamp(1.5rem,3.1vw,2.15rem);
  font-weight:700;
  line-height:1.18;
  letter-spacing:-.025em;
}
main>article:not(.hero) h3{
  margin:2.4rem 0 .5rem;
  font-size:1.1875rem;
  line-height:1.4;
  letter-spacing:-.01em;
}
main>article:not(.hero) p.subtitle{
  margin:0 0 2rem;
  padding-bottom:1.2rem;
  border-bottom:1px solid var(--soft);
}
main>article:not(.hero) ul,
main>article:not(.hero) ol{
  margin:0 0 1.5rem;
  padding-left:1.35rem;
}
main>article:not(.hero) li{margin:.45rem 0}
main>article:not(.hero) a{
  text-decoration:underline;
  text-underline-offset:3px;
  text-decoration-thickness:1px;
}
main>article:not(.hero) a:hover{background:var(--ink);color:var(--paper);text-decoration:none}
main>article:not(.hero) blockquote{
  margin:2rem 0;
  padding:0 0 0 1.25rem;
  border-left:3px solid var(--ink);
  font-size:1.0625rem;
}
main>article:not(.hero) figure{margin:2rem 0}
main>article:not(.hero) figcaption{
  margin-top:.6rem;
  font-size:1rem;
  color:var(--mute);
}
main>article:not(.hero) img{width:100%}
main>article:not(.hero) hr{
  height:1px;
  border:0;
  background:var(--soft);
  margin:2.5rem 0;
}
main>article:not(.hero) table{
  width:100%;
  border-collapse:collapse;
  font-size:1rem;
  margin:0 0 1.5rem;
}
main>article:not(.hero) th,
main>article:not(.hero) td{
  border-bottom:1px solid var(--soft);
  padding:.7rem .6rem;
  text-align:left;
  vertical-align:top;
}

.foot{
  border-top:2px solid var(--ink);
  padding:clamp(2.5rem,6vw,4rem) clamp(1.25rem,5vw,4rem) 1.5rem;
}
.foot-cta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:2rem;
  padding-bottom:2.75rem;
  border-bottom:1px solid var(--soft);
}
.foot-big{
  margin:0;
  font-size:clamp(1.75rem,4.6vw,2.9rem);
  font-weight:700;
  line-height:1;
  letter-spacing:-.035em;
}
.foot-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:0 1.75rem;
  background:var(--ink);
  color:var(--paper);
  font-size:1rem;
  letter-spacing:.06em;
  text-decoration:none;
  transition:background .22s ease,color .22s ease,box-shadow .22s ease;
}
.foot-btn:hover{background:var(--paper);color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}

.foot-cols{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:2rem;
  padding:2.5rem 0;
}
.foot-col address{
  display:flex;
  flex-direction:column;
  gap:.35rem;
  font-style:normal;
  font-size:1rem;
  line-height:1.6;
}
.foot-col ul{margin:0;padding:0;list-style:none}
.foot-col li a{
  display:inline-block;
  min-height:40px;
  padding:.55rem 0;
  font-size:1rem;
  line-height:1.5;
  text-decoration:none;
}
.foot-col li a:hover{text-decoration:underline;text-underline-offset:3px}

.foot-base{
  padding-top:1.5rem;
  border-top:1px solid var(--soft);
  text-align:center;
}
.foot-base p{margin:0;font-size:1rem;color:var(--mute)}

@keyframes rise{
  from{opacity:0;transform:translateY(16px)}
  to{opacity:1;transform:none}
}

@media (prefers-reduced-motion:no-preference){
  .hero-index,.hero-h2,.hero-side .subtitle,.hero-main h1{
    animation:rise .7s cubic-bezier(.2,.7,.3,1) both;
  }
  .hero-h2{animation-delay:.08s}
  .hero-side .subtitle{animation-delay:.16s}
  .rail-menu a{
    animation:rise .45s ease both;
    animation-delay:calc(var(--i,0) * 55ms + .12s);
  }
}

@supports (animation-timeline:view()){
  @media (prefers-reduced-motion:no-preference){
    main>article:not(.hero)>*{
      animation:rise both linear;
      animation-timeline:view();
      animation-range:entry 6% cover 26%;
    }
  }
}

@media (min-width:900px){
  .rail-details>menu{display:flex !important}
}

@media (max-width:899px){
  body{padding-left:0;padding-top:64px}

  .rail{
    right:0;
    bottom:auto;
    width:auto;
    height:64px;
    flex-direction:row;
    align-items:center;
    gap:1rem;
    padding:.5rem 1.25rem;
    border-right:0;
    border-bottom:var(--line);
    overflow:visible;
  }
  .brand{flex:none;font-size:1.0625rem;min-height:44px}
  .rail-nav{flex:1;display:flex;justify-content:flex-end}
  .rail-details{width:100%}
  .rail-details>summary{
    justify-content:flex-end;
    min-height:44px;
    padding:.5rem .9rem;
    border:1px solid var(--ink);
  }
  .rail-menu{
    position:fixed;
    top:64px;
    left:0;
    right:0;
    margin:0;
    padding:.4rem 1.25rem 1rem;
    background:var(--paper);
    border-bottom:var(--line);
    max-height:calc(100vh - 64px);
    overflow-y:auto;
    z-index:30;
  }
  .rail-cta{display:none}

  .hero{
    display:flex;
    flex-direction:column;
    gap:1.5rem;
    min-height:0;
    padding:1.75rem 1.25rem 2.5rem;
  }
  .hero-main{order:1;align-items:flex-start;text-align:left;padding:0}
  .hero-main h1{
    margin:0 0 2rem;
    font-size:clamp(2.1rem,8.6vw,3.1rem);
    letter-spacing:-.03em;
  }
  .hero-side{
    order:2;
    padding:1.5rem 0 0;
    border-right:0;
    border-top:var(--line);
  }
  .hero-index{font-size:clamp(3.25rem,17vw,5.5rem)}
  .hero-h2{margin:1.25rem 0 .5rem}

  main>article{padding:3rem 1.25rem;scroll-margin-top:5rem}

  .foot-cta{padding-bottom:2rem}
  .foot-cols{grid-template-columns:1fr;gap:1.25rem;padding:2rem 0}
  .foot-big{font-size:clamp(1.6rem,7vw,2.2rem)}
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

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