/*
Theme Name: Best Rock Tumblers
Template: aff-base
Description: Geology look for bestrocktumblers.com: slate grey, amethyst purple and agate banding.
Version: 1.0.0
*/

:root {
	--bg: #f4f3f6;
	--surface: #ffffff;
	--surface-2: #e9e7ee;
	--ink: #1f2229;
	--ink-2: #3e4350;
	--muted: #6a6f7d;
	--line: #dcd9e3;
	--accent: #6b3fa0;
	--accent-ink: #ffffff;
	--accent-soft: #ece4f6;
	--accent-2: #b8542a;
	--good: #2f7a55;
	--bad: #b2402f;
	--radius: 12px;
	--radius-sm: 6px;
	--shadow: 0 1px 2px rgba(31, 34, 41, .05), 0 10px 26px rgba(43, 30, 70, .08);
	--font-display: "Alegreya", Georgia, serif;
	--font-body: "Alegreya Sans", system-ui, sans-serif;
	--display-weight: 800;
	--display-tracking: -0.005em;
	--slate: #2a2e37;
	--slate-2: #1c1f26;
	--bands: linear-gradient(90deg, #4b2a78 0 14%, #b89ae0 14% 22%, #f2ecf8 22% 26%, #6b3fa0 26% 40%, #c0662f 40% 47%, #e8cfb4 47% 51%, #4a4f5b 51% 66%, #8e67bf 66% 78%, #f2ecf8 78% 81%, #6b3fa0 81% 100%);
}

body { font-size: 18px; }

/* Header: slate slab with fine strata, agate band underneath */
.site-header { background: var(--slate); background-image: repeating-linear-gradient(176deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 9px); border-bottom: 0; backdrop-filter: none; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 5px; background: var(--bands); background-size: 340px 100%; }
.brand { color: #fff; }
.brand__name { font-size: 22px; }
.nav__list a { color: #d9d4e4; font-weight: 500; font-size: 16px; }
.nav__list a:hover, .nav__list .current-menu-item a { background: rgba(255, 255, 255, .09); color: #fff; }
.nav-toggle { background: transparent; border-color: rgba(255, 255, 255, .28); }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { background: #fff; }
@media (max-width: 1120px) {
	.nav { background: var(--slate); border-bottom: 0; top: calc(100% + 5px); }
}

/* Hero: agate rings bloom from the top right */
.hero { border-bottom: 0; background:
	radial-gradient(circle at 92% 6%, rgba(244, 243, 246, 0) 0, rgba(244, 243, 246, 0) 240px, var(--bg) 640px),
	repeating-radial-gradient(ellipse at 92% 6%, rgba(107, 63, 160, .09) 0 12px, rgba(107, 63, 160, 0) 12px 26px, rgba(192, 102, 47, .06) 26px 31px, rgba(107, 63, 160, 0) 31px 46px),
	var(--bg); }
.hero__title { line-height: 1.08; }
.kicker { color: var(--accent); letter-spacing: .14em; }
.kicker::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 9px; vertical-align: -1px; background: linear-gradient(135deg, #b89ae0, #6b3fa0); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }

/* Silo tiles: cut-corner slabs with a hexagonal slate plate */
.silo { position: relative; border: 0; box-shadow: inset 0 0 0 1px var(--line); clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%); padding: 22px 20px 20px; }
.silo::before { content: ""; position: absolute; top: 0; right: 0; width: 24px; height: 24px; background: linear-gradient(225deg, transparent 50%, #d8cbea 50%); }
.silo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--bands); background-size: 220px 100%; opacity: 0; transition: opacity .15s; }
.silo:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--accent); background: #fbf9fe; }
.silo:hover::after { opacity: 1; }
.silo__icon { width: 60px; height: 60px; padding: 13px; background: var(--slate); color: #d8c6f0; clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); }

.card__icon { color: var(--accent); }
.card--lg .card__link { background: linear-gradient(160deg, #ece4f6, var(--surface) 62%); }

/* Teaser on a slate slab */
.teaser__inner { background: linear-gradient(135deg, #2a2e37, #3a3150); color: #e6e1ee; border-radius: var(--radius); }
.teaser__copy h2 { color: #fff; }
.teaser .kicker { color: #cdb4ee; }
.teaser .btn--primary { background: #f2ecf8; color: #3b1f63; }

.promise__item { border-top: 0; position: relative; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.promise__item::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--bands); background-size: 260px 100%; }

/* Quick picks: cut-gem bullets in stone colours */
.quick-picks li { position: relative; padding-left: 54px; }
.quick-picks li::before { content: ""; position: absolute; left: 19px; top: 18px; width: 20px; height: 20px; clip-path: polygon(50% 0, 100% 36%, 82% 100%, 18% 100%, 0 36%); background: linear-gradient(140deg, #cdb4ee, #6b3fa0 70%); }
.quick-picks li:nth-child(2)::before { background: linear-gradient(140deg, #f3a877, #a8401f 70%); }
.quick-picks li:nth-child(3)::before { background: linear-gradient(140deg, #a6d9bb, #2f6e52 70%); }
.quick-picks li:nth-child(4)::before { background: linear-gradient(140deg, #f5d98a, #b9862a 70%); }
.quick-picks li:nth-child(5)::before { background: linear-gradient(140deg, #8ea8e6, #2f4c97 70%); }
.quick-picks li:nth-child(6)::before { background: linear-gradient(140deg, #f6c9d3, #c0607a 70%); }
.quick-picks li:nth-child(7)::before { background: linear-gradient(140deg, #8a8f9c, #1f2229 70%); }

/* Product box: agate-banded frame */
.aff-product { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(115deg, #4b2a78, #b89ae0 24%, #f2ecf8 32%, #6b3fa0 46%, #c0662f 58%, #e8cfb4 64%, #4a4f5b 80%, #8e67bf) border-box; }
.aff-product__icon { background: var(--slate); color: #d8c6f0; border-radius: 0; clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); }
.aff-product__badge { background: var(--slate); }
.aff-cta { border-left-color: var(--accent); }

.prose blockquote { border-left-color: #b89ae0; }
.faq summary::after { color: var(--accent-2); }

/* Footer: deep slate with strata */
.site-footer { position: relative; background: var(--slate-2); background-image: repeating-linear-gradient(174deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 14px); color: #bdb8c8; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--bands); background-size: 340px 100%; }
.site-footer .brand__mark { color: #cdb4ee; }

/* ---------- Tools ---------- */
.aff-tool { border-radius: var(--radius); }
.aff-tool h3 { font-size: 23px; }
.agr-tool__intro { color: var(--ink-2); font-size: 16px; margin-bottom: 16px; }
.agr-source { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 14px 0 0; }
.aff-tool .agr-check { display: flex; align-items: center; gap: 10px; margin: -2px 0 14px; font-weight: 500; cursor: pointer; }
.aff-tool .agr-check input { width: 20px; min-height: 0; height: 20px; padding: 0; accent-color: var(--accent); flex: 0 0 auto; }

/* Timeline */
.agr-tl__total { margin: 0 0 12px; font-size: 17px; }
.prose .agr-tl__list { list-style: none; margin: 0; padding: 0; }
.prose .agr-tl__row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr) minmax(0, 1fr); grid-template-areas: "stage bar days" "check check check"; gap: 4px 14px; align-items: center; margin: 0; padding: 10px 0; border-top: 1px solid rgba(107, 63, 160, .16); }
.agr-tl__stage { grid-area: stage; font-weight: 700; line-height: 1.3; }
.agr-tl__stage b { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12.5px; }
.agr-tl__stage small, .agr-tl__days small { display: block; font-weight: 400; font-size: 13.5px; color: var(--muted); }
.agr-tl__bar { grid-area: bar; position: relative; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .7); overflow: hidden; }
.agr-tl__bar i { position: absolute; left: 0; top: 0; bottom: 0; background: #c9b2e6; border-radius: 6px; }
.agr-tl__bar em { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); border-radius: 6px; }
.agr-tl__days { grid-area: days; font-weight: 700; text-align: right; }
.agr-tl__check { grid-area: check; font-size: 14px; color: var(--ink-2); }
.agr-tl__row.is-skip { opacity: .6; }
.prose .agr-tl__notes { margin: 12px 0 0; padding-left: 1.1em; font-size: 15px; line-height: 1.5; }
.agr-tl__notes li { margin: 6px 0; }

/* Mohs scale */
.agr-mohs__svg svg { display: block; width: 100%; height: auto; }
.agr-mohs__step { cursor: pointer; outline: none; }
.agr-mohs__step .agr-mohs__bar { transition: opacity .15s; stroke: transparent; stroke-width: 3; }
.agr-mohs__step:hover .agr-mohs__bar { opacity: .85; }
.agr-mohs__step.is-active .agr-mohs__bar { opacity: 1; stroke: var(--ink); }
.agr-mohs__step:focus-visible .agr-mohs__bar { stroke: var(--accent); stroke-width: 4; stroke-dasharray: 6 4; }
.agr-mohs__n { font: 800 26px var(--font-display); fill: var(--ink); }
.agr-mohs__step.is-active .agr-mohs__n { fill: #fff; }
.agr-mohs__min { font: 600 14px var(--font-body); fill: var(--muted); }
.agr-mohs__pebble { fill: #fff; opacity: .75; }
.prose .agr-mohs__legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 14px; padding: 0; font-size: 13.5px; color: var(--ink-2); }
.prose .agr-mohs__legend li { display: flex; align-items: center; gap: 6px; margin: 0; }
.agr-mohs__legend li::before { content: ""; width: 14px; height: 6px; border-radius: 3px; }
.agr-mohs__legend .z-soft::before { background: #c0662f; }
.agr-mohs__legend .z-care::before { background: #d29b3e; }
.agr-mohs__legend .z-best::before { background: #6b3fa0; }
.agr-mohs__legend .z-slow::before { background: #4a4f5b; }
.agr-mohs__detail p { margin: 0 0 6px; font-size: 16px; }
.agr-mohs__detail p:last-child { margin: 0; }
.agr-mohs__title strong { font-size: 20px; }
.agr-mohs__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.agr-mohs__chip, .agr-gal__toggle { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink-2); font: 600 14.5px/1 var(--font-body); cursor: pointer; }
.agr-mohs__chip:hover { border-color: var(--accent); }
.agr-mohs__chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Grit chart */
.agr-grit__bar { display: flex; justify-content: space-between; height: 26px; padding: 0 12px; margin-bottom: 12px; border-radius: 999px; background: linear-gradient(90deg, #4a4f5b, #8e67bf 55%, #f2ecf8); font: 700 12.5px/26px var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.agr-grit__bar span:last-child { color: var(--slate); }
.prose .agr-grit__stages { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; }
.prose .agr-grit__stage { position: relative; margin: 0; padding: 14px 12px; background: var(--bg); border-radius: var(--radius-sm); border-top: 4px solid var(--accent); font-size: 14.5px; line-height: 1.4; }
.prose .agr-grit__stage--1 { border-top-color: #4a4f5b; }
.prose .agr-grit__stage--3 { border-top-color: #8e67bf; }
.prose .agr-grit__stage--4 { border-top-color: #c0662f; }
.agr-grit__num { position: absolute; top: 10px; right: 12px; font: 800 22px/1 var(--font-display); color: rgba(31, 34, 41, .18); }
.agr-grit__particles { display: block; width: 100%; height: auto; margin-bottom: 10px; }
.agr-grit__particles rect { fill: #e2dde9; }
.agr-grit__particles g { fill: #4a4f5b; }
.agr-grit__stage--4 .agr-grit__particles g { fill: #c0662f; }
.prose .agr-grit__stage h4 { margin: 0; font-size: 19px; }
.agr-grit__size { margin: 2px 0 8px; font-weight: 700; color: var(--accent); }
.agr-grit__stage dl { margin: 0; }
.agr-grit__stage dt { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 7px; }
.agr-grit__stage dd { margin: 1px 0 0; color: var(--ink); }
.agr-grit__stage dd[data-agr-dose] { font-weight: 800; color: var(--accent); font-size: 16px; }
.agr-grit__dose { margin-top: 14px; }
.aff-tool .agr-grit__dose select { max-width: 280px; }
.agr-grit__alt { font-size: 14.5px; color: var(--ink-2); margin: 8px 0 0; }

/* Before / after strip */
.agr-gal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.agr-gal__head h3 { margin: 0; }
.agr-gal__toggle[aria-pressed="true"] { background: #2f4c97; border-color: #2f4c97; color: #fff; }
.prose .agr-gal__strip { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; }
.prose .agr-gal__item { margin: 0; }
.agr-gal__item figure { margin: 0; padding: 10px; height: 100%; background: linear-gradient(#ebe8ef, #f7f6f9); border-radius: var(--radius-sm); }
.agr-gal__item svg { display: block; width: 100%; height: auto; }
.agr-gal__item figcaption { font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.agr-gal__item figcaption strong { display: block; font: 800 16px/1.2 var(--font-display); color: var(--ink); margin: 6px 0 2px; }
.agr-gal__days { display: block; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.agr-gal__wet { opacity: 0; transition: opacity .25s; }
.agr-gal .agr-gal__stone { transition: filter .25s; }
.agr-gal.is-wet .agr-gal__wet { opacity: 1; }
.agr-gal.is-wet .agr-gal__item:not(:last-child) .agr-gal__stone { filter: saturate(1.9) brightness(.93); }
.agr-gal__hint { font-size: 14.5px; margin: 12px 0 0; color: var(--ink-2); }

@media (max-width: 900px) {
	.prose .agr-grit__stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.prose .agr-gal__strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	body { font-size: 17px; }
	.aff-tool { padding: 16px; }
	.prose .agr-tl__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "stage days" "bar bar" "check check"; }
	.prose .agr-gal__strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.agr-mohs__min { display: none; }
}
@media (max-width: 420px) {
	.prose .agr-grit__stages { gap: 8px; }
	.prose .agr-grit__stage { padding: 12px 10px; font-size: 14px; }
	.agr-grit__particles { max-height: 64px; }
}
