@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400&family=Playfair+Display:ital@1&display=swap');

:root{
  --ink:#1f1726;
  --purple:#56228b;
  --ochre:#8b4513;
  --cream:#f5efe6;
  --paper:#fffdf9;
  --line:rgba(31,23,38,.13);
  --serif:'Playfair Display',Georgia,'Songti SC','Noto Serif SC',serif;
  --sans:'Inter',system-ui,-apple-system,'Segoe UI','Noto Sans SC',sans-serif;
}

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

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

body{
  margin:0;
  font-family:var(--sans);
  font-size:17px;
  line-height:1.78;
  color:var(--ink);
  background-color:var(--cream);
  background-image:
    radial-gradient(rgba(139,69,19,.075) 1px, transparent 1px),
    radial-gradient(rgba(86,34,139,.06) 1px, transparent 1px);
  background-size:23px 23px, 37px 37px;
  background-position:0 0, 12px 14px;
  overflow-x:hidden;
}

img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
ol,ul{margin:0;padding:0;list-style:none}

::selection{background:var(--purple);color:var(--cream)}

:focus-visible{outline:2px solid var(--ochre);outline-offset:3px}

/* 顶部细条 */
.topline{
  background:var(--purple);
  color:#f7f0e6;
  font-size:14px;
  font-weight:600;
  letter-spacing:.34em;
  text-indent:.34em;
  text-align:center;
  padding:7px 16px 8px;
  line-height:1.4;
}

/* 品牌角标 */
.masthead{
  display:flex;
  align-items:center;
  gap:16px;
  padding:8px 20px;
  background:var(--cream);
}
.brand-mark{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  color:var(--purple);
  background:var(--paper);
  border-radius:52% 48% 44% 56% / 46% 56% 44% 54%;
  box-shadow:0 8px 18px -12px rgba(31,23,38,.7);
  transition:transform .35s ease, color .35s ease, background .35s ease;
}
.brand-mark:hover,.brand-mark:focus-visible{
  transform:rotate(-8deg) scale(1.06);
  color:var(--ochre);
  background:#fff;
}
.stem{
  flex:1;
  height:1px;
  background:linear-gradient(90deg, rgba(139,69,19,.55), rgba(139,69,19,0));
}

/* 粘性锚点条 */
.navwrap{
  position:sticky;
  top:0;
  z-index:60;
  background:var(--ink);
  border-bottom:2px solid var(--ochre);
}
.main-nav{
  max-width:1180px;
  margin:0 auto;
  padding:4px 10px;
  overflow-x:auto;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.main-nav::-webkit-scrollbar{display:none}
.nav-list{
  display:flex;
  align-items:stretch;
  gap:2px;
  min-width:max-content;
}
.nav-list a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:9px 13px;
  font-size:16px;
  font-weight:500;
  color:rgba(245,239,230,.82);
  transition:background .25s ease, color .25s ease;
}
.nav-list a:hover,.nav-list a:focus-visible{
  background:var(--purple);
  color:#fff;
}

/* 首屏 */
.hero{
  position:relative;
  display:grid;
  grid-template-columns:1.02fr .98fr;
  align-items:center;
  gap:40px;
  max-width:1180px;
  margin:0 auto;
  padding:26px 20px 46px;
  min-height:calc(100vh - 132px);
  overflow:hidden;
}

.hero-art{
  position:relative;
  min-height:300px;
  display:grid;
  place-items:center;
}
.hero-art::before{
  content:"";
  position:absolute;
  inset:4% 3%;
  background:linear-gradient(158deg, rgba(86,34,139,.17), rgba(139,69,19,.16));
  border-radius:58% 42% 47% 53% / 45% 55% 45% 55%;
}
.veins{
  position:relative;
  z-index:1;
  width:100%;
  height:auto;
  max-height:440px;
  color:var(--ochre);
  opacity:.6;
}
.hero-photo{
  position:absolute;
  inset:6% 5%;
  width:88%;
  height:88%;
  object-fit:cover;
  border-radius:58% 42% 47% 53% / 45% 55% 45% 55%;
  z-index:2;
}

