@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400&family=Playfair+Display:ital@1&display=swap');

:root {
  --pink: #eb879c;
  --blush: #ffb6c1;
  --ink: #26171a;
  --ink-2: #4a3438;
  --paper: #fffafb;
  --wash: #ffe9ee;
  --line: rgba(38, 23, 26, 0.14);
  --sh-s: 0 1px 2px rgba(38, 23, 26, 0.06), 0 2px 6px rgba(235, 135, 156, 0.16);
  --sh-m: 0 2px 4px rgba(38, 23, 26, 0.05), 0 14px 34px rgba(235, 135, 156, 0.22);
  --r: 4px;
  --gutter: max(18px, calc((100vw - 1120px) / 2));
  --font: 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
}

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

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

body {
  position: relative;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.7 var(--font);
  letter-spacing: 0.005em;
  overflow-x: hidden;
}

a {
  color: var(--ink);
  text-decoration: none;
}

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

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

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

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

.mast {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px 14px;
  padding: 14px var(--gutter) 12px;
  background: rgba(255, 250, 251, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  padding: 4px 0;
  min-height: 32px;
}

.mark {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(140deg, var(--blush), var(--pink));
  box-shadow: var(--sh-s);
}

.acts {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  border: 0;
  border-radius: var(--r);
  background: linear-gradient(140deg, var(--blush), var(--pink));
  color: #2a1216;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--sh-s);
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-m);
}

.cta-lg {
  min-height: 50px;
  padding: 14px 26px;
  font-size: 1rem;
}

.burger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--sh-s);
  transition: background 0.24s ease;
}

.burger:hover {
  background: var(--wash);
}

.bars,
.bars::before,
.bars::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.bars {
  position: relative;
}

.bars::before,
.bars::after {
  content: '';
  position: absolute;
  left: 0;
}

.bars::before {
  top: -5px;
}

.bars::after {
  top: 5px;
}

#menu-toggle:focus-visible ~ .mast .burger {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 72px var(--gutter) 48px;
  background: linear-gradient(160deg, #fff3f6 0%, #ffdde5 48%, #ffc6d3 100%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.26s ease, transform 0.26s ease, visibility 0.26s;
  overflow-y: auto;
}

#menu-toggle:checked ~ .drawer {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.drawer-x {
  position: absolute;
  top: 22px;
  right: var(--gutter);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid rgba(38, 23, 26, 0.2);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  cursor: pointer;
}

.drawer-nav ul,
.rail-nav ul,
.f-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.drawer-a {
  display: block;
  padding: 11px 0;
  font-size: clamp(1.15rem, 3.4vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  border-bottom: 1px solid rgba(38, 23, 26, 0.12);
}

.drawer-a:hover {
  color: #7a2f40;
}

.hero-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.68fr);
  align-items: center;
  gap: 28px;
  min-height: 45vh;
  padding: 34px var(--gutter) 44px;
  background: linear-gradient(112deg, #ffe3ea 0%, #fff6f8 58%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.ghost {
  position: absolute;
  right: 5%;
  top: -0.14em;
  z-index: 0;
  font-size: clamp(120px, 21vw, 250px);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.07em;
  color: rgba(235, 135, 156, 0.26);
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

.hero {
  position: relative;
  z-index: 1;
  max-width: 22ch;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.05rem, 6vw, 4.15rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lede {
  margin: 0 0 22px;
  max-width: 42ch;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.75;
}

.hero-media {
  position: relative;
  z-index: 1;
}

.hero-media:empty {
  display: none;
}

.hero-img {
  width: 100%;
  border-radius: var(--r);
  box-shadow: var(--sh-m);
  transform: rotate(-1.2deg);
  border-bottom: 3px solid var(--pink);
}

.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  align-items: start;
  gap: 44px;
  padding: 46px var(--gutter) 76px;
}

.body {
  min-width: 0;
  background: #fff;
  border-radius: var(--r);
  border-bottom: 3px solid var(--pink);
  box-shadow: var(--sh-m);
  padding: 12px 34px 44px;
}

.prose {
  min-width: 0;
  font-size: 1.03rem;
}

.prose small {
  display: block;
  margin-bottom: 0.55em;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--pink);
}

