@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Libre+Baskerville:wght@400;700&display=swap');

:root{
  --purple:#56228b;
  --purple-soft:rgba(86,34,139,.09);
  --brown:#8b4513;
  --ink:#1f1726;
  --line:rgba(31,23,38,.15);
  --mute:rgba(31,23,38,.7);
  --sand:#c8a06a;
  --serif:'Cormorant Garamond',Georgia,'Times New Roman','Songti SC',serif;
  --text:'Libre Baskerville',Georgia,'Songti SC','Times New Roman',serif;
}

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

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

body{
  margin:0;
  min-height:100%;
  overflow-x:hidden;
  font-family:var(--text);
  font-size:17px;
  line-height:1.85;
  color:var(--ink);
  background-color:#f8f4ee;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cg fill='none' stroke='%238b4513' stroke-opacity='.14' stroke-width='1'%3E%3Cpath d='M-8 54C56 34 118 88 228 46'/%3E%3Cpath d='M-8 148C64 126 142 178 228 136'/%3E%3Cpath d='M58 -8C78 68 34 142 86 228'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(1100px 620px at 88% -8%,rgba(86,34,139,.13),transparent 62%),
    radial-gradient(880px 520px at -6% 24%,rgba(139,69,19,.14),transparent 58%),
    linear-gradient(180deg,#fcf9f4 0%,#f4ece1 56%,#eee3d5 100%);
  background-attachment:fixed,scroll,scroll,scroll;
  background-repeat:repeat,no-repeat,no-repeat,no-repeat;
}

h1,h2,h3,h4{text-wrap:balance}

::selection{background:rgba(86,34,139,.16)}

/* ---------- 顶部 ---------- */
.top{position:relative;z-index:6}

.strip{
  background:linear-gradient(90deg,var(--purple) 0%,#6d33a5 46%,var(--brown) 100%);
  color:#f8f2ea;
  text-align:center;
  padding:9px 18px;
}

.strip-txt{
  font-family:var(--serif);
  font-size:15px;
  letter-spacing:.44em;
  text-indent:.44em;
}

.brandline{
  padding:20px clamp(16px,4vw,40px) 14px;
  text-align:center;
}

.logo{
  display:inline-flex;
  align-items:center;
  gap:12px;
  min-height:48px;
  text-decoration:none;
  color:var(--brown);
}

.mark{flex:none;color:var(--brown)}

.brand{
  font-family:var(--serif);
  font-weight:700;
  font-size:clamp(1.55rem,4vw,2.15rem);
  letter-spacing:.14em;
  color:var(--ink);
}

.menu{
  position:sticky;
  top:0;
  z-index:30;
  background:rgba(248,244,238,.95);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:5px clamp(6px,2vw,24px);
}

.menu p{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:0 2px;
  margin:0 auto;
  max-width:1140px;
}

.menu a{
  position:relative;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:10px 14px;
  font-size:16px;
  letter-spacing:.03em;
  color:var(--ink);
  text-decoration:none;
  border-radius:4px;
  white-space:nowrap;
  transition:color .22s ease,background-color .22s ease;
}

.menu a + a{box-shadow:inset 1px 0 0 var(--line)}

.menu a::after{
  content:"";
  position:absolute;
  left:14px;
  right:14px;
  bottom:7px;
  height:2px;
  background:linear-gradient(90deg,var(--purple),var(--brown));
  transform:scaleX(0);
  transform-origin:left center;
  transition:transform .3s ease;
}

.menu a:hover,
.menu a:focus-visible{color:var(--purple);background:var(--purple-soft)}

.menu a:hover::after,
.menu a:focus-visible::after,
.menu a.is-active::after{transform:scaleX(1)}

.menu a.is-active{color:var(--purple)}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1.02fr .98fr;
  align-items:center;
  gap:clamp(24px,4vw,60px);
  min-height:100svh;
  padding:clamp(28px,5vw,72px) clamp(18px,5vw,64px);
  overflow:hidden;
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:radial-gradient(rgba(31,23,38,.17) 1px,transparent 1px);
  background-size:24px 24px;
  opacity:.55;
  pointer-events:none;
}

.hero-art{
  position:relative;
  order:1;
  height:clamp(240px,60svh,580px);
}

.blob{
  position:absolute;
  display:block;
  border-radius:58% 42% 46% 54%/48% 52% 48% 52%;
}

.blob-1{
  left:-3%;
  top:4%;
  width:80%;
  height:78%;
  opacity:.5;
  background:linear-gradient(140deg,rgba(86,34,139,.4),rgba(139,69,19,.28));
  -webkit-filter:blur(1px);
  filter:blur(1px);
}

.blob-2{
  right:-4%;
  bottom:2%;
  width:52%;
  height:50%;
  opacity:.45;
  background:linear-gradient(140deg,rgba(139,69,19,.45),rgba(86,34,139,.25));
}

.hero-fig{
  position:absolute;
  inset:0;
  z-index:2;
  margin:0;
}

.hero-fig .hero-img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:46% 54% 52% 48%/50% 46% 54% 50%;
  box-shadow:0 30px 66px -32px rgba(31,23,38,.62);
}

