:root {
  color-scheme: light;
  --ink: #18201f;
  --muted: #5d6864;
  --line: #d8ded8;
  --paper: #f8f7f2;
  --surface: #ffffff;
  --accent: #2f6f73;
  --accent-dark: #214d50;
  --gold: #b9873d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(248, 247, 242, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 15px;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--accent-dark);
  font-weight: 700;
}

.hero {
  min-height: 72vh;
  display: grid;
  align-items: end;
  padding: clamp(80px, 12vw, 144px) clamp(20px, 5vw, 64px) clamp(56px, 8vw, 96px);
  background:
    linear-gradient(120deg, rgba(24, 32, 31, 0.84), rgba(47, 111, 115, 0.52)),
    linear-gradient(135deg, #263735, #5f7e78 45%, #c7b17b);
  color: #fffdf7;
}

.hero__content {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0c36c;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.hero p {
  max-width: 680px;
  margin-bottom: 28px;
  color: rgba(255, 253, 247, 0.88);
  font-size: 18px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  background: #fffdf7;
  color: var(--accent-dark);
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.section {
  padding: clamp(56px, 8vw, 92px) clamp(20px, 5vw, 64px);
}

.section--muted {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section--contact {
  background: var(--accent-dark);
  color: #fffdf7;
}

.section__heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section__heading--split {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section__copy {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.section--contact .section__copy {
  color: rgba(255, 253, 247, 0.82);
}

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

.work-card {
  min-height: 220px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.service-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  min-height: 80px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
}

.site-footer {
  padding: 24px clamp(20px, 5vw, 64px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.gear-hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: clamp(80px, 12vw, 144px) clamp(20px, 5vw, 64px) clamp(56px, 8vw, 96px);
  color: #fffdf7;
}

.gear-hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(24, 32, 31, 0.9), rgba(24, 32, 31, 0.58) 42%, rgba(24, 32, 31, 0.18)),
    url("https://upload.wikimedia.org/wikipedia/commons/8/8c/Bag_Of_Gear_Flatlay_%28Unsplash%29.jpg") center / cover;
  transform: scale(1.02);
}

.gear-hero__content {
  position: relative;
  max-width: 760px;
}

.gear-hero p {
  max-width: 680px;
  margin-bottom: 28px;
  color: rgba(255, 253, 247, 0.88);
  font-size: 18px;
}

.gear-intro {
  padding-bottom: clamp(40px, 6vw, 72px);
}

.gear-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-button {
  min-height: 38px;
  padding: 8px 12px;
  color: var(--accent-dark);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.filter-button.is-active {
  color: #fffdf7;
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

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

.gear-card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.gear-card.is-hidden {
  display: none;
}

.gear-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.gear-card__tag,
.gear-card__status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.gear-card__tag {
  color: var(--accent-dark);
  background: #e6eeee;
}

.gear-card__status {
  color: #6b4b16;
  background: #f4e6c8;
}

.gear-card p {
  color: var(--muted);
}

.gear-card dl {
  display: grid;
  gap: 14px;
  margin: auto 0 0;
}

.gear-card dt {
  margin-bottom: 4px;
  color: var(--accent-dark);
  font-weight: 700;
}

.gear-card dd {
  margin: 0;
  color: var(--muted);
}

.gear-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.gear-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.gear-table th,
.gear-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.gear-table th {
  color: var(--accent-dark);
  background: #edf1ef;
}

.gear-table tr:last-child td {
  border-bottom: 0;
}

.filter-page {
  --filter-ink: #fffdf7;
  --filter-subtle: rgba(255, 253, 247, 0.82);
  --filter-line: rgba(255, 253, 247, 0.18);
  --filter-latin: "Allomira - Professional Modern Sans", "Allomira", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --filter-zh: "金萱 3 分糖", "金萱三分糖", "Jin Xuan 3", "jf-jinxuan", "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b0b0a;
  color: var(--filter-ink);
  font-family: var(--filter-zh);
  font-weight: 300;
}

.filter-header {
  position: fixed;
  right: 0;
  left: 0;
  background: linear-gradient(180deg, rgba(9, 9, 8, 0.34), rgba(9, 9, 8, 0));
  border-bottom: 0;
  color: var(--filter-ink);
}

.filter-header .brand,
.filter-header .site-nav {
  color: rgba(255, 253, 247, 0.88);
  font-family: var(--filter-latin);
  font-weight: 400;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.38);
}

.brand-group,
.social-icons {
  display: flex;
  align-items: center;
}

.brand-group {
  gap: 16px;
}

.filter-header .brand {
  font-family: var(--filter-zh);
  text-decoration: none;
}

.social-icons {
  gap: 10px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: rgba(255, 253, 247, 0.88);
  text-decoration: none;
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.social-icon:hover {
  color: #fffdf7;
}

.filter-header .site-nav a:hover,
.filter-header .site-nav a[aria-current="page"] {
  color: var(--filter-ink);
}

.photo-panel {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: clamp(92px, 12vw, 150px) clamp(20px, 5vw, 72px) clamp(46px, 7vw, 86px);
  color: var(--filter-ink);
  background: #0b0b0a;
}

.photo-panel__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.photo-panel__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.02) 48%, rgba(0, 0, 0, 0)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.2));
}

.photo-panel--right {
  justify-items: end;
}

.photo-panel--right .photo-panel__shade {
  background:
    linear-gradient(270deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.02) 48%, rgba(0, 0, 0, 0)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.2));
}

.photo-panel__content {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.54);
}

