:root {
  --ink: #171615;
  --muted: #716e68;
  --line: #dedbd4;
  --paper: #f8f7f3;
  --panel: #ffffff;
  --sage: #74806f;
  --clay: #9b6251;
  --steel: #48515a;
  --gold: #b3945e;
  --shadow: 0 18px 50px rgba(27, 25, 22, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Noto Sans SC", sans-serif;
  line-height: 1.5;
}
html, body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 48px);
  background: rgba(248, 247, 243, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  width: max-content;
  font-weight: 720;
  letter-spacing: 0;
}
.brand span { font-size: 21px; line-height: 1; }
.brand small { font-size: 10px; color: var(--muted); margin-top: 3px; }

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: #393633;
  font-size: 14px;
}
.nav a, .phone { padding: 8px 0; }
.phone { font-weight: 650; white-space: nowrap; }

.intro {
  display: grid;
  grid-template-columns: minmax(320px, .86fr) minmax(420px, 1.14fr);
  min-height: calc(100vh - 68px);
  border-bottom: 1px solid var(--line);
}
.intro-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 7vw, 96px);
}
.kicker {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  margin: 0;
  max-width: 760px;
  font-size: 76px;
  line-height: .98;
  letter-spacing: 0;
}
h2 {
  margin: 0;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: 0;
}
.intro-copy > p:not(.kicker) {
  max-width: 580px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
}
.intro-actions, .contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-weight: 690;
}
.button.primary {
  background: var(--ink);
  color: #fff;
}
.intro-media {
  position: relative;
  display: flex;
  min-height: 460px;
  margin: 0;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: #e7e1d6;
}
.intro-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.metrics div {
  min-height: 118px;
  padding: 24px clamp(18px, 4vw, 48px);
  border-right: 1px solid var(--line);
}
.metrics div:last-child { border-right: 0; }
.metrics strong {
  display: block;
  font-size: 40px;
  line-height: 1;
}
.metrics span { color: var(--muted); font-size: 14px; }

.section {
  padding: clamp(42px, 7vw, 84px) clamp(18px, 4vw, 48px);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.category-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(26, 25, 22, .05);
}
.category-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 5px;
  background: #eee;
}
.category-card h3 {
  margin: 14px 0 2px;
  font-size: 17px;
  line-height: 1.15;
}
.category-card p { margin: 0; color: var(--muted); font-size: 13px; }

.product-section {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-label { color: var(--muted); font-size: 13px; }
input[type="search"] {
  width: min(360px, 58vw);
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 14px;
}
.filter {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: #fff;
  color: #37342f;
  cursor: pointer;
}
.filter[aria-pressed="true"] {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  cursor: pointer;
}
.product-card:focus-visible {
  outline: 3px solid rgba(116, 128, 111, .45);
  outline-offset: 3px;
}
.product-card img {
  width: 100%;
  aspect-ratio: 1.18 / 1;
  object-fit: cover;
  background: #eee;
}
.product-info { padding: 13px; }
.product-info h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}
.product-info p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.about, .contact {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(28px, 7vw, 96px);
  padding: clamp(42px, 7vw, 84px) clamp(18px, 4vw, 48px);
}
.about-copy {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  color: #4d4943;
  font-size: 18px;
}
.about-copy p { margin: 0; }
.contact {
  align-items: center;
  background: var(--steel);
  color: #fff;
}
.contact .kicker { color: #e4c994; }
.contact h2 { max-width: 680px; }
.contact .button {
  border-color: rgba(255, 255, 255, .76);
  color: #fff;
}
.contact .button.primary {
  border-color: #fff;
  background: #fff;
  color: var(--steel);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 4vw, 48px);
  color: var(--muted);
}

.product-dialog {
  width: min(1180px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: #fff;
  box-shadow: var(--shadow);
}
.product-dialog::backdrop { background: rgba(12, 11, 10, .58); }
.icon-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 25px;
  cursor: pointer;
}
.dialog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  max-height: calc(100vh - 32px);
}
.dialog-layout img {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 32px);
  object-fit: contain;
  background: #f4f2ed;
}
.dialog-copy {
  padding: 58px 26px 28px;
  border-left: 1px solid var(--line);
}
.dialog-copy h3 {
  margin: 0 0 10px;
  font-size: 25px;
  line-height: 1.12;
}
.dialog-copy p:not(.kicker) { color: var(--muted); }

@media (max-width: 1100px) {
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  h1 { font-size: 38px; line-height: 1.02; }
  h2 { font-size: 31px; }
  .metrics strong { font-size: 30px; }
  .site-header {
    grid-template-columns: 1fr auto;
  }
  .nav {
    grid-column: 1 / -1;
    justify-content: start;
    overflow-x: auto;
  }
  .intro {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .intro-copy { padding-top: 42px; }
  .intro-media {
    min-height: 340px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics div { border-bottom: 1px solid var(--line); }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head, .about, .contact, .about-copy, .dialog-layout {
    grid-template-columns: 1fr;
  }
  .section-head {
    display: grid;
    align-items: start;
  }
  .dialog-copy { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 540px) {
  h1 { font-size: 34px; }
  h2 { font-size: 28px; }
  .metrics strong { font-size: 26px; }
  .phone { font-size: 13px; }
  .category-grid, .product-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .metrics div { border-right: 0; }
  .controls { align-items: stretch; flex-direction: column; }
  input[type="search"] { width: 100%; }
  .footer { flex-direction: column; }
}
