:root{--ui-page:#faf9f5;--ui-surface:#ffffff;--ui-soft:#efede6;--ui-ink:#292b25;--ui-muted:#63665c;--ui-line:#d5d6ce;--ui-accent:#80573e;}
html[data-theme=dark]{--ui-page:#201f1b;--ui-surface:#2b2a24;--ui-soft:#36352d;--ui-ink:#f4f0e7;--ui-muted:#c7c1b3;--ui-line:#504d40;--ui-accent:#e1b88f;}
/* UI refinement v1 — brand palettes, readable controls and consistent geometry. */
html{color-scheme:light;scrollbar-gutter:stable}html[data-theme=dark]{color-scheme:dark}
body{background:var(--ui-page);color:var(--ui-ink);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
*,*::before,*::after{box-sizing:border-box}main,section,article,form,fieldset{min-width:0}
button,input,select,textarea{font:inherit}input,select,textarea{color:var(--ui-ink);accent-color:var(--ui-accent)}
input::placeholder,textarea::placeholder{color:var(--ui-muted);opacity:.85}
:is(a,button,input,select,textarea,summary):focus-visible{outline:2px solid var(--ui-accent);outline-offset:4px}
h1,h2,h3{text-wrap:balance}p{line-height:1.65}button,a,summary{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.appearance-control{display:flex;align-items:center;gap:12px;grid-column:1/-1;font:13px/1.5 Arial,sans-serif;letter-spacing:0;margin:24px 0 0}
.appearance-control select{min-height:40px;padding:8px 32px 8px 12px;border:1px solid currentColor;border-radius:4px;background:transparent;color:inherit;width:auto;max-width:180px}
.appearance-control option{background:var(--ui-page);color:var(--ui-ink)}
@media(max-width:720px){input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px}h1{overflow-wrap:normal}button{line-height:1.35}.appearance-control{margin-top:20px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

:root{--paper:var(--ui-page);--ink:var(--ui-ink);--muted:var(--ui-muted);--line:var(--ui-line);--wash:var(--ui-soft);--accent:var(--ui-accent);--studio-paper:var(--ui-page);--studio-ink:var(--ui-ink)}
.site-head{background:var(--ui-surface)}.head-inner{min-height:88px;gap:24px}.main-nav{gap:24px}.head-actions{gap:20px}.main-nav a,.main-nav summary,.head-actions>a,.head-actions button{min-height:44px;display:inline-flex;align-items:center}
.btn{min-height:48px;font-size:14px;line-height:1.4;padding:13px 22px;justify-content:center;border-radius:4px}
.field{gap:8px}.field input,.field select,.field textarea{min-height:48px;padding:12px 14px;border-radius:4px;background:var(--ui-surface);color:var(--ui-ink);border-color:var(--ui-line)}
.field-pair{align-items:start}.card-meta h3{line-height:1.3}.card-meta p,.gallery-caption,.concept-caption{font-size:13px;line-height:1.6}.product-info h1{font-size:clamp(34px,3.6vw,54px)}
.site-footer{background:var(--ui-soft);padding-block:60px 28px}.footer-links a,.footer-links button{font-size:13px;min-height:36px;line-height:1.5}.footer-bottom{font-size:12px;line-height:1.6;gap:16px;flex-wrap:wrap}
.site-footer>.appearance-control{max-width:1320px;margin-inline:auto;padding-inline:32px}.studio-hero-copy{max-width:650px}.studio-hero-copy>p:not(.eyebrow){max-width:360px}.studio-hero-copy .hero-secondary{display:table;margin-top:18px;min-height:44px;padding-block:10px}
.checkout-grid{align-items:start}.checkout-summary{min-width:0}.checkout-summary :is(p,dd){overflow-wrap:anywhere}
@media(max-width:900px){.head-inner{min-height:78px;gap:16px}.head-actions{gap:16px}.head-actions .mobile-menu summary{min-height:44px;display:flex;align-items:center}}
@media(max-width:640px){.wrap{padding-inline:20px}.brand{font-size:27px}.head-actions{gap:12px}.head-inner{gap:12px}.announcement{font-size:11px;line-height:1.5;padding:10px 20px}.studio-hero-copy{padding:34px 24px 38px}.studio-hero-copy h1{font-size:clamp(46px,12vw,62px);line-height:1.02}.studio-hero-copy p{font-size:15px}.studio-promise{gap:12px;padding:20px;font-size:12px}.section-heading,.section-head{gap:20px;align-items:flex-start}.card-meta h3{font-size:22px}.product-info h1{font-size:36px}.field-pair{grid-template-columns:1fr;gap:18px}.site-footer{padding-top:44px}.site-footer>.appearance-control{padding-inline:20px}.footer-top{gap:32px}.footer-bottom{display:flex;flex-wrap:wrap}.checkout-main,.checkout-shell{padding-inline:20px}.wallet-entry-row{width:100%;gap:10px}}
html[data-theme=dark] .announcement,html[data-theme=dark] .notice,html[data-theme=dark] .request-panel,html[data-theme=dark] .style-story,html[data-theme=dark] .studio-estimate,html[data-theme=dark] .studio-mobile-budget,html[data-theme=dark] .store-service-status,html[data-theme=dark] .site-footer{background:var(--ui-soft);color:var(--ui-ink);border-color:var(--ui-line)}
html[data-theme=dark] .nav-drop>div,html[data-theme=dark] .mobile-menu>nav,html[data-theme=dark] dialog,html[data-theme=dark] .chip,html[data-theme=dark] .quantity-wrap button,html[data-theme=dark] .unit-toggle button,html[data-theme=dark] .dialog-close,html[data-theme=dark] .studio-fields input,html[data-theme=dark] .studio-fields select,html[data-theme=dark] .studio-fields textarea{background:var(--ui-surface);color:var(--ui-ink);border-color:var(--ui-line)}
html[data-theme=dark] .btn:not(.light){background:var(--ui-accent);border-color:var(--ui-accent);color:#221d16}
html[data-theme=dark] .btn.light{color:var(--ui-ink);border-color:var(--ui-line)}
html[data-theme=dark] .brand-mark{filter:brightness(0) invert(.92)}
html[data-theme=dark] .concept-caption,html[data-theme=dark] .budget-footnote,html[data-theme=dark] .detail-estimate small,html[data-theme=dark] .base-reference,html[data-theme=dark] .budget-note,html[data-theme=dark] .request-reference,html[data-theme=dark] .quote-journey b,html[data-theme=dark] .quote-label{color:var(--ui-muted)!important}
html[data-theme=dark] .studio-hero{background:#262822;color:#faf4e8}
html[data-theme=dark] .studio-hero:after{background:linear-gradient(90deg,rgba(18,23,19,.88),rgba(18,23,19,.48) 50%,transparent)}
html[data-theme=dark] .hero-concept,html[data-theme=dark] .photo-tag,html[data-theme=dark] .style-image>span{background:#f7f3eae8;color:#393c31}
html[data-theme=dark] .gallery-primary,html[data-theme=dark] .card-image,html[data-theme=dark] .gallery-thumbs button{background:#eeece4}
@media(max-width:640px){html[data-theme=dark] .studio-hero:after{background:linear-gradient(to bottom,#22291f 30%,#22291fb3 55%,transparent 85%)}}
html[data-theme=dark] .brand{color:var(--ui-ink)}html[data-theme=dark] img{mix-blend-mode:normal}
html[data-theme=dark] .checkout-summary,html[data-theme=dark] .checkout-notice{background:var(--ui-soft);color:var(--ui-ink);border-color:var(--ui-line)}
html[data-theme=dark] .checkout-fields small{color:#ffb7a5}
html[data-theme=dark] .checkout-section,html[data-theme=dark] .checkout-item,html[data-theme=dark] .checkout-totals .total{border-color:var(--ui-line)}

.catalog-discovery-controls{display:grid;grid-template-columns:2fr 1fr 1fr auto;align-items:end;gap:16px;margin:24px 0}.catalog-discovery-controls label{display:grid;gap:8px}.catalog-discovery-controls input,.catalog-discovery-controls select{box-sizing:border-box;min-height:48px;width:100%;min-width:0;font:inherit;background:var(--paper,#faf8f2);color:inherit;border:1px solid currentColor;padding:10px}.catalog-discovery-controls .btn{min-height:48px}.collection-tabs{flex-wrap:wrap}.product-card img{object-fit:contain}@media(max-width:700px){.catalog-discovery-controls{grid-template-columns:1fr 1fr}.catalog-discovery-controls label:first-child{grid-column:1/-1}.catalog-discovery-controls button{grid-column:1/-1}.detail-info h1{overflow-wrap:anywhere}}@media(prefers-color-scheme:dark){.catalog-discovery-controls input,.catalog-discovery-controls select{background:#252721;color:#f3f1e9}}

/* DEC-05b: footer links 44px */
.footer-links a,.footer-links button{min-height:44px}

/* Keep the full mobile header reachable at narrow widths without shrinking touch targets. */
@media(max-width:360px){.site-head .head-inner{gap:8px;padding-inline:12px}.site-head .brand{font-size:23px}.site-head .head-actions{gap:8px}}

/* DEC-05c: status banner button */
.store-service-status .btn,.store-service-status button{min-height:44px;height:44px;display:inline-flex;align-items:center;justify-content:center}

/* DEC-22a: keep the photo, disclosure, title and price together on phones. */
@media(max-width:640px){
  .wrap:has(>.detail-layout #gallery-main)>.breadcrumbs{margin-block:4px 8px;padding-block:0;gap:6px;flex-wrap:wrap}
  .wrap:has(>.detail-layout #gallery-main)>.breadcrumbs a{display:inline-flex;align-items:center;min-height:44px;min-width:44px}
  .detail-layout:has(#gallery-main){gap:12px}
  .detail-layout #gallery-main{height:min(34vh,320px);height:min(34svh,320px);min-height:132px;aspect-ratio:auto}
  .detail-layout #gallery-main>img{object-fit:contain}
  .detail-layout:has(#gallery-main) #gallery-caption{margin:6px 0 8px;font-size:12px;line-height:1.45}
  .detail-layout:has(#gallery-main) .gallery-thumbs{gap:8px;flex-wrap:wrap}
  .detail-layout:has(#gallery-main) .gallery-thumbs button{width:44px;height:44px}
  .detail-layout:has(#gallery-main) .product-info{display:flex;flex-direction:column;padding-top:0;min-width:0}
  .detail-layout:has(#gallery-main) .product-info>.eyebrow,
  .detail-layout:has(#gallery-main) .product-info>h1,
  .detail-layout:has(#gallery-main) .product-info>.detail-estimate{order:-1}
  .detail-layout:has(#gallery-main) .product-info>.eyebrow{margin-bottom:4px}
  .detail-layout:has(#gallery-main) .product-info>h1{font-size:clamp(26px,7.5vw,34px);line-height:1.08;margin-bottom:6px;text-wrap:balance}
  .detail-layout:has(#gallery-main) .product-info>.detail-estimate{margin:0 0 10px;padding-block:5px}
  .detail-layout:has(#gallery-main) .product-info>.intro{margin-bottom:10px}
  .detail-layout:has(#gallery-main) .product-info>.mini-spec{margin-block:0 10px}
  .detail-layout:has(#gallery-main) .quote-sub{margin-bottom:12px}
  .detail-layout:has(#gallery-main) .product-config{padding-top:12px}
  .detail-layout:has(#gallery-main) .product-config .field{gap:5px;margin-bottom:12px}
  .detail-layout:has(#gallery-main) .product-config textarea{min-height:64px}
  .detail-layout:has(#gallery-main) .quote-sub a{display:inline-flex;align-items:center;min-height:44px}
  .detail-layout:has(#gallery-main) .custom-options>summary{display:flex;align-items:center;min-height:44px}
}
