/* Thrive — v1.0.0
 * Modern athletic/performance system.
 * Palette: ink #0a0a0a · bone #f2f2f2 · green (performance) · terracotta (tertiary)
 * Type: Archivo Black (display) · Hind (body)
 */

:root {
	--ink: #0a0a0a;
	--bone: #f2f2f2;
	--white: #ffffff;
	--accent: #2ea44f;            /* performance green */
	--accent-hover: #248a41;
	--tertiary: #c86a4a;          /* terracotta */
	--muted: #6b6b6b;
	--border: rgba(10,10,10,0.10);
	--radius: 2px;
	--maxw: 1400px;
	--font-display: "Archivo Black", ui-sans-serif, system-ui, sans-serif;
	--font-body: "Hind", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
	background: var(--white);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 0.95; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); line-height: 1.02; }
h3 { font-size: 1.25rem; }

.thrive-eyebrow {
	font-family: var(--font-body);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--muted);
	display: inline-block;
}
.thrive-eyebrow--light { color: rgba(255,255,255,0.7); }
.thrive-lede { font-size: 1.05rem; color: var(--muted); max-width: 60ch; }

/* ---------- Header ---------- */
.thrive-header { position: sticky; top: 0; z-index: 50; }
.thrive-announce {
	background: var(--accent);
	color: var(--white);
	padding: 10px;
	text-align: center;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}
.thrive-nav { background: var(--ink); color: var(--white); border-bottom: 1px solid rgba(255,255,255,0.05); }
.thrive-nav__inner {
	max-width: var(--maxw);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 16px 24px;
}
.thrive-logo { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.03em; text-transform: uppercase; text-decoration: none; color: var(--white); }
.thrive-logo--dark { color: var(--white); }
.thrive-menu { list-style: none; margin: 0; padding: 0; display: none; gap: 28px; }
@media (min-width: 1024px) { .thrive-menu { display: flex; } }
.thrive-menu a { text-decoration: none; color: rgba(255,255,255,0.8); font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.thrive-menu a:hover { color: var(--accent); }
.thrive-nav__right { display: flex; align-items: center; gap: 14px; }
.thrive-ship {
	display: none;
	align-items: center;
	gap: 8px;
	border: 1px solid rgba(255,255,255,0.15);
	background: rgba(255,255,255,0.05);
	padding: 6px 12px;
}
@media (min-width: 768px) { .thrive-ship { display: inline-flex; } }
.thrive-ship__label { font-size: 9px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.thrive-ship__code { font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }

/* ---------- Buttons ---------- */
.thrive-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 16px;
	background: var(--ink);
	color: var(--white);
	text-decoration: none;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	border: 1px solid transparent;
	border-radius: var(--radius);
	cursor: pointer;
	transition: background 120ms ease, color 120ms ease;
}
.thrive-btn:hover { background: var(--accent); color: var(--white); }
.thrive-btn--accent { background: var(--accent); }
.thrive-btn--accent:hover { background: var(--accent-hover); }
.thrive-btn--ghost { background: transparent; border-color: currentColor; color: var(--ink); }
.thrive-btn--ghost:hover { background: var(--ink); color: var(--white); }
.thrive-btn--lg { padding: 16px 24px; font-size: 12px; }
.thrive-btn--sm { padding: 8px 12px; font-size: 10px; }

/* ---------- Hero ---------- */
.thrive-hero { background: var(--white); padding: 80px 24px 100px; border-bottom: 1px solid var(--border); position: relative; isolation: isolate; background-size: cover; background-position: center; }
.thrive-hero--has-image { color: var(--white); }
.thrive-hero--has-image .thrive-hero__title,
.thrive-hero--has-image .thrive-hero__lede,
.thrive-hero--has-image .thrive-eyebrow { color: var(--white); }
.thrive-hero__inner { position: relative; }
.thrive-standard { position: relative; isolation: isolate; background-size: cover; background-position: center; }
.thrive-standard__inner { position: relative; }
.thrive-hero--sub { padding: 56px 24px; background: var(--bone); }
.thrive-hero__inner { max-width: var(--maxw); margin: 0 auto; }
.thrive-hero__title { margin-top: 16px; }
.thrive-hero__accent { color: var(--accent); }
.thrive-hero__lede { max-width: 60ch; color: var(--muted); font-size: 1.1rem; margin: 24px 0; }
.thrive-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Strip ---------- */
.thrive-strip {
	background: var(--ink);
	color: var(--white);
	display: flex;
	justify-content: space-between;
	gap: 24px;
	overflow: hidden;
	padding: 14px 24px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}
.thrive-strip span { opacity: 0.85; }

/* ---------- Sections ---------- */
.thrive-main { min-height: 40vh; }
.thrive-section { padding: 64px 24px; max-width: var(--maxw); margin: 0 auto; }
.thrive-section--tinted { background: var(--bone); max-width: none; }
.thrive-section--tinted > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.thrive-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.thrive-section__head a { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.thrive-section__head a:hover { color: var(--accent); }

/* ---------- Grids ---------- */
.thrive-grid { display: grid; gap: 24px; }
.thrive-grid--categories { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.thrive-grid--products { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.thrive-grid--posts { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.thrive-grid--three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Category tile */
.thrive-cat {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 220px;
	padding: 20px;
	background: var(--ink);
	background-size: cover;
	background-position: center;
	color: var(--white);
	text-decoration: none;
	overflow: hidden;
	transition: transform 200ms ease;
	isolation: isolate;
}
.thrive-cat:hover { transform: translateY(-4px); }
.thrive-cat--has-image { filter: grayscale(0.4); }
.thrive-cat--has-image:hover { filter: grayscale(0); }
.thrive-cat--device { background-color: var(--tertiary); }
.thrive-cat__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.75) 100%); z-index: -1; }
.thrive-cat__label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: -0.02em; font-size: 1.35rem; position: relative; }
.thrive-cat__count { font-size: 10px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.85; margin-top: 4px; position: relative; }

/* Taxonomy hero */
.thrive-tax-hero { position: relative; min-height: 320px; padding: 80px 24px; background-size: cover; background-position: center; color: var(--white); display: flex; align-items: flex-end; isolation: isolate; margin-bottom: 32px; }
.thrive-tax-hero__inner { position: relative; max-width: 1200px; margin: 0 auto; width: 100%; }
.thrive-tax-hero h1 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(2rem, 5vw, 4rem); margin: 8px 0 0; letter-spacing: -0.02em; }
.thrive-tax-hero__desc { max-width: 640px; margin-top: 12px; opacity: 0.9; }

