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

:root{
  --ink:#192617;
  --ink-deep:#0c150b;
  --lime:#87ff71;
  --sun:#ffce5c;
  --text:#e9f7e3;
  --muted:#a4c19c;
  --line:rgba(135,255,113,.26);
  --glass:rgba(255,255,255,.055);
  --radius:18px;
}

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

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

body{
  margin:0;
  font-family:Inter,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  font-size:17px;
  line-height:1.7;
  color:var(--text);
  background:
    radial-gradient(circle at 10% 6%,rgba(135,255,113,.15),transparent 44%),
    radial-gradient(circle at 92% 88%,rgba(255,206,92,.13),transparent 46%),
    var(--ink);
  background-attachment:fixed;
  overflow-x:hidden;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-image:radial-gradient(rgba(135,255,113,.3) 1px,transparent 1.4px);
  background-size:22px 22px;
  opacity:.14;
  mix-blend-mode:screen;
}

a{color:var(--lime);text-decoration:none}

.top{
  position:sticky;
  top:0;
  z-index:20;
  padding:9px clamp(14px,4vw,40px) 11px;
  background:rgba(12,21,11,.84);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
  border-bottom:2px dashed rgba(135,255,113,.32);
}

.brandrow{display:flex;align-items:center}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:5px 0;
  color:var(--text);
  min-height:40px;
}

.brandname{
  font-family:"Space Grotesk",Inter,sans-serif;
  font-weight:700;
  font-size:1.12rem;
  letter-spacing:.05em;
}

.brand:hover .brandname{
  color:var(--sun);
  border-bottom:2px dotted var(--sun);
}

.mark-shape{
  width:22px;
  height:22px;
  background:var(--lime);
  clip-path:polygon(50% 0,100% 100%,0 100%);
  transform:rotate(-8deg);
  flex:0 0 auto;
}

.mark{width:26px;height:26px;border-radius:8px;object-fit:cover;flex:0 0 auto}

.mark-text{
  font-family:"Space Grotesk",monospace;
  font-weight:700;
  color:var(--sun);
  font-size:1.1rem;
}

.menu ul{
  list-style:none;
  margin:7px 0 0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:3px;
}

.menu a{
  display:inline-block;
  padding:11px 12px;
  font-size:.95rem;
  font-weight:600;
  color:var(--text);
  border:1px solid transparent;
  border-radius:10px;
  transition:transform .18s ease,background .18s ease,color .18s ease,border-color .18s ease;
}

.menu a:hover{
  background:rgba(135,255,113,.12);
  border-color:var(--line);
  color:var(--lime);
  transform:translate(-2px,-2px) rotate(-1.2deg);
}

main{position:relative;z-index:1;display:block}

.hero{
  position:relative;
  display:grid;
  place-items:center;
  min-height:min(45vh,380px);
  padding:38px 18px;
  overflow:hidden;
  border-bottom:2px solid rgba(255,206,92,.24);
}

.hero::before{
  content:"";
  position:absolute;
  top:-64px;
  right:-46px;
  width:184px;
  height:184px;
  border-radius:50%;
  background:var(--sun);
  opacity:.17;
  mix-blend-mode:screen;
}

.hero::after{
  content:"";
  position:absolute;
  bottom:-44px;
  left:-42px;
  width:156px;
  height:156px;
  background:var(--lime);
  opacity:.15;
  clip-path:polygon(0 0,100% 50%,0 100%);
}

.hero h1{
  position:relative;
  z-index:2;
  margin:0;
  max-width:16em;
  text-align:center;
  font-family:"Space Grotesk",Inter,sans-serif;
  font-size:clamp(1.8rem,7vw,3.2rem);
  line-height:1.25;
  letter-spacing:.01em;
  text-shadow:0 4px 26px rgba(0,0,0,.55);
}

.collage{position:absolute;inset:0;z-index:1;pointer-events:none}

.collage img{
  position:absolute;
  width:min(30vw,200px);
  height:auto;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:var(--radius);
  border:3px solid var(--lime);
  box-shadow:0 16px 36px rgba(0,0,0,.5);
}

.collage img:nth-child(1){top:7%;left:3%;transform:rotate(-7deg)}

.collage img:nth-child(2){
  bottom:7%;
  right:3%;
  transform:rotate(6deg);
  border-color:var(--sun);
}

.wrap{
  max-width:1160px;
  margin:0 auto;
  padding:clamp(20px,4vw,44px) clamp(14px,4vw,32px) 58px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 290px;
  gap:clamp(18px,3vw,34px);
  align-items:start;
}

