@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --ink: #191919;
  --muted: #6f6d69;
  --line: #e9e7e3;
  --soft: #f7f6f3;
  --accent: #b9a891;
  --page-width: 1040px;
  font-family: 'DM Sans', 'Manrope', Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
}

a { color: inherit; }

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 4px;
  background: var(--ink);
  color: white;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  width: min(calc(100% - 48px), var(--page-width));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.brand img { display: block; border-radius: 50%; }
.brand-light { font-weight: 400; }

.header-link {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.header-link span { padding-left: 5px; color: var(--ink); }

.page-shell {
  width: min(calc(100% - 48px), var(--page-width));
  margin: 0 auto;
}

.intro {
  padding: 64px 0 34px;
}

.eyebrow,
.product-category {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.intro h1 {
  margin: 12px 0 10px;
  font-family: 'Manrope', 'DM Sans', Arial, sans-serif;
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 1.08;
}

.intro-copy {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.commercial-label {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 30px;
  padding-bottom: 28px;
}

.product-search-wrap { margin: 0 0 8px; }

.product-search {
  width: min(100%, 440px);
  min-height: 50px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  transition: border-color 160ms ease;
}

.product-search:focus-within { border-color: var(--ink); }

.product-search-icon {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  display: block;
  flex: 0 0 18px;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.product-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.product-search input::placeholder { color: #8a8883; }
.product-search input:focus-visible { outline: none; }

.search-status {
  min-height: 1.5em;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

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

.product-row {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.product-image-link {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 4px;
  background: var(--soft);
  outline-offset: 4px;
}

.product-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 220ms ease;
}

.product-image-original-ratio {
  aspect-ratio: 940 / 1672;
  object-fit: contain;
}

.product-image-square {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
}

.product-image-link:hover .product-image { transform: scale(1.015); }

.product-copy {
  min-width: 0;
  max-width: none;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 12px;
}

.product-category { letter-spacing: 0.12em; }
.product-category span { margin: 0 6px; color: var(--accent); }

.product-copy h2 {
  margin: 10px 0 6px;
  font-family: 'Manrope', 'DM Sans', Arial, sans-serif;
  font-size: clamp(19px, 1.55vw, 22px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.25;
}

.product-detail {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.product-likes { margin-top: 7px; }

.product-like-button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  touch-action: manipulation;
  transition: color 150ms ease, background-color 150ms ease;
}

.product-like-button:hover:not(:disabled) {
  background: #fff5f6;
  color: #c43d4b;
}

.product-like-button[aria-pressed="true"] { color: #c43d4b; }
.product-like-button[aria-pressed="true"] .like-heart { fill: currentColor; }
.product-like-button:disabled { cursor: wait; opacity: 0.62; }

.like-heart {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  display: block;
  flex: 0 0 18px;
  transition: fill 150ms ease, transform 150ms ease;
}

.product-like-button[aria-pressed="true"] .like-heart { transform: scale(1.04); }
.like-count { font-variant-numeric: tabular-nums; }
.like-label { color: var(--muted); }
.product-like-button[aria-pressed="true"] .like-label { color: currentColor; }

.like-feedback {
  display: none;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.like-feedback:not(:empty) { display: block; }

.product-button {
  min-height: 46px;
  width: 100%;
  margin-top: auto;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.product-button:hover,
.product-button:focus-visible {
  border-color: #4d4942;
  background: #4d4942;
}

.button-arrow { font-size: 16px; line-height: 1; }

.site-footer {
  min-height: 116px;
  margin-top: 18px;
  padding: 26px max(24px, calc((100vw - var(--page-width)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.site-footer p { max-width: 590px; margin: 0; }
.site-footer span { flex: 0 0 auto; color: var(--ink); font-weight: 600; }

:focus-visible { outline: 2px solid #78694f; outline-offset: 3px; }

@media (max-width: 900px) {
  .product-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 28px;
  }
}

@media (max-width: 720px) {
  .site-header,
  .page-shell { width: min(calc(100% - 36px), var(--page-width)); }

  .site-header { min-height: 66px; }
  .brand { gap: 9px; font-size: 15px; }
  .brand img { width: 36px; height: 36px; }
  .header-link { font-size: 12px; }
  .intro { padding: 38px 0 22px; }
  .product-list {
    column-gap: 14px;
    row-gap: 24px;
    padding-bottom: 24px;
  }
  .product-copy { padding-top: 10px; }
  .product-category { font-size: 9px; letter-spacing: 0.1em; }
  .product-copy h2 { margin-top: 8px; font-size: 19px; }
  .product-detail { font-size: 12px; }
  .product-button { min-height: 44px; padding: 0 9px; font-size: 11px; }
  .site-footer {
    padding: 24px 18px;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}

@media (max-width: 360px) {
  .product-list { grid-template-columns: 1fr; }
  .product-row { width: min(100%, 300px); justify-self: center; }
  .product-copy h2 { font-size: 22px; }
  .product-button { padding: 0 13px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
