/* Responsive refinements retain the editorial layout and warm palette. */
.filter-toggle { display: none; }
.shop-layout > *, .product-detail > *, .spaces > *, .footer-top > * { min-width: 0; }
dialog { overscroll-behavior: contain; }
button, a, input, select { touch-action: manipulation; }
.specs dd { overflow-wrap: anywhere; }

@media (min-width: 761px) and (max-width: 1100px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-card { height: 350px; }
  .product-grid:not(.shop-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spaces-content { padding: 50px 9%; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 90px; }
  header {
    position: sticky;
    top: 0;
    height: 76px;
    z-index: 30;
    padding: 0 5%;
    box-shadow: 0 5px 20px #0002;
  }
  .header-actions { gap: 6px; }
  .icon-button, .cart-button { min-width: 44px; min-height: 44px; }
  .cart-button { gap: 5px; padding: 0 5px; }
  .menu-button { display: grid; font-size: 24px; }
  nav { display: none; }
  nav.mobile-open {
    position: absolute;
    display: flex;
    inset: 100% 0 auto;
    padding: 14px 5% 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #1c1e17;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 30px #0007;
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
  }
  nav.mobile-open a, nav.mobile-open button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 12px 5px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
  }
}

@media (max-width: 760px) {
  body { font-size: 15px; }
  header { padding-inline: 5%; }
  .logo { font-size: clamp(18px, 5.3vw, 23px); letter-spacing: 3px; }
  .logo span { font-size: 7px; letter-spacing: 2px; }
  .announcement { font-size: 10px; letter-spacing: .5px; }
  .section { padding-inline: 5%; }
  .hero {
    height: auto;
    min-height: 0;
    padding-bottom: calc(clamp(260px, 75vw, 350px) + 60px);
  }
  .hero-content { padding: 38px 5% 0; }
  .hero .eyebrow { font-size: 10px; letter-spacing: 1.6px; margin-bottom: 22px; }
  .hero h1 { font-size: clamp(34px, 10.4vw, 47px); letter-spacing: -1.5px; line-height: 1.12; }
  .hero-description { font-size: 14px; line-height: 1.75; margin-top: 22px; }
  .hero-description br { display: none; }
  .hero .button { margin-top: 24px; padding: 14px 20px; font-size: 14px; min-height: 50px; }
  .subtle-link { font-size: 12px; width: 230px; min-height: 44px; margin-top: 6px; }
  .hero-art { inset: auto -12% 52px; height: clamp(260px, 75vw, 350px); opacity: 1; }
  .hero-art img { object-fit: cover; object-position: 50% 55%; }
  .hero::after { background: linear-gradient(0deg, #10110f 0%, transparent 18%, transparent 45%, #10110f 65%); }
  .hero-bottom { left: 5%; right: 5%; bottom: 18px; font-size: 8px; }
  .brand-strip { font-size: 11px; padding: 17px 5%; }
  .section-heading { flex-direction: column; gap: 16px; }
  .section-heading .eyebrow { font-size: 10px; }
  .section-heading > .text-button, .featured .section-heading > .text-button { margin-top: 0; font-size: 12px; min-height: 44px; }
  h2 { font-size: clamp(27px, 7.2vw, 34px); }
  .category-grid { gap: 12px; }
  .category-card { height: clamp(255px, 67vw, 325px); }
  .category-card > div { left: 12px; right: 12px; bottom: 50px; }
  .category-card h3 { font-size: 20px; margin-bottom: 8px; }
  .category-card p { font-size: 11px; max-width: 100%; line-height: 1.5; }
  .category-number { font-size: 10px; }
  .circle-arrow { bottom: 12px; right: 12px; width: 30px; height: 30px; }
  .category-more { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; padding: 15px 0; }
  .category-more button { font-size: 12px; min-height: 44px; text-align: left; }
  .tabs { gap: 24px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { min-height: 48px; font-size: 13px; flex-shrink: 0; scroll-snap-align: start; }
  .product-grid { gap: 28px 12px; }
  .product-image, .shop-grid .product-image { height: clamp(205px, 57vw, 290px); padding: 22px 14px 40px; }
  .product-card .quick-add, .shop-grid .quick-add {
    top: calc(clamp(205px, 57vw, 290px) - 52px);
    right: 8px;
    width: 44px;
    height: 44px;
    font-size: 25px;
  }
  .product-badge { font-size: 8px; letter-spacing: 0; max-width: calc(100% - 16px); left: 8px; top: 8px; }
  .product-name { font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
  .product-meta { padding-top: 4px; }
  .product-subtitle { font-size: 12px; line-height: 1.6; }
  .product-price { display: block; font-size: 15px; margin-top: 9px; }
  .price-note { font-size: 11px; }
  .spaces > img { height: 400px; }
  .image-caption { top: 360px; font-size: 10px; }
  .spaces-content { padding: 40px 6%; }
  .spaces-content > p:not(.eyebrow), .approach-details > p { font-size: 15px; }
  .room-options button { min-height: 56px; font-size: 15px; }
  .principle h3 { font-size: 17px; }
  .principle p { font-size: 14px; }
  .journal-card h3 { font-size: 17px; line-height: 1.5; }
  .journal-card > div > span { font-size: 10px; }
  .footer-top > div:first-child { display: block; }
  .footer-top p { margin-top: 18px; font-size: 13px; }
  .footer-top h3 { font-size: 14px; margin-bottom: 8px; }
  .footer-top > div > a:not(.logo), .footer-top button { font-size: 13px; min-height: 44px; margin-bottom: 0; display: flex; align-items: center; }
  .footer-bottom { font-size: 10px; }
  .shop-section { padding-top: 20px; }
  .shop-section > .eyebrow { margin-top: 20px; margin-bottom: 14px; font-size: 10px; }
  .shop-section .section-heading { align-items: flex-start; gap: 10px; }
  .shop-section h1 { font-size: clamp(31px, 8.5vw, 42px); }
  #result-count { font-size: 13px; }
  .shop-intro { font-size: 14px; }
  .back-home { min-height: 44px; font-size: 12px; }
  .shop-controls { gap: 12px; margin: 22px 0; }
  .search-field { min-height: 52px; padding: 11px 12px; min-width: 0; width: 100%; flex-basis: 100%; }
  .search-field input, select, .filter-label select { font-size: 16px; min-height: 44px; }
  .shop-controls > select { padding: 10px; }
  .shop-layout { gap: 20px; }
  .filters { display: block; }
  .filter-heading { font-size: 14px; align-items: center; padding-bottom: 5px; }
  .filter-heading button { min-height: 44px; min-width: 70px; font-size: 12px; }
  #category-filters { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 14px; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .filter-category { flex: 0 0 auto; min-height: 44px; font-size: 13px; padding: 9px 13px; scroll-snap-align: start; }
  .filter-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 10px 13px; margin-top: 4px; border: 1px solid var(--line); font-size: 14px; text-align: left; }
  #filter-count { color: var(--gold); }
  .filter-chevron { font-size: 20px; }
  .filter-toggle[aria-expanded="true"] .filter-chevron { transform: rotate(180deg); }
  .advanced-filters { display: none; }
  .filters-expanded .advanced-filters { display: grid; gap: 16px; padding: 18px 0 4px; }
  .filter-label { border: 0; padding: 0; font-size: 13px; }
  .filter-label select { margin-top: 7px; width: 100%; padding: 9px 12px; }
  .empty-state p { font-size: 14px; }
  .empty-state .button { white-space: normal; gap: 14px; font-size: 13px; }
  .product-dialog, .article-dialog {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    inset: 0;
    overflow-y: auto;
  }
  .product-dialog > .close, .article-dialog > .close {
    position: sticky;
    display: block;
    top: max(8px, env(safe-area-inset-top));
    margin: 8px 10px -52px auto;
    right: 10px;
    width: 44px;
    min-height: 44px;
    border: 1px solid #7777;
    background: var(--cream);
    color: var(--bg);
    border-radius: 50%;
  }
  .detail-image { height: 310px; padding: 35px 30px; }
  .detail-copy { padding: 28px 6% max(28px, env(safe-area-inset-bottom)); }
  .detail-copy h2 { font-size: 34px; }
  .detail-copy .eyebrow { font-size: 10px; }
  .detail-description { font-size: 15px; line-height: 1.8; }
  .specs div { padding: 12px 0; font-size: 13px; gap: 20px; }
  .specs dt { flex: 0 0 38%; }
  .detail-copy .button { min-height: 52px; font-size: 14px; }
  .detail-price small, .detail-source { font-size: 11px; line-height: 1.7; }
  .cart-dialog {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    padding: max(14px, env(safe-area-inset-top)) 5% max(24px, env(safe-area-inset-bottom));
    border: 0;
  }
  .drawer-heading { position: sticky; top: -14px; background: #1a1c17; z-index: 2; padding: 10px 0; }
  .close { min-width: 44px; min-height: 44px; }
  .drawer-note { font-size: 13px; }
  .cart-item { grid-template-columns: 66px minmax(0, 1fr); gap: 14px; }
  .cart-item h3 { font-size: 16px; }
  .cart-item p { font-size: 12px; }
  .cart-item .item-controls { gap: 8px; flex-wrap: wrap; }
  .item-controls button { width: 44px; height: 44px; font-size: 19px; }
  .item-controls span { min-width: 20px; text-align: center; font-size: 14px; }
  .item-controls .remove-item { min-height: 44px; padding: 4px; font-size: 12px; }
  #cart-summary > div { gap: 16px; flex-wrap: wrap; }
  #cart-summary p, .cart-empty p { font-size: 13px; }
  #cart-summary .button, .cart-empty .button { min-height: 50px; font-size: 14px; }
  .article-dialog { padding: 0 6% max(30px, env(safe-area-inset-bottom)); }
  .article-dialog > .close { margin-right: -8px; }
  #article-content { padding-top: 75px; }
  .article-dialog p { font-size: 15px; }
  .article-dialog .button { font-size: 14px; min-height: 50px; }
  #toast { bottom: max(20px, env(safe-area-inset-bottom)); width: max-content; font-size: 13px; }
}

@media (max-width: 359px) {
  .logo { font-size: 17px; letter-spacing: 2.5px; }
  .logo span { font-size: 6px; letter-spacing: 1.6px; }
  .header-actions { gap: 0; }
  .cart-count { min-width: 19px; height: 19px; line-height: 18px; font-size: 9px; }
  .cart-button { gap: 3px; padding-inline: 2px; }
  .category-card p { font-size: 10px; }
  .product-subtitle { font-size: 11px; }
  .product-badge { font-size: 7px; }
}

/* Comfortable reading sizes; manufacturer source notes keep their existing size. */
.hero-description,
.spaces-content > p:not(.eyebrow),
.approach-details > p,
.shop-intro,
.detail-description,
.article-dialog p { font-size: 16px; line-height: 1.8; }

.brand-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  font-size: 15px;
  line-height: 1.6;
}
.brand-strip > span { display: flex; align-items: center; }
.brand-strip i { flex-shrink: 0; font-size: 23px; }
.brand-strip a { display: inline-flex; align-items: center; font-size: 14px; min-height: 44px; }

.category-card p { font-size: 14px; line-height: 1.6; max-width: 200px; }
.product-subtitle, .principle p { font-size: 14px; line-height: 1.7; }
.product-name { font-size: 16px; }
.product-price { font-size: 15px; }
.price-note { font-size: 12px; line-height: 1.8; }
.eyebrow, .section-heading .eyebrow, .hero .eyebrow { font-size: 12px; }
.text-button, .section-heading > .text-button,
.featured .section-heading > .text-button,
.category-more button, .tabs button, .room-options button,
nav a, .nav-link, .button, .subtle-link { font-size: 14px; }
.hero-description, .approach-details > p, .principle p,
.product-subtitle, .shop-intro { color: #babbb0; }
.category-card p { color: #cfcdc1; }
.announcement { font-size: 12px; gap: 20px; }
.announcement > span { min-width: 0; }
.footer-top p, .footer-top > div > a:not(.logo),
.footer-top button { font-size: 14px; line-height: 1.8; }
.footer-top h3 { font-size: 15px; }
.footer-bottom { font-size: 12px; }
.filter-category, .filter-label, .filter-info,
.filter-info span, .filter-heading button { font-size: 13px; }
select, .search-field input { font-size: 16px; }
.drawer-note, .cart-item p, .item-controls .remove-item,
#cart-summary p, .cart-empty p { font-size: 14px; line-height: 1.8; }
.specs div { font-size: 14px; }
.detail-price small { font-size: 12px; }
.journal-card h3 { font-size: 17px; line-height: 1.5; }
.journal-card > div > span { font-size: 11px; }

@media (min-width: 761px) and (max-width: 1100px) {
  .brand-strip > span, .brand-strip a { flex: 1 1 40%; }
  .announcement { flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
}

@media (max-width: 760px) {
  .announcement { padding-block: 10px; text-align: center; }
  .announcement > span:last-child { display: block; font-size: 12px; }
  .announcement { flex-direction: column; gap: 3px; }
  .announcement .tiny-star, .announcement .announcement-detail { display: none; }
  .brand-strip { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 24px 5%; font-size: 15px; }
  .brand-strip > span:last-of-type { display: flex; }
  .brand-strip a { font-size: 14px; width: fit-content; }
  .brand-strip i { width: 26px; margin-right: 10px; }
  .hero .eyebrow { font-size: 11px; }
  .hero .subtle-link { width: 250px; }
  .section-heading .eyebrow { font-size: 12px; }
  .category-card p { font-size: 13px; max-width: 100%; }
  .category-card { height: clamp(280px, 74vw, 340px); }
  .category-more button { font-size: 13px; }
  .spaces .eyebrow, .approach .eyebrow, .shop-section > .eyebrow { font-size: 12px; }
  .specs div { font-size: 14px; }
  .footer-bottom { line-height: 1.8; }
}
