:root {
  --pink: #df7faa;
  --pink-deep: #c45d91;
  --pink-soft: #fff4f9;
  --rose: #f2a0b8;
  --violet: #a855f7;
  --text: #5c4b55;
  --muted: #8f7482;
  --paper: rgba(255, 255, 255, 0.7);
  --paper-strong: rgba(255, 255, 255, 0.86);
  --line: rgba(255, 255, 255, 0.78);
  --line-pink: rgba(223, 127, 170, 0.15);
  --shadow: 0 24px 80px rgba(223, 127, 170, 0.12);
  --shadow-card: 0 18px 48px rgba(158, 77, 118, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 255, 255, 0.92) 0, transparent 31%),
    radial-gradient(circle at 88% 18%, rgba(255, 218, 235, 0.72) 0, transparent 30%),
    radial-gradient(circle at 70% 85%, rgba(237, 233, 254, 0.72) 0, transparent 34%),
    linear-gradient(135deg, #fff0f6 0%, #fff9fc 52%, #fbf3ff 100%);
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(223, 127, 170, 0.1) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(168, 85, 247, 0.08) 1px, transparent 1.5px);
  background-position: 0 0, 18px 22px;
  background-size: 42px 42px, 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.62), transparent 70%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 28px;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 14px 40px rgba(223, 127, 170, 0.1);
  backdrop-filter: blur(14px);
  transition: box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 46px rgba(223, 127, 170, 0.11);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-left: 4px;
  color: var(--pink);
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(223, 127, 170, 0.1);
}

.brand-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #7b6671;
  font-size: 14px;
  font-weight: 800;
}

.nav a {
  padding: 9px 12px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--pink);
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 26px;
  overflow: hidden;
  align-items: end;
  min-height: 430px;
  padding: clamp(30px, 5vw, 52px) clamp(22px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.46)),
    linear-gradient(120deg, rgba(255, 228, 240, 0.56), rgba(237, 233, 254, 0.34));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero::before {
  right: -92px;
  top: -116px;
  width: 270px;
  height: 270px;
  background: rgba(255, 182, 213, 0.42);
  filter: blur(2px);
}

.hero::after {
  right: 88px;
  bottom: -86px;
  width: 210px;
  height: 210px;
  background: rgba(216, 180, 254, 0.28);
  filter: blur(3px);
}

.hero-copy,
.memo-card {
  position: relative;
  z-index: 1;
}

.badge,
.eyebrow,
.card-kicker {
  letter-spacing: 0;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--pink);
  font-size: 14px;
  font-weight: 850;
  box-shadow: 0 10px 28px rgba(223, 127, 170, 0.1);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 22px 0 12px;
  color: var(--pink);
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.03;
  letter-spacing: 0;
}

.hero-text {
  max-width: 720px;
  margin: 0;
  color: #725d68;
  font-size: clamp(16px, 2.5vw, 20px);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 12px 28px rgba(223, 127, 170, 0.18);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--pink-deep);
}

.button.secondary {
  background: #fff;
  color: var(--pink);
  box-shadow: 0 12px 28px rgba(223, 127, 170, 0.1);
}

.memo-card {
  align-self: center;
  rotate: 1.5deg;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 251, 0.76));
  box-shadow: 0 18px 45px rgba(158, 77, 118, 0.11);
}

.memo-pin {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--rose);
  box-shadow: 0 0 0 5px rgba(251, 113, 133, 0.12);
}

.memo-title {
  margin: 0 0 10px;
  color: var(--pink);
  font-size: 15px;
  font-weight: 900;
}

.memo-card p:last-child {
  margin: 0;
  color: #735f6a;
  line-height: 1.8;
}

.section {
  padding-top: 34px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 4px 16px;
}

.section-head span {
  color: #927985;
  font-size: 14px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--pink);
  font-size: 12px;
  font-weight: 900;
}

h2 {
  margin: 0;
  color: var(--pink);
  font-size: 27px;
  line-height: 1.2;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.work-card {
  position: relative;
  overflow: hidden;
  min-height: 248px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.work-card::before {
  content: "";
  position: absolute;
  right: -46px;
  top: -46px;
  width: 118px;
  height: 118px;
  border-radius: 999px;
  background: rgba(255, 228, 240, 0.72);
}

.work-card:hover,
.work-card:focus-visible,
.tuitui-card:focus-within {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 56px rgba(158, 77, 118, 0.14);
}

.work-card.featured {
  grid-column: span 2;
  background: var(--paper);
}

.card-main-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card-icon,
.card-kicker,
.work-card h3,
.work-card p,
.card-link,
.card-actions {
  position: relative;
  z-index: 2;
}

.card-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 16px;
  background: #fff;
  color: var(--pink);
  font-size: 24px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(223, 127, 170, 0.08);
}

.card-kicker {
  color: var(--rose);
  font-size: 12px;
  font-weight: 900;
}

h3 {
  margin: 10px 0 8px;
  color: #4f3c47;
  font-size: 23px;
  line-height: 1.25;
}

.work-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.card-link,
.card-actions {
  margin-top: auto;
  padding-top: 18px;
  color: var(--pink);
  font-weight: 900;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.card-actions a {
  position: relative;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(223, 127, 170, 0.08);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 4px 0;
  color: #9a8290;
  font-size: 13px;
}

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

  .memo-card {
    max-width: 420px;
  }

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

@media (max-width: 680px) {
  .page {
    width: min(100% - 24px, 1120px);
    padding-top: 12px;
  }

  .site-header {
    align-items: flex-start;
    border-radius: 22px;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav a {
    flex: 0 0 auto;
  }

  .hero {
    min-height: 0;
    padding: 30px 22px;
    border-radius: 26px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .memo-card {
    rotate: 0deg;
    padding: 18px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

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

  .work-card,
  .work-card.featured {
    grid-column: auto;
    min-height: 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
