:root {
  color-scheme: light;
  --ink: #202018;
  --muted: #6e6a5f;
  --subtle: #8d877b;
  --paper: #f5f0e8;
  --surface: #fffaf0;
  --surface-strong: #ffffff;
  --line: rgba(32, 32, 24, 0.13);
  --green: #293722;
  --gold: #efc75e;
  --coral: #de6b52;
  --blue: #487d92;
  --shadow: 0 24px 80px rgba(39, 35, 28, 0.13);
  font-family:
    "Newsreader", "Iowan Old Style", "Palatino Linotype", "Noto Serif SC",
    "Songti SC", serif;
  background: var(--paper);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(32, 32, 24, 0.035) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(180deg, #f6efe3 0%, #eef2ec 48%, #f7f0e7 100%);
}

body {
  margin: 0;
  min-height: 100vh;
}

button,
a {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 60px);
  border-bottom: 1px solid var(--line);
  background: rgba(245, 240, 232, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 750;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--green);
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 20px;
  line-height: 1;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

nav::-webkit-scrollbar {
  display: none;
}

nav button {
  min-height: 36px;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 13px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

nav button:hover,
nav button.active {
  border-color: rgba(41, 55, 34, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(28px, 6vw, 80px);
  align-items: end;
  min-height: 56vh;
  padding: clamp(64px, 9vw, 118px) 0 clamp(34px, 5vw, 64px);
}

.eyebrow,
.section-head p {
  margin: 0 0 14px;
  color: var(--coral);
  font-family:
    "Avenir Next", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(44px, 7.2vw, 92px);
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-text {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--muted);
  font-family:
    "Avenir Next", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.8;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(41, 55, 34, 0.16);
  border-radius: 8px;
  background: rgba(41, 55, 34, 0.16);
  box-shadow: var(--shadow);
}

.hero-panel div {
  min-height: 140px;
  padding: 26px;
  background:
    radial-gradient(circle at top right, rgba(239, 199, 94, 0.22), transparent 55%),
    rgba(255, 250, 240, 0.88);
}

.hero-panel strong {
  display: block;
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 56px;
  line-height: 0.95;
}

.hero-panel span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-family:
    "Avenir Next", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

.product-section {
  padding: 12px 0 72px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.section-head h2 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(26px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
  text-align: right;
}

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

.product-card {
  position: relative;
  display: flex;
  min-height: 472px;
  flex-direction: column;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(32, 32, 24, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 249, 235, 0.76)),
    var(--surface);
  box-shadow: 0 14px 42px rgba(39, 35, 28, 0.08);
  animation: rise 620ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: var(--delay);
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.product-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(72, 125, 146, 0.12), transparent 32%),
    radial-gradient(circle at 85% 0%, rgba(239, 199, 94, 0.22), transparent 34%);
  opacity: 0;
  transition: opacity 200ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(41, 55, 34, 0.28);
  box-shadow: 0 22px 70px rgba(39, 35, 28, 0.15);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card[hidden] {
  display: none;
}

.card-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card-top,
.tagline,
.summary,
.fit-line,
.chips,
.card-bottom {
  position: relative;
  z-index: 2;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.logo-wrap {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(32, 32, 24, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.logo-wrap img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.card-meta p {
  margin: 0 0 5px;
  color: var(--blue);
  font-family:
    "Avenir Next", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.card-meta h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
}

.tagline {
  margin: 0;
  font-size: 25px;
  font-weight: 720;
  line-height: 1.18;
  text-wrap: balance;
}

.summary {
  margin: 18px 0 0;
  color: var(--muted);
  font-family:
    "Avenir Next", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.78;
}

.fit-line {
  margin: auto 0 0;
  padding-top: 22px;
  font-family:
    "Avenir Next", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

.fit-line span {
  display: block;
  margin-bottom: 5px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 800;
}

.fit-line strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chips span {
  border: 1px solid rgba(32, 32, 24, 0.1);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
  font-family:
    "Avenir Next", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  font-size: 12px;
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  border-top: 1px solid rgba(32, 32, 24, 0.1);
  padding-top: 18px;
}

.primary-link,
.source-link {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  font-family:
    "Avenir Next", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 760;
}

.primary-link {
  gap: 8px;
  padding: 10px 16px;
  background: var(--green);
  color: #fff8e9;
  box-shadow: 0 10px 20px rgba(41, 55, 34, 0.18);
}

.primary-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.source-link {
  padding: 10px 6px;
  color: var(--subtle);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 22px 0 34px;
  color: var(--muted);
  font-family:
    "Avenir Next", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  font-size: 13px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  nav {
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 2px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 52px;
  }

  .hero-panel {
    max-width: 420px;
  }

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

@media (max-width: 680px) {
  .site-header {
    padding: 14px 16px;
  }

  main,
  footer {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: clamp(42px, 14vw, 62px);
  }

  .hero-text {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.75;
  }

  .hero-panel div {
    min-height: 110px;
    padding: 20px;
  }

  .hero-panel strong {
    font-size: 44px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-head h2 {
    text-align: left;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .product-card {
    min-height: 0;
    padding: 20px;
  }

  .tagline {
    font-size: 23px;
  }

  .card-bottom {
    align-items: stretch;
  }

  .primary-link {
    flex: 1 1 auto;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
