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

:root{
  --ink:#111111;
  --paper:#EDEDED;
  --neon:#D6FF3F;
  --line:#111111;
  --soft:rgba(17,17,17,.14);
  --mono:'Space Mono',ui-monospace,'SFMono-Regular',Menlo,Consolas,'Noto Sans SC',monospace;
}

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

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
  max-width:100%;
  overflow-x:hidden;
}
@supports (overflow:clip){
  html{overflow-x:clip}
}

body{
  margin:0;
  max-width:100%;
  font-family:var(--mono);
  font-size:16px;
  line-height:1.62;
  color:var(--ink);
  background-color:var(--paper);
  background-image:radial-gradient(circle,rgba(17,17,17,.16) 1px,transparent 1.3px);
  background-size:18px 18px;
  background-position:0 0;
  overflow-x:hidden;
}

h1,h2,h3,h4,p,ul,ol,figure,blockquote{margin:0}
ul,ol{padding:0;list-style:none}
a{color:inherit}
img{max-width:100%;height:auto;display:block}
hr{border:0;border-top:2px solid var(--line);margin:.5rem 0 1rem}

/* ---------- header ---------- */
.masthead{
  background:var(--paper);
  border-bottom:3px solid var(--line);
  position:relative;
  z-index:20;
  width:100%;
  max-width:100%;
}

.brandrow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px 10px;
  flex-wrap:wrap;
  min-width:0;
}

.logo{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:clamp(22px,5.4vw,40px);
  font-weight:700;
  letter-spacing:-.045em;
  line-height:1;
  text-decoration:none;
  min-height:44px;
  min-width:0;
  max-width:100%;
  overflow-wrap:anywhere;
}
.logo-mark{
  width:16px;
  height:16px;
  background:var(--neon);
  border:2px solid var(--line);
  display:inline-block;
  border-radius:2px;
  flex:0 0 auto;
}

.finder{flex:1 1 170px;min-width:0;max-width:100%}
.finder input{
  width:100%;
  max-width:100%;
  font:inherit;
  font-size:16px;
  color:var(--ink);
  background:#fff;
  border:2px solid var(--line);
  border-radius:4px;
  padding:9px 12px;
  min-height:42px;
}
.finder input::placeholder{color:rgba(17,17,17,.55)}
.finder input:focus-visible{outline:3px solid var(--neon);outline-offset:1px}

.menurow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-top:2px solid var(--line);
  padding:8px 16px;
  flex-wrap:wrap;
  min-width:0;
}
.menurow-note{
  font-size:12px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:rgba(17,17,17,.6);
  min-height:1px;
  min-width:0;
  overflow-wrap:anywhere;
}

.drawer{position:relative;min-width:0}
.drawer summary{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:10px 18px;
  background:var(--neon);
  border:2px solid var(--line);
  border-radius:4px;
  font-weight:700;
  letter-spacing:.12em;
  cursor:pointer;
  list-style:none;
}
.drawer summary::-webkit-details-marker{display:none}
.drawer summary::after{
  content:"";
  width:8px;height:8px;
  border-right:2px solid var(--ink);
  border-bottom:2px solid var(--ink);
  transform:translateY(-2px) rotate(45deg);
  transition:transform .18s linear;
}
.drawer[open] summary::after{transform:translateY(2px) rotate(225deg)}
.drawer summary:focus-visible{outline:3px solid var(--ink);outline-offset:2px}

.drawer-list{
  position:absolute;
  left:0;
  top:calc(100% + 6px);
  width:min(340px,88vw);
  max-width:calc(100vw - 28px);
  margin:0;
  background:var(--paper);
  border:3px solid var(--line);
  border-radius:4px;
  padding:8px;
  display:grid;
  gap:2px;
  box-shadow:8px 8px 0 rgba(17,17,17,.9);
  z-index:30;
}
.drawer-list li{min-width:0}
.drawer-list li a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:8px 12px;
  text-decoration:none;
  border-radius:4px;
  font-size:16px;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.drawer-list li a:hover,
.drawer-list li a:focus-visible{background:var(--neon)}
.drawer-list li[hidden]{display:none}

