@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&family=Crimson+Pro:wght@400;500;600;700&display=swap');

:root {
  --ink: #26171a;
  --ink-2: #5c4149;
  --rose: #eb879c;
  --pink: #ffb6c1;
  --rose-deep: #a83a55;
  --paper: #fff8f5;
  --line: rgba(38, 23, 26, .14);
  --line-strong: rgba(38, 23, 26, .28);
  --card: rgba(255, 255, 255, .66);
  --rail: 306px;
  --rail-w: 264px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-left: var(--rail-w);
  font-family: 'Atkinson Hyperlegible', 'Crimson Pro', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink);
  background:
    radial-gradient(1200px 640px at 92% -10%, #ffe2e8 0%, rgba(255, 226, 232, 0) 62%),
    radial-gradient(900px 520px at 2% 10%, #fff1ea 0%, rgba(255, 241, 234, 0) 58%),
    linear-gradient(180deg, #fff8f5 0%, #fdeee9 54%, #fff8f5 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 3px solid var(--rose-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: fixed;
  left: 10px;
  top: -70px;
  z-index: 90;
  padding: 10px 18px;
  border-radius: 0 0 14px 14px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(38, 23, 26, .14), 0 10px 24px -16px rgba(38, 23, 26, .7);
  transition: top .2s ease;
}

.skip-link:focus { top: 0; }

.masthead {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-w);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 16px 26px;
  overflow-y: auto;
  background: linear-gradient(180deg, #fff7f4 0%, #ffe9ee 100%);
  border-right: 1px solid var(--line);
  box-shadow: 0 2px 4px rgba(38, 23, 26, .05), 14px 0 34px -26px rgba(38, 23, 26, .5);
}

.brandmark {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 700;
  font-size: 23px;
  box-shadow: 0 2px 4px rgba(38, 23, 26, .1);
}

.brandmark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 13px;
  display: block;
}

.nav-drawer {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nav-toggle {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 6px;
  font-size: 15px;
  letter-spacing: .16em;
  color: var(--ink-2);
  user-select: none;
}

.nav-toggle::-webkit-details-marker { display: none; }

.nav-search input {
  width: 100%;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px dashed var(--line-strong);
  background: rgba(255, 255, 255, .86);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
}

.nav-search input::placeholder { color: var(--ink-2); }

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

.navmenu li { animation: rise .3s ease both; animation-delay: calc(var(--i) * 45ms); }
.navmenu li[hidden] { display: none; }

.navmenu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 17px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, .74);
  color: var(--ink);
  text-decoration: none;
  font-size: 15.5px;
  line-height: 1.35;
  box-shadow: 0 1px 2px rgba(38, 23, 26, .05), 0 8px 16px -14px rgba(38, 23, 26, .7);
  transition: transform .22s ease, background .22s ease, border-color .22s ease, color .22s ease;
}

.navmenu a:hover {
  background: var(--rose);
  border-color: var(--rose-deep);
  color: #2b1114;
  transform: translateX(3px);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(160deg, #fff4f1 0%, #ffe6ea 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  background: linear-gradient(90deg, var(--rose-deep), var(--rose) 34%, var(--pink) 62%, #fff8f5);
}

.hero-art {
  position: relative;
  align-self: stretch;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
  background: linear-gradient(155deg, #ffb6c1 0%, #eb879c 58%, #c4697f 100%);
}

.hero-art--plain::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, 0) 58%),
              radial-gradient(circle at 74% 78%, rgba(38, 23, 26, .22) 0%, rgba(38, 23, 26, 0) 60%);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-copy {
  padding: 64px 46px 64px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.hero-copy h1 {
  margin: 0;
  font-family: 'Crimson Pro', 'Songti SC', Georgia, serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.18;
  letter-spacing: .01em;
}

.hero-lead {
  margin: 0;
  max-width: 34ch;
  font-size: 17px;
  color: var(--ink-2);
}

.frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rail);
  gap: 36px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 30px 76px;
}

