:root {
  color-scheme: light;
  --paper: #fffcf6;
  --card: #fffefa;
  --ink: #33251f;
  --muted: #68534a;
  --accent: #a83e2a;
  --accent-dark: #89301f;
  --line: #eaded1;
  --hero: #f8e6d5;
  --about: #f4e7d4;
  --radius: 20px;
  --radius-large: 34px;
  --page-width: 1200px;
  --gutter: clamp(1rem, 5vw, 3rem);
  --section-gap: clamp(3rem, 7vw, 6rem);
  --grid-gap: clamp(0.75rem, 2vw, 1.25rem);
  --font: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
}
p, h1, h2, h3, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.wrap {
  width: min(var(--page-width), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  z-index: 2;
  top: 0.5rem;
  left: 0.5rem;
  transform: translateY(-200%);
  background: var(--card);
  padding: 0.75rem 1rem;
}
.skip-link:focus { transform: none; }
.masthead, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.masthead { min-height: 84px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 44px;
  font-size: 1.65rem;
  font-weight: 850;
  letter-spacing: -0.075em;
  line-height: 1;
}
.brand-dot { color: var(--accent); }
.site-footer .brand { gap: 0; }
nav { display: flex; gap: clamp(0.75rem, 4vw, 2.5rem); }
nav a, .back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-size: 0.9rem;
  font-weight: 650;
}
nav a:hover, .back-to-top:hover { color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(0, 1.07fr);
  overflow: hidden;
  background: var(--hero);
  border-radius: var(--radius-large);
}
.hero-copy {
  align-self: center;
  padding: clamp(2rem, 5vw, 4.75rem);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.eyebrow-dot {
  width: 0.5rem;
  height: 0.5rem;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}
h1 {
  margin-block: 1.125rem;
  font-size: clamp(2rem, 4.1vw, 3.5rem);
  font-weight: 900;
  line-height: 1.13;
  letter-spacing: -0.055em;
}
h1 span { color: var(--accent); }
.hero-description {
  color: var(--muted);
  font-size: clamp(0.95rem, 1.45vw, 1.05rem);
  line-height: 1.8;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 52px;
  margin-top: 1.75rem;
  padding-inline: 1.375rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 700;
}
.button:hover { background: var(--accent-dark); }
.hero-picture { position: relative; min-width: 0; }
.hero-picture img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1.16;
  object-fit: cover;
  object-position: center 45%;
}
.hero-picture figcaption {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--accent);
  font-size: 0.625rem;
  font-weight: 850;
  letter-spacing: 0.11em;
}
.hero-picture figcaption span { margin-right: 0.15rem; }

.collection, .about {
  margin-top: var(--section-gap);
  scroll-margin-top: 1.5rem;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
h2 {
  margin-top: 0.4rem;
  font-size: clamp(1.65rem, 3vw, 2.65rem);
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.filters button {
  min-height: 44px;
  padding-inline: clamp(0.625rem, 1.4vw, 0.95rem);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  font: 650 0.875rem var(--font);
}
.filters button:hover { border-color: var(--accent); }
.filters button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}
.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.product {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.product img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}
.product-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(0.75rem, 2vw, 1.25rem);
}
.product-category, .catalog-note {
  color: var(--muted);
  font-size: 0.8125rem;
}
.product h3 {
  margin: 0.375rem 0 0.6rem;
  font-size: clamp(0.9375rem, 1.55vw, 1.125rem);
  font-weight: 760;
  line-height: 1.4;
}
.price {
  margin-top: auto;
  color: var(--accent);
  font-size: 1.125rem;
  font-weight: 800;
}
.catalog-note { margin-top: 0.875rem; }

.about {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border-radius: var(--radius-large);
  background: var(--about);
}
.about h2 + p { max-width: 34rem; margin-top: 0.8rem; color: var(--muted); }
.about img {
  width: clamp(3.25rem, 9vw, 7rem);
  height: auto;
  flex: none;
  transform: rotate(12deg);
}
.site-footer {
  margin-top: 2rem;
  padding-block: 1.125rem 1.75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer p { font-size: 0.875rem; }

@media (max-width: 900px) {
  .hero-copy { padding: clamp(1.5rem, 4vw, 2.75rem); }
  .section-heading { align-items: start; flex-direction: column; }
}
@media (max-width: 690px) {
  .masthead { min-height: 68px; }
  .masthead .brand { font-size: 1.375rem; }
  .masthead .brand img { width: 30px; height: 30px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding: clamp(1.5rem, 7vw, 3rem); }
  h1 { font-size: clamp(2rem, 9vw, 3.25rem); }
  .hero-picture img { aspect-ratio: 1.2; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about img { display: none; }
  .site-footer { flex-wrap: wrap; }
  .site-footer p { order: 1; flex-basis: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