.prose h2,
.prose h3 {
  margin: 0.2em 0 0.62em;
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ink);
}

.prose h2 {
  font-size: clamp(1.45rem, 3.2vw, 1.95rem);
}

.prose h3 {
  font-size: clamp(1.16rem, 2.4vw, 1.35rem);
}

.prose p {
  margin: 0 0 1.15em;
  color: var(--ink-2);
  line-height: 1.85;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.35em;
  color: var(--ink-2);
}

.prose li {
  margin-bottom: 0.5em;
  line-height: 1.8;
}

.prose a {
  color: #96294a;
  border-bottom: 2px solid rgba(235, 135, 156, 0.5);
  transition: border-color 0.24s ease, color 0.24s ease;
}

.prose a:hover {
  color: var(--pink);
  border-color: var(--pink);
}

.prose img {
  display: block;
  max-width: 100%;
  margin: 20px 0;
  border-radius: var(--r);
  box-shadow: var(--sh-s);
  border-bottom: 3px solid var(--blush);
}

.prose blockquote {
  margin: 22px 0;
  padding: 14px 20px;
  background: #fff5f7;
  border-left: 3px solid var(--pink);
  border-radius: var(--r);
  color: var(--ink);
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose table {
  display: block;
  width: 100%;
  margin: 22px 0;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.prose th {
  background: #fff2f5;
  font-weight: 700;
}

.prose section {
  padding: 34px 0 26px;
  border-top: 1px dashed var(--line);
  scroll-margin-top: 100px;
}

.prose section:first-of-type {
  border-top: 0;
  padding-top: 10px;
}

.rail {
  position: sticky;
  top: 96px;
  padding: 18px 20px 22px;
  background: linear-gradient(170deg, #fff 0%, #fff3f6 100%);
  border: 1px solid var(--line);
  border-radius: var(--r);
  border-bottom: 3px solid var(--blush);
  box-shadow: var(--sh-s);
}

.rail small {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--pink);
  margin-bottom: 4px;
}

.rail h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.rail-a {
  display: block;
  padding: 9px 0;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink-2);
  border-bottom: 1px solid rgba(38, 23, 26, 0.08);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.rail-a:hover {
  color: #96294a;
  padding-left: 4px;
}

.rail li:last-child .rail-a {
  border-bottom: 0;
}

.foot {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 34px;
  padding: 54px var(--gutter) 0;
  background: #fff;
  border-top: 3px solid var(--pink);
}

.foot h2 {
  margin: 0 0 12px;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.foot small {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--pink);
}

.f-a {
  display: inline-block;
  padding: 10px 0;
  min-height: 40px;
  color: var(--ink-2);
  font-size: 0.94rem;
  transition: color 0.2s ease;
}

.f-a:hover {
  color: var(--pink);
}

.f-list .f-a {
  display: block;
  border-bottom: 1px solid rgba(38, 23, 26, 0.07);
}

.sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 300px;
}

.sub input {
  flex: 1 1 130px;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(38, 23, 26, 0.05);
}

.sub input::placeholder {
  color: #997e84;
}

.sub button {
  min-height: 44px;
  padding: 11px 20px;
  border: 0;
  border-radius: var(--r);
  background: linear-gradient(140deg, var(--blush), var(--pink));
  color: #2a1216;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: var(--sh-s);
  transition: transform 0.24s ease;
}

.sub button:hover {
  transform: translateY(-2px);
}

.f-base {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 14px 0 30px;
  border-top: 1px solid var(--line);
}

.copy {
  margin: 0;
  font-size: 0.9rem;
  color: #7c6268;
}

@media (max-width: 900px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding-top: 30px;
    padding-bottom: 56px;
  }

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

  .body {
    padding: 6px 20px 32px;
  }

  .hero-band {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: 26px;
  }

  .hero {
    max-width: none;
  }

  .hero-media {
    margin-top: 6px;
  }

  .ghost {
    right: 2%;
    opacity: 0.75;
  }

  .foot {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 40px;
  }

  .prose section {
    scroll-margin-top: 84px;
  }
}

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

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

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