/* Product card */
.thrive-card { background: var(--white); border-top: 2px solid var(--accent); border-bottom: 1px solid var(--border); display: flex; flex-direction: column; }
.thrive-card__media { display: block; aspect-ratio: 1/1; overflow: hidden; background: var(--bone); }
.thrive-card__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter 200ms ease, transform 300ms ease; }
.thrive-card:hover .thrive-card__media img { filter: grayscale(0); transform: scale(1.03); }
.thrive-card__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.thrive-card__title { font-size: 1rem; margin: 0; }
.thrive-card__title a { text-decoration: none; }
.thrive-card__tagline { font-size: 0.9rem; color: var(--muted); margin: 0; }
.thrive-card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 12px; }
.thrive-batch { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* Posts */
.thrive-post { display: flex; flex-direction: column; }
.thrive-post__media { display: block; aspect-ratio: 3/2; overflow: hidden; background: var(--bone); }
.thrive-post__media img { width: 100%; height: 100%; object-fit: cover; }
.thrive-post__body { padding: 16px 0; }
.thrive-post__title { font-size: 1.25rem; margin: 8px 0; }
.thrive-post__title a { text-decoration: none; }
.thrive-post__excerpt { color: var(--muted); }

/* Standard section */
.thrive-standard { background: var(--ink); color: var(--white); padding: 96px 24px; }
.thrive-standard__inner { max-width: 800px; margin: 0 auto; text-align: center; }
.thrive-standard h2 { color: var(--white); }
.thrive-standard p { color: rgba(255,255,255,0.75); font-size: 1.1rem; }

/* Shop layout */
.thrive-shop { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 900px) { .thrive-shop { grid-template-columns: 240px 1fr; } }
.thrive-filter { list-style: none; padding: 0; margin: 12px 0 32px; }
.thrive-filter li { border-bottom: 1px solid var(--border); }
.thrive-filter a { display: flex; justify-content: space-between; padding: 10px 0; text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.thrive-filter a:hover { color: var(--accent); }
.thrive-filter span { color: var(--muted); font-weight: 400; }

/* Product detail */
.thrive-product { max-width: var(--maxw); margin: 0 auto; padding: 48px 24px; display: grid; gap: 40px; }
@media (min-width: 900px) { .thrive-product { grid-template-columns: 1fr 1fr; align-items: flex-start; } }
.thrive-product__media { background: var(--bone); aspect-ratio: 1/1; overflow: hidden; }
.thrive-product__media img { width: 100%; height: 100%; object-fit: cover; }
.thrive-product__tagline { color: var(--muted); font-size: 1.1rem; margin: 0 0 24px; }
.thrive-product__cta { display: flex; align-items: center; gap: 20px; margin: 24px 0 32px; flex-wrap: wrap; }
.thrive-list { padding-left: 20px; margin: 0 0 24px; }
.thrive-table { width: 100%; border-collapse: collapse; margin: 0 0 24px; }
.thrive-table tr { border-bottom: 1px solid var(--border); }
.thrive-table td { padding: 10px 0; font-size: 0.95rem; }
.thrive-table td:last-child { text-align: right; color: var(--muted); font-weight: 600; }

/* Article */
.thrive-article { max-width: 780px; margin: 0 auto; padding: 64px 24px; }
.thrive-article__head { margin-bottom: 32px; }
.thrive-article__cover { margin: 0 0 32px; }
.thrive-article__body p { font-size: 1.05rem; line-height: 1.7; }

/* Tile (protocols) */
.thrive-tile { background: var(--bone); padding: 32px 24px; }
.thrive-tile p { color: var(--muted); }

/* Pagination */
.thrive-pagination { margin-top: 40px; display: flex; justify-content: center; }
.thrive-pagination .page-numbers { display: inline-flex; padding: 8px 12px; border: 1px solid var(--border); margin: 0 4px; text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.thrive-pagination .current { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* Footer */
.thrive-footer { background: var(--ink); color: var(--white); padding: 64px 24px 24px; }
.thrive-footer__inner { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 40px; }
@media (min-width: 768px) { .thrive-footer__inner { grid-template-columns: 1fr 2fr; } }
.thrive-footer__desc { color: rgba(255,255,255,0.7); max-width: 40ch; }
.thrive-footer__cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.thrive-footer__list { list-style: none; padding: 0; margin: 0; }
.thrive-footer__list a { text-decoration: none; color: rgba(255,255,255,0.75); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; display: block; padding: 6px 0; }
.thrive-footer__list a:hover { color: var(--accent); }
.thrive-footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 11px; color: rgba(255,255,255,0.55); letter-spacing: 0.06em; text-transform: uppercase; }

/* Search form */
.thrive-search { display: flex; gap: 8px; }
.thrive-search input { flex: 1; padding: 10px 12px; border: 1px solid var(--border); font-family: var(--font-body); }
.thrive-search button { padding: 10px 16px; background: var(--ink); color: var(--white); border: 0; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; font-size: 11px; cursor: pointer; }

.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }

.thrive-empty { padding: 3rem 1.5rem; text-align: center; border: 1px dashed rgba(0,0,0,0.15); background: #fff; }
.thrive-empty .thrive-lede { max-width: 640px; margin: 0 auto 1.5rem; color: #444; }

.thrive-grid--journal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .thrive-grid--journal { grid-template-columns: 1fr; } }
.thrive-journal-card { background: #fff; display: flex; flex-direction: column; border: 1px solid rgba(0,0,0,0.08); }
.thrive-journal-card__media { display: block; aspect-ratio: 16/10; background-size: cover; background-position: center; filter: grayscale(1); transition: filter .3s ease; }
.thrive-journal-card:hover .thrive-journal-card__media { filter: grayscale(0); }
.thrive-journal-card__body { padding: 1.25rem 1.25rem 1.5rem; }
.thrive-journal-card__body h3 { font-family: 'Archivo Black', sans-serif; font-size: 1.25rem; text-transform: uppercase; margin: .5rem 0 .75rem; line-height: 1.15; }
.thrive-journal-card__body h3 a { color: inherit; text-decoration: none; }
.thrive-journal-card__body h3 a:hover { color: var(--accent); }
.thrive-journal-card__body p { color: #444; font-size: .95rem; margin: 0; }