/* ---------- hero ---------- */
.hero{
  position:relative;
  width:100%;
  max-width:100%;
  min-height:45vh;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  overflow:hidden;
  background-color:#111;
  background-image:radial-gradient(circle,rgba(214,255,63,.3) 1px,transparent 1.4px);
  background-size:20px 20px;
  border-bottom:3px solid var(--line);
  padding:26px 16px 22px;
  isolation:isolate;
}
.hero-fig{
  position:absolute;
  top:-8%;
  left:0;
  right:0;
  bottom:0;
  width:100%;
  z-index:0;
  margin:0;
  height:120%;
  overflow:hidden;
}
.hero-img{
  width:100%;
  max-width:100%;
  height:100%;
  object-fit:cover;
  filter:grayscale(1) contrast(1.15) brightness(.6);
  will-change:transform;
}
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(90deg,rgba(17,17,17,.35) 0%,rgba(17,17,17,.82) 62%,#111 100%);
}
.hero-inner{
  position:relative;
  z-index:2;
  max-width:1120px;
  width:100%;
  min-width:0;
  margin:0 auto;
  text-align:right;
  color:var(--paper);
}
.hero-h1{
  font-size:clamp(1.65rem,8.6vw,5.4rem);
  line-height:.98;
  letter-spacing:-.05em;
  font-weight:700;
  margin-left:auto;
  max-width:16ch;
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.hero-h1 .ch{
  display:inline-block;
  animation:rise .58s cubic-bezier(.2,.8,.2,1) both;
}
.hero-desc{
  margin:14px 0 0 auto;
  max-width:44ch;
  font-size:15px;
  color:rgba(237,237,237,.78);
  overflow-wrap:anywhere;
}

@keyframes rise{
  from{opacity:0;transform:translateY(.5em) skewY(6deg)}
  to{opacity:1;transform:none}
}

/* ---------- strip ---------- */
.strip{
  width:100%;
  max-width:100%;
  background:var(--neon);
  border-bottom:3px solid var(--line);
  overflow:hidden;
  white-space:nowrap;
  position:relative;
}
.strip-track{
  display:flex;
  width:max-content;
  animation:slide 34s linear infinite;
}
.strip-seq{
  display:flex;
  align-items:center;
  flex:0 0 auto;
}
.strip-seq a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 14px;
  text-decoration:none;
  font-weight:700;
  letter-spacing:.04em;
  font-size:15px;
}
.strip-seq a:hover{background:var(--ink);color:var(--neon)}
.strip-seq i{
  font-style:normal;
  opacity:.6;
}

@keyframes slide{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}

/* ---------- shell ---------- */
.shell{
  max-width:1140px;
  width:100%;
  margin:0 auto;
  padding:34px 16px 46px;
  display:grid;
  grid-template-columns:236px minmax(0,1fr);
  gap:30px;
  align-items:start;
}

.rail{
  position:sticky;
  top:18px;
  min-width:0;
  background:var(--ink);
  color:var(--paper);
  border-radius:4px;
  padding:18px 16px;
}
.rail-title{
  font-size:17px;
  letter-spacing:.24em;
  line-height:1.3;
  overflow-wrap:anywhere;
}
.rail hr{border-top:2px solid var(--neon);margin:.55rem 0 .7rem}
.toc li{min-width:0}
.toc li a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:8px 2px;
  font-size:14px;
  line-height:1.35;
  text-decoration:none;
  border-bottom:1px dashed rgba(237,237,237,.28);
  color:rgba(237,237,237,.86);
  overflow-wrap:anywhere;
}
.toc li:last-child a{border-bottom:0}
.toc li a:hover,
.toc li a:focus-visible{color:var(--neon)}

/* ---------- prose ---------- */
.prose{min-width:0;max-width:100%;overflow-wrap:anywhere}

.prose div{
  background:#fff;
  border-radius:4px;
  padding:22px 20px 26px;
  margin-bottom:18px;
  scroll-margin-top:18px;
  max-width:100%;
  overflow-wrap:anywhere;
  opacity:0;
  transform:translateY(14px);
}
.prose div.in{opacity:1;transform:none;transition:opacity .5s linear,transform .5s cubic-bezier(.2,.8,.2,1)}

.prose h2{
  font-size:clamp(1.3rem,3.6vw,2rem);
  line-height:1.14;
  letter-spacing:-.035em;
  margin-bottom:.35rem;
  position:relative;
  padding-left:14px;
  overflow-wrap:anywhere;
}
.prose h2::before{
  content:"";
  position:absolute;
  left:0;
  top:.16em;
  bottom:.16em;
  width:6px;
  background:var(--neon);
  border:1px solid var(--ink);
}
.prose hr{border-top:2px solid var(--ink);margin:.4rem 0 1rem}
.prose h3{
  font-size:1.05rem;
  letter-spacing:-.01em;
  margin:1.2rem 0 .4rem;
  padding-bottom:.2rem;
  border-bottom:1px dashed var(--soft);
  overflow-wrap:anywhere;
}
.prose p{margin-bottom:.9rem;overflow-wrap:anywhere}
.prose p:last-child{margin-bottom:0}
.prose a{
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
  overflow-wrap:anywhere;
}
.prose a:hover{background:var(--neon)}
.prose strong{font-weight:700}
.prose ul,
.prose ol{margin:0 0 1rem;padding-left:1.1rem}
.prose ul li,
.prose ol li{
  margin-bottom:.45rem;
  padding-left:.2rem;
  overflow-wrap:anywhere;
}
.prose ul li{list-style:square}
.prose ol li{list-style:decimal}
.prose blockquote{
  border-left:6px solid var(--neon);
  padding:.5rem 0 .5rem 14px;
  margin:1rem 0;
  font-size:15px;
  background:#F7F7F7;
  overflow-wrap:anywhere;
}
.prose figure{margin:1rem 0;max-width:100%}
.prose figure img{border-radius:4px}
.prose figcaption{font-size:13px;color:rgba(17,17,17,.6);padding-top:6px;overflow-wrap:anywhere}
.prose pre{
  display:block;
  max-width:100%;
  overflow-x:auto;
  background:#F4F4F4;
  border-radius:4px;
  padding:12px;
  font-size:14px;
}
.prose table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse}

