@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root{
  --ink:#26171a;
  --ink-lift:#311f25;
  --ink-deep:#1d1114;
  --rose:#eb879c;
  --pink:#ffb6c1;
  --paper:#f4e6ea;
  --muted:#c9abb4;
  --r:18px;
  --sh:0 2px 4px rgba(0,0,0,.34), 0 16px 32px -16px rgba(0,0,0,.6);
  --sh-soft:0 1px 2px rgba(0,0,0,.26), 0 10px 20px -12px rgba(0,0,0,.5);
}

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

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

body{
  margin:0;
  background:var(--ink);
  color:var(--paper);
  font-family:'Noto Sans KR',system-ui,-apple-system,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.75;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

img{max-width:100%;display:block}

a{color:var(--pink)}

a:focus-visible,
button:focus-visible{
  outline:3px solid var(--pink);
  outline-offset:3px;
  border-radius:10px;
}

.shell{
  display:grid;
  grid-template-columns:236px minmax(0,1fr);
  align-items:start;
}

/* ---------- 左侧竖排 ---------- */

.side{
  position:sticky;
  top:0;
  height:100svh;
  display:flex;
  flex-direction:column;
  gap:26px;
  padding:30px 20px;
  background:linear-gradient(180deg,#2f1d23 0%,#22151a 100%);
  box-shadow:inset -1px 0 0 rgba(255,182,193,.14);
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:4px 8px;
  color:var(--paper);
  font-size:19px;
  font-weight:700;
  letter-spacing:.02em;
  text-decoration:none;
  border-radius:14px;
  transition:background .24s ease, transform .24s ease;
}

.brand:hover{
  background:rgba(255,182,193,.14);
  transform:translateY(-1px);
}

.brand-mark{
  width:34px;
  height:34px;
  border-radius:50%;
  box-shadow:var(--sh-soft);
}

.nav{min-height:0}

.nav-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}

.nav-list a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:10px 12px;
  border-radius:13px;
  color:var(--pink);
  font-size:16px;
  line-height:1.4;
  text-decoration:none;
  transition:background .24s ease, color .24s ease, transform .24s ease;
}

.nav-list a:hover{
  background:rgba(255,182,193,.15);
  color:#fff;
  transform:translateX(4px);
}

.nav-list a.is-active{
  background:rgba(235,135,156,.24);
  color:#fff;
}

/* ---------- 首屏 ---------- */

.stage{min-width:0}

.hero{
  position:relative;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  min-height:100svh;
  padding:clamp(24px,5vw,74px);
  overflow:hidden;
  border-radius:0 0 46% 46% / 0 0 76px 76px;
  background:radial-gradient(circle at 24% 16%,#532f3a 0%,#311d24 48%,#221419 100%);
}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(185deg,rgba(38,23,26,.15) 0%,rgba(30,17,20,.72) 58%,rgba(30,17,20,.94) 100%);
  pointer-events:none;
}

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

.hero-art img{
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.74;
}

.hero-copy{
  position:relative;
  z-index:2;
  max-width:640px;
  text-align:right;
}

.hero-copy h1{
  margin:0 0 16px;
  font-size:clamp(2rem,6.4vw,4.1rem);
  font-weight:700;
  line-height:1.16;
  letter-spacing:-.02em;
  color:#fff;
  text-shadow:0 2px 18px rgba(0,0,0,.45);
}

.hero-sub{
  margin:0 0 12px;
  font-size:clamp(.95rem,1.6vw,1.1rem);
  font-weight:500;
  letter-spacing:.2em;
  color:var(--rose);
}

.hero-copy .subtitle{
  margin:0;
  max-width:34em;
  margin-left:auto;
  font-size:16px;
  line-height:1.72;
  color:#f0dde3;
}

/* ---------- 正文区 ---------- */

.panel{
  display:grid;
  grid-template-columns:minmax(0,1fr) 258px;
  gap:34px;
  align-items:start;
  padding:56px clamp(20px,4vw,60px) 76px;
}

.panel-body{min-width:0}

.panel-body div{
  margin:0 0 28px;
  padding:clamp(20px,3vw,36px);
  border-radius:var(--r);
  background:linear-gradient(160deg,rgba(255,182,193,.09),rgba(255,182,193,.045));
  box-shadow:var(--sh-soft);
  scroll-margin-top:96px;
}

.panel-body div:last-child{margin-bottom:0}

.panel-body h2{
  margin:0 0 10px;
  font-size:clamp(1.25rem,2.3vw,1.55rem);
  line-height:1.4;
  letter-spacing:-.01em;
  color:#ffd9e1;
}

.panel-body h3{
  margin:22px 0 8px;
  font-size:1.05rem;
  color:#ffd9e1;
}

.panel-body .subtitle{
  margin:0 0 20px;
  color:var(--rose);
  font-size:16px;
  line-height:1.7;
}