.hero-copy{
  position:relative;
  z-index:3;
  order:2;
  text-align:right;
}

.hero-copy h1{
  margin:0;
  font-family:var(--serif);
  font-weight:600;
  font-size:clamp(2rem,5.2vw,4.1rem);
  line-height:1.14;
  letter-spacing:.015em;
  color:var(--ink);
}

.hero-rule{
  width:min(180px,48%);
  height:2px;
  border:0;
  margin:22px 0 0 auto;
  background:linear-gradient(90deg,var(--brown),var(--purple));
  opacity:.8;
}

/* ---------- 主体 ---------- */
.shell{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1fr) 264px;
  align-items:start;
  gap:clamp(26px,4vw,52px);
  max-width:1160px;
  margin:0 auto;
  padding:clamp(26px,5vw,64px) clamp(16px,4vw,36px) 84px;
}

.prose{max-width:74ch;min-width:0}

.prose article[id]{
  scroll-margin-top:96px;
  padding-block:clamp(22px,3.4vw,38px);
  border-top:1px solid var(--line);
}

.prose article:first-child{border-top:0;padding-top:0}

.prose h2{
  margin:0 0 6px;
  font-family:var(--serif);
  font-weight:600;
  font-size:clamp(1.5rem,2.8vw,2.15rem);
  line-height:1.26;
  letter-spacing:.01em;
  color:var(--purple);
}

.prose h3{
  margin:1.5em 0 .35em;
  font-family:var(--serif);
  font-weight:600;
  font-size:1.28rem;
  line-height:1.35;
  color:var(--ink);
}

.prose h2 + hr,
.prose h3 + hr,
.side h2 + hr{
  border:0;
  height:1px;
  width:min(170px,44%);
  margin:.25em 0 1.15em;
  background:linear-gradient(90deg,var(--brown),rgba(139,69,19,0));
}

.prose p{margin:0 0 1.05em;line-height:1.9}

.prose ul,.prose ol{margin:0 0 1.15em;padding-left:1.35em}

.prose li{margin-bottom:.45em;line-height:1.8}

.prose a{
  color:var(--purple);
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}

.prose a:hover{color:var(--brown)}