.prose{
  background:var(--glass);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:clamp(20px,3vw,36px);
  -webkit-backdrop-filter:blur(14px) saturate(130%);
  backdrop-filter:blur(14px) saturate(130%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 22px 50px rgba(0,0,0,.35);
}

.prose section{scroll-margin-top:clamp(130px,24vh,210px)}

.prose section + section{
  margin-top:2.4rem;
  padding-top:2.2rem;
  border-top:2px dashed rgba(255,255,255,.14);
}

.prose h2{
  display:flex;
  align-items:center;
  gap:.6rem;
  margin:0 0 .7rem;
  font-family:"Space Grotesk",Inter,sans-serif;
  font-size:clamp(1.28rem,3.4vw,1.7rem);
  line-height:1.35;
}

.prose h2::before{
  content:"";
  flex:0 0 auto;
  width:12px;
  height:12px;
  background:var(--sun);
  transform:rotate(45deg);
  box-shadow:0 0 0 3px rgba(255,206,92,.18);
}

.prose h3{
  margin:1.6rem 0 .5rem;
  font-size:1.12rem;
  color:var(--sun);
}

.prose p{margin:0 0 1.05rem}

.prose ul,.prose ol{margin:0 0 1.1rem;padding-left:1.25rem}

.prose li{margin:.35rem 0}

.prose li::marker{color:var(--lime)}

.prose a{
  color:var(--lime);
  border-bottom:1px dotted rgba(135,255,113,.6);
}

.prose a:hover{color:var(--sun);border-bottom-color:var(--sun)}

.prose strong{color:#fff}

.prose img{
  max-width:100%;
  height:auto;
  margin:.6rem 0;
  border-radius:14px;
  border:2px solid var(--line);
}

.prose time{
  font-family:"JetBrains Mono",monospace;
  font-size:.88rem;
  color:var(--sun);
}

.prose hr{
  border:0;
  border-top:2px dashed rgba(135,255,113,.35);
  margin:1.2rem 0;
}

.prose blockquote{
  margin:0 0 1.1rem;
  padding:.7rem 1rem;
  border-left:4px solid var(--lime);
  background:rgba(135,255,113,.07);
  border-radius:0 12px 12px 0;
}

.prose table{
  width:100%;
  margin:0 0 1.2rem;
  border-collapse:collapse;
  font-size:.95rem;
  word-break:break-word;
}

.prose th,.prose td{
  padding:.5rem .6rem;
  border:1px dashed rgba(255,255,255,.2);
  text-align:left;
}

.prose th{background:rgba(135,255,113,.1)}

.side{
  position:sticky;
  top:clamp(130px,18vh,190px);
  padding:18px 18px 22px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--glass);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
  box-shadow:0 18px 40px rgba(0,0,0,.32);
}

.side h2{
  display:flex;
  align-items:center;
  gap:.5rem;
  margin:0;
  font-family:"Space Grotesk",Inter,sans-serif;
  font-size:1rem;
  letter-spacing:.05em;
}

.side h2::before{
  content:"";
  width:10px;
  height:10px;
  background:var(--lime);
  transform:rotate(45deg);
  flex:0 0 auto;
}

.side hr{
  margin:10px 0 6px;
  border:0;
  border-top:2px dotted rgba(135,255,113,.4);
}

.side ul{list-style:none;margin:0;padding:0}

.side li{
  opacity:0;
  transform:translateX(10px);
  animation:sideIn .5s cubic-bezier(.2,.8,.3,1) forwards;
}

.side li + li{border-top:1px dotted rgba(255,255,255,.12)}

.side li:nth-child(1){animation-delay:.05s}
.side li:nth-child(2){animation-delay:.11s}
.side li:nth-child(3){animation-delay:.17s}
.side li:nth-child(4){animation-delay:.23s}
.side li:nth-child(5){animation-delay:.29s}
.side li:nth-child(6){animation-delay:.35s}
.side li:nth-child(7){animation-delay:.41s}

.side a{
  display:block;
  padding:12px 4px;
  font-size:.95rem;
  font-weight:500;
  color:var(--text);
  transition:transform .18s ease,color .18s ease;
}

.side a:hover,.side a.on{color:var(--sun);transform:translateX(5px)}

@keyframes sideIn{
  to{opacity:1;transform:none}
}

footer{
  position:relative;
  z-index:1;
  padding:26px clamp(14px,4vw,40px) 34px;
  text-align:center;
  background:rgba(12,21,11,.55);
  border-top:2px dashed rgba(255,206,92,.3);
}

footer p{
  margin:0 0 6px;
  font-size:1rem;
  font-weight:600;
  color:var(--text);
}

footer small{
  font-size:.95rem;
  color:var(--muted);
}

@media (max-width:860px){
  .wrap{grid-template-columns:minmax(0,1fr)}
  .side{position:static}
}

@media (max-width:520px){
  body{font-size:16px}
  .hero{min-height:min(45vh,320px);padding:34px 14px}
  .hero h1{font-size:clamp(1.6rem,8vw,2.2rem)}
  .menu a{padding:10px}
  .collage img{width:96px;opacity:.92}
  .collage img:nth-child(1){top:5%;left:2%}
  .collage img:nth-child(2){bottom:5%;right:2%}
  .prose section + section{margin-top:1.9rem;padding-top:1.7rem}
}

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

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