@charset "utf-8";

:root {
  --pink: #eb879c;
  --pink-2: #ffb6c1;
  --ink: #26171a;
  --bg: #1d1115;
  --card: #33222b;
  --card-2: #3b2831;
  --line: rgba(255, 182, 193, 0.16);
  --tx: #f7eaee;
  --tx-2: #d2b7bf;
  --rail: 252px;
  --r: 18px;
  --sh: 0 2px 4px rgba(0, 0, 0, 0.32), 0 22px 46px -26px rgba(235, 135, 156, 0.5);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding-left: var(--rail);
  background:
    radial-gradient(900px 620px at 8% -10%, rgba(235, 135, 156, 0.2), transparent 62%),
    radial-gradient(720px 520px at 98% 2%, rgba(255, 182, 193, 0.13), transparent 64%),
    var(--bg);
  color: var(--tx);
  font-family: "Noto Sans KR", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.78;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--pink-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }

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

.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 26px 16px 20px;
  overflow-y: auto;
  background: linear-gradient(180deg, #2e1c23 0%, #241519 58%, #1b1013 100%);
  box-shadow: 10px 0 34px -22px rgba(0, 0, 0, 0.95);
}

.rail-mark {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 6px 8px;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 240ms var(--ease), transform 240ms var(--ease);
}
.rail-mark:hover { background: rgba(255, 182, 193, 0.12); transform: translateY(-1px); }
.rail-mark img { border-radius: 12px; display: block; }

.glyph {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--pink-2), var(--pink));
  box-shadow: inset 0 -8px 14px -8px rgba(38, 23, 26, 0.9), 0 8px 18px -10px rgba(235, 135, 156, 0.9);
  position: relative;
  flex: 0 0 auto;
}
.glyph::after {
  content: "";
  position: absolute;
  inset: 10px 8px auto 8px;
  height: 3px;
  border-radius: 3px;
  background: rgba(38, 23, 26, 0.65);
  box-shadow: 0 6px 0 rgba(38, 23, 26, 0.45);
}
.rail-name { font-size: 16px; }

.rail-nav { flex: 1 1 auto; }
.rail-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rail-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 13px;
  color: #e7d3d9;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.4;
  transition: background 230ms var(--ease), color 230ms var(--ease), transform 230ms var(--ease);
}
.rail-nav a:hover,
.rail-nav a.on {
  background: rgba(255, 182, 193, 0.14);
  color: #fff;
  transform: translateX(3px);
}

.pip {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255, 182, 193, 0.38);
  box-shadow: 0 0 0 4px rgba(255, 182, 193, 0.07);
  transition: background 230ms var(--ease), box-shadow 230ms var(--ease);
}
.rail-nav a:hover .pip,
.rail-nav a.on .pip {
  background: var(--pink-2);
  box-shadow: 0 0 0 5px rgba(235, 135, 156, 0.24);
}

.rail-foot {
  margin: 0;
  padding: 10px 12px;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: rgba(210, 183, 191, 0.62);
}

.strip {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 24px;
  font-size: 15px;
  color: var(--tx-2);
  background: rgba(29, 17, 21, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.blip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(235, 135, 156, 0.18);
  flex: 0 0 auto;
}
.strip-t { color: #f3e2e7; }
.strip-sep { width: 1px; height: 12px; background: var(--line); }
.strip-kw { letter-spacing: 0.1em; }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 70px 24px 46px;
  text-align: center;
  overflow: hidden;
}

.hero-copy { position: relative; z-index: 3; max-width: 780px; }

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #fff 12%, #ffd9e1 58%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 auto;
  max-width: 56ch;
  color: var(--tx-2);
  font-size: 17px;
  line-height: 1.8;
}

.hero-art {
  position: relative;
  width: min(100%, 900px);
  height: min(34vh, 268px);
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(158deg, rgba(235, 135, 156, 0.22), rgba(255, 182, 193, 0.05) 62%, rgba(38, 23, 26, 0.4));
  box-shadow: var(--sh);
}

.hero-grid {
  position: absolute;
  inset: -16% 0;
  background-image: radial-gradient(rgba(255, 182, 193, 0.5) 1.2px, transparent 1.2px);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(120% 92% at 50% 50%, #000 26%, transparent 78%);
  mask-image: radial-gradient(120% 92% at 50% 50%, #000 26%, transparent 78%);
  will-change: transform;
}

.hero-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  right: -90px;
  bottom: -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 182, 193, 0.36), transparent 68%);
  filter: blur(8px);
}

.hero-photo { position: absolute; inset: 0; z-index: 2; }
.hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 76px;
}

.sheet {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: 30px;
  align-items: start;
}

.body {
  background: var(--card);
  border-radius: var(--r);
  padding: 36px clamp(18px, 3vw, 44px);
  box-shadow: var(--sh);
  min-width: 0;
  overflow-wrap: break-word;
}