.panel-body p{
  margin:0 0 14px;
  color:var(--paper);
}

.panel-body p:last-child{margin-bottom:0}

.panel-body ul,
.panel-body ol{
  margin:0 0 16px;
  padding-left:1.25em;
}

.panel-body li{margin:.4em 0}

.panel-body li::marker{color:var(--rose)}

.panel-body strong{color:#ffe2e8;font-weight:700}

.panel-body a{
  color:var(--pink);
  text-decoration:underline;
  text-underline-offset:3px;
}

.panel-body a:hover{color:#fff}

.panel-body blockquote{
  margin:18px 0;
  padding:12px 18px;
  border-radius:14px;
  background:rgba(235,135,156,.12);
  color:#ffe6ec;
}

.panel-body figure{margin:18px 0}

.panel-body figure img{border-radius:14px;box-shadow:var(--sh-soft)}

.panel-body img{border-radius:14px}

.panel-body table{
  width:100%;
  border-collapse:collapse;
  margin:0 0 18px;
  font-size:16px;
}

.panel-body th,
.panel-body td{
  padding:10px 12px;
  text-align:left;
  border-bottom:1px solid rgba(255,182,193,.18);
}

.panel-body th{color:#ffd9e1;font-weight:500}

/* ---------- 右侧栏 ---------- */

.rail{
  position:sticky;
  top:28px;
  padding:20px 18px;
  border-radius:var(--r);
  background:rgba(255,182,193,.06);
  box-shadow:var(--sh-soft);
}

.rail-label{
  margin:0 0 10px;
  font-size:14px;
  letter-spacing:.22em;
  color:var(--rose);
}

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

.rail-list a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:8px 4px;
  font-size:16px;
  line-height:1.45;
  color:var(--muted);
  text-decoration:none;
  transition:color .22s ease, transform .22s ease;
}

.rail-list a:hover{
  color:var(--pink);
  transform:translateX(3px);
}

.rail-list a.is-active{
  color:#fff;
  font-weight:500;
}

/* ---------- 页脚 ---------- */

.foot{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:9px;
  margin-left:236px;
  padding:26px 20px 42px;
  box-shadow:inset 0 1px 0 rgba(255,182,193,.14);
}

.foot p{
  margin:0;
  font-size:16px;
  font-weight:500;
  color:var(--pink);
}

.foot small{
  font-size:14px;
  color:var(--muted);
}

/* ---------- 回到顶部 ---------- */

.totop{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:30;
  min-height:46px;
  padding:12px 18px;
  border:0;
  border-radius:14px;
  background:var(--rose);
  color:#33161c;
  font-family:inherit;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
  box-shadow:var(--sh);
  opacity:0;
  transform:translateY(14px);
  pointer-events:none;
  transition:opacity .25s ease, transform .25s ease, background .25s ease;
}

.totop.show{
  opacity:1;
  transform:none;
  pointer-events:auto;
}

.totop:hover{background:var(--pink)}

/* ---------- 动效 ---------- */

.reveal{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .3s ease, transform .3s ease;
}

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

/* ---------- 断点 ---------- */

@media (max-width:900px){
  .panel{
    grid-template-columns:minmax(0,1fr);
    gap:26px;
    padding:40px 20px 60px;
  }

  .rail{
    position:static;
    order:2;
  }

  .rail-list{
    display:flex;
    flex-wrap:wrap;
    gap:4px 14px;
  }

  .rail-list a{min-height:40px}
}

@media (max-width:760px){
  .shell{grid-template-columns:minmax(0,1fr)}

  .side{
    position:sticky;
    top:0;
    z-index:20;
    height:auto;
    flex-direction:column;
    gap:8px;
    padding:12px 14px 10px;
    background:#2c1b21;
    box-shadow:0 2px 4px rgba(0,0,0,.3), 0 12px 24px -14px rgba(0,0,0,.6);
  }

  .brand{font-size:17px;padding:2px 6px}

  .nav-list{
    flex-direction:row;
    flex-wrap:wrap;
    gap:2px 4px;
  }

  .nav-list a{
    padding:9px 10px;
    font-size:15.5px;
  }

  .nav-list a:hover{transform:none}

  .hero{
    min-height:88svh;
    padding:26px 20px 34px;
    border-radius:0 0 34% 34% / 0 0 42px 42px;
  }

  .hero-copy{text-align:right}

  .hero-copy h1{font-size:clamp(1.9rem,8.4vw,2.8rem)}

  .panel{padding:32px 16px 54px}

  .panel-body div{padding:20px 18px;scroll-margin-top:126px}

  .foot{
    margin-left:0;
    padding:22px 16px 34px;
  }
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}

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

  .totop{transition:none}

  .nav-list a,
  .brand,
  .rail-list a{transition:none}
}

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