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

:root {
  --rose: #eb879c;
  --rose-2: #ffb6c1;
  --ink: #26171a;
  --ink-soft: #573f44;
  --deep: #ac4d64;
  --paper: #fffafb;
  --paper-2: #fdeef1;
  --line: rgba(38, 23, 26, 0.12);
  --sh-sm: 0 1px 2px rgba(38, 23, 26, 0.07), 0 3px 8px rgba(235, 135, 156, 0.16);
  --sh-md: 0 2px 4px rgba(38, 23, 26, 0.06), 0 14px 30px rgba(235, 135, 156, 0.24);
  --sh-in: inset 0 1px 0 #ffffff;
  --t: 240ms cubic-bezier(0.4, 0, 0.2, 1);
  --pad: clamp(16px, 4vw, 40px);
}

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

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

body {
  margin: 0;
  font-family: 'Nunito Sans', 'Rubik', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink);
  background: linear-gradient(180deg, #fffafb 0%, #fdeef1 58%, #fff7f9 100%);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--deep);
  text-decoration: none;
  transition: color var(--t), background-color var(--t), box-shadow var(--t), transform var(--t);
}

a:hover {
  color: var(--ink);
}

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

/* ---------- masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 250, 251, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line), 0 10px 26px rgba(235, 135, 156, 0.16);
}

.stripe {
  background: var(--ink);
}

.stripe-text {
  margin: 0;
  padding: 8px var(--pad);
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: #ffd9e1;
}

.anchors {
  display: flex;
  align-items: stretch;
  gap: 6px;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
}

.nav-half {
  margin: 0;
  display: flex;
  align-items: center;
  flex: 1 1 0;
  gap: 2px;
  min-width: 0;
}

.nav-half--l {
  justify-content: flex-start;
}

.nav-half--r {
  justify-content: flex-end;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--ink);
  background: #ffffff;
  box-shadow: var(--sh-sm);
}

.nav-link[aria-current] {
  color: #2a1116;
  background: var(--rose-2);
  box-shadow: var(--sh-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 20px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  white-space: nowrap;
}

.brand:hover {
  color: var(--deep);
}

/* ---------- page shell ---------- */

.page {
  display: block;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--pad) 56px;
}

.story {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(16px, 3vw, 36px);
  align-items: center;
  min-height: 45vh;
  margin: clamp(16px, 3vw, 28px) 0 0;
  padding: clamp(24px, 4vw, 46px);
  background: linear-gradient(135deg, #fff7f9 0%, #ffe2e9 62%, #ffd3dd 100%);
  box-shadow: var(--sh-md);
}

.hero--bare {
  grid-template-columns: 1fr;
}

.hero-copy {
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(27px, 4.4vw, 44px);
  line-height: 1.28;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero-art {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--sh-sm);
}

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

.hero-art--stack img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 620ms ease;
}

.hero-art--stack img.is-on {
  opacity: 1;
}

/* ---------- layout columns ---------- */

.columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  margin-top: clamp(24px, 4vw, 46px);
}

.prose {
  min-width: 0;
  max-width: 68ch;
}

.prose section {
  scroll-margin-top: 118px;
  padding: 34px 0 30px;
  border-top: 1px solid var(--line);
}

.prose section:first-child {
  border-top: 0;
  padding-top: 0;
}

.prose h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.prose h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  margin-top: 12px;
  background: var(--rose-2);
}

.prose h3 {
  margin: 26px 0 8px;
  font-size: 19px;
  line-height: 1.5;
}

.prose p {
  margin: 14px 0;
}

.prose .subtitle,
.prose .subhead,
.prose .lead,
.prose .desc {
  margin: 10px 0 18px;
  color: var(--ink-soft);
  font-size: 17px;
}

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

.prose li {
  margin: 6px 0;
}

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

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

.prose blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  background: #ffffff;
  border-left: 4px solid var(--rose-2);
  box-shadow: var(--sh-sm);
  color: var(--ink-soft);
}

.prose img {
  width: 100%;
  height: auto;
  margin: 18px 0;
  box-shadow: var(--sh-sm);
}

.prose hr {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* ---------- rail / aside ---------- */

.rail {
  position: sticky;
  top: 122px;
  padding: 20px 16px 18px;
  background: #ffffff;
  box-shadow: var(--sh-md);
}

.rail h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.18em;
}

.rail .subtitle {
  margin: 8px 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: rail;
  display: grid;
  gap: 2px;
}

.rail-list li {
  counter-increment: rail;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 10px;
  font-size: 16px;
  color: var(--ink-soft);
  border-left: 3px solid transparent;
}

.rail-list a::before {
  content: counter(rail, decimal-leading-zero);
  margin-right: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--deep);
}

.rail-list a:hover {
  background: #fff3f6;
  border-left-color: var(--rose);
  color: var(--ink);
}

.rail-list a[aria-current] {
  background: #fff3f6;
  border-left-color: var(--rose);
  color: var(--ink);
}

/* ---------- footer ---------- */

.foot {
  margin-top: 40px;
  padding: clamp(28px, 5vw, 52px) var(--pad) 0;
  background: var(--ink);
  color: #f6e5e8;
  box-shadow: 0 -2px 4px rgba(38, 23, 26, 0.06), 0 -12px 30px rgba(235, 135, 156, 0.22);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(16px, 3vw, 36px);
  max-width: 1080px;
  margin: 0 auto;
}

.foot h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #ffc9d4;
}

.foot address {
  font-style: normal;
  font-size: 16px;
  line-height: 1.9;
  color: #e6ccd1;
  word-break: break-all;
}

.foot address strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
  letter-spacing: 0.1em;
  color: #ffffff;
}

.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.foot li a {
  display: flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  color: #f0dade;
}

.foot li a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.sub-form input {
  flex: 1 1 130px;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  box-shadow: var(--sh-in);
}

.sub-form button {
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  background: var(--rose);
  color: #2a1116;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--t), transform var(--t);
}

.sub-form button:hover {
  background: var(--rose-2);
}

.copyright {
  max-width: 1080px;
  margin: clamp(20px, 4vw, 36px) auto 0;
  padding: 16px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #d6b8be;
}

/* ---------- to top ---------- */

.totop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  background: var(--ink);
  color: #ffe2e8;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  box-shadow: var(--sh-md);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity var(--t), transform var(--t), background-color var(--t);
}

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

.totop:hover {
  background: var(--deep);
}

/* ---------- responsive ---------- */

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

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

  .rail {
    position: static;
    order: -1;
  }

  .rail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prose {
    max-width: none;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .anchors {
    flex-wrap: wrap;
    padding-bottom: 8px;
    row-gap: 0;
  }

  .brand {
    order: -1;
    flex: 1 1 100%;
    min-height: 48px;
    border-bottom: 1px solid var(--line);
  }

  .nav-half {
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-link {
    min-height: 44px;
    padding: 8px 10px;
  }

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

  .hero {
    min-height: 40vh;
  }
}

@media (max-width: 560px) {
  .foot-grid {
    grid-template-columns: 1fr;
  }

  .rail-list {
    grid-template-columns: 1fr;
  }
}

@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}
