@import url('https://fonts.googleapis.com/css2?family=Karla:wght@300;400;500;600;700&family=Playfair+Display+SC:wght@400;700&display=swap');

:root{
  --ink:#0d0d0d;
  --violet:#8000ff;
  --magenta:#ff00ff;
  --line:rgba(128,0,255,.30);
  --glass:rgba(255,255,255,.045);
  --text:#ece7f5;
  --dim:#a99ec0;
  --head-h:68px;
  --head-h-lg:86px;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  background-color:var(--ink);
  background-image:
    radial-gradient(70vw 60vw at 10% -12%,rgba(128,0,255,.22),transparent 62%),
    radial-gradient(56vw 52vw at 94% 6%,rgba(255,0,255,.15),transparent 64%);
  background-repeat:no-repeat;
  color:var(--text);
  font-family:Karla,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.75;
  overflow-x:hidden;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:6;
  pointer-events:none;
  background:repeating-linear-gradient(180deg,rgba(255,255,255,.035) 0 1px,transparent 1px 3px);
  mix-blend-mode:screen;
  opacity:.5;
}
img{max-width:100%;height:auto;display:block}
[id]{scroll-margin-top:calc(var(--head-h) + 26px)}

/* ---------- head ---------- */
.site-head{
  position:sticky;
  top:0;
  z-index:60;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;
  gap:10px;
  min-height:var(--head-h);
  padding:8px clamp(12px,3vw,36px);
  background:rgba(13,13,13,.80);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(14px);
}
.site-head.is-scrolled{
  background:rgba(9,8,12,.94);
  box-shadow:0 10px 30px -18px rgba(255,0,255,.75);
}
.brand{
  grid-column:2;
  justify-self:center;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 8px;
  font-family:'Playfair Display SC',Georgia,serif;
  font-size:clamp(20px,2.3vw,28px);
  letter-spacing:.06em;
  color:#fff;
  text-decoration:none;
  white-space:nowrap;
  text-shadow:0 0 14px rgba(255,0,255,.75),0 0 36px rgba(128,0,255,.55);
}
.head-nav{display:flex;align-items:center;gap:6px;min-width:0}
.head-nav--left{grid-column:1;justify-self:start;display:none}
.head-nav--right{grid-column:3;justify-self:end;justify-content:flex-end}
.head-nav p{display:none;gap:2px;margin:0}
.head-nav a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 10px;
  font-size:16px;
  color:var(--dim);
  text-decoration:none;
  border-radius:10px;
  transition:color .2s ease,background .2s ease,text-shadow .2s ease;
}
.head-nav a:hover,.head-nav a:focus-visible{
  color:#fff;
  background:rgba(128,0,255,.20);
  text-shadow:0 0 12px rgba(255,0,255,.85);
}
.menu-btn{
  min-height:44px;
  padding:0 18px;
  font:inherit;
  font-size:16px;
  letter-spacing:.14em;
  color:#fff;
  background:linear-gradient(120deg,var(--violet),var(--magenta));
  border:1px solid rgba(255,255,255,.28);
  border-radius:999px;
  cursor:pointer;
  box-shadow:0 0 18px rgba(255,0,255,.45);
  transition:box-shadow .25s ease,transform .25s ease;
}
.menu-btn:hover,.menu-btn:focus-visible{box-shadow:0 0 30px rgba(255,0,255,.9);transform:translateY(-1px)}

