@import url('https://fonts.googleapis.com/css2?family=Anton&family=Epilogue:wght@400;500;600;700&display=swap');

:root{
  --ink:#26171a;
  --ink-2:#4d3438;
  --ink-3:#7b6165;
  --pink:#eb879c;
  --blush:#ffb6c1;
  --deep:#b2596f;
  --paper:#fdf4f5;
  --card:#ffffff;
  --sh-s:0 1px 2px rgba(38,23,26,.07);
  --sh:0 2px 4px rgba(38,23,26,.05), 0 16px 34px -18px rgba(38,23,26,.32);
  --sh-up:0 2px 4px rgba(38,23,26,.06), 0 22px 44px -20px rgba(38,23,26,.42);
  --r:18px;
}

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

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

body{
  margin:0;
  font-family:"Epilogue","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  font-size:17px;
  line-height:1.8;
  color:var(--ink);
  background:var(--paper);
  background-image:
    radial-gradient(120% 60% at 100% 0%, #ffe9ee 0%, rgba(255,233,238,0) 60%),
    radial-gradient(90% 50% at 0% 30%, #fff3f5 0%, rgba(255,243,245,0) 55%);
  background-repeat:no-repeat;
  overflow-x:hidden;
}

img,svg{max-width:100%}
img{height:auto;display:block}
h1,h2,h3{line-height:1.35;margin:0}
p{margin:0 0 1em}

:focus-visible{
  outline:3px solid var(--deep);
  outline-offset:2px;
  border-radius:6px;
}

.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
  border:0;
}

/* ---------- top ---------- */
.top{
  position:relative;
  z-index:30;
  padding:8px clamp(14px,4vw,40px) 10px;
  background:rgba(255,255,255,.86);
  border-bottom:1px solid rgba(38,23,26,.09);
  box-shadow:0 1px 2px rgba(38,23,26,.04);
}

.brandrow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  max-width:1180px;
  margin:0 auto;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:4px 2px;
  text-decoration:none;
  color:var(--ink);
  font-family:"Anton","PingFang SC","Microsoft YaHei",sans-serif;
  font-size:23px;
  letter-spacing:.01em;
}

.brand .dot{
  width:14px;height:14px;
  border-radius:5px;
  transform:rotate(45deg);
  background:linear-gradient(135deg,var(--pink),var(--blush));
  box-shadow:0 2px 4px rgba(38,23,26,.18);
  flex:0 0 auto;
}

