@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

:root{
  --ink:#000000;
  --paper:#ffffff;
  --line:3px solid #000000;
  --r:18px;
  --pad:clamp(1.1rem, 4vw, 2.75rem);
  --head-h:172px;
  --sans:'VT323 ui-sans-serif, system-ui, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif';
  --sans:'VT323', ui-sans-serif, system-ui, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --pixel:'Press Start 2P', ui-sans-serif, system-ui, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
  overflow-x:clip;
}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-size:1.0625rem;
  line-height:1.65;
  overflow-x:clip;
  max-width:100%;
}

h1,h2,h3,h4,h5{
  font-family:var(--pixel);
  font-weight:900;
  letter-spacing:-0.04em;
  line-height:1.25;
  margin:0;
  word-break:break-word;
  overflow-wrap:break-word;
}

p,ul,ol,figure,blockquote{margin:0}
ul,ol{padding:0;list-style:none}
a{color:inherit}
img,svg,video{display:block;max-width:100%;height:auto}

:focus-visible{outline:3px solid #000;outline-offset:3px}

.skip{
  position:absolute;
  left:-9999px;
  top:0;
  z-index:120;
  background:#000;
  color:#fff;
  padding:.85rem 1.2rem;
  text-decoration:none;
  font-size:1rem;
  border:3px solid #000;
}
.skip:focus{left:.5rem;top:.5rem}

.site-head{
  position:sticky;
  top:0;
  z-index:60;
  background:var(--paper);
  border-bottom:3px solid #000;
}

.topbar{
  background:#000;
  color:#fff;
  overflow:hidden;
}
.topbar-text{
  padding:.55rem 1rem;
  font-size:1rem;
  line-height:1.2;
  letter-spacing:.16em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.brandrow{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:.8rem 1rem .3rem;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  min-height:44px;
  max-width:100%;
  font-family:var(--pixel);
  font-weight:900;
  font-size:clamp(1.1rem, 4.2vw, 1.7rem);
  letter-spacing:-0.03em;
  line-height:1.15;
  text-decoration:none;
  color:#000;
  word-break:break-word;
}
.brand img{
  width:36px;
  height:36px;
  border:2px solid #000;
  border-radius:8px;
}
.brand:hover{text-decoration:underline;text-decoration-thickness:4px;text-underline-offset:6px}

.site-nav{padding:0 .3rem;border-top:2px solid #000;max-width:100%}
.site-nav p{
  display:flex;
  gap:.15rem;
  padding:.35rem .2rem;
  overflow-x:auto;
  scrollbar-width:thin;
  -webkit-overflow-scrolling:touch;
}
.site-nav a{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:.5rem .75rem;
  font-size:1rem;
  font-weight:700;
  letter-spacing:.02em;
  white-space:nowrap;
  text-decoration:none;
  border:2px solid transparent;
  border-radius:999px;
  transition:background .18s ease, color .18s ease, border-color .18s ease;
}
.site-nav a:hover,
.site-nav a.on{
  background:#000;
  color:#fff;
  border-color:#000;
}

.hero{
  position:relative;
  min-height:70vh;
  display:grid;
  place-items:center;
  background:#000;
  color:#fff;
  padding:clamp(3.5rem, 10vw, 8rem) 1.25rem calc(clamp(3.5rem, 10vw, 8rem) + 4vw);
  clip-path:polygon(0 0, 100% 0, 100% 88%, 0 100%);
  max-width:100%;
}

.badge{
  position:absolute;
  top:1.1rem;
  right:1.1rem;
  border:2px solid #fff;
  padding:.45rem .75rem;
  font-size:1rem;
  line-height:1.1;
  letter-spacing:.22em;
  color:#fff;
  max-width:calc(100% - 2.2rem);
}

.hero-inner{
  display:grid;
  justify-items:center;
  gap:clamp(1.5rem, 4vw, 2.5rem);
  text-align:center;
  width:100%;
  max-width:1050px;
  min-width:0;
}

.hero h1,
.hero-mark{
  margin:0;
  font-family:var(--pixel);
  font-weight:900;
  font-size:clamp(2.1rem, 8.6vw, 7.5rem);
  letter-spacing:-0.05em;
  line-height:1.06;
  overflow-wrap:break-word;
  word-break:break-word;
  max-width:100%;
  color:#fff;
}

.hero-cue{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:.85rem 1.9rem;
  border:3px solid #fff;
  color:#fff;
  text-decoration:none;
  font-size:1rem;
  font-weight:700;
  letter-spacing:.3em;
  transition:background .2s ease, color .2s ease;
}
.hero-cue:hover,
.hero-cue:focus-visible{background:#fff;color:#000}

.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:clamp(2rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.5rem) clamp(3rem, 8vw, 6rem);
  display:grid;
  grid-template-columns:230px minmax(0, 1fr);
  gap:clamp(1.5rem, 3vw, 3rem);
  align-items:start;
  width:100%;
}

.wrap > *{min-width:0}

.side{
  position:sticky;
  top:calc(var(--head-h) + 1rem);
  border:var(--line);
  border-radius:var(--r);
  padding:.9rem;
  background:#fff;
  min-width:0;
  max-width:100%;
}
.side h2{
  font-size:1rem;
  letter-spacing:.24em;
  padding-bottom:.6rem;
  border-bottom:2px solid #000;
}
.side ul{
  margin-top:.4rem;
  min-width:0;
  max-width:100%;
}
.side li + li{border-top:2px dotted #000}
.side a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:.3rem .15rem;
  font-size:1rem;
  font-weight:700;
  text-decoration:none;
  transition:background .18s ease, color .18s ease, padding-left .18s ease;
}
.side a:hover,
.side a.on{background:#000;color:#fff;padding-left:.7rem}

.content{min-width:0;max-width:100%}

.prose > article{
  border:var(--line);
  border-radius:var(--r);
  background:#fff;
  padding:var(--pad);
  margin:0 0 clamp(2rem, 5vw, 3.5rem);
  scroll-margin-top:calc(var(--head-h) + 1rem);
  transition:transform .25s ease, border-color .25s ease;
  min-width:0;
  max-width:100%;
}
.prose > article:last-child{margin-bottom:0}
.prose > article:hover{transform:translateY(-3px)}

.prose h2{
  font-size:clamp(1.55rem, 4vw, 2.5rem);
  line-height:1.22;
  padding-bottom:.6rem;
  margin:0 0 1rem;
  border-bottom:3px solid #000;
}
.prose h3{
  font-size:clamp(1.2rem, 2.6vw, 1.55rem);
  margin:1.75rem 0 .6rem;
}
.prose h2 span,
.prose h3 span{display:inline}
.prose p,
.prose li{
  font-size:1.0625rem;
  line-height:1.8;
  word-break:break-word;
  overflow-wrap:break-word;
}
.prose p + p{margin-top:1rem}
.prose ul,
.prose ol{margin:1rem 0;padding-left:1.3rem}
.prose ul{list-style:square}
.prose ol{list-style:decimal}
.prose li{margin:.4rem 0}
.prose a{
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}
.prose a:hover{background:#000;color:#fff;text-decoration:none}
.prose img{
  border:var(--line);
  border-radius:var(--r);
  margin:1.25rem 0;
  width:100%;
  height:auto;
}
.prose blockquote{
  border-left:6px solid #000;
  padding:.4rem 0 .4rem 1rem;
  margin:1.25rem 0;
  font-size:1.0625rem;
}
.prose hr{
  border:0;
  border-top:3px solid #000;
  margin:2rem 0;
}
.prose strong{font-weight:900}
.prose pre,
.prose table{
  display:block;
  max-width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.prose iframe{max-width:100%;border:0}

.site-foot{
  background:#000;
  color:#fff;
  padding:clamp(2.5rem, 7vw, 5rem) clamp(1rem, 4vw, 2.5rem) 1.5rem;
  margin-top:clamp(2rem, 6vw, 4rem);
}

.foot-top{
  max-width:1180px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1.5fr 1fr;
  gap:clamp(1.5rem, 4vw, 3rem);
  align-items:start;
}
.foot-top > *{min-width:0}

address{
  font-style:normal;
  font-family:var(--pixel);
  font-weight:900;
  font-size:clamp(1.25rem, 3vw, 1.85rem);
  line-height:1.25;
  letter-spacing:-0.03em;
  word-break:break-word;
  overflow-wrap:break-word;
}
address span{
  display:block;
  margin-top:.9rem;
  font-family:var(--sans);
  font-weight:400;
  font-size:1.0625rem;
  line-height:1.75;
  letter-spacing:0;
}

.foot-links h2{
  font-size:1rem;
  letter-spacing:.24em;
  padding-bottom:.6rem;
  border-bottom:2px solid #fff;
}
.foot-links ul{margin-top:.5rem}
.foot-links a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:.25rem 0;
  font-size:1.0625rem;
  text-decoration:none;
}
.foot-links a:hover,
.foot-links a:focus-visible{
  text-decoration:underline;
  text-decoration-thickness:3px;
  text-underline-offset:5px;
}

.foot-mark{
  max-width:1180px;
  margin:clamp(2rem, 6vw, 4rem) auto 0;
  padding-top:clamp(1rem, 3vw, 2rem);
  border-top:3px solid #fff;
  font-family:var(--pixel);
  font-weight:900;
  font-size:clamp(2.1rem, 13vw, 11rem);
  line-height:.92;
  letter-spacing:-0.05em;
  overflow-wrap:break-word;
  word-break:break-word;
}

.foot-bottom{
  max-width:1180px;
  margin:1.5rem auto 0;
  padding-top:1rem;
  border-top:2px solid #fff;
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:1rem;
  font-size:1rem;
}
.foot-bottom a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:4px;
}

.js .prose > article{
  opacity:0;
  transform:translateY(28px);
  transition:opacity .55s ease, transform .55s ease, border-color .25s ease;
}
.js .prose > article.in{opacity:1;transform:none}
.js .prose > article.in:hover{transform:translateY(-3px)}

@media (max-width:900px){
  :root{--head-h:158px}
  .wrap{
    grid-template-columns:minmax(0, 1fr);
    gap:1.5rem;
  }
  .side{position:static}
  .side ul{
    display:flex;
    gap:.3rem;
    overflow-x:auto;
    scrollbar-width:thin;
    -webkit-overflow-scrolling:touch;
  }
  .side li{flex:0 0 auto}
  .side li + li{border-top:0;border-left:2px solid #000}
  .side a{white-space:nowrap;padding:.3rem .6rem}
  .foot-top{grid-template-columns:minmax(0, 1fr)}
  .hero{min-height:64vh}
}

@media (max-width:520px){
  .brandrow{padding:.7rem .8rem .2rem}
  .topbar-text{letter-spacing:.1em}
  .badge{top:.8rem;right:.8rem;font-size:1rem}
  .prose > article{border-radius:14px}
  .foot-bottom{justify-content:flex-start}
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    transition-duration:.001ms !important;
    animation-duration:.001ms !important;
  }
  .js .prose > article{opacity:1;transform:none}
}

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