/* Homepage presentation. Shared navigation and service pages use styles.css. */
body[data-page="index.html"] {
  font-family: "Microsoft YaHei", sans-serif;
}

body[data-page="index.html"] .oriental-hero {
  min-height: clamp(580px, 76svh, 750px);
  height: auto;
}

body[data-page="index.html"] .hero-veil {
  background: linear-gradient(90deg, #f4f1e8ed 0%, #f4f1e8c9 38%, #f4f1e838 63%, transparent 78%);
}

body[data-page="index.html"] .hero-message {
  padding-block: 110px 66px;
}

.home-service-links {
  gap: clamp(12px, 2vw, 28px);
  padding-block: 12px;
}

.home-service-links a {
  align-items: center;
  min-height: 48px;
  padding-block: 8px;
}

.home-service-links a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.home-gallery {
  padding-block: clamp(58px, 7vw, 106px);
  scroll-margin-top: 94px;
}

.home-gallery .gallery-heading {
  align-items: end;
  gap: 24px;
  margin-bottom: clamp(24px, 3vw, 38px);
}

.home-gallery .gallery-heading h2 {
  margin: 0;
  font-size: clamp(30px, 3.3vw, 46px);
  line-height: 1.3;
}

.home-gallery .gallery-heading > p {
  max-width: 30ch;
}

.home-gallery .service-stories {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 42px);
  row-gap: clamp(32px, 4vw, 54px);
}

.home-gallery .service-story {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
  min-width: 0;
  background: #fbfaf6;
  border: 1px solid var(--line);
}

.home-gallery .story-art {
  display: block;
  background: #163935;
}

.home-gallery .story-art img {
  display: block;
  aspect-ratio: 3 / 2;
  object-position: center;
}

.home-gallery .story-art > span {
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  background: #fbfaf6;
}

.home-gallery .story-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: clamp(19px, 3vw, 32px);
}

.home-gallery .story-text h3 {
  margin: 0;
  font-size: clamp(22px, 2.1vw, 30px);
}

.home-gallery .story-text > p {
  color: #4f615a;
  font-size: 15px;
  line-height: 1.85;
  margin: 0;
}

.home-gallery .story-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: auto;
  padding-top: 7px;
}

.home-gallery .story-actions .text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  margin: 0;
  color: #254c42;
  font-weight: 700;
  text-underline-offset: 5px;
}

.home-gallery .story-actions .text-link:hover {
  text-decoration: underline;
}

.home-gallery .story-actions .text-link:focus-visible {
  outline-offset: 2px;
}

.home-gallery .story-art:focus-visible {
  outline-offset: -4px;
}

@media (max-width: 820px) {
  body[data-page="index.html"] .oriental-hero {
    min-height: max(570px, 79svh);
  }

  body[data-page="index.html"] .hero-message {
    padding-block: 124px 180px;
  }

  body[data-page="index.html"] .hero-veil {
    background: linear-gradient(180deg, #f0eee6 0%, #f0eee6eb 49%, transparent 89%);
  }
}

@media (max-width: 560px) {
  body[data-page="index.html"] .oriental-hero {
    min-height: 560px;
  }

  body[data-page="index.html"] .hero-message {
    padding-block: 108px 120px;
  }

  body[data-page="index.html"] .hero-message h1 {
    font-size: clamp(30px, 8.7vw, 39px) !important;
  }

  .home-gallery .gallery-heading h2 {
    margin-bottom: 10px;
  }

  .home-gallery .service-stories {
    grid-template-columns: 1fr;
  }
}