/* ---------- overlay menu ---------- */
.overlay{
  position:fixed;
  inset:0;
  z-index:55;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:calc(var(--head-h) + 24px) 18px 36px;
  background:rgba(8,6,12,.95);
  backdrop-filter:blur(16px);
  opacity:0;
  visibility:hidden;
  transition:opacity .32s ease,visibility .32s ease;
}
.overlay.is-open{opacity:1;visibility:visible}
.overlay p{display:grid;gap:6px;width:100%;max-width:420px;margin:0;text-align:center}
.overlay a{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:8px 14px;
  font-family:'Playfair Display SC',Georgia,serif;
  font-size:clamp(19px,4.4vw,25px);
  letter-spacing:.04em;
  color:#efe9f8;
  text-decoration:none;
  border:1px solid transparent;
  border-radius:14px;
  transition:border-color .22s ease,background .22s ease,color .22s ease,text-shadow .22s ease;
}
.overlay a:hover,.overlay a:focus-visible{
  color:#fff;
  border-color:var(--line);
  background:rgba(128,0,255,.18);
  text-shadow:0 0 18px var(--magenta);
}

/* ---------- hero ---------- */
.hero{
  position:relative;
  display:grid;
  place-items:center;
  min-height:62vh;
  padding:calc(var(--head-h) + 34px) 18px 84px;
  overflow:hidden;
  text-align:center;
  background:linear-gradient(158deg,rgba(128,0,255,.38),rgba(255,0,255,.16) 58%,rgba(13,13,13,.96));
  clip-path:polygon(0 0,100% 0,100% calc(100% - 52px),0 100%);
}
.hero-img{
  position:absolute;
  inset:-8% 0 0;
  width:100%;
  height:116%;
  object-fit:cover;
  opacity:.42;
  filter:saturate(1.15) contrast(1.05);
  transform:scale(1.06);
}
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(60% 60% at 50% 45%,rgba(13,13,13,.20),rgba(13,13,13,.86));
}
.hero-inner{position:relative;z-index:1;max-width:900px}
.hero h1{
  margin:0 0 16px;
  font-family:'Playfair Display SC',Georgia,serif;
  font-size:clamp(31px,7vw,72px);
  line-height:1.12;
  letter-spacing:.02em;
  color:#fff;
  text-shadow:0 0 16px rgba(255,0,255,.8),0 0 48px rgba(128,0,255,.7);
  animation:glitch 6.5s steps(1,end) infinite;
}
.hero-desc{
  max-width:44ch;
  margin:0 auto;
  color:#ded6ee;
  font-size:17px;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
@keyframes glitch{
  0%,92%,100%{transform:none;text-shadow:0 0 16px rgba(255,0,255,.8),0 0 48px rgba(128,0,255,.7)}
  93%{transform:skewX(-3deg);text-shadow:-2px 0 var(--magenta),2px 0 var(--violet)}
  95%{transform:skewX(2deg);text-shadow:2px 0 var(--magenta),-2px 0 #7bf5ff}
  97%{transform:none}
}

/* ---------- layout ---------- */
.wrap{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:26px;
  max-width:1180px;
  margin:0 auto;
  padding:44px clamp(15px,4vw,36px) 60px;
}
.pane{min-width:0}
.body{display:grid;gap:20px}
.body > article{
  background:var(--glass);
  border:1px solid var(--line);
  border-radius:28px;
  padding:clamp(20px,3vw,32px);
  backdrop-filter:blur(10px);
  box-shadow:0 22px 50px -34px rgba(128,0,255,.9);
  transition:border-color .3s ease,box-shadow .3s ease;
}
.body > article:hover{
  border-color:rgba(255,0,255,.45);
  box-shadow:0 22px 55px -30px rgba(255,0,255,.7);
}
.body > *{min-width:0}
.body p{margin:0 0 15px}
.body p:last-child{margin-bottom:0}
.body h2,.body h3{
  font-family:'Playfair Display SC',Georgia,serif;
  margin:0 0 10px;
  line-height:1.32;
  color:#fff;
  text-shadow:0 0 16px rgba(128,0,255,.85);
}
.body h2{font-size:clamp(21px,2.9vw,29px)}
.body h3{font-size:clamp(18px,2.2vw,22px)}
.body a{
  color:#ffb3ff;
  text-decoration:underline;
  text-decoration-color:rgba(255,0,255,.5);
  text-underline-offset:3px;
}
.body a:hover{color:#fff}
.body ul,.body ol{margin:0 0 15px;padding-left:1.3em}
.body li{margin:0 0 6px}
.body strong{color:#fff}
.body blockquote{
  margin:0 0 15px;
  padding:12px 16px;
  border-left:2px solid var(--magenta);
  background:rgba(255,0,255,.07);
  border-radius:0 16px 16px 0;
  color:#e6ddf5;
}
hr{
  border:0;
  height:1px;
  margin:22px 0;
  background:linear-gradient(90deg,var(--magenta),var(--violet) 45%,transparent);
  box-shadow:0 0 12px rgba(255,0,255,.55);
}
.body h2 + hr,.body h3 + hr{margin:-2px 0 18px}

/* ---------- aside ---------- */
.side{
  background:var(--glass);
  border:1px solid var(--line);
  border-radius:28px;
  padding:20px 18px;
  backdrop-filter:blur(10px);
}
.side h2{
  margin:0 0 8px;
  font-family:'Playfair Display SC',Georgia,serif;
  font-size:20px;
  letter-spacing:.04em;
  color:#fff;
  text-shadow:0 0 14px rgba(255,0,255,.8);
}
.side hr{margin:0 0 12px}
.side-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:2px;
  counter-reset:side;
}
.side-list li{counter-increment:side;min-width:0}
.side-list a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:2px 10px;
  font-size:16px;
  color:var(--dim);
  text-decoration:none;
  border-radius:12px;
  transition:color .2s ease,background .2s ease;
}
.side-list a::before{
  content:counter(side,decimal-leading-zero);
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:12px;
  letter-spacing:.08em;
  color:var(--magenta);
}
.side-list a:hover,.side-list a:focus-visible{color:#fff;background:rgba(255,0,255,.13)}

/* ---------- footer ---------- */
.site-foot{
  display:grid;
  gap:26px;
  padding:54px clamp(15px,4vw,36px) 26px;
  border-top:1px solid var(--line);
  background:linear-gradient(180deg,rgba(128,0,255,.14),rgba(13,13,13,.94));
}
.big-brand{
  margin:0;
  font-family:'Playfair Display SC',Georgia,serif;
  font-size:clamp(38px,11vw,104px);
  line-height:.92;
  letter-spacing:.02em;
  color:transparent;
  -webkit-text-stroke:1px rgba(255,0,255,.8);
  text-shadow:0 0 34px rgba(128,0,255,.65);
  word-break:break-word;
}
.copy{margin:16px 0 0;font-size:16px;color:var(--dim)}
.foot-links p{
  display:grid;
  grid-template-columns:1fr;
  gap:2px 12px;
  margin:0;
}
.foot-links a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:0 4px;
  font-size:16px;
  color:var(--dim);
  text-decoration:none;
  border-bottom:1px dashed rgba(255,255,255,.09);
  transition:color .2s ease,border-color .2s ease;
}
.foot-links a:hover,.foot-links a:focus-visible{color:#fff;border-bottom-color:var(--magenta)}

/* ---------- breakpoints ---------- */
@media (min-width:560px){
  .foot-links p{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width:900px){
  .hero{min-height:70vh;padding-bottom:100px}
}
@media (min-width:980px){
  .head-nav--left{display:flex}
  .head-nav p{display:flex}
  .head-nav--right p{display:flex}
}
@media (min-width:1024px){
  .wrap{grid-template-columns:minmax(0,1fr) 300px;align-items:start}
  .side{position:sticky;top:calc(var(--head-h-lg) + 22px)}
  .site-foot{grid-template-columns:1.5fr 1fr;align-items:start;gap:40px}
}
@media (min-width:1024px){
  .site-head{min-height:var(--head-h-lg)}
  [id]{scroll-margin-top:calc(var(--head-h-lg) + 26px)}
}
@media (min-width:1024px){
  .overlay{padding-top:calc(var(--head-h-lg) + 30px)}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
}

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