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

:root{
  --pink:#eb879c;
  --pink-soft:#ffb6c1;
  --ink:#26171a;
  --paper:#fff6f8;
  --card:#ffffff;
  --muted:#6d5257;
  --line:rgba(38,23,26,.13);
  --shadow-s:0 2px 4px rgba(38,23,26,.06);
  --shadow-m:0 2px 4px rgba(38,23,26,.06),0 16px 32px -18px rgba(38,23,26,.30);
  --shadow-l:0 20px 46px -24px rgba(38,23,26,.42),0 2px 6px rgba(38,23,26,.08);
  --radius:28px;
  --head:'Anton','Epilogue','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
  --body:'Epilogue','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
}

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

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

body{
  margin:0;
  padding-bottom:124px;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--body);
  font-size:17px;
  line-height:1.7;
  overflow-x:hidden;
}

img{display:block;max-width:100%;height:auto}
a{color:inherit}
p{margin:0}

:focus-visible{
  outline:3px solid var(--pink);
  outline-offset:3px;
  border-radius:8px;
}

/* ---------- hero ---------- */
.hero{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:clamp(16px,3vw,30px);
  min-height:100vh;
  min-height:100svh;
  padding:clamp(26px,7vh,72px) clamp(18px,5vw,56px) clamp(120px,15vh,168px);
  overflow:hidden;
  background:linear-gradient(158deg,#fff8fa 0%,#ffe9ee 46%,#ffd6e0 100%);
}

.hero-copy{
  position:relative;
  z-index:2;
  margin-left:auto;
  max-width:min(760px,94%);
  text-align:right;
}

.eyebrow{
  margin:0 0 10px;
  font-size:16px;
  letter-spacing:.16em;
  color:var(--muted);
}

h1{
  margin:0;
  font-family:var(--head);
  font-weight:400;
  font-size:clamp(2rem,8.4vw,4.6rem);
  line-height:1.04;
  letter-spacing:.01em;
}

.hero-lede{
  margin:16px 0 0 auto;
  max-width:44ch;
  font-size:16px;
  color:var(--muted);
}

.hero-media{
  position:relative;
  z-index:2;
  margin-top:auto;
  min-height:clamp(150px,24vh,300px);
  border-radius:var(--radius);
  overflow:hidden;
  background:#fff;
  box-shadow:var(--shadow-l);
}

.hero-media:empty{display:none}

.hero-img{
  width:100%;
  height:100%;
  min-height:clamp(150px,24vh,300px);
  object-fit:cover;
}

.slash{
  position:absolute;
  left:-12%;
  right:-12%;
  bottom:20%;
  z-index:1;
  height:clamp(38px,7vh,70px);
  border-radius:8px;
  background:linear-gradient(90deg,var(--pink),var(--pink-soft));
  transform:rotate(-3.6deg);
  opacity:.82;
}

/* ---------- shell ---------- */
.shell{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:clamp(20px,3.6vw,44px);
  max-width:1180px;
  margin:0 auto;
  padding:clamp(28px,5vw,64px) clamp(16px,4vw,40px);
}

.main{min-width:0}

/* ---------- prose ---------- */
.prose{min-width:0}

.prose > article{
  margin-bottom:clamp(18px,3vw,28px);
  padding:clamp(20px,3.4vw,38px);
  border-radius:var(--radius);
  background:var(--card);
  box-shadow:var(--shadow-m);
  scroll-margin-top:24px;
  scroll-margin-bottom:130px;
}

.prose > article:last-child{margin-bottom:0}

.prose h2{
  margin:0 0 .55em;
  font-family:var(--head);
  font-weight:400;
  font-size:clamp(1.45rem,3.6vw,2.05rem);
  line-height:1.2;
  letter-spacing:.01em;
}

.prose h3{
  margin:1.4em 0 .5em;
  font-size:1.15rem;
  line-height:1.4;
}

.prose h2 + p,
.prose h3 + p{margin-top:0}

.prose p{margin:0 0 1em}
.prose p:last-child{margin-bottom:0}
.prose ul,.prose ol{margin:0 0 1em;padding-left:1.2em}
.prose li{margin:.35em 0}

.prose a{
  color:#b4526a;
  text-underline-offset:3px;
  text-decoration-thickness:1px;
}

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

.prose img{margin:1em 0;border-radius:18px;box-shadow:var(--shadow-s)}

.prose blockquote{
  margin:1em 0;
  padding:14px 18px;
  border-left:4px solid var(--pink);
  border-radius:0 14px 14px 0;
  background:#fff1f4;
}

.prose table{width:100%;border-collapse:collapse;font-size:16px}
.prose th,.prose td{padding:10px;border-bottom:1px solid var(--line);text-align:left}
.prose code{font-size:15px}

/* ---------- rail ---------- */
.rail{
  display:grid;
  gap:16px;
  align-self:start;
}

.rail-card{
  padding:20px 20px 22px;
  border-radius:24px;
  background:var(--card);
  box-shadow:var(--shadow-m);
}

.rail-card h2{
  margin:0 0 4px;
  font-family:var(--head);
  font-weight:400;
  font-size:1.2rem;
  line-height:1.3;
}

.subtitle{
  margin:0 0 14px;
  font-size:16px;
  line-height:1.5;
  color:var(--muted);
}

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

.toc a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
  padding:4px 8px;
  border-radius:12px;
  font-size:16px;
  text-decoration:none;
  transition:background 220ms ease,transform 220ms ease;
}

