/* ==========================================================================
   fix.css · closing pass for the quality gate
   Loaded last, so it wins on equal specificity. Every rule here answers a
   specific FAIL from inspect.mjs; delete a block and the finding returns.
   ========================================================================== */

/* ---------- 1. headers: two lines on a phone ---------- */
@media (max-width: 620px) {
  .shop-hero h1,
  .article-hero h1,
  .jhero h1 { font-size: 26px !important; line-height: 1.18; letter-spacing: -.02em; }
  .buy h1 { font-size: 26px !important; }
  .collection-hero h1 { font-size: clamp(38px, 10vw, 52px) !important; }
}

/* ---------- 8. site-wide spacing rhythm ---------- */
:root{
  --space-unit:8px;
  --space-section:clamp(76px,8vw,112px);
  --space-block:clamp(28px,3.2vw,44px);
  --space-copy:16px;
}
body{font-size:16px;line-height:1.68}
p,li,dd{line-height:1.72}
h1,h2,h3,h4{line-height:1.12}
.wrap{max-width:1280px;padding-left:40px;padding-right:40px}
.section{padding:var(--space-section) 0}
.section-head{margin-bottom:var(--space-block)}
.section-head p{margin-top:18px;line-height:1.72}
.grid3,.grid3p,.grid4,.intent-cards,.wood-guide,.gift-edit{gap:28px}
.grid3p{padding-bottom:0}
.pcard .body{padding:20px 20px 22px}
.pcard h4{line-height:1.2;margin-bottom:8px}
.pcard .anchor-sm{line-height:1.58;margin:8px 0 12px}
.pcard .row{margin-top:14px}
.entry{padding:38px 36px 42px}
.entry-index{margin-bottom:34px}
.entry h3{line-height:1.15;margin-bottom:14px}
.entry p{line-height:1.7;margin-bottom:26px}
.wood-card .wbody{padding:20px 22px 24px}
.wood-card .wlat{margin:4px 0 12px}
.wood-card p{line-height:1.7}
.story .wrap{padding-top:var(--space-section);padding-bottom:var(--space-section)}
.story .wrap>div{gap:var(--space-block)}
.quote{padding:34px 32px}
.quote p{line-height:1.72}
.subscribe{padding:var(--space-section) 24px}
footer{padding-top:var(--space-section);padding-bottom:32px}
footer .wrap{row-gap:44px}
.shop-hero{padding:clamp(62px,7vw,86px) 24px clamp(58px,6.5vw,78px)}
.shop-hero p{line-height:1.72;margin-top:18px}
.collection-hero .hero-copy{padding-top:clamp(52px,6vw,82px);padding-bottom:clamp(52px,6vw,82px)}
.collection-hero p{line-height:1.72}
.hero-redesign p{line-height:1.72;margin-top:26px;margin-bottom:32px}
.detail{gap:clamp(42px,5vw,84px)}
.buy .desc{line-height:1.72}
.collection-record{padding-top:var(--space-section);padding-bottom:var(--space-section)}
.purchase-care{margin-top:var(--space-section);margin-bottom:var(--space-section)}
.purchase-care .acc-body{line-height:1.72}
.article-body p,.article-body li{line-height:1.78;margin-bottom:20px}
.jpost p,.jfeatured p{line-height:1.72}

/* Keep the basket icon visible as a primary action at every width. */
.cartb svg{width:20px;height:20px;flex:0 0 20px}
.cartb .cart-count{display:inline-flex!important}
.cartb .hid-m{display:inline}

@media (max-width:960px){
  .wrap{padding-left:28px;padding-right:28px}
  .section{padding:78px 0}
  .entry{padding:32px 28px 36px}
  .detail{gap:40px}
}
@media (max-width:600px){
  .wrap{padding-left:20px;padding-right:20px}
  .section{padding:64px 0}
  .section-head{margin-bottom:30px}
  .section-head p{margin-top:14px}
  .grid3,.grid3p,.grid4,.intent-cards,.wood-guide,.gift-edit{gap:18px}
  .pcard .body{padding:16px 14px 18px}
  .pcard .anchor-sm{margin:7px 0 10px;line-height:1.5}
  .entry{padding:28px 22px 32px}
  .entry-index{margin-bottom:24px}
  .story .wrap{padding-top:64px;padding-bottom:64px}
  .quote{padding:26px 22px}
  .shop-hero{padding:52px 20px 56px}
  .collection-hero .hero-copy{padding:38px 20px 42px}
  .hero-redesign p{line-height:1.68;margin-top:22px;margin-bottom:28px}
  .detail{gap:32px}
  .collection-record{padding-top:52px;padding-bottom:52px}
  .purchase-care{margin-top:52px;margin-bottom:64px}
  .cartb .hid-m{display:none}
  .nav .icons{gap:8px}
}

