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

:root{
  --red:#ff0000;
  --purple:#8b00ff;
  --ink:#261717;
  --txt:#f7efec;
  --dim:rgba(247,239,236,.74);
  --line:rgba(255,255,255,.22);
  --glass:rgba(255,255,255,.08);
  --r:18px;
}

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

html{ scroll-behavior:smooth; }

body{
  margin:0;
  min-height:100vh;
  font-family:'Patrick Hand','Kalam',"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  font-size:17px;
  line-height:1.72;
  color:var(--txt);
  background:#1b0f0f;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

body::before{
  content:"";
  position:fixed;
  inset:-10% -10% 0;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(58rem 42rem at 8% -6%, rgba(255,0,0,.46), transparent 62%),
    radial-gradient(50rem 38rem at 92% 4%, rgba(139,0,255,.44), transparent 64%),
    radial-gradient(46rem 34rem at 46% 112%, rgba(255,0,0,.24), transparent 62%),
    radial-gradient(rgba(255,255,255,.15) 1px, transparent 1px);
  background-size:auto,auto,auto,22px 22px;
}

a{ color:inherit; }

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

.rail{
  position:fixed;
  inset:0 auto 0 0;
  width:262px;
  z-index:6;
  display:flex;
  flex-direction:column;
  gap:18px;
  padding:26px 20px 22px;
  overflow-y:auto;
  background:rgba(38,23,23,.52);
  border-right:1px solid var(--line);
  backdrop-filter:blur(16px) saturate(1.2);
  -webkit-backdrop-filter:blur(16px) saturate(1.2);
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:4px 2px 12px;
  text-decoration:none;
  border-bottom:1px dashed rgba(255,255,255,.18);
  font-family:'Kalam','Patrick Hand',inherit;
  font-size:21px;
  font-weight:700;
  line-height:1.2;
}
.brand .mark{
  display:grid;
  place-items:center;
  flex:none;
  width:36px;
  height:36px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.34);
  background:linear-gradient(135deg,rgba(255,0,0,.62),rgba(139,0,255,.62));
  font-size:16px;
  color:#fff;
}
.brand .brand-name{ color:#fff; }

.rail nav{ min-height:0; }
.rail nav ul{
  display:flex;
  flex-direction:column;
  gap:2px;
  margin:0;
  padding:0;
  list-style:none;
}
.rail nav a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:8px 10px;
  font-size:16px;
  line-height:1.35;
  color:var(--dim);
  text-decoration:none;
  border:1px solid transparent;
  border-radius:12px;
}
.rail nav a::before{
  content:"";
  flex:none;
  width:9px;
  height:9px;
  border:1px solid currentColor;
  border-radius:2px;
  transform:rotate(45deg);
  opacity:.65;
}
.rail nav a:hover,
.rail nav a:focus-visible{
  color:#fff;
  background:rgba(255,255,255,.1);
  border-color:var(--line);
}