/* ---------- footer ---------- */
.foot{
  background:var(--ink);
  color:var(--paper);
  border-top:3px solid var(--line);
  padding:30px 16px 16px;
  width:100%;
  max-width:100%;
  overflow:hidden;
}
.foot-cta{
  display:block;
  max-width:1140px;
  margin:0 auto 24px;
  font-size:clamp(2.1rem,12vw,7rem);
  font-weight:700;
  line-height:.9;
  letter-spacing:-.06em;
  text-decoration:none;
  color:var(--neon);
  word-break:break-word;
  overflow-wrap:anywhere;
  transition:transform .25s ease,color .25s ease;
}
.foot-cta:hover,
.foot-cta:focus-visible{
  color:var(--paper);
  transform:translateX(-6px);
}

.foot-grid{
  max-width:1140px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1.2fr;
  gap:22px;
  border-top:2px solid rgba(237,237,237,.28);
  padding-top:22px;
}
.foot-col{min-width:0}
.foot-col h3{
  font-size:13px;
  letter-spacing:.26em;
  color:var(--neon);
  margin-bottom:.4rem;
  font-weight:700;
  overflow-wrap:anywhere;
}
.foot-brand{font-weight:700;font-size:17px;letter-spacing:-.02em;overflow-wrap:anywhere}
.foot-note{font-size:14px;color:rgba(237,237,237,.66);margin-top:.4rem;overflow-wrap:anywhere}
.foot-col ul li{min-width:0}
.foot-col ul li a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:6px 0;
  font-size:14px;
  line-height:1.35;
  text-decoration:none;
  color:rgba(237,237,237,.86);
  overflow-wrap:anywhere;
}
.foot-col ul li a:hover,
.foot-col ul li a:focus-visible{color:var(--neon)}
.foot address{
  font-style:normal;
  font-size:14px;
  display:grid;
  gap:6px;
  color:rgba(237,237,237,.8);
  word-break:break-all;
  overflow-wrap:anywhere;
}

.foot-bottom{
  max-width:1140px;
  margin:22px auto 0;
  border-top:1px solid rgba(237,237,237,.22);
  padding-top:12px;
  display:flex;
  flex-wrap:wrap;
  gap:8px 16px;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-size:13px;
  color:rgba(237,237,237,.62);
}
.foot-bottom p{min-width:0;overflow-wrap:anywhere}
.totop{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 12px;
  border:1px solid rgba(237,237,237,.4);
  border-radius:4px;
  text-decoration:none;
  color:var(--paper);
}
.totop:hover,
.totop:focus-visible{background:var(--neon);color:var(--ink);border-color:var(--neon)}

/* ---------- responsive ---------- */
@media (max-width:900px){
  .shell{grid-template-columns:minmax(0,1fr);padding-top:26px}
  .rail{position:static}
  .rail hr{display:none}
  .toc{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 14px}
  .toc li a{border-bottom:1px dashed rgba(237,237,237,.28)}
  .foot-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
}

@media (max-width:560px){
  .brandrow{padding:12px 14px 8px}
  .finder{flex-basis:100%}
  .finder input{min-height:44px}
  .menurow{padding:8px 14px}
  .menurow-note{display:none}
  .drawer-list{width:calc(100vw - 28px);max-width:300px}
  .hero{min-height:46vh;padding:20px 14px 18px}
  .hero-h1{max-width:none;font-size:clamp(1.6rem,8.2vw,2.4rem)}
  .hero-desc{font-size:14px}
  .shell{padding:22px 14px 36px;gap:20px}
  .prose div{padding:18px 15px 22px}
  .foot{padding:24px 14px 14px}
  .foot-grid{grid-template-columns:minmax(0,1fr);gap:18px}
  .foot-bottom{justify-content:space-between;text-align:left}
}

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

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