/* Refined utility icons and mobile navigation. */
.nav .icons{gap:12px}
.nav .icons .icob,.nav .icons .hamb{
  position:relative;width:40px;height:40px;min-width:40px;min-height:40px;
  padding:0;align-items:center;justify-content:center;
  color:var(--ink-green)!important;transition:background-color .18s ease,color .18s ease;
}
.nav .icons .icob:hover,.nav .icons .hamb:hover{background:#e3dfd2}
.nav .icons .icob:active,.nav .icons .hamb:active{background:#d8d3c5}
.nav .icons .icob{display:inline-flex}
.nav .icons .hamb{display:none}
.icount{
  position:absolute;top:3px;right:1px;display:flex;align-items:center;justify-content:center;
  min-width:17px;height:17px;padding:0 4px;margin:0;background:#a4442e;color:#fff;
  font-size:10px;line-height:1;border-radius:999px;
}
.icount[hidden]{display:none!important}
.cartb{gap:8px!important;white-space:nowrap}
.cartb{gap:6px!important}
.cartb .hid-m{display:none!important}
.cart-count{font-size:11px;min-width:12px;text-align:center;font-variant-numeric:tabular-nums}
body.menu-open{overflow:hidden}

@media (max-width:960px){
  .nav .icons .hamb{display:inline-flex}
  .mnav{
    position:fixed;inset:112px 0 0;z-index:240;display:none;overflow-y:auto;
    padding:20px 24px 40px;background:var(--paper);border:0;
    flex-direction:column;align-items:stretch;
  }
  .mnav.open{display:flex}
  .mnav a{
    padding:10px 4px;border:0;color:var(--ink);font-size:18px;line-height:1.35;
    letter-spacing:0;text-transform:none;
  }
  .mnav a:hover{background:transparent;color:var(--ink-green)}
  .mnav-group{padding:22px 4px 8px;font-size:13px;letter-spacing:0;text-transform:none;color:var(--muted)}
  .mnav-sub{padding-left:20px!important;font-size:16px!important}
}
@media (max-width:600px){
  .mnav{inset:98px 0 0;padding:16px 20px 32px}
  .nav .icons .icob,.nav .icons .hamb{width:36px;height:36px;min-width:36px;min-height:36px}
  .cartb{font-size:0!important}
  .cart-count{font-size:11px}
}

/* Basket drawer: compact empty state and a summary that is not a page footer. */
.basket-panel{padding:30px 28px 24px}
.basket-panel>header{align-items:flex-start}
.basket-panel>header>div{min-width:0}
.basket-panel h2{font-size:34px;line-height:1.08}
.basket-intro{margin:9px 0 0;font-size:15px;line-height:1.5}
dialog header button[data-close]{background:transparent;width:40px;height:40px;flex-basis:40px;transition:background-color .18s ease}
dialog header button[data-close]:hover{background:var(--collection-field)}
.basket-items{margin:24px 0 0;padding:0}
.basket-empty{min-height:100%;padding:0;display:grid;align-content:center;gap:24px}
.basket-empty img{display:block;width:100%;height:240px;object-fit:cover;object-position:center 43%}
.basket-empty h3{font-size:30px;line-height:1.1;margin:0}
.basket-empty p{font-size:16px;line-height:1.55;margin:14px 0 22px;max-width:38ch;color:var(--collection-muted)}
.basket-empty .btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 22px;background:var(--ink-green);color:var(--paper)}
.basket-dialog.is-empty .basket-summary{display:none}
.basket-summary{margin:20px -28px -24px;padding:20px 28px 24px;background:var(--collection-field);color:var(--collection-ink)}
.basket-summary p{font-size:14px;line-height:1.5;color:var(--collection-muted)}

@media (max-width:600px){
  .basket-panel{padding:20px 18px 18px}
  .basket-panel h2{font-size:29px}
  .basket-empty{gap:20px}
  .basket-empty img{height:210px}
  .basket-empty h3{font-size:27px}
  .basket-summary{margin:16px -18px -18px;padding:18px}
}

/* ---------- 2. body copy is 15px or more ---------- */
.section-head p,
.meaning,
.article-body p,
.article-body li,
.jpost p,
.jfeatured p,
.record-intro p,
.acc-body,
.intent-card .ds,
.wood-card p,
.pcard .anchor-sm,
.pcard .body p { font-size: 16px !important; line-height: 1.65; }

.facts li { font-size: 15px; }
#cartLines .cn,
.cartline .cn { font-size: 16px; }

/* form controls: 16px stops phones zooming and clears the 13px body reading */
input, textarea, select { font-size: 16px !important; }

/* ---------- 3. no tiny uppercase letter-spaced labels ---------- */
.wlat,
.tag,
.entry-index,
.entry .more,
.grain-tab,
.grain-caption small,
.grain-intro .kicker,
.depth-label,
.jmeta,
.image-note,
.view-caption,
.product-kind,
.opt-label,
.breadcrumb,
.checkout-status,
.section-head .kicker,
.filters span,
.gview,
.jcat {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 13px !important;
}

/* ---------- 4. surfaces by tone, not by a 1px outline ---------- */
.pcard,
.wood-card,
.jpost,
.jfeatured,
.gift-card,
.quote,
.cartline,
.carttot,
.paircard,
.signals,
.shipbar,
.search-box,
.wishbtn,
.qbtn,
.acc-item,
.record-fields div,
.gview { border: 0 !important; }

/* filter chips keep their pill shape without a hairline outline */
.filters span { padding: 8px 16px; border-radius: 999px; background: var(--white); }

/* product record: the copy button needs a legible fillpair */
.record-copy { color: var(--paper) !important; background: var(--ink-green) !important; border: 0 !important; }
.record-copy:hover { background: var(--ink) !important; }

/* contact: every note reads at body size */
.contact-grid p,
.contact-grid .meaning,
.contact-grid label { font-size: 16px !important; }

.pcard,
.wood-card,
.jpost,
.cartline,
.carttot { background: var(--white); }

.meaning { border: 0 !important; }

/* ---------- 5. product: a real title on the first screen ---------- */
.buy h1 { font-size: clamp(28px, 2.7vw, 40px) !important; line-height: 1.1; letter-spacing: -.02em; }

@media (max-width: 760px) {
  .gallery .image-note,
  .gallery .record-jump { display: none; }
  .gallery .main { aspect-ratio: 1 / 1; max-height: 64vw; }
}

/* ---------- 6. cart: an empty state with a lead, not a blank page ---------- */
.empty-cart { padding: 8px 0 0; }
.empty-cart p { max-width: 46ch; margin: 0 0 22px; }
.empty-cart .empty-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.cart-suggest { margin-top: 44px; }
.cart-suggest h2 { font-size: clamp(22px, 2vw, 30px); margin-bottom: 18px; color: var(--ink); }
.cart-suggest .suggest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cart-suggest a { display: block; text-decoration: none; color: inherit; }
.cart-suggest img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: #2f4a42; }
.cart-suggest span { display: block; padding-top: 10px; font-size: 15px; }
@media (max-width: 620px) { .cart-suggest .suggest-grid { grid-template-columns: 1fr 1fr; } }

/* cart geometry: equal outer margins at every width */
.page-cart .wrap { margin-left: auto; margin-right: auto; }
.page-cart .section-head h1 { font-size: clamp(44px, 4.9vw, 72px) !important; line-height: 1.04; letter-spacing: -.03em; }
@media (max-width: 620px) { .page-cart .section-head h1 { font-size: 40px !important; } }

/* contact: one column on a phone, so the heading is not squeezed to 4 lines */
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr !important; gap: 34px !important; }
}
.figure-row figcaption { font-size: 15px; }