.search{ display:flex; gap:8px; margin-top:auto; }
.search input{
  flex:1 1 auto;
  min-width:0;
  min-height:44px;
  padding:8px 12px;
  font:inherit;
  font-size:16px;
  color:var(--txt);
  background:rgba(255,255,255,.1);
  border:1px solid var(--line);
  border-radius:12px;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.search input::placeholder{ color:rgba(255,255,255,.55); }
.search button{
  min-height:44px;
  padding:8px 12px;
  font:inherit;
  font-size:16px;
  color:#fff;
  cursor:pointer;
  border:1px solid rgba(255,255,255,.3);
  border-radius:12px;
  background:linear-gradient(100deg,rgba(255,0,0,.62),rgba(139,0,255,.62));
}
.search button:hover{ filter:brightness(1.12); }

.stage{ margin-left:262px; padding:0 34px; max-width:1060px; }

.hero{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:22px;
  min-height:70vh;
  padding:52px 0 42px;
}
.hero::after{
  content:"";
  position:absolute;
  right:0;
  top:36px;
  width:164px;
  height:164px;
  pointer-events:none;
  background-image:radial-gradient(rgba(255,255,255,.4) 1px, transparent 1px);
  background-size:13px 13px;
  opacity:.5;
  mask-image:radial-gradient(circle at 50% 50%, #000 32%, transparent 72%);
  -webkit-mask-image:radial-gradient(circle at 50% 50%, #000 32%, transparent 72%);
}

.hero-txt{ position:relative; text-align:left; max-width:44ch; }
.hero h1{
  margin:0 0 14px;
  font-family:'Kalam','Patrick Hand',inherit;
  font-size:clamp(30px,5vw,52px);
  line-height:1.16;
  letter-spacing:-.01em;
  color:#fff;
  text-shadow:0 2px 24px rgba(255,0,0,.35);
}
.lede{
  margin:0;
  max-width:40ch;
  padding:12px 15px;
  font-size:17px;
  color:var(--dim);
  border:1px solid var(--line);
  border-radius:var(--r);
  background:var(--glass);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

.hero-art{
  border:1px solid var(--line);
  border-radius:var(--r);
  overflow:hidden;
  background:rgba(255,255,255,.06);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.hero-art img{ display:none; width:100%; height:auto; max-height:44vh; object-fit:cover; }
.hero-art img.on{ display:block; }

.doc{ display:flex; flex-direction:column; gap:20px; padding-bottom:20px; }
.doc > div{
  position:relative;
  padding:24px 22px 26px;
  border:1px solid var(--line);
  border-radius:var(--r);
  background:var(--glass);
  backdrop-filter:blur(15px);
  -webkit-backdrop-filter:blur(15px);
  scroll-margin-top:16px;
}
.doc > div::before{
  content:"";
  position:absolute;
  left:22px;
  top:-1px;
  width:52px;
  height:3px;
  background:linear-gradient(90deg,var(--red),var(--purple));
  border-radius:0 0 3px 3px;
}
.doc > div.hit{
  border-color:rgba(255,0,0,.62);
  outline:2px solid rgba(255,0,0,.3);
  outline-offset:2px;
}

.doc h1,
.doc h2,
.doc h3{ margin:0 0 12px; line-height:1.35; color:#fff; }
.doc h1{ font-size:1.4rem; }
.doc h2{ font-size:1.34rem; }
.doc h3{ font-size:1.1rem; margin-top:18px; }
.doc h2 span,
.doc h3 span{ position:relative; padding-bottom:5px; }
.doc h2 span::after,
.doc h3 span::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:28px;
  height:2px;
  background:linear-gradient(90deg,var(--red),var(--purple));
  border-radius:2px;
}
.doc p{ margin:0 0 12px; color:rgba(247,239,236,.9); }
.doc p:last-child{ margin-bottom:0; }
.doc ul,
.doc ol{ margin:0 0 12px; padding-left:1.25em; }
.doc li{ margin:5px 0; }
.doc strong{ color:#fff; }
.doc a{ color:#ffd4d4; text-underline-offset:3px; }
.doc a:hover{ color:#fff; }
.doc blockquote{
  margin:0 0 12px;
  padding:10px 15px;
  border-left:3px solid var(--purple);
  background:rgba(139,0,255,.15);
  border-radius:0 12px 12px 0;
}

.foot{
  margin-top:34px;
  padding:26px 22px 16px;
  border:1px solid var(--line);
  border-bottom:0;
  border-radius:var(--r) var(--r) 0 0;
  background:rgba(255,255,255,.06);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.foot-grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:22px; }
.foot h3{ margin:0 0 8px; font-size:16px; line-height:1.3; color:#fff; }
.foot h3 span{ position:relative; display:inline-block; padding-bottom:5px; }
.foot h3 span::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:22px;
  height:2px;
  background:linear-gradient(90deg,var(--red),var(--purple));
  border-radius:2px;
}
.foot dl{ display:flex; flex-direction:column; gap:1px; margin:0; }
.foot dd{ margin:0; }
.foot dd a,
.foot dd span{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:2px 0;
  font-size:16px;
  color:var(--dim);
  text-decoration:none;
  word-break:break-all;
}
.foot dd a:hover{ color:#fff; text-decoration:underline; text-decoration-color:var(--red); }

.subscribe{ display:flex; flex-direction:column; gap:8px; }
.subscribe input{
  min-height:44px;
  padding:8px 12px;
  font:inherit;
  font-size:16px;
  color:var(--txt);
  background:rgba(255,255,255,.1);
  border:1px solid var(--line);
  border-radius:12px;
}
.subscribe input::placeholder{ color:rgba(255,255,255,.55); }
.subscribe button{
  min-height:44px;
  font:inherit;
  font-size:16px;
  color:#fff;
  cursor:pointer;
  border:1px solid rgba(255,255,255,.3);
  border-radius:12px;
  background:linear-gradient(100deg,rgba(255,0,0,.6),rgba(139,0,255,.6));
}
.subscribe button:hover{ filter:brightness(1.12); }

.foot-base{
  margin-top:20px;
  padding-top:14px;
  text-align:center;
  border-top:1px dashed rgba(255,255,255,.16);
  font-size:16px;
  color:rgba(255,255,255,.62);
}
.foot-base .dot{ margin:0 8px; opacity:.55; }
.foot-base .up{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:2px 6px;
  color:var(--dim);
  text-decoration:none;
}
.foot-base .up:hover{ color:#fff; text-decoration:underline; text-decoration-color:var(--red); }

.rv{ opacity:0; transform:translateY(16px); transition:opacity .55s ease, transform .55s ease; }
.rv.in{ opacity:1; transform:none; }

@media (max-width:900px){
  .rail{
    position:static;
    inset:auto;
    width:auto;
    padding:14px 16px;
    gap:12px;
    border-right:0;
    border-bottom:1px solid var(--line);
    overflow:visible;
  }
  .brand{ padding-bottom:10px; font-size:19px; }
  .rail nav ul{
    flex-direction:row;
    gap:6px;
    overflow-x:auto;
    padding-bottom:4px;
    scrollbar-width:thin;
  }
  .rail nav a{ white-space:nowrap; padding:8px 12px; }
  .search{ margin-top:2px; }
  .stage{ margin-left:0; padding:0 16px; max-width:none; }
  .hero{ min-height:0; padding:26px 0 24px; }
  .hero::after{ display:none; }
  .hero-art img{ max-height:34vh; }
  .doc > div{ padding:20px 16px 22px; }
  .foot-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
}

@media (max-width:520px){
  .foot-grid{ grid-template-columns:1fr; }
}

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  .rv{ opacity:1; transform:none; transition:none; }
}

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