:root {
  --ink: #26171a;
  --plum: #1c1114;
  --pink: #eb879c;
  --pink-2: #ffb6c1;
  --paper: #f6e9ec;
  --glass: rgba(255, 255, 255, 0.065);
  --glass-2: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 182, 193, 0.22);
  --r: 28px;
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 16px 38px rgba(0, 0, 0, 0.3);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.24), 0 8px 20px rgba(0, 0, 0, 0.2);
  --serif: "Cormorant Garamond", "Libre Baskerville", "Songti SC", "Noto Serif SC", Georgia, serif;
  --body: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, "Microsoft YaHei", serif;
}

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

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.78;
  color: #f4e6e9;
  background:
    radial-gradient(1100px 760px at 12% -8%, rgba(235, 135, 156, 0.22), transparent 62%),
    radial-gradient(880px 640px at 104% 4%, rgba(255, 182, 193, 0.15), transparent 58%),
    linear-gradient(180deg, #180f12 0%, #26171a 38%, #1e1216 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 182, 193, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 182, 193, 0.07) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 88% at 50% 14%, #000 38%, transparent 88%);
  mask-image: radial-gradient(120% 88% at 50% 14%, #000 38%, transparent 88%);
  opacity: 0.75;
}

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

a {
  color: var(--pink-2);
  text-decoration: none;
  transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

a:hover {
  color: #fff;
}

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

.top {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px clamp(14px, 4vw, 44px);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  min-width: 0;
}

.nav-a {
  justify-content: flex-start;
}

.nav-b {
  justify-content: flex-start;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 16px;
  color: #f0dde1;
  border-radius: 14px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav a:hover {
  background: var(--glass);
  color: #fff;
}

.brand {
  font-family: var(--serif);
  font-size: clamp(19px, 2.1vw, 26px);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--pink-2);
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 18px;
  text-shadow: 0 2px 14px rgba(235, 135, 156, 0.35);
}

.rail {
  position: sticky;
  top: 0;
  z-index: 40;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(30, 18, 22, 0.94), rgba(30, 18, 22, 0.66));
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.26);
}

.rail::-webkit-scrollbar {
  display: none;
}

.rail-nav {
  display: flex;
  gap: 4px;
  width: max-content;
  min-width: 100%;
  padding: 6px clamp(10px, 4vw, 40px);
}

.rail-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 15.5px;
  color: #eed9de;
  border-radius: 14px;
  white-space: nowrap;
}

.rail-nav a:hover {
  background: var(--glass-2);
  color: #fff;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  min-height: 100vh;
  padding: clamp(24px, 5vw, 64px) clamp(16px, 5vw, 56px);
}

.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.kicker {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.26em;
  color: var(--pink);
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 5.2vw, 62px);
  line-height: 1.18;
  letter-spacing: 0.015em;
  color: #fdeef1;
  text-shadow: 0 3px 22px rgba(235, 135, 156, 0.28);
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 258px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.16), rgba(255, 255, 255, 0.05));
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 182, 193, 0.3) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.5;
}

.hero-fig {
  position: relative;
  margin: 0;
  width: 100%;
}

.hero-img {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 62px) clamp(16px, 5vw, 44px);
}

.reader {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

.side {
  position: sticky;
  top: 72px;
  align-self: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.side-h {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.5;
  color: var(--pink-2);
}

.side-h::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--pink);
}

.side-h + .side-list {
  margin-bottom: 20px;
}

.side-list {
  counter-reset: s;
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-list li {
  counter-increment: s;
}

.side-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 9px;
  font-size: 16px;
  line-height: 1.5;
  color: #f0dde1;
  border-radius: 14px;
}

.side-list a::before {
  content: counter(s, decimal-leading-zero);
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--pink);
}

.side-list a:hover {
  background: var(--glass-2);
  color: #fff;
}

.side-top {
  margin: 0;
}