.toc a:hover{background:#fff1f4;transform:translateX(3px)}
.toc a[aria-current="true"]{background:#fff1f4;font-weight:600}

.num{
  font-size:14px;
  color:var(--pink);
  font-variant-numeric:tabular-nums;
}

.rail-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  border-radius:14px;
  background:var(--ink);
  color:#fff;
  font-size:16px;
  text-decoration:none;
  box-shadow:var(--shadow-s);
  transition:transform 220ms ease,background 220ms ease;
}

.rail-btn:hover{background:#3a2429;transform:translateY(-2px)}

/* ---------- footer ---------- */
.foot{
  display:grid;
  grid-template-columns:1fr;
  gap:clamp(24px,4vw,44px);
  margin-top:clamp(30px,6vw,70px);
  padding:clamp(40px,7vw,84px) clamp(18px,4vw,40px) 28px;
  background:var(--ink);
  color:#fbe9ee;
}

.foot h2{
  margin:0 0 14px;
  font-family:var(--head);
  font-weight:400;
  font-size:1.15rem;
  color:var(--pink-soft);
}

.foot-name{
  margin:0 0 10px;
  font-family:var(--head);
  font-size:1.6rem;
  line-height:1.2;
  color:#fff;
}

.foot-desc{max-width:44ch;font-size:16px;color:#e6c9d1}

.foot-links ul{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2px 12px;
  margin:0;
  padding:0;
  list-style:none;
}

.foot-links a{
  display:flex;
  align-items:center;
  min-height:44px;
  font-size:16px;
  text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,.12);
  transition:color 200ms ease;
}

.foot-links a:hover{color:var(--pink-soft)}

.foot-form{grid-column:1 / -1}

.sub-form{display:flex;flex-wrap:wrap;gap:12px;align-items:center}

.sub-form label{font-size:16px;color:var(--pink-soft)}

.sub-form input{
  flex:1 1 220px;
  min-height:50px;
  padding:0 16px;
  border:1px solid rgba(255,255,255,.24);
  border-radius:14px;
  background:rgba(255,255,255,.08);
  color:#fff;
  font:inherit;
  font-size:16px;
}

.sub-form input::placeholder{color:#d9b6c0}

.sub-form button{
  min-height:50px;
  padding:0 28px;
  border:0;
  border-radius:14px;
  background:var(--pink);
  color:#26171a;
  font:inherit;
  font-size:16px;
  font-weight:600;
  cursor:pointer;
  box-shadow:0 12px 24px -14px rgba(235,135,156,.95);
  transition:transform 220ms ease,background 220ms ease;
}

.sub-form button:hover{background:var(--pink-soft);transform:translateY(-2px)}

.foot-bar{
  grid-column:1 / -1;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:6px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.16);
  font-size:16px;
}

.foot-bar .copy{color:#d9b6c0}

.foot-bar a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  color:#fff;
  text-decoration:none;
}

/* ---------- dock ---------- */
.dock{
  position:fixed;
  left:50%;
  bottom:14px;
  z-index:60;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  width:min(1080px,calc(100% - 20px));
  padding:8px;
  border-radius:22px;
  background:rgba(255,255,255,.95);
  box-shadow:var(--shadow-l);
  backdrop-filter:blur(12px);
  transform:translateX(-50%);
}

.mark{
  flex:0 0 auto;
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border-radius:50%;
  background:linear-gradient(140deg,var(--pink),var(--pink-soft));
  color:#26171a;
  font-family:var(--head);
  font-size:20px;
  text-decoration:none;
  box-shadow:var(--shadow-s);
}

.menu-btn{
  min-height:44px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  color:var(--ink);
  font:inherit;
  font-size:16px;
  cursor:pointer;
  transition:background 200ms ease;
}

.menu-btn[aria-expanded="true"]{background:var(--pink-soft);border-color:transparent}

.dock-contact{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  margin-left:auto;
  padding:0 16px;
  border-radius:12px;
  background:var(--ink);
  color:#fff;
  font-size:16px;
  text-decoration:none;
}

.dock-nav{
  order:5;
  flex:1 1 100%;
  display:none;
  min-width:0;
}

.dock.open .dock-nav{display:block}

.dock-nav ul{
  display:flex;
  flex-direction:column;
  gap:2px;
  max-height:58vh;
  margin:0;
  padding:0;
  overflow:auto;
  list-style:none;
}

.dock-nav a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:0 12px;
  border-radius:12px;
  font-size:16px;
  text-decoration:none;
  transition:background 200ms ease;
}

.dock-nav a:hover{background:#fff1f4}
.dock-nav a[aria-current="true"]{background:#fff1f4;font-weight:600}

/* ---------- reveal ---------- */
.reveal{
  opacity:0;
  transform:translateY(16px);
  transition:opacity 260ms ease,transform 260ms ease;
}

.reveal.in{opacity:1;transform:none}

/* ---------- breakpoints ---------- */
@media (min-width:861px){
  .menu-btn{display:none}
  .dock{flex-wrap:nowrap}
  .dock-nav{
    order:0;
    flex:1 1 auto;
    display:block;
  }
  .dock-nav ul{
    flex-direction:row;
    gap:2px;
    max-height:none;
    overflow:visible;
  }
  .dock-nav a{padding:0 10px;white-space:nowrap}
}

@media (max-width:900px){
  .rail{grid-template-columns:1fr 1fr}
  .rail-btn{font-size:15px}
}

@media (max-width:760px){
  .foot{grid-template-columns:1fr}
  .foot-form,.foot-bar{grid-column:1}
}

@media (max-width:600px){
  .rail{grid-template-columns:1fr}
  .hero{padding-bottom:clamp(130px,20vh,180px)}
  .slash{bottom:16%}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition-duration:.01ms !important;animation-duration:.01ms !important}
  .reveal{opacity:1;transform:none}
}

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