:root {
  color-scheme: light;
  --paper: #f8f6ef;
  --ink: #21251b;
  --muted: #55594c;
  --line: #deded2;
  --olive: #293323;
  --lime: #e3edac;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 24px;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: .06em;
}

.brand-mark {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--olive);
  background: linear-gradient(135deg, var(--olive) 50%, var(--lime) 50%);
}

nav { display: flex; gap: clamp(10px, 3vw, 34px); }
nav a { padding: 12px 4px; font-size: 14px; white-space: nowrap; }
nav a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: 5px; }

.hero {
  display: grid;
  grid-template-columns: 45fr 55fr;
  margin-block: 30px 0;
  background: var(--olive);
  color: #fffdf5;
  overflow: hidden;
  border-radius: 6px;
}

.hero-copy { align-self: center; padding: clamp(34px, 5vw, 74px); }
.hero-label { color: var(--lime); font-size: 13px; letter-spacing: .2em; font-weight: 700; }
.hero h1 {
  margin-block: 20px 18px;
  font-size: clamp(34px, 4.9vw, 72px);
  line-height: 1.14;
  letter-spacing: -.045em;
  font-weight: 800;
}
.hero-intro { color: #e1e4d6; max-width: 25em; font-size: 15px; line-height: 1.8; }
.hero-photo { display: block; width: 100%; height: 100%; min-height: 390px; object-fit: cover; object-position: 58% center; }

.browse {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-top: 27px;
  padding: 12px 17px;
  min-height: 44px;
  color: #232d1c;
  background: var(--lime);
  border-radius: 3px;
  font-size: 14px;
  font-weight: 700;
}
.browse:hover { background: #f0f7ce; }
.browse:focus-visible { outline-color: var(--lime); }

.collection { margin-block: clamp(38px, 6vw, 74px); }
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 18px;
}
.section-heading h2 { font-size: clamp(26px, 3vw, 40px); font-weight: 800; }
.section-heading p { color: var(--muted); font-size: 13px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.product {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fffdf7;
  scroll-margin-top: 16px;
}
.product:target { outline: 2px solid #6a7846; outline-offset: 4px; }
.product img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #e8e0d1; }
.product-copy { padding: 17px 18px 20px; }
.product-copy .category { color: #465334; font-size: 12px; font-weight: 700; }
.product-copy h3 { margin-block: 3px 7px; font-size: 21px; }
.product-copy p { color: var(--muted); font-size: 14px; line-height: 1.65; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.site-footer span { font-weight: 700; }
.site-footer a { padding-block: 12px; }

@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .header-content { min-height: 60px; }
  .wordmark { font-size: 21px; gap: 8px; }
  .brand-mark { width: 17px; height: 17px; }
  .hero { grid-template-columns: minmax(0, 1fr); margin-top: 18px; }
  .hero-copy { padding: 28px 24px; }
  .hero h1 { margin-block: 13px; font-size: clamp(34px, 9vw, 55px); }
  .hero-intro { font-size: 14px; }
  .browse { margin-top: 18px; }
  .hero-photo { height: auto; min-height: 0; aspect-ratio: 3 / 2; }
  .product-grid { gap: 12px; }
}

@media (max-width: 560px) {
  .product-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .product img { aspect-ratio: 3 / 2; }
}
