:root{
  --ink:#192617;
  --ink-deep:#0e1710;
  --panel:#1d2f1e;
  --neon:#87ff71;
  --sun:#ffce5c;
  --cream:#f2ffe9;
  --line:rgba(135,255,113,.3);
  --r:28px;
}

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

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
  background:var(--ink);
}

body{
  margin:0;
  background:var(--ink);
  color:var(--cream);
  font-family:"Jost",system-ui,-apple-system,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.72;
  overflow-x:hidden;
  padding-bottom:104px;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-image:radial-gradient(rgba(135,255,113,.18) 1px,transparent 1px);
  background-size:24px 24px;
  opacity:.45;
}

img{max-width:100%;display:block}
a{color:var(--neon);text-decoration:none}
a:hover{color:var(--sun)}
p{margin:0 0 1.05em}
h1,h2,h3,h4{font-family:"Bodoni Moda","Songti SC",Georgia,serif;font-weight:600;line-height:1.14;letter-spacing:-.01em}
hr{border:0}
[id]{scroll-margin-top:26px}

main.stage,
.foot,
.dock{position:relative;z-index:1}

/* ---------- hero ---------- */
.hero{
  position:relative;
  min-height:100svh;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  overflow:hidden;
  padding:34px max(18px,calc((100vw - 1120px)/2)) 118px;
  border-bottom:6px solid var(--sun);
}

.hero-art{
  position:absolute;
  inset:0;
  margin:0;
  overflow:hidden;
}

.hero-img{
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.52;
  filter:saturate(.75) contrast(1.08);
}

.hero-art::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg,rgba(25,38,23,.55) 0%,rgba(25,38,23,.82) 58%,rgba(14,23,16,.97) 100%),
    linear-gradient(90deg,rgba(135,255,113,.16),transparent 62%);
}

.shard{
  position:absolute;
  display:block;
  mix-blend-mode:screen;
  pointer-events:none;
}
.shard-a{
  width:min(56vw,320px);
  height:min(56vw,320px);
  left:-6vw;
  top:12vh;
  background:var(--neon);
  opacity:.5;
  clip-path:polygon(50% 0%,100% 100%,0% 78%);
  transform:rotate(14deg);
}
.shard-b{
  width:min(40vw,220px);
  height:min(40vw,220px);
  right:8vw;
  top:16vh;
  background:var(--sun);
  opacity:.55;
  clip-path:polygon(0% 20%,100% 0%,72% 100%);
  transform:rotate(-11deg);
}
.dot-ring{
  position:absolute;
  left:16vw;
  bottom:22vh;
  width:120px;
  height:120px;
  border:3px dotted var(--sun);
  border-radius:50%;
  opacity:.85;
  transform:rotate(8deg);
}

.stamp{
  position:absolute;
  top:26px;
  right:max(18px,calc((100vw - 1120px)/2));
  padding:9px 16px;
  border:2px dashed var(--sun);
  border-radius:999px;
  background:rgba(14,23,16,.78);
  color:var(--sun);
  font-size:13px;
  letter-spacing:.24em;
  text-indent:.24em;
  transform:rotate(-7deg);
  animation:pop .7s .35s cubic-bezier(.2,.7,.3,1) both;
}

.hero-copy{
  position:relative;
  width:100%;
  max-width:1120px;
  margin:0 auto;
  text-align:right;
  animation:rise .85s .05s cubic-bezier(.2,.7,.3,1) both;
}

.hero h1{
  margin:0 0 16px;
  font-size:clamp(2.3rem,8.6vw,5.2rem);
  color:#f7ffef;
  letter-spacing:-.03em;
  text-shadow:0 3px 0 rgba(14,23,16,.55);
}

.hero-sub{
  margin:0 0 0 auto;
  max-width:46ch;
  font-size:1rem;
  line-height:1.7;
  color:rgba(242,255,233,.82);
}

.hero-sub::after{
  content:"";
  display:block;
  width:84px;
  height:5px;
  margin:18px 0 0 auto;
  background:var(--neon);
  border-radius:3px;
}