.filter-hero__content {
  width: min(620px, 100%);
}

.filter-kicker {
  margin: 0 0 14px;
  color: rgba(255, 253, 247, 0.78);
  font-family: var(--filter-latin);
  font-size: clamp(10px, 0.95vw, 12px);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

.filter-page h1,
.filter-page h2 {
  max-width: 900px;
  margin-bottom: 14px;
  color: var(--filter-ink);
  font-size: clamp(26px, 3.4vw, 48px);
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: 0;
}

.product-panel h2,
.closing-panel h2 {
  font-size: clamp(24px, 2.8vw, 40px);
}

.filter-page .photo-panel__content p {
  max-width: 500px;
  margin-bottom: 22px;
  color: var(--filter-subtle);
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 300;
  line-height: 1.85;
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.filter-button-link,
.filter-text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 4px;
  font-family: var(--filter-latin);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
}

.filter-button-link {
  color: #fffdf7;
  background: rgba(255, 253, 247, 0.14);
  border: 1px solid rgba(255, 253, 247, 0.5);
  backdrop-filter: blur(8px);
}

.filter-text-link {
  color: var(--filter-ink);
  border: 1px solid var(--filter-line);
}

.photo-credit {
  position: absolute;
  right: clamp(18px, 4vw, 54px);
  bottom: 18px;
  z-index: 2;
  max-width: min(420px, calc(100% - 36px));
  color: rgba(255, 253, 247, 0.58);
  font-size: 11px;
  font-weight: 300;
  line-height: 1.5;
  text-align: right;
  text-decoration: none;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.56);
}

.discount-band {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px clamp(20px, 5vw, 72px);
  color: var(--filter-ink);
  background: rgba(11, 11, 10, 0.72);
  border-block: 1px solid rgba(255, 253, 247, 0.16);
  backdrop-filter: blur(14px);
}

.discount-band p,
.discount-band span {
  margin: 0;
  color: var(--filter-subtle);
}

.discount-band strong {
  color: var(--filter-ink);
  font-family: var(--filter-latin);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
}

.product-share-section {
  background: #0b0b0a;
}

.product-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 92svh;
}

.product-tile {
  position: relative;
  min-height: 92svh;
  overflow: hidden;
  color: var(--filter-ink);
  background: #0b0b0a;
}