.body > article {
  padding: 28px 0;
  scroll-margin-top: 72px;
}
.body > article:first-child { padding-top: 4px; }
.body > article + article { border-top: 1px solid var(--line); }
.body > article:last-child { padding-bottom: 6px; }

.body h2 {
  margin: 0 0 12px;
  font-size: clamp(21px, 2.5vw, 27px);
  line-height: 1.38;
  letter-spacing: -0.01em;
  color: #fff;
}

.body h3 {
  margin: 24px 0 10px;
  font-size: 19px;
  line-height: 1.5;
  color: #ffe3e9;
}

.body p { margin: 0 0 15px; color: #eedde1; }
.body p:last-child { margin-bottom: 0; }

.body ul,
.body ol { margin: 0 0 16px; padding-left: 1.25em; }
.body li { margin: 0.4em 0; color: #eedde1; }
.body li::marker { color: var(--pink); }

.body a { color: var(--pink-2); }

.body img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
  margin: 18px 0;
}

.body blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 182, 193, 0.1);
  color: #f4e3e8;
}
.body blockquote p { color: inherit; }

.body table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 16px;
}
.body th,
.body td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.body th { color: #ffe0e7; font-weight: 500; }

.side {
  position: sticky;
  top: 56px;
  background: var(--card-2);
  border-radius: var(--r);
  padding: 22px 20px 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 18px 36px -24px rgba(235, 135, 156, 0.55);
}

.side h2 {
  margin: 0 0 4px;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: #fff;
}

.subtitle {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--tx-2);
}

.jump {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: jmp;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.jump li { counter-increment: jmp; }
.jump a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 9px;
  border-radius: 11px;
  color: #e6d2d8;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  transition: background 210ms var(--ease), color 210ms var(--ease);
}
.jump a::before {
  content: counter(jmp, decimal-leading-zero);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--pink);
  flex: 0 0 auto;
}
.jump a:hover { background: rgba(255, 182, 193, 0.14); color: #fff; }

.foot {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.foot-cta {
  text-align: center;
  padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 48px);
  border-radius: 26px;
  background: linear-gradient(152deg, rgba(235, 135, 156, 0.26), rgba(255, 182, 193, 0.07) 70%, rgba(38, 23, 26, 0.32));
  box-shadow: var(--sh);
}
.foot-cta h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.01em;
  color: #fff;
}
.foot-cta .subtitle { max-width: 46ch; margin: 0 auto 20px; }

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--pink);
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 12px 26px -14px rgba(235, 135, 156, 0.95);
  transition: transform 230ms var(--ease), background 230ms var(--ease);
}
.cta-btn:hover { background: var(--pink-2); transform: translateY(-2px); }

.foot-cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 26px;
  margin: 36px 0 26px;
}
.foot dt {
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--pink);
  margin-bottom: 6px;
}
.foot dd {
  margin: 0;
  font-size: 16px;
  color: var(--tx-2);
}
.foot dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #e8d6db;
  text-decoration: none;
  transition: color 200ms var(--ease);
}
.foot dd a:hover { color: var(--pink-2); text-decoration: underline; }
.col-nav dd { display: inline-block; margin-right: 16px; }

.foot-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: rgba(210, 183, 191, 0.8);
}
.foot-base p { margin: 0; }
.cr-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.cr-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: rgba(232, 214, 219, 0.9);
  text-decoration: none;
}
.cr-links a:hover { color: var(--pink-2); }

@media (max-width: 900px) {
  body {
    padding-left: 0;
    padding-bottom: 88px;
    font-size: 16px;
  }

  .rail {
    top: auto;
    right: 0;
    bottom: 0;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    border-top: 1px solid var(--line);
    background: rgba(29, 17, 21, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -8px 26px -18px rgba(0, 0, 0, 0.95);
  }
  .rail-mark { padding: 4px 6px; min-height: 44px; flex: 0 0 auto; }
  .rail-name { display: none; }
  .rail-foot { display: none; }
  .rail-nav { flex: 0 0 auto; }
  .rail-nav ul { flex-direction: row; gap: 4px; }
  .rail-nav a { white-space: nowrap; padding: 10px 12px; }

  .strip { height: 34px; font-size: 14px; padding: 0 16px; }

  .hero {
    min-height: calc(100svh - 34px);
    padding: 40px 18px 30px;
    gap: 20px;
  }
  .hero-art { height: min(30vh, 200px); }

  .wrap { padding: 0 16px 56px; }
  .sheet { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .body { padding: 26px 18px; }
  .side { position: static; padding: 18px 16px 20px; }
  .jump { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }

  .foot { padding: 0 16px 40px; }
  .foot-cols { grid-template-columns: 1fr; gap: 16px; margin: 28px 0 22px; }
  .foot-base { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .rail-nav a:hover,
  .cta-btn:hover { transform: none; }
}

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