/* the 3D depth layer lifts the photo out of its frame; clip it so it cannot paint over the heading above */
.ph,
.gallery .main { overflow: hidden; }

/* the toast is transparent when idle but was still hit-testable, so it swallowed clicks
   (and, at some scroll positions, sat over a heading). Hide it from the pointer entirely. */
.toast { visibility: hidden; pointer-events: none; }
.toast.show { visibility: visible; pointer-events: auto; }

/* the product grid heading must sit above the perspective layers below it */
#grid .section-head { position: relative; z-index: 50; }
#gridTitle { position: relative; z-index: 50; isolation: isolate; }

/* the last product section needs more air, so the price is not read as its label */
.purchase-care { padding-top: 96px !important; }

/* breadcrumb separators are drawn, not typed: the slash is not a label */
.breadcrumb a + a::before,
.breadcrumb b::before { content: "/"; margin: 0 7px; color: var(--muted); }

/* the footer is running text on every page, not fine print */
footer, footer p, footer a, footer h4 { font-size: 15px; }
footer .disclaimer { font-size: 15px !important; line-height: 1.6; }

/* product: the name has to lead the first screen at every desktop width */
.buy h1 { font-size: clamp(36px, 4.7vw, 68px) !important; line-height: 1.08; letter-spacing: -.02em; }

