:root {
  --ink: #0e1612;
  --forest: #163528;
  --moss: #2f6a4a;
  --brass: #c4a056;
  --cream: #f4efe4;
  --paper: #fbf8f2;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans TC", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

.font-display {
  font-family: "Noto Serif TC", serif;
}

.noise {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}

.hero-mask {
  background:
    linear-gradient(105deg, rgba(14, 22, 18, 0.88) 0%, rgba(14, 22, 18, 0.55) 48%, rgba(14, 22, 18, 0.28) 100%),
    var(--hero-image) center / cover no-repeat;
}

.site-header {
  backdrop-filter: blur(16px);
  background: rgba(14, 22, 18, 0.86);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--brass);
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.is-active {
  border-bottom-width: 2px;
  border-bottom-style: solid;
  border-bottom-color: #c4a056;
  color: #c4a056;
}

.card-lift {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px rgba(14, 22, 18, 0.14);
}

.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform 0.7s ease;
}

.img-zoom:hover img {
  transform: scale(1.06);
}

.stat-rule {
  border-left: 1px solid rgba(196, 160, 86, 0.45);
}

.chip {
  letter-spacing: 0.18em;
}

.lightbox {
  display: none;
}

.lightbox.is-open {
  display: flex;
}

.filter-btn.is-active {
  background: #163528;
  color: #f4efe4;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #c4a056;
  outline-offset: 1px;
}

.product-anchor {
  scroll-margin-top: 383px;
}

@media (min-width: 640px) {
  .product-anchor {
    scroll-margin-top: 239px;
  }
}
