/* Rural Handmade site stylesheet (design system v4, RHM-52).
   One file, render-blocking, no framework. Pages built on application/views/site/ use only this. */

/* ---------- fonts ---------- */
@font-face { font-family: "Instrument Sans"; src: url("../fonts/InstrumentSans-latin.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
/* Metric-matched local fallbacks (computed from the font files, 2026-11-18) so text does not move when the fonts arrive. */
@font-face { font-family: "Instrument Sans Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Arimo"); size-adjust: 103.25%; ascent-override: 93.95%; descent-override: 24.21%; line-gap-override: 0%; }
@font-face { font-family: "Instrument Sans Fallback Android"; src: local("Roboto"), local("Roboto-Regular"); size-adjust: 102.70%; ascent-override: 94.45%; descent-override: 24.34%; line-gap-override: 0%; }
@font-face { font-family: "Instrument Serif Fallback"; src: local("Georgia"); size-adjust: 76.92%; ascent-override: 128.71%; descent-override: 40.30%; line-gap-override: 0%; }
@font-face { font-family: "Instrument Serif Fallback Android"; src: local("Noto Serif"), local("NotoSerif-Regular"); size-adjust: 70.52%; ascent-override: 140.39%; descent-override: 43.96%; line-gap-override: 0%; }

/* ---------- tokens ---------- */
:root {
  --ink: #1f1d1b; --ink-2: #3c3833; --ink-muted: #625c56;
  --page: #faf8f5; --surface: #ffffff; --surface-alt: #f1ede6;
  --line: #ebe6df; --line-2: #d9d2c8; --control: #8a8178;
  --action: #2a2725; --action-hover: #000000; --on-action: #ffffff;
  --clay: #6e3b2e; --clay-accent: #f3d9a4; --butter: #f3ecd2; --sage: #e4e7d9;
  --copper: #bf8b51;
  --font-serif: "Instrument Serif", "Instrument Serif Fallback", "Instrument Serif Fallback Android", Georgia, serif;
  --font-sans: "Instrument Sans", "Instrument Sans Fallback", "Instrument Sans Fallback Android", Arial, sans-serif;
  --radius: 4px; --radius-media: 6px;
  --wrap: 1360px; --gutter: 40px;
}
@media (max-width: 760px) { :root { --gutter: 16px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 16px/25px var(--font-sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, figure, dl, dd, blockquote { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); }
a:hover { color: var(--clay); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.on-dark :focus-visible { outline-color: #ffffff; }
.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--action); color: var(--on-action); padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 8px; color: var(--on-action); }
.u { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: var(--radius); border: 1px solid transparent;
  font: 500 15px/20px var(--font-sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s ease-out, color .15s ease-out; }
.btn-dark { background: var(--action); color: var(--on-action); }
.btn-dark:hover { background: var(--action-hover); color: var(--on-action); }
.btn-white { background: #ffffff; color: var(--ink); }
.btn-white:hover { background: var(--butter); color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--action); }
.btn-line:hover { background: var(--action); color: var(--on-action); }

/* ---------- header ---------- */
.announce { background: var(--surface-alt); text-align: center; font-size: 14px; line-height: 20px; padding: 9px var(--gutter); }
.announce a { font-weight: 500; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: block; flex: none; }
.logo img { width: 150px; height: auto; }
.allcat { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 15px; text-decoration: none; white-space: nowrap; }
.search { position: relative; flex: 1; }
.search input { width: 100%; height: 42px; padding: 0 18px 0 44px; border: 1px solid var(--control); border-radius: 999px; background: var(--surface); font-size: 15px; }
.search input::placeholder { color: var(--ink-muted); opacity: 1; }
.search .icon { position: absolute; left: 16px; top: 11px; color: var(--ink-muted); pointer-events: none; }
.search-row { display: none; padding-bottom: 12px; }
.acct { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 15px; white-space: nowrap; }
.acct .t { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.acct .t:hover { text-decoration: underline; text-underline-offset: 3px; }
.menu-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: -12px; color: var(--ink); background: none; border: 0; cursor: pointer; }
.cats { display: flex; justify-content: flex-start; align-items: center; gap: 26px; height: 46px; font-size: 15px; overflow-x: auto; scrollbar-width: none; }
/* Centred while the categories fit; when they don't, the strip scrolls from the first one (no clipped start). */
.cats > :first-child { margin-left: auto; }
.cats > :last-child { margin-right: auto; }
.cats .more-cats { font-weight: 600; }
@media (max-width: 1360px) { .cats { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); padding-right: 40px; } }
.cats::-webkit-scrollbar { display: none; }
.cats a { text-decoration: none; white-space: nowrap; padding: 12px 0; }
.cats a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* phone menu */
.drawer { margin: 0; padding: 0; border: 0; width: min(88vw, 360px); max-width: none; height: 100%; max-height: none; background: var(--surface); color: var(--ink); }
.drawer::backdrop { background: rgba(31, 29, 27, .45); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; height: 60px; padding: 0 8px 0 16px; border-bottom: 1px solid var(--line); }
.drawer-head img { width: 112px; height: auto; }
.drawer-close { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; }
.drawer nav { padding: 12px 16px 24px; }
.drawer h2 { font-size: 13px; font-weight: 600; color: var(--ink-muted); margin: 16px 0 4px; }
.drawer a { display: flex; align-items: center; min-height: 48px; text-decoration: none; font-size: 17px; border-bottom: 1px solid var(--line); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 620px; background: var(--butter); }
.hero-media { position: relative; background: #e9e2cc; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-text { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 64px 72px; }
.hero h1 { font-size: 76px; line-height: 78px; }
.hero .sub { font-size: 20px; line-height: 30px; color: var(--ink-2); max-width: 26em; }
.hero .alt { font-size: 15px; color: var(--ink-2); }

/* ---------- sections ---------- */
.sec { padding: 96px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.sec-head h2 { font-size: 46px; line-height: 50px; }
.sec-head p { margin-top: 8px; color: var(--ink-muted); font-size: 17px; }
.sec-head > a { font-size: 15px; white-space: nowrap; }

/* ---------- product tabs + cards ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 15px; cursor: pointer; }
.chip:hover { border-color: var(--action); }
.chip[aria-selected="true"] { background: var(--action); border-color: var(--action); color: var(--on-action); }
.panel .panel-title { font-size: 24px; line-height: 30px; margin: 0 0 16px; }
.js .panel .panel-title { display: none; }
.panel + .panel { margin-top: 40px; }
.js .panel + .panel { margin-top: 0; }
.rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.card { position: relative; }
.card-media { aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 18px; background: var(--surface); border-radius: var(--radius-media); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease-out; }
.card:hover .card-media img { transform: scale(1.04); }
.card .price { margin-top: 12px; font-size: 15px; font-weight: 600; }
.card .price span { font-weight: 400; color: var(--ink-muted); }
.card h3 { margin-top: 2px; font-size: 15px; line-height: 21px; font-weight: 400; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card .meta { margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.more { margin-top: 36px; text-align: center; }

/* ---------- colour band ---------- */
.band { background: var(--clay); color: #ffffff; padding: 72px 0 80px; }
.band-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 44px; }
.band h2 { font-size: 56px; line-height: 58px; }
.band h2 span { display: block; color: var(--clay-accent); }
.band p { font-size: 20px; line-height: 30px; color: #f4e9e3; max-width: 30em; }
.band figure { aspect-ratio: 21 / 8; border-radius: var(--radius-media); overflow: hidden; background: #5a3025; }
.band figure img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- three ways ---------- */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.way { display: flex; flex-direction: column; gap: 12px; padding: 36px 36px 8px 0; }
.way + .way { padding-left: 36px; border-left: 1px solid var(--line-2); }
.way .n { font-size: 14px; color: var(--ink-muted); }
.way h3 { font-size: 34px; line-height: 38px; }
.way p { color: var(--ink-2); max-width: 24em; }
.way a { margin-top: 6px; font-size: 15px; }

/* ---------- category tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-media); overflow: hidden; background: var(--ink-2); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 45%); pointer-events: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease-out; }
.tile:hover img { transform: scale(1.04); }
.tile h3 { position: absolute; z-index: 1; left: 20px; bottom: 16px; right: 20px; font-family: var(--font-serif); font-weight: 400; font-size: 30px; line-height: 34px; }
.tile a { color: #ffffff; text-decoration: none; }
.tile a::after { content: ""; position: absolute; inset: -1000px; }
.tile a:hover { color: #ffffff; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- confidence + maker splits ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split-media { position: relative; min-height: 560px; }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-text { display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 88px 72px; }
/* On wide screens the text lines up with the page's centred content instead of the window edge. */
.conf .split-text { padding-left: max(72px, calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.maker .split-text { padding-right: max(72px, calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.conf { background: var(--sage); }
.conf h2 { font-size: 52px; line-height: 56px; max-width: 10em; }
.conf dl { display: grid; gap: 20px; }
.conf dt { font-weight: 600; font-size: 17px; }
.conf dd { margin-top: 2px; color: var(--ink-2); }
.maker { background: var(--action); color: #ffffff; }
.maker .split-media { min-height: 520px; }
.maker .split-text { gap: 20px; padding-top: 80px; padding-bottom: 80px; padding-left: 72px; }
.maker h2 { font-size: 56px; line-height: 58px; }
.maker p { color: #d8d2cb; font-size: 18px; line-height: 28px; max-width: 26em; }

/* ---------- guides ---------- */
.guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.guide { position: relative; }
.guide-media { aspect-ratio: 3 / 2; border-radius: var(--radius-media); overflow: hidden; background: var(--surface-alt); }
.guide-media img { width: 100%; height: 100%; object-fit: cover; }
.guide h3 { margin-top: 16px; font-size: 28px; line-height: 32px; }
.guide h3 a { text-decoration: none; }
.guide h3 a::after { content: ""; position: absolute; inset: 0; }
.guide:hover h3 a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.guide p { margin-top: 8px; color: var(--ink-2); }
.guide .meta { margin-top: 10px; font-size: 13px; color: var(--ink-muted); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 64px; }
.faq-grid h2 { font-size: 46px; line-height: 50px; }
.faq-grid .side p { margin-top: 12px; color: var(--ink-muted); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:first-child { border-top: 1px solid var(--line-2); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 62px; padding: 16px 0; font-size: 18px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s ease-out; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq .answer { padding: 0 48px 22px 0; color: var(--ink-2); }
.faq .answer p + p { margin-top: 10px; }

/* ---------- footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 64px 0 28px; font-size: 14px; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.foot-top img { width: 150px; height: auto; }
.foot-top .about { margin-top: 14px; color: var(--ink-muted); max-width: 26em; font-size: 15px; }
.news h2 { font-size: 26px; line-height: 30px; margin-bottom: 12px; }
.news form { display: flex; gap: 8px; width: 440px; max-width: 100%; }
.news input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid var(--control); border-radius: var(--radius); background: var(--surface); }
.news-msg { margin-top: 8px; font-size: 14px; min-height: 20px; }
.foot-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px; }
.foot-grid h2 { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.foot-grid li a { display: inline-block; max-width: 100%; padding: 4px 0; overflow-wrap: anywhere; color: var(--ink-2); text-decoration: none; }
.foot-grid li a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 13px; }
.legal ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.legal a { color: var(--ink-2); text-decoration: none; }
.legal a:hover { text-decoration: underline; }

/* ---------- breadcrumbs ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--ink-muted); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line-2); }
.crumbs a { color: var(--ink-muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- link chips (topics) ---------- */
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 15px; text-decoration: none; white-space: nowrap; }
.chip-link:hover { border-color: var(--action); color: var(--ink); }
.chip-link[aria-current] { background: var(--action); border-color: var(--action); color: var(--on-action); }

/* ---------- blog listing ---------- */
.blog-head { padding-top: 28px; padding-bottom: 32px; }
.blog-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin: 28px 0 28px; }
.blog-title h1 { font-size: 64px; line-height: 66px; }
.blog-title .lead { margin-top: 12px; max-width: 34em; color: var(--ink-2); font-size: 18px; line-height: 28px; }
.blog-search { flex: 0 1 360px; }
.post-media { position: relative; overflow: hidden; border-radius: var(--radius-media); background: var(--surface-alt); }
.ph-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; font-family: var(--font-serif); font-size: clamp(22px, 3vw, 40px); line-height: 1.1; color: var(--ink); background: var(--butter); }
.ph-fallback.t-community { background: var(--clay); color: var(--clay-accent); }
.ph-fallback.t-sustainability { background: var(--sage); }
.ph-fallback.t-business-management { background: var(--action); color: #ffffff; }
.ph-fallback.t-market-insights { background: #dfe6ec; }
.post-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease-out; }
.kicker { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--clay); }
.meta { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.featured { margin-bottom: 72px; }
.feature { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.feature-media { aspect-ratio: 16 / 9; }
.feature:hover .post-media img, .post:hover .post-media img { transform: scale(1.03); }
.feature-text { display: flex; flex-direction: column; gap: 14px; }
.feature h3 { font-size: 44px; line-height: 48px; }
.feature h3 a, .post h3 a { text-decoration: none; }
.feature h3 a::after, .post h3 a::after { content: ""; position: absolute; inset: 0; }
.feature:hover h3 a, .post:hover h3 a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.feature .sum { font-size: 17px; line-height: 27px; color: var(--ink-2); }
.posts-sec { padding-bottom: 96px; }
.list-h { font-family: var(--font-serif); font-weight: 400; font-size: 36px; line-height: 40px; margin-bottom: 28px; padding-top: 40px; border-top: 1px solid var(--line-2); }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; }
.post { position: relative; display: flex; flex-direction: column; gap: 8px; }
.post .post-media { aspect-ratio: 3 / 2; margin-bottom: 8px; }
.post h3 { font-size: 26px; line-height: 30px; }
.post .sum { color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.empty { padding: 48px 0; display: grid; gap: 16px; justify-items: start; font-size: 17px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 64px; flex-wrap: wrap; }
.pager ol { display: flex; gap: 4px; }
.pager a, .pager [aria-current] { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--radius); text-decoration: none; font-variant-numeric: tabular-nums; }
.pager a:hover { background: var(--surface-alt); color: var(--ink); }
.pager [aria-current] { background: var(--action); color: var(--on-action); }
.pager .gap { display: inline-grid; place-items: center; width: 24px; height: 44px; color: var(--ink-muted); }
.pager .pg-step { border: 1px solid var(--line-2); }

/* ---------- product page ---------- */
.pd-top { padding-top: 24px; padding-bottom: 20px; }
.pd { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; padding-bottom: 72px; }
.gallery { position: sticky; top: 24px; display: grid; gap: 12px; }
.gallery-main { aspect-ratio: 1 / 1; background: var(--surface); border-radius: var(--radius-media); display: grid; place-items: center; padding: 32px; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumbs a { display: block; width: 72px; height: 72px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.thumbs a[aria-current="true"] { border-color: var(--action); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.buy { display: flex; flex-direction: column; gap: 16px; }
.buy .kicker a { color: var(--clay); text-decoration: none; }
.buy .kicker a:hover { text-decoration: underline; }
.buy h1 { font-size: 42px; line-height: 46px; }
.pd-price { font-size: 26px; line-height: 32px; font-weight: 600; }
.pd-price span, .buybar span { font-size: 15px; font-weight: 400; color: var(--ink-muted); }
.pd-moq { color: var(--ink-2); margin-top: -8px; }
.tiers { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); border-radius: var(--radius-media); overflow: hidden; }
.tiers th, .tiers td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.tiers th { font-weight: 600; font-size: 13px; color: var(--ink-muted); background: var(--surface-alt); }
.tiers td:last-child, .tiers th:last-child { text-align: right; }
.tiers tr:last-child td { border-bottom: 0; }
.tiers tr.on td { background: var(--butter); font-weight: 600; }
.pd-actions { display: grid; gap: 10px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-media); }
.qty-row { display: flex; gap: 10px; }
.qty { display: inline-grid; grid-template-columns: 44px 72px 44px; border: 1px solid var(--control); border-radius: var(--radius); height: 46px; }
.qty button { border: 0; background: var(--surface); display: grid; place-items: center; cursor: pointer; border-radius: var(--radius); }
.qty button:hover { background: var(--surface-alt); }
.qty input { width: 100%; border: 0; text-align: center; font-size: 16px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; background: var(--surface); }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty :focus-visible { outline-offset: -2px; }
.grow { flex: 1; }
.block { width: 100%; white-space: normal; text-align: center; line-height: 20px; padding-top: 12px; padding-bottom: 12px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn:disabled { opacity: .6; cursor: default; }
.btn[aria-pressed="true"] { background: var(--butter); }
.hint { font-size: 14px; color: var(--ink-muted); }
.pd-msg { font-size: 14px; min-height: 0; }
.pd-msg:empty { display: none; }
.facts { display: grid; border-top: 1px solid var(--line-2); }
.facts > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.facts dt { color: var(--ink-muted); }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line-2); margin-right: 8px; vertical-align: -2px; }
.assure { display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.assure strong { color: var(--ink); }
.pd-about, .pd-values, .pd-rail { padding-top: 56px; padding-bottom: 8px; }
.pd-about h2, .pd-values h2, .pd-rail h2 { font-size: 36px; line-height: 40px; margin-bottom: 20px; }
.prose { max-width: 68ch; color: var(--ink-2); font-size: 17px; line-height: 28px; }
.prose, .prose li, .prose td { overflow-wrap: break-word; }
.prose a { overflow-wrap: anywhere; }
.prose > * + * { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 6px; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); font-size: 20px; line-height: 28px; font-weight: 600; margin-top: 24px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose table { border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line-2); padding: 8px 10px; text-align: left; }
.pd-values h3 { font-size: 15px; font-weight: 600; margin: 4px 0 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tags .chip-link { white-space: normal; max-width: 100%; padding-top: 8px; padding-bottom: 8px; line-height: 20px; }
.sdg-n { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: var(--surface-alt); font-size: 12px; font-weight: 600; }
.pd-rail { padding-bottom: 40px; }
.pd-rail + .pd-rail { padding-top: 16px; }
main > .pd-rail:last-of-type { padding-bottom: 88px; }
.buybar { display: none; }

/* ---------- blog article ---------- */
.article-head { padding-top: 24px; }
.article-title { max-width: 820px; margin: 40px auto 36px; text-align: center; display: grid; gap: 16px; }
.article-title .kicker a { color: var(--clay); text-decoration: none; }
.article-title .kicker a:hover { text-decoration: underline; }
.article-title h1 { font-size: 60px; line-height: 64px; }
.article-title .lead { font-size: 20px; line-height: 31px; color: var(--ink-2); }
.article-title .meta { font-size: 14px; }
.article-cover { max-width: 1100px; margin: 0 auto 48px; }
.article-cover img { width: 100%; height: auto; max-height: 640px; object-fit: cover; border-radius: var(--radius-media); background: var(--surface-alt); }
.article-body { max-width: 700px; margin: 0 auto; font-size: 18px; line-height: 31px; color: var(--ink); }
.article-body > * + * { margin-top: 20px; }
.article-body h2 { font-family: var(--font-serif); font-weight: 400; font-size: 34px; line-height: 40px; margin-top: 48px; }
.article-body h3 { font-size: 22px; line-height: 30px; font-weight: 600; margin-top: 36px; }
.article-body h4 { font-size: 18px; line-height: 27px; font-weight: 600; margin-top: 28px; }
.article-body h2 + *, .article-body h3 + *, .article-body h4 + * { margin-top: 12px; }
.article-body img { display: block; width: auto; max-width: 100%; height: auto; margin: 8px auto; border-radius: var(--radius-media); }
.article-body p:has(> img:only-child) { margin-top: 28px; margin-bottom: 8px; }
.article-body blockquote { margin: 28px 0; padding-left: 20px; border-left: 2px solid var(--clay); font-family: var(--font-serif); font-size: 24px; line-height: 32px; }
.article-body a { color: var(--ink); text-decoration-color: var(--clay); text-underline-offset: 3px; }
.table-wrap { overflow-x: auto; margin: 24px 0; }
.article-body table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 15px; line-height: 22px; background: var(--surface); }
.article-body th, .article-body td { border: 1px solid var(--line-2); padding: 10px 12px; vertical-align: top; text-align: left; }
.article-body th { background: var(--surface-alt); font-weight: 600; }
.article-foot { max-width: 700px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 15px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.share span { color: var(--ink-muted); }
.share a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.share a:hover { text-decoration: underline; }
.article-cta { margin-top: 72px; margin-bottom: 72px; padding-top: 48px; padding-bottom: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; background: var(--butter); border-radius: var(--radius-media); }
.article-cta h2 { font-size: 36px; line-height: 40px; }
.article-cta p { margin-top: 6px; color: var(--ink-2); }

/* ---------- motion preference ---------- */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* ---------- tablet ---------- */
@media (max-width: 1150px) {
  .hero h1 { font-size: 60px; line-height: 62px; }
  .hero-text { padding: 56px 48px; }
  .rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rail li:nth-child(n+5) { display: none; }
  .acct .hide-md { display: none; }
  .split-text, .maker .split-text, .conf .split-text { padding: 64px 48px; }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .pd { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .gallery { position: static; }
  .gallery-main { aspect-ratio: 4 / 3; }
  .buybar:not([hidden]) { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; justify-content: space-between; align-items: center; gap: 12px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(31, 29, 27, .08); }
  .buybar p { font-size: 17px; }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .feature h3 { font-size: 36px; line-height: 40px; }
  .blog-title h1 { font-size: 52px; line-height: 56px; }
  .bar { gap: 18px; }
  .allcat { display: none; }
  .band h2, .maker h2, .conf h2 { font-size: 46px; line-height: 50px; }
  .acct .hide-tab { display: none; }
  .hero h1 { font-size: 48px; line-height: 52px; }
  .hero-text { padding: 48px 40px; }
  .hero .sub { font-size: 18px; line-height: 28px; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .announce { font-size: 13px; }
  .bar { height: 60px; gap: 6px; }
  .menu-btn { display: inline-flex; }
  .logo img { width: 112px; }
  .bar .search, .acct .hide-sm { display: none; }
  .acct { gap: 4px; }
  .acct .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .search-row { display: block; }
  .cats { gap: 20px; height: 44px; border-top: 1px solid var(--line); }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-media { aspect-ratio: 4 / 3; }
  .hero-text { padding: 32px 16px 44px; gap: 16px; }
  .hero h1 { font-size: 46px; line-height: 48px; }
  .hero .sub { font-size: 17px; line-height: 26px; }
  .hero .btn { width: 100%; }
  .sec { padding: 60px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 22px; }
  .sec-head h2, .faq-grid h2 { font-size: 36px; line-height: 40px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)) 20px; padding: 0 var(--gutter); }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .rail li:nth-child(n+5) { display: none; }
  .card-media { padding: 10px; }
  .band { padding: 52px 0; }
  .band-intro { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 28px; }
  .band h2, .maker h2 { font-size: 38px; line-height: 42px; }
  .band p { font-size: 17px; line-height: 27px; }
  .band figure { aspect-ratio: 4 / 3; }
  .ways { grid-template-columns: minmax(0, 1fr); }
  .way, .way + .way { padding: 26px 0; border-left: 0; }
  .way + .way { border-top: 1px solid var(--line-2); }
  .way h3 { font-size: 30px; line-height: 34px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tile { aspect-ratio: 1 / 1; }
  .tile h3 { left: 12px; bottom: 10px; right: 12px; font-size: 22px; line-height: 26px; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
  .tile::after { background: linear-gradient(to top, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0) 65%); }
  .guide-media { aspect-ratio: 16 / 9; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-media, .maker .split-media { min-height: 300px; }
  .split-text, .maker .split-text, .conf .split-text { padding: 48px 16px 56px; gap: 22px; }
  .conf h2 { font-size: 38px; line-height: 42px; }
  .guides { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .guide h3 { font-size: 26px; line-height: 30px; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .faq summary { font-size: 17px; }
  .faq .answer { padding-right: 0; }
  .foot-top { flex-direction: column; align-items: flex-start; gap: 24px; }
  .news { width: 100%; }
  .news form { width: 100%; }
  .foot-grid .contact { grid-column: 1 / -1; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .foot-grid li a { padding: 9px 0; }
  .legal { flex-direction: column; }
  .article-title { margin: 24px auto 24px; text-align: left; gap: 12px; }
  .article-title h1 { font-size: 38px; line-height: 42px; }
  .article-title .lead { font-size: 17px; line-height: 27px; }
  .article-cover { margin-bottom: 28px; padding: 0; }
  .article-cover img { border-radius: 0; }
  .article-body { font-size: 17px; line-height: 29px; }
  .article-body h2 { font-size: 28px; line-height: 34px; margin-top: 36px; }
  .article-body h3 { font-size: 20px; line-height: 28px; margin-top: 28px; }
  .article-cta { flex-direction: column; align-items: flex-start; margin: 48px var(--gutter); padding: 32px 20px; }
  .article-cta h2 { font-size: 28px; line-height: 32px; }
  .pd-top { padding-top: 14px; padding-bottom: 14px; }
  .pd { padding-bottom: 48px; }
  .gallery-main { aspect-ratio: 1 / 1; padding: 16px; margin: 0 calc(-1 * var(--gutter)); border-radius: 0; }
  .buy h1 { font-size: 32px; line-height: 36px; }
  .pd-price { font-size: 22px; line-height: 28px; }
  .pd-actions { padding: 16px; }
  .qty-row { flex-wrap: wrap; }
  .qty-row .btn { flex: 1 1 160px; }
  .facts > div { grid-template-columns: 110px minmax(0, 1fr); }
  .pd-about, .pd-values, .pd-rail { padding-top: 40px; }
  .pd-about h2, .pd-values h2, .pd-rail h2 { font-size: 30px; line-height: 34px; }
  .prose { font-size: 16px; line-height: 26px; }
  .prose table { display: block; overflow-x: auto; }
  .blog-head { padding-top: 16px; padding-bottom: 24px; }
  .blog-title { flex-direction: column; align-items: stretch; gap: 20px; margin: 18px 0 20px; }
  .blog-title h1 { font-size: 40px; line-height: 44px; }
  .blog-title .lead { font-size: 16px; line-height: 25px; }
  .blog-search { flex: none; }
  .topics { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .topics::-webkit-scrollbar { display: none; }
  .featured { margin-bottom: 40px; }
  .feature h3 { font-size: 30px; line-height: 34px; }
  .list-h { font-size: 30px; line-height: 34px; padding-top: 28px; margin-bottom: 20px; }
  .posts { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .post h3 { font-size: 24px; line-height: 28px; }
  .posts-sec { padding-bottom: 60px; }
  .pager { margin-top: 40px; gap: 8px; }
  .pager .pg-step { padding: 0 10px; }
}
/* Large phones and small tablets in portrait: three products and two guides across. */
@media (min-width: 561px) and (max-width: 760px) {
  .rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rail li:nth-child(n+4) { display: none; }
  .guides { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .guide-media { aspect-ratio: 3 / 2; }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; }
  .post h3 { font-size: 22px; line-height: 26px; }
}
@media (max-width: 760px) and (pointer: coarse) { .legal a { display: inline-block; padding: 10px 0; } }
