:root {
  color-scheme: light;
  --paper: #f5f3ed;
  --card: #faf9f5;
  --ink: #242920;
  --muted: #53594d;
  --olive: #344135;
  --dark: #202720;
  --line: #dcded3;
  --accent: #e7e2c9;
  --heading: Georgia, "Times New Roman", serif;
  --body: "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--body); }
body:has(dialog[open]) { overflow: hidden; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, dl, dd { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #886e33; outline-offset: 4px; }

.shell { width: min(1224px, calc(100% - 112px)); margin-inline: auto; }
.sr-only, .segments input {
  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: 10;
  top: 10px;
  left: 10px;
  padding: 12px 18px;
  background: white;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.header-inner {
  min-height: 79px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font: 600 25px/1.15 var(--heading);
  letter-spacing: -.04em;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--olive);
  border-radius: 50%;
  color: var(--accent);
  flex: 0 0 auto;
}
.brand-mark::before {
  content: "";
  width: 12px;
  height: 16px;
  border: 1px solid currentColor;
  border-radius: 8px 8px 1px 1px;
  box-shadow: inset 0 -3px currentColor;
}
.main-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); font-size: 14px; font-weight: 600; }
.main-nav a { padding-block: 9px; text-decoration: none; }
.main-nav a:hover, .top-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.main-nav .nav-contact { padding: 10px 17px; border: 1px solid #b7beb0; border-radius: 5px; }
.nav-contact span { margin-left: 6px; }

.hero {
  position: relative;
  overflow: hidden;
  margin-inline: 24px;
  border-radius: 9px;
  isolation: isolate;
  color: #fffdf2;
  background: var(--dark);
}
.hero-picture { position: absolute; inset: 0 0 0 32%; z-index: -2; }
.hero-picture img { width: 100%; height: 100%; object-fit: cover; object-position: 56% 59%; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #202720 27%, #202720 33%, #202720ec 39%, #20272074 54%, #2027200a 79%);
}
.hero-shell {
  min-height: clamp(455px, 42vw, 600px);
  display: flex;
  align-items: center;
  padding-block: 64px;
  width: min(1224px, calc(100% - 64px));
}
.hero-content { max-width: 470px; }
.eyebrow { font-size: 11px; line-height: 1.5; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.hero-eyebrow { display: flex; gap: 11px; align-items: center; color: #e5dfc5; }
.hero-eyebrow span { width: 22px; height: 1px; background: currentColor; flex-shrink: 0; }
h1, h2, h3 { font-family: var(--heading); font-weight: 400; }
h1 { font-size: clamp(60px, 7.3vw, 112px); line-height: .96; letter-spacing: -.077em; margin: 21px 0 25px; }
.hero-content > p:not(.eyebrow) { max-width: 365px; color: #eeeee3; line-height: 1.65; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 19px;
  min-height: 46px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.hero-button { margin-top: 27px; background: var(--accent); color: #262a22; }
.hero-button:hover { background: #f5efda; }

.section { scroll-margin-top: 20px; }
.catalog { padding-block: clamp(58px, 7vw, 103px) clamp(65px, 7.5vw, 112px); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 29px; }
.section-kicker { color: #4c5d49; margin-bottom: 9px; }
h2 { font-size: clamp(36px, 4.5vw, 64px); line-height: 1.04; letter-spacing: -.052em; }
.section-note { max-width: 280px; color: var(--muted); font-size: 14px; padding-bottom: 2px; }
.filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-block: 1px solid var(--line);
  padding-block: 14px;
}
.type-filter { min-width: 0; border: 0; padding: 0; margin: 0; }
.segments { display: flex; flex-wrap: wrap; gap: 5px; }
.segments label { position: relative; }
.segments label > span {
  display: flex;
  min-height: 41px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 5px;
}
.segments input:not(:checked) + span:hover { background: #e9eae2; }
.segments input:checked + span { background: var(--olive); color: #fffdf6; }
.segments input:focus-visible + span { outline: 3px solid #886e33; outline-offset: 2px; }
.stone-filter { display: flex; gap: 11px; align-items: center; font-size: 13px; font-weight: 650; }
.stone-filter > label { white-space: nowrap; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 15px;
  top: calc(50% - 5px);
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  pointer-events: none;
}
select { appearance: none; min-height: 42px; padding: 7px 34px 7px 13px; background: var(--card); border: 1px solid #c8cec2; border-radius: 5px; cursor: pointer; }
.catalog-meta { display: flex; justify-content: space-between; gap: 10px; padding-block: 12px 13px; font-size: 12px; color: var(--muted); }
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.product { min-width: 0; }
.product-button {
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--card);
}
.product-button:hover { border-color: #aab4a4; }
.product-media { display: block; width: 100%; aspect-ratio: 1.1; overflow: hidden; border-radius: 6px 6px 0 0; background: #d5d8cf; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 240ms ease; }
.product-button:hover img { transform: scale(1.035); }
.product-copy { position: relative; display: grid; gap: 4px; padding: 14px 41px 17px 15px; width: 100%; }
.product-type { color: #4c5d49; text-transform: uppercase; font-size: 10px; line-height: 1.4; font-weight: 700; letter-spacing: .09em; }
.product-name { font: 400 clamp(20px, 2vw, 30px)/1.12 var(--heading); letter-spacing: -.035em; overflow-wrap: anywhere; }
.product-stone { color: var(--muted); font-size: 12px; }
.product-arrow { position: absolute; display: grid; place-items: center; right: 12px; top: 14px; width: 27px; height: 27px; border: 1px solid #c8cec2; border-radius: 50%; font-size: 15px; }
.product-button:hover .product-arrow { color: white; border-color: var(--olive); background: var(--olive); }
.empty { padding: 50px 20px; border: 1px solid var(--line); border-radius: 7px; text-align: center; }
.empty h3 { font-size: 27px; line-height: 1.2; }
.empty p { margin: 8px 0 18px; color: var(--muted); }
.secondary { border-color: #aab4a4; background: var(--card); }
.secondary:hover { background: #e9eae2; }

.locations { padding-block: clamp(55px, 6vw, 85px); background: #e8ebe1; }
.location-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.location-card { padding: 23px; border: 1px solid #cfd6ca; border-radius: 7px; background: #f1f2eb; }
.pin { position: relative; display: block; width: 15px; height: 15px; margin: 4px 0 17px 2px; border: 1.5px solid var(--olive); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.pin::after { content: ""; position: absolute; inset: 4px; border: 1px solid var(--olive); border-radius: 50%; }
.location-card h3 { margin-bottom: 5px; font-size: 26px; line-height: 1.2; }
.location-card p { color: var(--muted); font-size: 14px; }
.location-card .hours { margin-top: 5px; font-size: 13px; }
.map-link { display: inline-block; margin-top: 16px; font-size: 13px; font-weight: 700; text-underline-offset: 4px; }

.footer { background: var(--dark); color: #fffdf3; }
.footer-content { padding-block: 60px 52px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; }
.footer .eyebrow { margin-bottom: 9px; color: #d9d3b7; }
.contact-context { margin-top: 15px; color: #ece8d7; }
.contact-list { display: grid; gap: 12px; }
.contact-list div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid #ffffff29; font-size: 14px; }
.contact-list dt { color: #d5d9ce; }
.contact-list dd { overflow-wrap: anywhere; }
.contact-list a { text-underline-offset: 4px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-block: 20px; border-top: 1px solid #ffffff29; }
.footer-bottom .brand { font-size: 21px; }
.top-link { text-decoration: none; font-size: 13px; }
.top-link span { margin-left: 4px; }
.hero :focus-visible, .footer :focus-visible { outline-color: #f3e7a8; }

dialog {
  width: min(790px, calc(100% - 28px));
  max-height: calc(100% - 28px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
}
dialog::backdrop { background: #131913b5; }
.dialog-close { position: absolute; top: 10px; right: 10px; z-index: 1; }
.dialog-close button { width: 41px; height: 41px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--card); font-size: 26px; line-height: 1; }
.dialog-close button:hover { background: #e8ebe1; }
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; }
.detail-layout > img { width: 100%; height: 100%; object-fit: cover; background: #e8ebe1; }
.detail-content { padding: 44px 25px 27px; }
.detail-content h2 { margin-bottom: 12px; }
#detail-description { color: var(--muted); }
.detail-facts { margin-block: 18px 10px; }
.detail-facts div { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-block: 7px; font-size: 13px; }
.detail-facts dt { color: var(--muted); }
.detail-caption { font-size: 12px; color: var(--muted); }
.detail-contact { margin-top: 16px; color: #fffdf6; background: var(--olive); }
.detail-contact:hover { background: var(--dark); }

@media (max-width: 1000px) {
  .shell { width: calc(100% - 64px); }
  .hero { margin-inline: 16px; }
  .hero-shell { width: calc(100% - 32px); padding-left: 17px; }
  .catalog-grid, .location-grid { gap: 13px; }
  .product-copy { padding-left: 11px; }
  .product-arrow { right: 9px; }
}

@media (max-width: 760px) {
  .shell { width: calc(100% - 36px); }
  .hero-shell { width: calc(100% - 36px); padding-left: 0; }
  .section-heading { align-items: start; flex-direction: column; gap: 9px; margin-bottom: 19px; }
  .section-note { max-width: none; }
  .filters { flex-wrap: wrap; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-content { grid-template-columns: 1fr; gap: 26px; padding-block: 44px 28px; }
}

@media (max-width: 650px) {
  .header-inner { align-items: start; flex-direction: column; justify-content: center; gap: 6px; padding-block: 13px 8px; }
  .brand { font-size: 23px; }
  .brand-mark { width: 31px; height: 31px; }
  .main-nav { width: 100%; justify-content: space-between; gap: 8px; }
  .main-nav a { padding-block: 9px; }
  .main-nav .nav-contact { border: 0; padding: 9px 0; }
  .hero { margin-inline: 10px; }
  .hero-picture { inset: 0 0 auto; height: 315px; }
  .hero-picture img { object-position: center 49%; }
  .hero::before { background: linear-gradient(180deg, #20272000 170px, #20272044 225px, #202720 310px); }
  .hero-shell { padding: 238px 3px 32px; min-height: 0; align-items: end; }
  h1 { margin: 12px 0 13px; font-size: clamp(53px, 11vw, 68px); }
  .hero-content > p:not(.eyebrow) { font-size: 15px; }
  .hero-button { margin-top: 19px; }
  .location-grid { grid-template-columns: 1fr; }
  .location-card { padding: 18px; }
  .pin { margin-bottom: 11px; }
  .detail-layout { display: block; }
  .detail-layout > img { max-height: 36vh; }
  .detail-content { padding: 23px 19px; }
}

@media (max-width: 460px) {
  .type-filter, .stone-filter { width: 100%; }
  .segments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .segments label > span { border-color: var(--line); }
  .stone-filter { justify-content: space-between; }
  .select-wrap { flex: 1; }
  select { width: 100%; }
  .product-copy { padding: 12px 9px 13px; }
  .product-arrow { top: auto; bottom: calc(100% + 7px); right: 7px; background: var(--card); width: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product-media img { transition: none; }
}