.cta{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:10px 20px;
  border-radius:999px;
  text-decoration:none;
  font-size:16px;
  font-weight:600;
  color:#fff8fa;
  background:linear-gradient(135deg,#e0748b,var(--pink));
  box-shadow:var(--sh);
  transition:transform .22s ease, box-shadow .22s ease;
  white-space:nowrap;
}
.cta:hover{transform:translateY(-1px);box-shadow:var(--sh-up)}

.menu{
  display:flex;
  flex-direction:column;
  gap:6px;
  max-width:1180px;
  margin:6px auto 0;
  padding-top:6px;
  border-top:1px dashed rgba(38,23,26,.12);
}

.menu p{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:0;
}

.menu a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:9px 14px;
  border-radius:999px;
  font-size:16px;
  font-weight:500;
  color:var(--ink-2);
  text-decoration:none;
  background:#fff;
  box-shadow:var(--sh-s);
  transition:background .22s ease, color .22s ease, box-shadow .22s ease;
}
.menu a:hover,
.menu a:focus-visible{
  color:var(--ink);
  background:linear-gradient(135deg,#fff 0%,#ffe4ea 100%);
  box-shadow:var(--sh);
}

/* ---------- shell ---------- */
.shell{
  max-width:1180px;
  margin:0 auto;
  padding:22px clamp(14px,4vw,40px) 46px;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:26px;
  align-items:start;
}

.doc{min-width:0}

/* ---------- hero ---------- */
.hero{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:8px;
  align-items:center;
  padding:26px 22px 44px;
  border-radius:24px;
  background:radial-gradient(130% 130% at 0% 0%, #ffffff 0%, #fde6ec 52%, #ffd6e0 100%);
  box-shadow:var(--sh);
  overflow:hidden;
}

.hero::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:-1px;
  height:44px;
  background:linear-gradient(90deg,var(--pink) 0%,var(--blush) 65%,#ffdde4 100%);
  clip-path:polygon(0 68%,100% 0,100% 100%,0 100%);
}

.hero-copy{position:relative;z-index:2}

.hero-kicker{
  display:inline-block;
  margin-bottom:6px;
  padding:4px 12px;
  border-radius:999px;
  background:#fff;
  color:var(--deep);
  font-size:15px;
  font-weight:600;
  letter-spacing:.14em;
  box-shadow:var(--sh-s);
}

.hero h1{
  font-family:"Anton","PingFang SC","Microsoft YaHei",sans-serif;
  font-size:clamp(28px,6.4vw,46px);
  font-weight:600;
  letter-spacing:.005em;
  margin:0 0 12px;
  color:var(--ink);
}

.lede{
  max-width:56ch;
  margin:0;
  color:var(--ink-2);
  font-size:17px;
}

.hero-art{
  position:relative;
  z-index:1;
  justify-self:center;
  width:150px;
  filter:drop-shadow(0 10px 18px rgba(38,23,26,.16));
}
.hero-art svg{display:block;width:100%;height:auto}
.hero-art .ring{
  transform-origin:100px 100px;
  animation:turn 26s linear infinite;
}
@keyframes turn{to{transform:rotate(360deg)}}

/* ---------- body content ---------- */
.body{
  margin-top:24px;
  padding:clamp(18px,3.4vw,38px);
  border-radius:var(--r);
  background:var(--card);
  box-shadow:var(--sh);
}

.body > article{
  scroll-margin-top:132px;
}
.body > article + article{
  margin-top:30px;
  padding-top:30px;
  border-top:1px dashed rgba(38,23,26,.16);
}

.body h2{
  font-family:"Anton","PingFang SC","Microsoft YaHei",sans-serif;
  font-size:clamp(21px,3.4vw,29px);
  font-weight:600;
  margin:6px 0 12px;
}

.body h3{
  font-size:clamp(18px,2.6vw,21px);
  margin:22px 0 8px;
}

.body small{
  display:inline-block;
  font-size:15px;
  font-weight:600;
  letter-spacing:.16em;
  color:var(--deep);
  margin-bottom:2px;
}

.body p{color:var(--ink-2)}
.body strong{color:var(--ink)}
.body ul,.body ol{
  margin:0 0 1.1em;
  padding-left:1.25em;
  color:var(--ink-2);
}
.body li{margin:.35em 0}
.body a{
  color:var(--deep);
  text-decoration:underline;
  text-underline-offset:3px;
  text-decoration-thickness:1px;
}
.body a:hover{color:var(--ink)}
.body blockquote{
  margin:1.2em 0;
  padding:14px 18px;
  border-radius:14px;
  background:#fdf0f3;
  border-left:4px solid var(--pink);
  color:var(--ink-2);
}
.body blockquote p:last-child{margin-bottom:0}
.body img,.body figure img{
  border-radius:14px;
  box-shadow:var(--sh);
  margin:1em 0;
}
.body figcaption{
  font-size:15px;
  color:var(--ink-3);
}
.body table{
  width:100%;
  border-collapse:collapse;
  margin:1em 0;
  font-size:16px;
}
.body th,.body td{
  padding:9px 10px;
  border-bottom:1px solid rgba(38,23,26,.13);
  text-align:left;
}
.body th{background:#fdf0f3;color:var(--ink)}

/* ---------- aside ---------- */
.rail{
  padding:18px 16px 16px;
  border-radius:var(--r);
  background:var(--card);
  box-shadow:var(--sh);
}

.rail small{
  display:inline-block;
  font-size:15px;
  font-weight:600;
  letter-spacing:.18em;
  color:var(--deep);
}

.rail h3{
  font-size:19px;
  margin:2px 0 12px;
}

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

.rail-list a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:6px 9px;
  border-radius:12px;
  text-decoration:none;
  color:var(--ink-2);
  font-size:16px;
  transition:background .2s ease, color .2s ease;
}
.rail-list a:hover,
.rail-list a:focus-visible{background:#fdeef2;color:var(--ink)}

.num{
  font-family:"Anton",sans-serif;
  font-size:14px;
  letter-spacing:.06em;
  color:var(--pink);
  flex:0 0 auto;
}

/* ---------- footer ---------- */
.foot{
  margin-top:10px;
  padding:40px clamp(14px,4vw,40px) 22px;
  background:var(--ink);
  color:#f8e9ec;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:26px;
}

.foot article{min-width:0}

.foot-brand{
  font-family:"Anton","PingFang SC","Microsoft YaHei",sans-serif;
  font-size:22px;
  margin:0 0 8px;
  color:#fff;
}

.foot-desc{
  margin:0;
  color:#d8c3c8;
  font-size:16px;
  max-width:34ch;
}

.foot small{
  display:inline-block;
  font-size:15px;
  letter-spacing:.16em;
  color:var(--blush);
  font-weight:600;
}

.foot h3{
  font-size:19px;
  margin:2px 0 12px;
  color:#fff;
}

.foot-links{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:4px 16px;
}
.foot-links a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:4px 0;
  color:#e9d3d8;
  text-decoration:none;
  font-size:16px;
}
.foot-links a:hover{color:#fff;text-decoration:underline;text-underline-offset:4px}

.sub{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.sub input{
  flex:1 1 160px;
  min-height:46px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid #54393e;
  background:#35242a;
  color:#fff;
  font-size:16px;
  font-family:inherit;
}
.sub input::placeholder{color:#b79ba1}
.sub button{
  min-height:46px;
  padding:0 20px;
  border:0;
  border-radius:12px;
  background:linear-gradient(135deg,var(--pink),var(--blush));
  color:#26171a;
  font-size:16px;
  font-weight:700;
  font-family:inherit;
  cursor:pointer;
  transition:filter .2s ease;
}
.sub button:hover{filter:brightness(1.06)}
.sub button:disabled{opacity:.75;cursor:default}

.copy{
  margin:0;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,.15);
  font-size:15px;
  color:#c2aab0;
}

/* ---------- reveal ---------- */
.js-on .reveal{
  opacity:0;
  transform:translateY(14px);
  transition:opacity .28s ease, transform .28s ease;
}
.js-on .reveal.in{
  opacity:1;
  transform:none;
}

/* ---------- breakpoints ---------- */
@media (min-width:560px){
  .hero{
    grid-template-columns:minmax(0,1fr) 160px;
    padding:32px 30px 52px;
  }
  .hero-art{width:160px}
  .foot{grid-template-columns:1.15fr 1fr}
  .foot-c{grid-column:1 / -1}
}

@media (min-width:920px){
  .top{
    position:sticky;
    top:0;
    backdrop-filter:blur(10px);
    background:rgba(255,255,255,.9);
  }
  .menu{
    flex-direction:row;
    flex-wrap:wrap;
    gap:6px;
  }
  .menu p{display:contents}
  .shell{
    grid-template-columns:minmax(0,1fr) 296px;
    gap:36px;
    padding-top:30px;
  }
  .rail{
    position:sticky;
    top:150px;
  }
  .foot{
    grid-template-columns:1.2fr 1fr 1.2fr;
    gap:34px;
    padding-top:48px;
  }
  .foot-c{grid-column:auto}
  .copy{grid-column:1 / -1;margin-top:6px}
}

@media (min-width:1080px){
  .hero{padding:40px 38px 58px}
  .hero-art{width:186px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hero-art .ring{animation:none}
  .js-on .reveal{opacity:1;transform:none;transition:none}
  .cta:hover{transform:none}
}

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