@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,700&family=Figtree:wght@400;500;600&display=swap");

:root {
  --wall: #24392f;
  --wall-deep: #1a2b23;
  --paper: #f5f4ef;
  --ink: #191b1a;
  --stone: #5e635f;
  --rule: #d9d7cf;
  --brass: #a9802f;
  --white: #ffffff;
  --display: "Bricolage Grotesque", Georgia, serif;
  --body: "Figtree", system-ui, sans-serif;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { color: var(--brass); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.015em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 76px); }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: 21px; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.muted { color: var(--stone); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: var(--white); padding: 8px 12px; z-index: 50; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: 600 16px var(--body); text-decoration: none; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; }
.btn:hover { background: var(--wall); border-color: var(--wall); color: var(--paper); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.light:hover { background: var(--white); color: var(--ink); }
.btn.outline-light { background: transparent; color: var(--paper); border-color: rgba(245,244,239,.6); }
.btn.outline-light:hover { background: var(--paper); color: var(--ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(245,244,239,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; flex-wrap: wrap; }
.logo { font: 700 25px var(--display); text-decoration: none; letter-spacing: -0.02em; }
.nav { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15.5px; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.cart-link { display: inline-flex; gap: 8px; align-items: center; border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 14px; }
.cart-count { background: var(--ink); color: var(--paper); border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: 12.5px; padding: 0 6px; }

/* hero: the salon wall */
.hero { background: var(--wall); color: var(--paper); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero p.lede { font-size: 19px; color: rgba(245,244,239,.86); max-width: 34ch; margin-top: 22px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.salon { position: relative; aspect-ratio: 7 / 6; }
.salon a { position: absolute; display: block; background: var(--white); padding: 2.2%; box-shadow: 0 18px 30px rgba(0,0,0,.28), 0 2px 4px rgba(0,0,0,.2);
  opacity: 0; transform: translateY(-14px); animation: hang .7s cubic-bezier(.2,.7,.2,1) forwards; }
.salon a img { width: 100%; height: 100%; object-fit: cover; }
.salon a:hover { outline: 3px solid var(--brass); outline-offset: 4px; }
@keyframes hang { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .salon a { animation: none; opacity: 1; transform: none; } }

/* sections */
.section { padding: 84px 0; }
.section.tight { padding: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head p { max-width: 52ch; margin-top: 10px; }

/* grids */
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 44px 30px; align-items: end; }
.art-card { text-decoration: none; display: flex; flex-direction: column; gap: 14px; }
.art-card .frame { background: #e9e7df; padding: 9%; display: grid; place-items: center; aspect-ratio: 1 / 1; }
.art-card .frame img { box-shadow: 0 10px 18px rgba(0,0,0,.18); max-height: 100%; width: auto; }
.art-card:hover .frame { background: #e2dfd5; }
.art-card .meta { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.art-card .meta h3 { font-size: 19px; }
.art-card .meta span { font-size: 15px; color: var(--stone); white-space: nowrap; }

.rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.room-tile { text-decoration: none; border: 1.5px solid var(--ink); border-radius: 16px; padding: 22px; min-height: 120px; display: flex; flex-direction: column; justify-content: space-between; }
.room-tile:hover { background: var(--ink); color: var(--paper); }
.room-tile strong { font: 600 22px var(--display); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px; counter-reset: s; }
.steps li { list-style: none; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before { counter-increment: s; content: counter(s); font: 600 34px var(--display); display: block; margin-bottom: 8px; }
.steps { padding: 0; margin: 0; }

.band { background: var(--wall); color: var(--paper); border-radius: 28px; padding: 56px; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 36px; align-items: center; }
.band p { color: rgba(245,244,239,.86); margin-top: 14px; }

/* shop */
.shop-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.filters { flex: 1 1 220px; max-width: 260px; display: flex; flex-direction: column; gap: 26px; }
.filters fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.filters legend { font: 600 17px var(--display); margin-bottom: 8px; }
.filters label { display: flex; gap: 10px; align-items: center; cursor: pointer; min-height: 32px; }
.filters input { width: 18px; height: 18px; accent-color: var(--wall); }
.shop-main { flex: 999 1 560px; min-width: 0; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
select, input[type="text"], input[type="email"], input[type="search"], textarea { font: inherit; min-height: 46px; border: 1.5px solid var(--rule); border-radius: 12px; padding: 8px 14px; background: var(--white); color: var(--ink); }
select:focus, input:focus, textarea:focus { border-color: var(--ink); }
.empty { padding: 60px 0; text-align: left; }

/* product */
.product { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; padding: 48px 0 84px; }
.viewer { position: sticky; top: 96px; }
.view-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.view-tabs button { font: 500 15px var(--body); min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; cursor: pointer; color: var(--ink); }
.view-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.plain-view { background: #e9e7df; padding: 8%; display: grid; place-items: center; min-height: 420px; }
.plain-view img { box-shadow: 0 16px 30px rgba(0,0,0,.22); max-height: 640px; width: auto; }
.wall-view { position: relative; background: #d8d3c6; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; }
.wall-view .floor { position: absolute; left: 0; right: 0; bottom: 0; height: 14%; background: #b7a68a; }
.wall-view .sofa { position: absolute; bottom: 14%; background: #59625b; border-radius: 18px 18px 6px 6px; }
.wall-view .piece { position: absolute; transform: translateX(-50%); box-shadow: 0 10px 18px rgba(0,0,0,.25); transition: width .35s ease, height .35s ease; }
.wall-view .piece img { width: 100%; height: 100%; object-fit: cover; }
.wall-view .piece.framed { outline: 6px solid #2a2622; }
.wall-view .note { position: absolute; left: 14px; top: 12px; font-size: 13.5px; color: #3e3a33; background: rgba(255,255,255,.7); padding: 4px 10px; border-radius: 999px; }
.buy h1 { font-size: clamp(36px, 4.4vw, 54px); }
.buy .price { font: 600 30px var(--display); margin: 18px 0 4px; }
.opt { margin-top: 28px; }
.opt h2 { font: 600 17px var(--body); margin-bottom: 10px; letter-spacing: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices button { font: 500 15px var(--body); min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--rule); background: var(--white); cursor: pointer; color: var(--ink); }
.choices button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choices button:hover { border-color: var(--ink); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--rule); border-radius: 12px; background: var(--white); }
.qty button { width: 44px; height: 44px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--ink); }
.qty output { min-width: 36px; text-align: center; font-weight: 600; }
.add-row { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.add-row .btn { flex: 1 1 220px; }
.facts { margin-top: 36px; border-top: 1px solid var(--rule); }
.facts details { border-bottom: 1px solid var(--rule); padding: 16px 0; }
.facts summary { cursor: pointer; font-weight: 600; }
.facts details p, .facts details ul { margin-top: 10px; color: var(--stone); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: 999px; display: none; z-index: 40; }
.toast.show { display: block; }

/* cart */
.cart-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; padding: 48px 0 84px; }
.line { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.line img { box-shadow: 0 6px 12px rgba(0,0,0,.16); }
.line .remove { background: none; border: 0; color: var(--stone); text-decoration: underline; cursor: pointer; font: inherit; padding: 6px 0; }
.summary { background: var(--white); border: 1px solid var(--rule); border-radius: 20px; padding: 28px; position: sticky; top: 96px; }
.summary .row { display: flex; justify-content: space-between; margin: 10px 0; }
.summary .total { font: 600 24px var(--display); border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 14px; }
.notice { background: #ece9df; border-radius: 14px; padding: 14px 16px; font-size: 15px; margin-top: 16px; }

/* text pages */
.page-head { padding: 64px 0 24px; }
.page-head p { max-width: 60ch; margin-top: 14px; font-size: 19px; }
.prose { max-width: 70ch; padding-bottom: 84px; }
.prose h2 { font-size: 28px; margin: 40px 0 12px; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; padding-bottom: 84px; }
.card-plain { border: 1.5px solid var(--ink); border-radius: 20px; padding: 28px; }
form.stack { display: flex; flex-direction: column; gap: 14px; }
form.stack label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }

/* footer */
.site-foot { background: var(--wall-deep); color: rgba(245,244,239,.85); padding: 56px 0 40px; margin-top: 40px; }
.site-foot .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.site-foot h2 { font-size: 18px; color: var(--paper); margin-bottom: 12px; }
.site-foot a { display: block; text-decoration: none; padding: 4px 0; }
.site-foot a:hover { color: var(--paper); text-decoration: underline; }
.site-foot .small { margin-top: 40px; font-size: 14px; color: rgba(245,244,239,.65); }

@media (max-width: 860px) {
  .hero .wrap, .product, .cart-grid, .band { grid-template-columns: 1fr; }
  .viewer, .summary { position: static; }
  .band { padding: 36px 26px; }
  .filters { max-width: none; flex-direction: row; flex-wrap: wrap; }
  .filters fieldset { flex: 1 1 150px; }
  .line { grid-template-columns: 80px minmax(0, 1fr); }
  .line .line-price { grid-column: 2; }
  .nav { gap: 16px; }
}
@media (max-width: 600px) {
  .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .art-card .meta { flex-direction: column; gap: 2px; }
  .art-card .meta h3 { font-size: 17px; }
  .section { padding: 56px 0; }
  .wrap { padding: 0 18px; }
}
/* pass 2 */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.search input { width: min(340px, 80vw); }
.crumbs { color: var(--stone); font-size: 15px; }
.crumbs a { color: var(--stone); }
.trust { border-bottom: 1px solid var(--rule); background: var(--paper); }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 10px 40px; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; font-weight: 500; font-size: 15.5px; }
.room-pick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.room-pick button { font: 500 14.5px var(--body); min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--rule); background: var(--white); color: var(--ink); cursor: pointer; }
.room-pick button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.wall-view .furn { position: absolute; bottom: 13.33%; }
.wall-view .furn.sofa { background: #59625b; border-radius: 18px 18px 6px 6px; }
.wall-view .furn.bed { background: linear-gradient(#7b6a58 0 38%, #e9e4da 38% 100%); border-radius: 10px 10px 4px 4px; }
.wall-view .furn.desk { background: transparent; border-top: 10px solid #6f5a44; }
.wall-view .furn.desk::before, .wall-view .furn.desk::after { content: ""; position: absolute; top: 0; bottom: 0; width: 8px; background: #6f5a44; }
.wall-view .furn.desk::before { left: 4%; } .wall-view .furn.desk::after { right: 4%; }
.wall-view .floor { height: 13.33%; }
.head-mobile { display: none; gap: 10px; align-items: center; }
.menu-btn { font: 600 15px var(--body); min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; }
.buy-bar { display: none; }
@media (max-width: 860px) {
  .head-mobile { display: flex; }
  .site-head .wrap { min-height: 60px; }
  .site-head .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 4px; padding: 6px 0 16px; }
  .site-head .nav a { padding: 8px 0; font-size: 18px; }
  .site-head .nav .cart-link { display: none; }
  .site-head.open .nav { display: flex; }
  .buy-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--paper); border-top: 1px solid var(--rule); padding: 10px 18px calc(10px + env(safe-area-inset-bottom)); gap: 12px; align-items: center; justify-content: space-between; }
  .buy-bar div { display: flex; flex-direction: column; font-size: 14px; line-height: 1.3; }
  .buy-bar strong { font: 600 20px var(--display); }
  .buy-bar .btn { min-height: 46px; }
  body[data-page="art"] .site-foot { padding-bottom: 110px; }
  .plain-view { padding: 6%; min-height: 0; }
  .toast { bottom: 90px; }
}
.room-pick[hidden], [hidden] { display: none !important; }
.cart-link { text-decoration: none; }
.toast { white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis; }
.filters fieldset.f-colors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; row-gap: 2px; }
.filters fieldset.f-colors legend { grid-column: 1 / -1; }
/* pass 3: artist lines, hero search, art finder */
.art-card .meta .by { font-size: 14px; color: var(--stone); margin-top: 2px; }
.by-line { font-size: 18px; margin-top: 6px; }
.hero-search { display: flex; gap: 8px; margin-top: 28px; max-width: 520px; flex-wrap: wrap; }
.hero-search input { flex: 1 1 260px; min-height: 50px; border-radius: 999px; border: 0; padding: 0 20px; font: inherit; }
.hero .actions { margin-top: 16px; }
.finder-btn { position: fixed; right: 20px; bottom: 20px; z-index: 35; font: 600 15px var(--body); min-height: 48px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--wall); color: var(--paper); box-shadow: 0 8px 20px rgba(0,0,0,.2); cursor: pointer; }
.finder-btn:hover { background: var(--ink); }
.finder { position: fixed; right: 20px; bottom: 20px; z-index: 36; width: min(380px, calc(100vw - 24px)); max-height: min(620px, calc(100vh - 40px)); display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--rule); border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,.25); overflow: hidden; }
.finder header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--wall); color: var(--paper); }
.finder-x { background: none; border: 0; color: var(--paper); font: 500 14px var(--body); cursor: pointer; text-decoration: underline; min-height: 32px; }
.finder-log { padding: 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.finder .msg { padding: 10px 12px; border-radius: 14px; font-size: 15px; line-height: 1.45; max-width: 92%; }
.finder .msg.bot { background: var(--white); border: 1px solid var(--rule); align-self: flex-start; }
.finder .msg.you { background: var(--ink); color: var(--paper); align-self: flex-end; }
.minis { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 6px; }
.mini { display: flex; gap: 10px; align-items: center; text-decoration: none; }
.mini img { width: 52px; height: 52px; object-fit: cover; }
.finder-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--rule); }
.finder-form input { flex: 1; min-width: 0; }
.finder-form .btn { min-height: 46px; padding: 0 16px; }
@media (max-width: 860px) { body[data-page="art"] .finder-btn { bottom: 84px; } .finder { right: 12px; bottom: 12px; } }
