/* ===== Reset ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: "Cormorant Garamond", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: #1A1A1A;
  background-color: #FAFAF8;
  font-weight: 400;
}

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

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

/* ===== Site Header / Navigation ===== */
.site-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 40px 0;
}

/* Header overlay variant for the home hero image */
.site-header.is-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  max-width: none;
  z-index: 10;
  padding: 32px 48px 0;
}

.nav {
  display: flex;
  gap: 36px;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.nav-link {
  color: #888888;
  transition: color 0.2s ease;
  padding-bottom: 2px;
}

.nav-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.nav-link.is-current {
  color: #1A1A1A;
}

.nav-link.is-disabled {
  color: #C8C8C8;
  cursor: default;
}

.nav-link.is-disabled:hover {
  text-decoration: none;
}

/* When nav sits over the dark dusk hero carousel, use light text */
.is-overlay .nav-link {
  color: rgba(255, 255, 255, 0.7);
}
.is-overlay .nav-link.is-current {
  color: rgba(255, 255, 255, 1);
}
.is-overlay .nav-link.is-disabled {
  color: rgba(255, 255, 255, 0.32);
}

/* ===== Home: Hero Carousel ===== */
.home-wrap {
  display: flex;
  flex-direction: column;
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-color: #1A1A1A; /* dark backdrop while images load */
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
  will-change: opacity;
}

.hero-slide.is-active {
  opacity: 1;
}

/* Small brand wordmark tucked at the bottom of the hero image */
.hero-mark {
  position: absolute;
  left: 48px;
  bottom: 40px;
  font-size: 12px;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.78);
  z-index: 5;
}

/* ===== Home: Text section under the hero image ===== */
.hero-text {
  text-align: center;
  padding: 140px 40px 120px;
  max-width: 720px;
  margin: 0 auto;
}

.hero-brand {
  font-size: 13px;
  letter-spacing: 0.34em;
  margin-bottom: 56px;
  color: #1A1A1A;
  font-weight: 400;
}

.hero-title {
  font-size: 34px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  font-family: "Cormorant Garamond", "Source Han Serif SC", "Noto Serif SC", "PingFang SC", "Microsoft YaHei", serif;
}

.hero-sub {
  font-size: 14px;
  font-style: italic;
  color: #888888;
  letter-spacing: 0.06em;
  font-family: "Cormorant Garamond", serif;
}

/* Small intro paragraph + link to Philosophy */
.hero-intro {
  margin-top: 96px;
  font-size: 14px;
  color: #888888;
  letter-spacing: 0.02em;
}

.hero-intro a {
  color: #1A1A1A;
  border-bottom: 1px solid #1A1A1A;
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}

.hero-intro a:hover {
  opacity: 0.45;
}

/* ===== Site Footer ===== */
.site-footer {
  font-size: 12px;
  color: #888888;
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.site-footer .icp {
  min-height: 1em;
}

/* ===== Article (Inner Pages) ===== */
.article {
  max-width: 600px;
  margin: 0 auto;
  padding: 72px 24px 120px;
}

.article-title {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.10em;
  margin-bottom: 56px;
  color: #1A1A1A;
  font-family: "Cormorant Garamond", serif;
}

.article p {
  margin-bottom: 28px;
}

.article p:last-child {
  margin-bottom: 0;
}

.article strong {
  font-weight: 600;
}

.article a {
  color: #1A1A1A;
  border-bottom: 1px solid #1A1A1A;
  padding-bottom: 1px;
  transition: opacity 0.2s ease;
}

.article a:hover {
  opacity: 0.45;
}

.section-gap {
  height: 28px;
}

/* In-article figure (image) */
.article-figure {
  margin: 56px 0;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.article-figure figcaption {
  margin-top: 14px;
  font-size: 12px;
  color: #888888;
  font-style: italic;
  letter-spacing: 0.04em;
  text-align: center;
}

/* ===== Studio: questions list ===== */
.questions {
  list-style: none;
  margin: 8px 0 32px;
}

.questions li {
  margin-bottom: 10px;
}

.questions li:last-child {
  margin-bottom: 0;
}

/* ===== Product Page ===== */
.product-intro {
  margin-bottom: 64px;
}

.product-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 8px;
}

.product-item {
  border-bottom: 1px solid #E8E6E2;
  padding-bottom: 48px;
}

.product-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.product-name {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  color: #1A1A1A;
}

.product-name-en {
  font-style: italic;
  font-weight: 400;
  color: #888888;
  margin-left: 12px;
  letter-spacing: 0.04em;
  font-family: "Cormorant Garamond", serif;
}

.product-desc {
  color: #555555;
  font-size: 15px;
  line-height: 1.85;
  margin: 0;
}

/* Layout variants — vary image placement per item for editorial rhythm */
.product-item.has-image-right {
  display: grid;
  grid-template-columns: 1fr 200px;
  grid-template-areas: "text image";
  gap: 36px;
  align-items: start;
}

.product-item.has-image-left {
  display: grid;
  grid-template-columns: 260px 1fr;
  grid-template-areas: "image text";
  gap: 36px;
  align-items: start;
}

.product-item.has-image-right .product-text,
.product-item.has-image-left .product-text {
  grid-area: text;
}

.product-item.has-image-right .product-image,
.product-item.has-image-left .product-image {
  grid-area: image;
}

.product-image {
  display: block;
  width: 100%;
  height: auto;
}

.product-item.has-image-below .product-image {
  margin-top: 28px;
  max-width: 360px;
}

/* ===== Contact Page ===== */
.contact-intro {
  margin-bottom: 64px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.contact-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  align-items: start;
}

.contact-label {
  color: #888888;
  font-size: 12px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  padding-top: 6px;
}

.contact-value {
  color: #1A1A1A;
}

.contact-value a {
  border-bottom: 1px solid #1A1A1A;
}

.qr-image {
  width: 110px;
  height: 110px;
  max-width: 100%;
  background-color: #EFEFEC;
  background-image: url('../images/wechat-qr.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  body {
    font-size: 15px;
    line-height: 1.8;
  }

  .site-header {
    padding: 24px 24px 0;
  }

  .site-header.is-overlay {
    padding: 24px 24px 0;
  }

  .nav {
    gap: 20px;
    flex-wrap: wrap;
    font-size: 12px;
  }

  .hero-mark {
    left: 24px;
    bottom: 28px;
    font-size: 11px;
    letter-spacing: 0.28em;
  }

  .hero-text {
    padding: 96px 24px 80px;
  }

  .hero-brand {
    font-size: 12px;
    letter-spacing: 0.28em;
    margin-bottom: 40px;
  }

  .hero-title {
    font-size: 24px;
    line-height: 1.55;
  }

  .hero-sub {
    font-size: 13px;
  }

  .hero-intro {
    margin-top: 64px;
    font-size: 13px;
  }

  .site-footer {
    padding: 24px;
    font-size: 11px;
  }

  .article {
    padding: 56px 24px 80px;
  }

  .article-title {
    font-size: 20px;
    margin-bottom: 40px;
  }

  .article p {
    margin-bottom: 22px;
  }

  .contact-intro {
    margin-bottom: 48px;
  }

  .contact-list {
    gap: 36px;
  }

  .contact-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .contact-label {
    padding-top: 0;
  }

  .qr-image {
    width: 100px;
    height: 100px;
  }

  /* Stack image below text on mobile */
  .product-item.has-image-right,
  .product-item.has-image-left {
    grid-template-columns: 1fr;
    grid-template-areas: "text" "image";
    gap: 20px;
  }
}