.hero-copy{
  position:relative;
  z-index:1;
  text-align:right;
}
.hero-copy::before{
  content:"01";
  position:absolute;
  top:-.3em;
  right:0;
  z-index:-1;
  font-family:var(--serif);
  font-style:italic;
  font-size:clamp(110px, 17vw, 230px);
  line-height:1;
  color:transparent;
  -webkit-text-stroke:1px rgba(86,34,139,.22);
  pointer-events:none;
}
.eyebrow{
  margin:0 0 8px;
  font-size:15px;
  font-weight:700;
  letter-spacing:.32em;
  text-indent:.32em;
  color:var(--purple);
}
.hero h1{
  margin:0 0 16px;
  font-family:var(--serif);
  font-style:italic;
  font-weight:400;
  font-size:clamp(38px, 5.6vw, 76px);
  line-height:1.04;
  letter-spacing:-.012em;
}
.hero-lead{
  margin:0 0 0 auto;
  max-width:40ch;
  font-size:17px;
  color:rgba(31,23,38,.76);
}

/* 正文 + 侧栏 */
.stage{
  display:grid;
  grid-template-columns:minmax(0,1fr) 296px;
  align-items:start;
  gap:38px;
  max-width:1180px;
  margin:0 auto;
  padding:10px 20px 68px;
}

.prose{min-width:0}

.prose section{
  position:relative;
  margin:0 0 24px;
  padding:30px 26px 34px;
  background:var(--paper);
  box-shadow:0 16px 34px -30px rgba(31,23,38,.85);
  scroll-margin-top:96px;
}
.prose section::after{
  content:"";
  position:absolute;
  left:26px;
  right:26px;
  bottom:14px;
  height:1px;
  background:linear-gradient(90deg, rgba(139,69,19,.35), rgba(86,34,139,.16), transparent);
}
.prose section:last-child{margin-bottom:0}

.prose section > *:first-child{margin-top:0}
.prose section > *:last-child{margin-bottom:0}

.prose h2{
  margin:0 0 12px;
  font-family:var(--serif);
  font-style:italic;
  font-weight:400;
  font-size:clamp(25px, 3vw, 34px);
  line-height:1.2;
  color:var(--purple);
}
.prose h3{
  margin:28px 0 10px;
  font-size:19px;
  font-weight:700;
  letter-spacing:.01em;
}
.prose h2 + p{
  margin-top:0;
  color:var(--ochre);
  font-weight:600;
  letter-spacing:.04em;
}
.subtitle{
  margin:0 0 16px;
  color:var(--ochre);
  font-size:16px;
  font-weight:600;
  letter-spacing:.06em;
}
.prose p{margin:0 0 16px}
.prose ul,.prose ol{margin:0 0 18px;padding-left:22px;list-style:disc}
.prose ol{list-style:decimal}
.prose li{margin:0 0 9px}
.prose strong{color:var(--purple)}
.prose a{
  color:var(--purple);
  text-decoration:underline;
  text-decoration-color:rgba(139,69,19,.5);
  text-underline-offset:3px;
}
.prose a:hover{text-decoration-color:var(--purple)}
.prose blockquote{
  margin:22px 0;
  padding:16px 22px;
  background:rgba(86,34,139,.07);
  border-radius:18px 22px 20px 16px;
  font-style:italic;
}
.prose blockquote p:last-child{margin-bottom:0}
.prose hr{
  border:0;
  height:1px;
  background:rgba(31,23,38,.15);
  margin:26px 0;
}

/* 侧栏 */
.rail{
  position:sticky;
  top:96px;
  padding:24px 20px 26px;
  background:var(--ink);
  color:rgba(245,239,230,.9);
}
.rail h2{
  margin:0 0 6px;
  font-family:var(--serif);
  font-style:italic;
  font-weight:400;
  font-size:24px;
  color:#fff;
}
.rail .subtitle{
  color:#d79b68;
  font-size:16px;
  margin:0 0 16px;
}
.rail-list{display:grid;gap:4px}
.rail-list a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:10px 12px;
  font-size:16px;
  color:rgba(245,239,230,.86);
  background:rgba(255,255,255,.06);
  transition:background .22s ease, color .22s ease, padding-left .22s ease;
}
.rail-list a:hover,.rail-list a:focus-visible{
  background:var(--purple);
  color:#fff;
  padding-left:16px;
}