/* ---------- body area ---------- */
.body-area{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:26px;
  max-width:1120px;
  margin:0 auto;
  padding:46px 18px 22px;
}

@media (min-width:900px){
  .body-area{
    grid-template-columns:minmax(0,1fr) 292px;
    gap:34px;
  }
  .flank{position:sticky;top:24px}
}

.prose{min-width:0}

.prose > div{
  position:relative;
  background:var(--panel);
  border:1px solid var(--line);
  border-bottom:5px solid var(--neon);
  border-radius:var(--r);
  padding:24px 20px 26px;
  margin:0 0 26px;
  overflow:hidden;
}

.prose > div:nth-child(even){
  border-bottom-color:var(--sun);
  border-radius:var(--r) var(--r) 40px var(--r);
}

.prose > div:nth-child(3n){
  transform:rotate(-.28deg);
}

.prose > div::before{
  content:"";
  position:absolute;
  top:0;
  right:0;
  width:74px;
  height:64px;
  background:var(--sun);
  opacity:.22;
  clip-path:polygon(100% 0%,100% 100%,0% 0%);
  pointer-events:none;
}

.prose h2{
  font-size:clamp(1.45rem,3.6vw,2.05rem);
  color:var(--neon);
  margin:.15em 0 .35em;
}

.prose h3{
  font-size:clamp(1.16rem,2.6vw,1.42rem);
  color:var(--sun);
  margin:1.4em 0 .4em;
}

.prose h2 + hr,
.prose h3 + hr,
.flank h2 + hr{
  width:66px;
  height:0;
  border:0;
  border-top:4px solid var(--sun);
  margin:0 0 18px;
  border-radius:2px;
}

.prose hr{
  width:56px;
  height:0;
  border:0;
  border-top:3px dotted var(--neon);
  margin:26px 0;
  opacity:.7;
}

.prose p{font-size:1rem;line-height:1.78}
.prose ul,.prose ol{padding-left:1.2em;margin:0 0 1.1em}
.prose li{margin:.35em 0;line-height:1.72}
.prose li::marker{color:var(--sun)}
.prose strong{color:var(--sun);font-weight:600}
.prose blockquote{
  margin:1.2em 0;
  padding:.2em 0 .2em 16px;
  border-left:4px solid var(--neon);
  color:rgba(242,255,233,.86);
  font-style:italic;
}
.prose blockquote p:last-child{margin-bottom:0}
.prose table{width:100%;border-collapse:collapse;display:block;overflow-x:auto;margin:0 0 1.1em}
.prose th,.prose td{border-bottom:1px dotted var(--line);padding:9px 10px;text-align:left;font-size:.95rem}
.prose th{color:var(--sun)}
.prose pre{overflow-x:auto;background:var(--ink-deep);border:1px dashed var(--line);border-radius:16px;padding:14px;font-size:.92rem}
.prose code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.92em;color:var(--neon)}
.prose figure{margin:1.2em 0}
.prose figcaption{font-size:.85rem;color:rgba(242,255,233,.62);margin-top:.5em}
.prose img{border-radius:18px}

/* ---------- flank ---------- */
.flank{
  background:var(--ink-deep);
  border:2px dashed var(--line);
  border-radius:var(--r);
  padding:20px 16px 14px;
  align-self:start;
}

.flank h2{
  margin:0 0 .6em;
  font-size:1.12rem;
  letter-spacing:.14em;
  color:var(--neon);
}

.flank h2 + hr{border-top-color:var(--neon)}

.flank-list{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.flank-list a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:10px 10px;
  color:var(--cream);
  font-size:.95rem;
  border-bottom:1px dotted rgba(135,255,113,.22);
  border-radius:10px;
  transition:color .18s,padding-left .18s,background .18s;
}
.flank-list li:last-child a{border-bottom:0}
.flank-list a:hover,
.flank-list a:focus-visible{
  color:var(--ink);
  background:var(--sun);
  padding-left:16px;
}

/* ---------- footer ---------- */
.foot{
  display:grid;
  gap:14px;
  max-width:1120px;
  margin:0 auto;
  padding:52px 18px 44px;
  border-top:2px dashed var(--line);
  align-items:end;
}