.prose strong{color:#120d17}

.prose blockquote{
  margin:1.4em 0;
  padding:14px 20px;
  border-left:3px solid var(--brown);
  border-radius:0 4px 4px 0;
  background:rgba(139,69,19,.07);
  color:var(--mute);
}

.prose blockquote p:last-child{margin-bottom:0}

.prose table{
  width:100%;
  border-collapse:collapse;
  font-size:16px;
  margin:1.2em 0;
}

.prose th,.prose td{
  padding:10px 9px;
  text-align:left;
  border-bottom:1px solid var(--line);
  vertical-align:top;
}

.prose th{color:var(--purple);font-weight:700}

.prose img{
  max-width:100%;
  height:auto;
  border-radius:4px;
  box-shadow:0 18px 40px -30px rgba(31,23,38,.7);
}

.prose time{
  display:inline-block;
  margin-bottom:12px;
  padding-bottom:1px;
  font-size:15px;
  letter-spacing:.06em;
  color:var(--brown);
  border-bottom:1px solid rgba(139,69,19,.45);
}

/* ---------- 侧栏 ---------- */
.side{
  position:sticky;
  top:92px;
  padding:20px 18px 18px;
  border:1px solid var(--line);
  border-radius:20px;
  background:rgba(255,255,255,.66);
  box-shadow:0 24px 48px -36px rgba(31,23,38,.7);
}

.side h2{
  margin:0 0 4px;
  font-family:var(--serif);
  font-weight:600;
  font-size:1.2rem;
  letter-spacing:.16em;
  color:var(--ink);
}

.side ul{
  display:grid;
  gap:2px;
  margin:0;
  padding:0;
  list-style:none;
}

.side a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:9px 10px;
  font-size:16px;
  line-height:1.5;
  color:var(--ink);
  text-decoration:none;
  border-radius:4px;
  box-shadow:inset 0 -2px 0 rgba(139,69,19,.2);
  transition:color .22s ease,background-color .22s ease,box-shadow .22s ease;
}

.side a:hover,
.side a:focus-visible,
.side a.is-active{
  color:var(--purple);
  background:var(--purple-soft);
  box-shadow:inset 0 -2px 0 var(--purple);
}

/* ---------- 页脚 ---------- */
footer{
  position:relative;
  z-index:1;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px 26px;
  padding:24px clamp(16px,4vw,40px);
  background:var(--ink);
  color:#efe6d9;
}

.f-brand a{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  color:#efe6d9;
  text-decoration:none;
}

.f-brand .mark{color:var(--sand)}

.f-brand span{
  font-family:var(--serif);
  font-size:1.22rem;
  letter-spacing:.12em;
}

footer nav{
  display:flex;
  flex-wrap:wrap;
  gap:0 14px;
}

footer nav a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:8px 2px;
  font-size:16px;
  color:rgba(239,230,217,.8);
  text-decoration:none;
}

footer nav a:hover,
footer nav a:focus-visible{
  color:#fff;
  text-decoration:underline;
  text-underline-offset:4px;
}

.f-copy{
  margin:0;
  font-size:15px;
  letter-spacing:.05em;
  color:rgba(239,230,217,.62);
}

/* ---------- 入场 ---------- */
[data-reveal]{transition:opacity .72s ease,transform .72s cubic-bezier(.22,.7,.3,1)}

html.js [data-reveal]{opacity:0;transform:translateY(20px)}

html.js [data-reveal].is-in{opacity:1;transform:none}

/* ---------- 断点 ---------- */
@media (max-width:1000px){
  .shell{grid-template-columns:minmax(0,1fr);max-width:820px}
  .side{position:static;order:2;top:auto}
  .prose{max-width:none}
}

@media (max-width:760px){
  body{font-size:17px}
  .strip-txt{font-size:14px;letter-spacing:.34em;text-indent:.34em}
  .brandline{padding:14px 16px 10px}
  .brand{letter-spacing:.1em}
  .menu{padding:4px 6px}
  .menu p{
    flex-wrap:nowrap;
    justify-content:flex-start;
    overflow-x:auto;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .menu p::-webkit-scrollbar{display:none}
  .menu a{padding:10px 12px;font-size:16px}
  .menu a::after{left:12px;right:12px}
  .hero{
    grid-template-columns:minmax(0,1fr);
    min-height:0;
    gap:26px;
    padding:26px 18px 40px;
  }
  .hero-copy{order:1;text-align:left}
  .hero-art{order:2;height:260px}
  .hero-rule{margin-left:0;width:120px}
  .shell{padding:26px 18px 56px}
  footer{justify-content:flex-start;padding:22px 18px 26px}
}

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