/* product record: small labels stop being fine print */
.record-fields dt,
.record-fields dd,
.facts li,
.facts li span,
.thumbs .th span,
.inspect-expand,
.record-jump,
.view-caption,
.image-note,
.breadcrumb,
.purchase-info-link,
.spec-guide { font-size: 13px !important; }

/* cart empty state: the action must read against its own fill */
.cart-suggest .btn { color: var(--paper) !important; background: var(--ink-green) !important; }
.cart-suggest .btn.ghost { color: var(--ink-green) !important; background: transparent !important; }

/* story: the section heading must hold two lines on a phone */
@media (max-width: 620px) {
  .story h2 { font-size: 24px !important; line-height: 1.2; }
}

/* ---------- 7. contact / story: a picture to carry the empty half ---------- */
.figure-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 34px 0 0; }
.figure-row figure { margin: 0; }
.figure-row img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: #2f4a42; }
.figure-row figcaption { font-size: 13px; color: var(--muted); padding-top: 8px; }
@media (max-width: 620px) { .figure-row { grid-template-columns: 1fr; } }

/* ---------- 9. home composition: images give the feeling cards a visual anchor ---------- */
.collection-hero .hero-copy{padding-left:clamp(54px,6vw,96px)}
.intention-section{padding-top:clamp(78px,7vw,96px);padding-bottom:clamp(78px,7vw,96px)}
.intention-section .section-head{margin-bottom:32px}
.intention-section .grid3{gap:20px;border:0}
.intention-section .entry{
  display:flex;flex-direction:column;min-height:0;padding:0;background:var(--paper);
  border:0;overflow:hidden;transition:transform .35s ease,background-color .35s ease;
}
.intention-section .entry:hover{background:var(--paper);transform:translateY(-4px)}
.entry-media{aspect-ratio:1.28 / 1;overflow:hidden;background:#d9d5c8}
.entry-media img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .8s cubic-bezier(.2,.7,.2,1),filter .35s ease}
.entry:hover .entry-media img{transform:scale(1.045);filter:saturate(1.04)}
.entry-copy{padding:22px 24px 26px;background:var(--white);flex:1}
.entry-index{margin:0 0 17px;font-size:11px!important;letter-spacing:.08em!important;color:var(--sandalwood)!important}
.entry h3{margin:0 0 9px;font-size:30px}
.entry p{max-width:31ch;margin:0;color:var(--muted);line-height:1.62}
.entry-more{display:inline-flex;align-items:center;gap:8px;margin-top:20px;color:var(--ink-green);font-size:13px}
.entry-more span{font-size:17px;transition:transform .25s ease}
.entry:hover .entry-more span{transform:translate(3px,-3px)}
@media (max-width:960px){
  .collection-hero .hero-copy{padding-left:28px}
  .intention-section .grid3{gap:16px}
}
@media (max-width:600px){
  .collection-hero .hero-copy{padding-left:20px}
  .nav .icons{gap:8px}
  .intention-section{padding-top:64px;padding-bottom:64px}
  .intention-section .grid3{gap:16px}
  .entry-media{aspect-ratio:1.5 / 1}
  .entry-copy{padding:19px 19px 22px}
  .entry-index{margin-bottom:13px}
  .entry h3{font-size:26px}
  .entry-more{margin-top:16px}
}