.side-top a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  font-size: 16px;
  color: var(--pink-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.side-top a:hover {
  border-color: var(--pink);
  background: var(--glass-2);
  color: #fff;
}

.doc {
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.doc h2,
.doc h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffd3da;
}

.doc h2 {
  margin: 0 0 14px;
  font-size: clamp(23px, 2.9vw, 30px);
  line-height: 1.36;
}

.doc h3 {
  margin: 0 0 10px;
  font-size: clamp(19px, 2.2vw, 22px);
  line-height: 1.45;
  color: #ffc8d2;
}

.doc p {
  margin: 0 0 16px;
}

.doc p:last-child,
.doc ul:last-child,
.doc ol:last-child {
  margin-bottom: 0;
}

.doc ul,
.doc ol {
  margin: 0 0 18px;
  padding-left: 1.35em;
}

.doc li {
  margin-bottom: 8px;
}

.doc strong {
  color: #ffe4e9;
}

.doc blockquote {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-left: 3px solid var(--pink);
  border-radius: 0 18px 18px 0;
  background: rgba(255, 255, 255, 0.05);
  color: #f7e6ea;
}

.doc a {
  border-bottom: 1px solid rgba(255, 182, 193, 0.5);
}

.doc article {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px dashed var(--line);
}

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

article[id] {
  scroll-margin-top: 96px;
}

.foot {
  position: relative;
  z-index: 1;
  margin-top: 44px;
  padding: clamp(28px, 5vw, 54px) clamp(16px, 5vw, 44px) 26px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(38, 23, 26, 0.55), rgba(20, 12, 15, 0.78));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.foot-form {
  max-width: 1180px;
  margin: 0 auto 34px;
}

.sub {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  box-shadow: var(--shadow-soft);
}

.sub input {
  flex: 1 1 220px;
  min-height: 48px;
  padding: 0 18px;
  font-family: inherit;
  font-size: 16px;
  color: #fdeef1;
  border: 1px solid rgba(255, 182, 193, 0.3);
  border-radius: 18px;
  background: rgba(24, 15, 18, 0.6);
}

.sub input::placeholder {
  color: rgba(246, 233, 236, 0.6);
}

.sub button {
  min-height: 48px;
  padding: 0 30px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--pink), var(--pink-2));
  box-shadow: 0 6px 18px rgba(235, 135, 156, 0.3);
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.sub button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(235, 135, 156, 0.42);
}

.foot-cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 26px;
  max-width: 1180px;
  margin: 0 auto;
}

.fcol dl {
  margin: 0;
}

.fcol dt {
  margin-bottom: 10px;
  font-size: 15px;
  letter-spacing: 0.16em;
  line-height: 1.6;
  color: var(--pink-2);
}

.fcol dd {
  margin: 0;
}

.fcol dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 2px 0;
  font-size: 16px;
  color: #ecd9dd;
}

.fcol dd a:hover {
  color: #fff;
}

.fmark {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--pink-2);
}

.copy {
  max-width: 1180px;
  margin: 30px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 182, 193, 0.14);
  text-align: center;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(246, 233, 236, 0.72);
}

.will-in {
  opacity: 0.001;
  transform: translateY(12px);
}

.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 280ms ease, transform 280ms ease;
}

@media (max-width: 900px) {
  .hero-in {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    min-height: 88vh;
  }

  .hero-art {
    min-height: 200px;
    order: 2;
  }

  .reader {
    grid-template-columns: minmax(0, 1fr);
  }

  .doc {
    order: 1;
  }

  .side {
    order: 2;
    position: static;
    top: auto;
  }

  .foot-cols {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .fbrand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .top {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 4px;
  }

  .brand {
    order: -1;
  }

  .nav {
    justify-content: center;
  }

  .nav a {
    padding: 0 10px;
    font-size: 16px;
  }
}

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

  .will-in {
    opacity: 1;
    transform: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .sub button:hover {
    transform: none;
  }
}

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