.prose {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.prose > div {
  border: 1.5px solid var(--line);
  border-radius: 28px;
  padding: 30px 32px;
  background: var(--card);
  scroll-margin-top: 100px;
  animation: rise .4s ease both;
}

.prose > div > *:first-child { margin-top: 0; }
.prose > div > *:last-child { margin-bottom: 0; }

.prose h2 {
  margin: 0 0 12px;
  font-family: 'Crimson Pro', 'Songti SC', Georgia, serif;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.3;
  letter-spacing: .01em;
}

.prose h3 {
  margin: 20px 0 8px;
  font-size: 1.1rem;
  line-height: 1.45;
}

.prose p { margin: 0 0 14px; }

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

.prose a {
  color: var(--rose-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.prose li { margin-bottom: 6px; }

.prose blockquote {
  margin: 18px 0;
  padding: 14px 22px;
  border-left: 4px solid var(--rose);
  border-radius: 0 18px 18px 0;
  background: rgba(255, 182, 193, .26);
}

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

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

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

.prose th { background: rgba(255, 182, 193, .3); }

.rail {
  position: sticky;
  top: 26px;
  padding: 24px 22px;
  border: 1.5px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, .62);
}

.rail h2 {
  margin: 0 0 6px;
  font-family: 'Crimson Pro', 'Songti SC', Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.35;
  letter-spacing: .02em;
}

.rail .subtitle {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--ink-2);
}

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

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--ink);
  text-decoration: none;
  font-size: 15.5px;
  transition: background .2s ease, border-color .2s ease;
}

.rail-list a:hover {
  background: #fff;
  border-color: var(--line);
}

.foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 18px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 30px 34px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .5) 0%, #ffe9ee 100%);
}

.foot-addr {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.foot-brand {
  font-family: 'Crimson Pro', 'Songti SC', Georgia, serif;
  font-size: 1.24rem;
  font-weight: 600;
  line-height: 1.4;
}

.foot-host { font-size: 15px; color: var(--ink-2); }

.sub-form { display: flex; flex-wrap: wrap; gap: 8px; }

.sub-form input {
  min-height: 44px;
  min-width: 190px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
}

.sub-form button {
  min-height: 44px;
  padding: 8px 24px;
  border-radius: 999px;
  border: 1.5px solid var(--rose-deep);
  background: var(--rose);
  color: #2b1114;
  font: inherit;
  font-weight: 700;
  font-size: 15.5px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

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

.foot-nav {
  grid-column: 1 / -1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.foot-nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 15px;
  border-radius: 999px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
  transition: background .2s ease, color .2s ease;
}

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

.foot-copy {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
  font-size: 15px;
  color: var(--ink-2);
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(38, 23, 26, .12), 0 10px 24px -18px rgba(38, 23, 26, .8);
  transition: background .2s ease;
}

.to-top:hover { background: var(--pink); }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1020px) {
  :root { --rail: 264px; }
  .frame { gap: 24px; padding: 52px 22px 64px; }
}

@media (max-width: 920px) {
  body { padding-left: 0; }

  .masthead {
    position: sticky;
    inset: auto;
    width: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 6px rgba(38, 23, 26, .08);
    overflow: visible;
  }

  .brandmark {
    width: 42px;
    height: 42px;
    font-size: 20px;
    border-radius: 13px;
    flex: 0 0 auto;
  }

  .nav-drawer { flex: 1; min-width: 0; gap: 0; }

  .nav-toggle {
    justify-content: flex-end;
    min-height: 42px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    background: #fff;
    letter-spacing: .12em;
  }

  .nav-search {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    z-index: 50;
  }

  .nav-search input { box-shadow: 0 2px 6px rgba(38, 23, 26, .12); background: #fff; }

  .navmenu {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 62px);
    z-index: 50;
    max-height: 62vh;
    overflow-y: auto;
    padding: 12px;
    border-radius: 24px;
    border: 1.5px solid var(--line);
    background: #fff8f5;
    box-shadow: 0 14px 34px -20px rgba(38, 23, 26, .8);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    background: linear-gradient(170deg, #fff4f1 0%, #ffe6ea 100%);
  }

  .hero-art {
    min-height: 34vh;
    clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  }

  .hero-copy { padding: 32px 20px 54px; }

  .frame {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 36px 16px 48px;
  }

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

  .prose > div { padding: 24px 20px; scroll-margin-top: 96px; }

  .foot {
    grid-template-columns: 1fr;
    padding: 32px 18px 28px;
  }

  .foot-nav { gap: 2px; }
}

@media (max-width: 420px) {
  .hero-copy h1 { font-size: 1.95rem; }
  .sub-form input { min-width: 0; flex: 1 1 130px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

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