.storefront {
  --home-ink: #171a1c;
  --home-accent: #22282c;
  --home-paper: #fff;
  background: var(--home-paper);
  color: var(--home-ink);
}

.home-wrap { width: min(1600px, 88%); margin-inline: auto; }
.home-header { position: relative; z-index: 2; background: #fff; border-bottom: 1px solid #ededed; }
.home-header-row { min-height: 70px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 18px; }
.home-wordmark { font-size: 1.13rem; font-weight: 750; letter-spacing: -.025em; text-decoration: none; white-space: nowrap; }
.home-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 5px clamp(12px, 1.35vw, 24px); }
.home-nav a, .home-nav summary { font-size: .9rem; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.home-nav a:not(:hover) { text-decoration: none; }
.home-nav-tools { justify-content: flex-end; gap: 14px; }
.home-nav-tools > a { display: inline-flex; align-items: center; }
.home-nav-tools svg { display: block; width: 24px; height: 24px; }
.home-nav-account, .home-nav-cart { position: relative; gap: 8px; }
.home-nav-name { max-width: 9rem; overflow: hidden; color: #1a1a1a; font-size: 14px; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.home-nav-count { position: absolute; top: -7px; right: -8px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #171a1c; color: #fff; font-size: 11px; font-weight: 700; line-height: 16px; text-align: center; }
.home-nav-region { font-size: .78rem; white-space: nowrap; color: #515b60; }
.home-nav-support { padding: 8px 12px; background: var(--home-accent); color: #fff; }
.home-nav-menu { position: relative; }
.home-nav-menu summary { cursor: pointer; padding-block: 9px; }
.home-nav-panel { position: absolute; inset-block-start: 100%; inset-inline-start: 0; width: max-content; min-width: 190px; max-width: min(320px, 90vw); display: grid; gap: 9px; padding: 16px; border: 1px solid #d8dde0; background: #fff; box-shadow: 0 10px 24px #20262a22; }
.home-nav-search .home-nav-panel { inset-inline: auto 0; width: min(320px, 90vw); grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.home-nav-search label { grid-column: 1 / -1; margin: 0; font-size: .9rem; }
.home-nav-search input { min-width: 0; margin: 0; }
.home-nav-search button { border-radius: 5px; background: var(--home-accent); }
.home-nav-search button:hover { background: #363f44; }
.home-category { position: static; }
.home-category summary { display: flex; align-items: center; gap: 8px; list-style: none; }
.home-category summary::-webkit-details-marker { display: none; }
.home-category summary::after { content: ''; width: 5px; height: 5px; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(45deg); }
.home-category[open] summary::after { transform: rotate(225deg); }
.home-category-panel { position: absolute; inset: 100% 0 auto; max-height: 70vh; overflow-y: auto; padding-block: clamp(16px, 2.5vw, 36px); background: #f8f9fa; border-block: 1px solid #d8dde0; box-shadow: 0 14px 30px #20262a2b; }
.home-category-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 2vw, 24px); }
.home-category-card { display: grid; align-content: start; gap: 6px; min-width: 0; padding: 12px; border: 1px solid #e0e4e6; background: #fff; }
.home-category-card:hover { border-color: #79838a; }
.home-category-card img { display: block; width: 100%; height: clamp(130px, 14vw, 225px); object-fit: contain; }
.home-category-card strong, .home-category-card span { overflow-wrap: anywhere; }
.home-category-card span { color: #515b60; }
.home-category-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 16px; }
.home-category-all { font-weight: 650; }
.home-category-compare { border: 1px solid #596369; padding: 8px 12px; }

@media (max-width: 1110px) {
  .home-header-row { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding-block: 10px; }
  .home-header-row > .home-nav:first-of-type { grid-column: 1 / -1; grid-row: 2; }
}

.home-hero { width: 100%; background: #171a1c; color: white; }
.home-hero-photo { display: block; width: 100%; aspect-ratio: 2.2; object-fit: cover; }
.home-hero-content { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding-block: 24px; }
.home-hero-content h1 { font-weight: 650; font-size: clamp(1.65rem, 2.7vw, 3rem); line-height: 1.12; letter-spacing: -.025em; margin: 0; overflow-wrap: anywhere; }
.home-hero-content p { font-size: 1rem; line-height: 1.55; margin: 8px 0 0; color: #e1e5e6; }
.home-hero-actions { display: grid; gap: 10px; justify-items: end; }
.home-cta { background: #fff; color: var(--home-ink); padding: 11px 16px; text-decoration: none; font-weight: 650; }
.home-cta:hover { background: #e1e5e6; }
.home-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.home-controls button { border: 1px solid #a1a9ad; background: transparent; color: #fff; padding: 6px 10px; }
.home-controls button:hover { background: #363f44; }
.home-controls span { font-variant-numeric: tabular-nums; margin-right: 5px; }

.home-featured, .home-stories, .home-craft, .home-editorial, .home-panel-wide, .home-shopping { margin-top: clamp(36px, 4.5vw, 75px); }
.home-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.home-section-heading h2, .home-stories h2, .home-panel h2, .home-shopping h2, .home-newsletter h2 { font-size: clamp(1.5rem, 2.4vw, 2.25rem); font-weight: 550; letter-spacing: -.025em; margin: 0; }
.home-section-heading a { text-underline-offset: 4px; }
.home-featured-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 26px); }
.home-card { min-width: 0; }
.home-card-link { text-decoration: none; }
.home-card-link:hover h3 { text-decoration: underline; }
.home-card-image { width: 100%; height: auto; display: block; aspect-ratio: 1; object-fit: contain; background: #fff; }
.home-card h3 { font-size: clamp(1rem, 1.6vw, 1.28rem); margin: 10px 0 2px; }
.home-card-price { font-weight: 650; font-size: .95rem; }
.home-card-summary { margin: 6px 0 10px; font-size: .9rem; }
.home-swatches { display: flex; flex-wrap: wrap; gap: 7px; }
.home-swatch { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 1px solid #a1a9ad; background: #fff; border-radius: 3px; }
.home-swatch:hover, .home-swatch[aria-pressed="true"] { outline: 2px solid var(--home-accent); outline-offset: 1px; background: #fff; }
.home-swatch img { width: 100%; height: 100%; object-fit: contain; }

.home-stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.home-stories > h2 { grid-column: 1 / -1; }
.home-story { display: block; background: #f3f4f5; color: var(--home-ink); text-decoration: none; }
.home-story img { display: block; width: 100%; aspect-ratio: 1.24; object-fit: cover; }
.home-stories .home-story:last-child { grid-column: 1 / -1; }
.home-stories .home-story:last-child img { aspect-ratio: 2.4; }
.home-story-copy { display: grid; gap: 6px; padding: 14px 18px 20px; }
.home-story-copy strong { font-size: 1.2rem; }
.home-story-copy span { font-size: .9rem; }
.home-story:hover strong { text-decoration: underline; }

.home-craft-grid, .home-shopping-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.home-craft-grid img { width: 100%; display: block; aspect-ratio: 1.45; object-fit: cover; }
.home-craft-grid h3, .home-shopping-grid h3 { margin: 12px 0 6px; }
.home-craft-grid p, .home-shopping-grid p, .home-panel p, .home-newsletter p { color: #444d52; line-height: 1.55; margin: 0 0 12px; }

.home-editorial { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(14px, 2vw, 24px); }
.home-panel { display: grid; grid-template-rows: auto 1fr; background: #f3f4f5; }
.home-panel > img { width: 100%; height: 100%; display: block; aspect-ratio: 2; object-fit: cover; }
.home-panel > div { padding: clamp(22px, 4vw, 48px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.home-panel h2 { margin-bottom: 10px; }
.home-panel a, .home-shopping a, .home-footer a { text-underline-offset: 4px; }
.home-panel-wide { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: auto; }
.home-shopping h2 { margin-bottom: 18px; }
.home-shopping-grid article { border-top: 1px solid #a1a9ad; padding-top: 8px; }
.home-support { margin-bottom: clamp(36px, 4.5vw, 75px); }

.home-footer { padding: clamp(30px, 4.5vw, 64px) 0 22px; background: #20262a; color: #fff; }
.home-footer-main { display: grid; grid-template-columns: minmax(230px, 1fr) minmax(0, 1.7fr); gap: clamp(28px, 5vw, 88px); padding-bottom: 34px; }
.home-newsletter p { margin: 8px 0 0; color: #d1d7db; max-width: 36ch; }
.home-newsletter .home-cta { display: inline-block; }
.home-footer-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; overflow-wrap: anywhere; }
.home-footer-groups h3 { margin: 0 0 10px; font-size: 1rem; }
.home-footer-groups ul { list-style: none; padding: 0; margin: 0; }
.home-footer-groups li + li { margin-top: 8px; }
.home-footer-legal, .home-footer-colophon { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; border-top: 1px solid #596369; padding: 16px 0; color: #d1d7db; font-size: .85rem; }
.home-footer-legal nav, .home-footer-colophon nav { display: flex; flex-wrap: wrap; gap: 8px 15px; }
.home-footer-colophon p { margin: 0; line-height: 1.6; }
.home-footer nav a:not(:hover, :focus-visible) { text-decoration: none; }

@media (max-width: 850px) {
  .home-wrap { width: calc(100% - 36px); }
  .home-footer-main { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 580px) {
  .home-header-row { grid-template-columns: minmax(0, 1fr); }
  .home-header-row > .home-nav:first-of-type { grid-row: auto; }
  .home-nav-tools { justify-content: flex-start; }
  .home-nav-menu { position: static; }
  .home-nav-panel, .home-nav-search .home-nav-panel { inset-inline: 0; inset-block-start: calc(100% - 6px); width: 100%; max-width: none; }
  .home-category-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-category-card img { height: 105px; }
  .home-hero-content, .home-stories { grid-template-columns: minmax(0, 1fr); }
  .home-hero-photo { aspect-ratio: 1.36; }
  .home-hero-actions { justify-items: start; }
  .home-stories .home-story:last-child img { aspect-ratio: 1.24; }
  .home-featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .home-section-heading { align-items: start; }
  .home-craft-grid, .home-shopping-grid, .home-editorial, .home-panel-wide { grid-template-columns: minmax(0, 1fr); }
  .home-footer-groups { gap: 10px; }
}
