:root {
  color-scheme: light;
  --white: #ffffff;
  --blush: #fff7fa;
  --pink-soft: #f8dfe7;
  --pink: #d890a5;
  --pink-deep: #b96780;
  --ink: #3f3940;
  --muted: #7f6870;
  --line: rgba(216, 144, 165, 0.3);
  --page-padding: 5vw;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-padding);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--pink-deep);
  font-size: 1rem;
  font-weight: 600;
}

.header-phone {
  display: inline-flex;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.78rem;
}

.header-phone span {
  color: var(--muted);
}

.header-phone strong {
  color: var(--pink-deep);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 145px);
  place-items: center;
  overflow: hidden;
  background: var(--blush);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero-texture {
  position: absolute;
  z-index: -1;
  top: 6%;
  left: 50%;
  width: min(92vw, 1500px);
  aspect-ratio: 2 / 1;
  transform: translateX(-50%) scale(1.08);
  background: url("assets/ambient-lines-pink.png") center / contain no-repeat;
  opacity: 0.7;
  animation: breathe 8s ease-in-out infinite alternate;
}

.hero-content {
  width: min(90%, 980px);
  margin-top: -2vh;
  text-align: center;
}

.hero-rule,
.contact-rule {
  display: block;
  width: 1px;
  height: 52px;
  margin: 0 auto 2.4rem;
  background: var(--line);
}

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: 4.75rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.28;
  text-wrap: balance;
}

.hero h1 span {
  color: var(--pink-deep);
}

.hero-rule-short {
  width: 56px;
  height: 1px;
  margin: 2.4rem auto 2rem;
}

.hero p {
  margin: 0;
  color: var(--pink-deep);
  font-size: 1.05rem;
}

.contact {
  background: var(--pink-soft);
}

.contact-inner {
  display: grid;
  width: min(100% - 2 * var(--page-padding), 980px);
  min-height: 340px;
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4rem;
}

.contact-item {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 3rem 1rem;
  text-align: center;
}

.contact-item .contact-rule {
  width: 42px;
  height: 1px;
  margin-bottom: 2rem;
  background: rgba(185, 103, 128, 0.48);
  transition: width 450ms ease;
}

.contact-item:hover .contact-rule,
.contact-item:focus-visible .contact-rule {
  width: 82px;
}

.contact-item svg {
  width: 26px;
  height: 26px;
  margin-bottom: 1.25rem;
  color: var(--pink-deep);
}

.contact-label {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.contact-item strong {
  max-width: 100%;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.contact-item:first-child strong {
  color: var(--pink-deep);
  font-variant-numeric: tabular-nums;
}

.contact-item:focus-visible,
.brand:focus-visible,
.header-phone:focus-visible,
.site-footer a:focus-visible {
  outline: 2px solid var(--pink-deep);
  outline-offset: 5px;
}

.site-footer {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
  padding: 1.5rem var(--page-padding);
  background: var(--white);
  border-top: 1px solid rgba(216, 144, 165, 0.2);
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

.site-footer a {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

@keyframes breathe {
  from {
    transform: translateX(-50%) scale(1.04);
    opacity: 0.34;
  }
  to {
    transform: translateX(-50%) scale(1.12);
    opacity: 0.5;
  }
}

@media (max-width: 900px) {
  .hero h1 {
    font-size: 3.4rem;
  }

  .contact-inner {
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  :root {
    --page-padding: 6vw;
  }

  .site-header {
    min-height: 68px;
  }

  .header-phone span {
    display: none;
  }

  .hero {
    min-height: calc(100svh - 128px);
  }

  .hero-texture {
    top: 18%;
    width: 150vw;
  }

  .hero-content {
    margin-top: -4vh;
  }

  .hero-rule {
    height: 36px;
    margin-bottom: 1.75rem;
  }

  .hero h1 {
    font-size: 2.25rem;
    line-height: 1.42;
  }

  .hero-rule-short {
    width: 44px;
    height: 1px;
    margin: 1.75rem auto 1.5rem;
  }

  .hero p {
    font-size: 0.94rem;
  }

  .contact-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-item {
    min-height: 250px;
    padding: 2.5rem 1rem;
  }

  .contact-item + .contact-item {
    border-top: 1px solid rgba(185, 103, 128, 0.2);
  }

  .site-footer {
    min-height: 104px;
    flex-direction: column;
  }
}

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

  .hero-texture {
    animation: none;
  }

  .contact-item .contact-rule {
    transition: none;
  }
}
