@import url('https://fonts.googleapis.com/css2?family=Lexend+Mega:wght@100..900&family=Public+Sans:wght@100..900&display=swap');

:root {
  --ink: #26171a;
  --ink-2: #4a3237;
  --muted: #6d5459;
  --accent: #eb879c;
  --accent-2: #ffb6c1;
  --accent-deep: #b8506a;
  --bg: #fff5f7;
  --surface: #ffffff;
  --line: rgba(38, 23, 26, 0.13);
  --shadow-1: 0 2px 4px rgba(38, 23, 26, 0.05), 0 12px 26px -12px rgba(38, 23, 26, 0.18);
  --shadow-2: 0 3px 6px rgba(38, 23, 26, 0.06), 0 26px 50px -22px rgba(184, 80, 106, 0.55);
  --r: 4px;
  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Public Sans', system-ui, -apple-system, 'Segoe UI', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink);
  background:
    radial-gradient(880px 520px at 90% -10%, rgba(255, 182, 193, 0.55), transparent 62%),
    radial-gradient(760px 480px at -8% 14%, rgba(235, 135, 156, 0.3), transparent 62%),
    var(--bg);
  background-attachment: fixed;
}

img {
  max-width: 100%;
}

h1, h2, h3 {
  font-family: 'Lexend Mega', 'Public Sans', system-ui, 'Noto Sans SC', sans-serif;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

a {
  color: var(--accent-deep);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: var(--r);
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px clamp(12px, 3.5vw, 26px);
  background: rgba(255, 245, 247, 0.9);
  backdrop-filter: blur(10px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}

.brand {
  flex: 0 0 auto;
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 6px 0 0;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: var(--r);
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(38, 23, 26, 0.16);
}

.brand-name {
  font-family: 'Lexend Mega', system-ui, 'Noto Sans SC', sans-serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.top-aside {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}

.pillnav ul {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 3px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.pillnav ul::-webkit-scrollbar {
  display: none;
}

.pillnav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(38, 23, 26, 0.05);
  transition: background 0.22s var(--ease), color 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.pillnav a:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -6px rgba(38, 23, 26, 0.5);
}

/* ---------- shell ---------- */
main {
  padding-top: 6px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(14px, 4vw, 32px);
}

.hero,
.wrap > div {
  scroll-margin-top: 96px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 68vh;
  display: flex;
  align-items: center;
  padding: clamp(26px, 5vw, 62px) 0 clamp(30px, 6vw, 66px);
}

.hero::before {
  content: "01";
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Lexend Mega', sans-serif;
  font-weight: 800;
  font-size: clamp(150px, 26vw, 300px);
  line-height: 0.78;
  letter-spacing: -0.06em;
  color: rgba(184, 80, 106, 0.14);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-h1 {
  font-size: clamp(32px, 6.6vw, 58px);
  margin: 0;
  color: var(--ink);
  word-break: break-word;
}

.hero-h2 {
  margin: clamp(16px, 3vw, 26px) 0 0;
  font-size: clamp(13px, 1.6vw, 16px);
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--accent-deep);
}

.hero-sub {
  margin: 7px 0 0;
  max-width: 44ch;
  font-size: 17px;
  line-height: 1.72;
  color: var(--muted);
}

.hero-figure {
  margin: 0;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(155deg, var(--accent-2), var(--accent) 68%, var(--accent-deep));
  box-shadow: var(--shadow-2);
}

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

/* ---------- content sections ---------- */
.wrap > div:not(.hero) {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-1);
  padding: clamp(20px, 3.4vw, 38px);
  margin-bottom: clamp(14px, 2.2vw, 24px);
}

.wrap > div:not(.hero)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2) 62%, rgba(255, 182, 193, 0));
}

.wrap > div:not(.hero) h2 {
  font-size: clamp(21px, 3.2vw, 29px);
  margin: 0 0 0.55em;
  color: var(--ink);
}

.wrap > div:not(.hero) h2::before {
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
  margin-bottom: 14px;
}

.wrap > div:not(.hero) h3 {
  font-size: clamp(18px, 2.2vw, 21px);
  margin: 1.4em 0 0.45em;
}

.wrap > div:not(.hero) p {
  margin: 0 0 1.05em;
  color: var(--ink-2);
}

.wrap > div:not(.hero) p:last-child {
  margin-bottom: 0;
}

.wrap > div:not(.hero) ul,
.wrap > div:not(.hero) ol {
  margin: 0 0 1.05em;
  padding-left: 1.35em;
  color: var(--ink-2);
}

.wrap > div:not(.hero) li {
  margin-bottom: 0.4em;
}

.wrap > div:not(.hero) a {
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.wrap > div:not(.hero) img {
  height: auto;
  border-radius: var(--r);
  box-shadow: var(--shadow-1);
  margin: 0.4em 0 1em;
}

.wrap > div:not(.hero) blockquote {
  margin: 0 0 1.05em;
  padding: 12px 16px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  background: #fff2f5;
  color: var(--ink-2);
}

.wrap > div:not(.hero) blockquote p:last-child {
  margin-bottom: 0;
}

.wrap > div:not(.hero) code {
  font-size: 0.94em;
  padding: 0.1em 0.4em;
  border-radius: 3px;
  background: #fff2f5;
  color: var(--accent-deep);
}

/* ---------- footer ---------- */
.site-foot {
  max-width: 1120px;
  margin: clamp(28px, 5vw, 56px) auto 0;
  padding: 22px clamp(14px, 4vw, 32px) 42px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px clamp(16px, 3vw, 36px);
}

.foot-brand {
  flex: 0 0 auto;
}

.foot-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
  font-family: 'Lexend Mega', system-ui, 'Noto Sans SC', sans-serif;
  font-weight: 800;
  font-size: 16px;
}

.foot-nav {
  flex: 1 1 260px;
  min-width: 0;
}

.foot-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.foot-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.foot-legal {
  flex: 0 0 auto;
  margin: 0;
}

.foot-legal p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- motion ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.46s var(--ease) var(--stagger, 0ms),
    transform 0.46s var(--ease) var(--stagger, 0ms);
  will-change: opacity, transform;
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .pillnav a {
    transition: none;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .hero {
    min-height: 0;
    padding-top: 24px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero::before {
    font-size: clamp(120px, 34vw, 200px);
    right: -6%;
    opacity: 0.8;
  }

  .hero-figure {
    aspect-ratio: 16 / 11;
  }

  .site-foot {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16.5px;
  }

  .brand-name {
    font-size: 16px;
  }

  .hero-h1 {
    font-size: clamp(28px, 9vw, 38px);
  }

  .foot-nav {
    flex: 1 1 100%;
    order: 3;
  }

  .foot-legal {
    margin-left: auto;
  }
}

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