@media (min-width:760px){
  .foot{grid-template-columns:1.5fr 1fr 1fr;gap:20px}
}

.foot-brand{
  margin:0;
  font-family:"Bodoni Moda",Georgia,serif;
  font-weight:700;
  font-size:clamp(2.3rem,7.4vw,4.4rem);
  line-height:.9;
  letter-spacing:-.04em;
  color:var(--neon);
  word-break:break-all;
}

.foot-copy{
  margin:0;
  font-size:.84rem;
  color:rgba(242,255,233,.58);
}

.foot-note{
  font-size:.84rem;
  color:rgba(242,255,233,.58);
  line-height:2;
}
.foot-note a{color:var(--sun);padding:8px 2px;display:inline-block;min-height:30px}

/* ---------- dock nav ---------- */
.dock{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:60;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px max(16px,calc((100vw - 1120px)/2)) calc(10px + env(safe-area-inset-bottom));
  background:rgba(14,23,16,.95);
  border-top:2px dashed var(--line);
  backdrop-filter:blur(10px);
}

.brand{
  display:grid;
  place-items:center;
  min-width:44px;
  min-height:44px;
  border-radius:50%;
}

.brand-ico{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  object-fit:cover;
  border-radius:50%;
  border:2px solid var(--neon);
  background:var(--sun);
  color:var(--ink);
  font-family:"Bodoni Moda",Georgia,serif;
  font-size:1.2rem;
  font-weight:700;
  transition:transform .3s;
}
.brand:hover .brand-ico{transform:rotate(16deg)}

.menu-wrap{position:relative}

.menu-wrap > summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:10px 18px;
  border:2px solid var(--neon);
  border-radius:999px;
  color:var(--neon);
  font-size:.94rem;
  letter-spacing:.16em;
  text-indent:.16em;
  transition:background .2s,color .2s;
}
.menu-wrap > summary::-webkit-details-marker{display:none}
.menu-wrap > summary::before{
  content:"";
  width:9px;
  height:9px;
  border-radius:50%;
  background:var(--sun);
}
.menu-wrap[open] > summary{background:var(--neon);color:var(--ink)}

.menu{
  position:absolute;
  right:0;
  bottom:calc(100% + 14px);
  width:min(78vw,286px);
  max-height:62vh;
  overflow:auto;
  margin:0;
  padding:10px;
  list-style:none;
  background:var(--ink-deep);
  border:2px solid var(--neon);
  border-radius:20px;
  box-shadow:12px -12px 0 rgba(255,206,92,.28);
}

.menu a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:11px 13px;
  color:var(--cream);
  font-size:.95rem;
  border-bottom:1px dotted rgba(135,255,113,.22);
  border-radius:12px;
}
.menu li:last-child a{border-bottom:0}
.menu a:hover,
.menu a:focus-visible{background:var(--sun);color:var(--ink)}

/* ---------- motion ---------- */
@keyframes rise{
  from{opacity:0;transform:translateY(18px)}
  to{opacity:1;transform:none}
}
@keyframes pop{
  from{opacity:0;transform:rotate(-7deg) scale(.86)}
  to{opacity:1;transform:rotate(-7deg) scale(1)}
}

.rv{opacity:0}
.rv.is-in{animation:rise .62s cubic-bezier(.2,.7,.3,1) both}
.prose > div.rv.is-in:nth-child(2){animation-delay:.05s}
.prose > div.rv.is-in:nth-child(3){animation-delay:.1s}
.prose > div.rv.is-in:nth-child(4){animation-delay:.15s}
.prose > div.rv.is-in:nth-child(5){animation-delay:.2s}
.prose > div.rv.is-in:nth-child(n+6){animation-delay:.24s}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hero-copy,.stamp{animation:none}
  .rv{opacity:1}
  .rv.is-in{animation:none}
  .prose > div:nth-child(3n){transform:none}
}

@media (max-width:420px){
  body{font-size:16.5px}
  .hero{padding-bottom:110px}
  .stamp{top:18px;font-size:12px;padding:8px 13px}
  .prose > div{padding:20px 16px 22px;border-radius:22px}
}

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