/* polish.css: the 2026-11 craft pass over styles.css and brand.css. Same logo, colours and fonts; better rhythm, type, cards and states. No motion here (motion.css). */
:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --section-gap: clamp(40px, 5.5vw, 76px);
  --rule: #dfe3df;
}

/* the parts the browser draws: selection, caret and form marks in the brand's colours */
::selection { background: var(--mustard); color: #17231c; }
html { accent-color: var(--forest); caret-color: var(--forest); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { text-decoration-thickness: from-font; }

/* keyboard focus: the mustard ring keeps its place, a forest line inside it makes it readable on white */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; box-shadow: 0 0 0 2px var(--forest); }

/* home hero: the left edge follows the page width instead of a fixed 75 px, and the lede steps up a size on wide screens */
.hero { margin-bottom: 0; }
.hero-text { padding: clamp(32px, 7vw, 48px) 20px clamp(28px, 6vw, 40px); }
.hero .lede { font-size: clamp(1.06rem, 1.25vw, 1.22rem); line-height: 1.55; color: var(--text); margin-bottom: 14px; }
.hero .muted { font-size: .95rem; margin-bottom: 14px; }
.hero-media { overflow: hidden; }

/* how it works: one band between two hairlines; each step starts at the top (they used to stretch apart when one text ran longer) */
.how { margin: 0 0 var(--section-gap); padding: clamp(22px, 3vw, 34px) 0; gap: 18px 28px; border-bottom: 1px solid var(--rule); }
.how li { align-content: start; grid-template-columns: 38px 1fr; column-gap: 14px; }
.how li::before { width: 38px; height: 38px; line-height: 38px; }
.how strong { font-size: 1.02rem; line-height: 38px; color: var(--ink); }
.how span { line-height: 1.5; max-width: 34ch; }

/* product sections: more air above a heading than below it, one clear step between heading, intro and cards */
.cat { margin-bottom: var(--section-gap); scroll-margin-top: 24px; }
.cat h2 { font-size: clamp(1.4rem, 2.3vw, 1.95rem); line-height: 1.15; margin-bottom: 8px; }
.cat-intro { max-width: 68ch; margin-bottom: clamp(16px, 2vw, 24px); }
.cat-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.1; }
.cat-head .intro { font-size: 1.05rem; }

/* product cards: a steadier text block under the photo (the display font's figures stay as drawn: its tabular set is circled numerals) */
.pgrid-cards { gap: 22px 14px; }
.pcard-body { padding: 14px 0 6px; gap: 5px; }
.pcard h3 { font-size: 1.03rem; line-height: 1.3; color: var(--ink); }
.pcard .lowas { font-size: .86rem; line-height: 1.45; }
.pcard .lowas strong { white-space: nowrap; }
.pcard-cta { padding-top: 8px; font-size: .9rem; }
.pcard-img .ph-empty { background: var(--forest); }

/* promotional products band: room to breathe, the link reads as the way in */
.promo-teaser { padding: clamp(24px, 4vw, 44px) clamp(20px, 4vw, 48px); margin-bottom: 0; }
.promo-teaser p { max-width: 74ch; margin-bottom: 0; font-size: 1.04rem; }
.promo-teaser a { font-weight: 600; white-space: nowrap; text-underline-offset: 4px; }

/* waiting and empty states: a quiet line with a mark, not bare text */
.loading { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.loading[hidden] { display: none; }
.loading::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--sage); }
.cart > .lede:only-child, .cart > .lede:first-child { margin-top: 6px; }

@media (min-width: 600px) {
  .pgrid-cards { gap: 36px 20px; }
}
/* the hero's left edge: 75 px as designed at 1440, less on small laptops, and in line with the header's content on wide screens
   (the header sits in a 1440 px column, 1680 px from 1800 up, as in brand.css) */
@media (min-width: 900px) {
  .hero { --hero-inset: clamp(28px, 5.2vw, 75px); }
  .hero-text { padding: 56px 40px 56px var(--hero-inset); }
}
@media (min-width: 1440px) {
  .hero { --hero-inset: max(75px, calc((100vw - 1440px) / 2 + 20px)); }
}
@media (min-width: 1800px) {
  .hero { --hero-inset: max(75px, calc((100vw - 1680px) / 2 + 20px)); }
  .hero .lede { max-width: 52ch; }
}