.product-tile__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-tile__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.18) 54%, rgba(0, 0, 0, 0.48)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.02));
}

.product-tile__content {
  position: absolute;
  right: clamp(18px, 3vw, 42px);
  bottom: clamp(32px, 5vw, 66px);
  left: clamp(18px, 3vw, 42px);
  z-index: 1;
  max-width: 540px;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.58);
}

.product-tile h2 {
  font-size: clamp(24px, 2.9vw, 42px);
}

.product-tile p:not(.filter-kicker) {
  max-width: 500px;
  color: var(--filter-subtle);
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 300;
  line-height: 1.85;
}

.filter-gallery-section {
  padding: clamp(62px, 9vw, 118px) clamp(16px, 4vw, 56px);
  background: #0b0b0a;
}

.filter-section-title {
  max-width: 780px;
  margin: 0 0 clamp(30px, 5vw, 54px);
  padding-inline: clamp(4px, 1vw, 16px);
}

.filter-section-title h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4.8vw, 62px);
  font-weight: 300;
}

.filter-section-title p {
  color: var(--filter-subtle);
  font-size: 15px;
  font-weight: 300;
}

.filter-gallery {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.8vw, 20px);
}

.work-photo {
  position: relative;
  min-height: clamp(320px, 48vw, 720px);
  overflow: hidden;
  color: var(--filter-ink);
  background: #0b0b0a;
  text-decoration: none;
}

.work-photo--wide {
  grid-column: span 2;
}

.work-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 420ms ease, filter 420ms ease;
}

.work-photo::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.18));
}

.work-photo span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 1;
  color: rgba(255, 253, 247, 0.86);
  font-size: clamp(12px, 1.05vw, 14px);
  font-weight: 300;
  line-height: 1.65;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.6);
}

.work-photo:hover img {
  filter: saturate(1.02) contrast(1.02);
  transform: scale(1.012);
}

.affiliate-note {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--filter-line);
  font-size: 12px !important;
}

.filter-footer {
  color: rgba(255, 253, 247, 0.6);
  background: #0b0b0a;
  border-top-color: rgba(255, 253, 247, 0.14);
}

@media (max-width: 900px) {
  .grid,
  .service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section__heading--split {
    align-items: flex-start;
    flex-direction: column;
  }

  .gear-filters {
    justify-content: flex-start;
  }

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

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

  .product-pair {
    grid-template-columns: 1fr;
  }

  .product-tile {
    min-height: 84svh;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    gap: 14px;
  }

  .hero {
    min-height: 68vh;
  }

  .grid,
  .service-list,
  .gear-grid {
    grid-template-columns: 1fr;
  }

  .gear-hero {
    min-height: 68vh;
  }

  .gear-card {
    min-height: auto;
  }

  .filter-header {
    position: absolute;
  }

  .filter-header .site-nav {
    display: none;
  }

  .photo-panel {
    min-height: 92svh;
    padding-top: 108px;
  }

  .photo-panel__shade,
  .photo-panel--right .photo-panel__shade {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.02) 38%, rgba(0, 0, 0, 0.28)),
      linear-gradient(90deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0));
  }

  .filter-page h1,
  .filter-page h2 {
    font-size: clamp(24px, 8vw, 36px);
  }

  .filter-page .photo-panel__content p {
    font-size: 13px;
  }

  .filter-button-link,
  .filter-text-link {
    font-size: 12px;
  }

  .product-tile {
    min-height: 86svh;
  }

  .product-tile__content {
    right: 20px;
    bottom: 40px;
    left: 20px;
  }

  .discount-band {
    position: static;
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .filter-gallery {
    grid-template-columns: 1fr;
  }

  .work-photo,
  .work-photo--wide {
    grid-column: auto;
    min-height: 70svh;
  }

  .photo-credit {
    display: none;
  }
}