/* 页脚 */
.site-foot{
  background:var(--ink);
  color:rgba(245,239,230,.86);
  padding:44px max(20px, calc((100% - 1180px) / 2)) 22px;
  display:grid;
  grid-template-columns:1fr 1.6fr auto;
  gap:30px 34px;
  align-items:start;
  border-top:3px solid var(--ochre);
}
.foot-brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:17px;
  color:#fff;
}
.foot-mark{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  color:#f7f0e6;
  background:rgba(255,255,255,.08);
  border-radius:52% 48% 44% 56% / 46% 56% 44% 54%;
  transition:color .3s ease, background .3s ease;
}
.foot-mark:hover{color:var(--ink);background:#d79b68}
.foot-list{display:grid;gap:2px}
.foot-list a{
  display:block;
  padding:11px 0;
  min-height:44px;
  font-size:16px;
  color:rgba(245,239,230,.78);
  border-bottom:1px solid rgba(245,239,230,.1);
  transition:color .2s ease, padding-left .2s ease;
}
.foot-list a:hover{color:#fff;padding-left:6px}
.foot-top{justify-self:end}
.to-top{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:12px 18px;
  font-size:16px;
  color:#f7f0e6;
  border:1px solid rgba(245,239,230,.35);
  transition:background .25s ease, border-color .25s ease;
}
.to-top:hover{background:var(--purple);border-color:var(--purple)}
.copy{
  grid-column:1 / -1;
  margin:6px 0 0;
  padding-top:14px;
  font-size:15px;
  color:rgba(245,239,230,.55);
  border-top:1px solid rgba(245,239,230,.14);
}

/* 入场 */
@keyframes rise{
  from{opacity:0;transform:translateY(14px)}
  to{opacity:1;transform:none}
}
.hero-copy{animation:rise .65s ease both}
.hero-art{animation:rise .8s ease .1s both}

.reveal-ready .prose section{opacity:0;transform:translateY(18px)}
.reveal-ready .prose section.in{
  opacity:1;
  transform:none;
  transition:opacity .6s ease, transform .6s ease;
}

/* 断点 */
@media (max-width:1000px){
  .stage{grid-template-columns:minmax(0,1fr)}
  .rail{position:static}
}

@media (max-width:860px){
  .hero{
    grid-template-columns:1fr;
    gap:26px;
    min-height:0;
    padding:20px 18px 34px;
  }
  .hero-copy{
    order:1;
    text-align:left;
  }
  .hero-copy::before{
    top:-.18em;
    font-size:clamp(70px, 20vw, 120px);
  }
  .hero-lead{margin-left:0;max-width:38ch}
  .hero-art{
    order:2;
    min-height:190px;
  }
  .veins{max-height:210px}
  .stage{padding:6px 18px 52px;gap:26px}
  .prose section{padding:24px 20px 30px}
  .prose section::after{left:20px;right:20px}
  .site-foot{
    grid-template-columns:1fr;
    gap:22px;
    padding:36px 18px 20px;
  }
  .foot-top{justify-self:start}
  .rail{top:auto}
}

@media (max-width:420px){
  body{font-size:17px}
  .topline{letter-spacing:.22em;text-indent:.22em;font-size:13px}
  .masthead{padding:6px 14px}
  .nav-list a{padding:9px 11px}
  .hero-copy::before{font-size:88px;opacity:.85}
  .prose h2{font-size:26px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hero-copy,.hero-art{animation:none}
  .reveal-ready .prose section,
  .reveal-ready .prose section.in{
    opacity:1;
    transform:none;
    transition:none;
  }
  .brand-mark,.nav-list a,.rail-list a,.foot-list a,.to-top{transition:none}
}

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