/*
Theme Name: ThemeHarvest Almanac
Theme URI: https://themeharvest.co.in/
Author: ThemeHarvest
Author URI: https://themeharvest.co.in/
Description: An editorial "almanac" storefront theme for selling WHMCS modules and themes. Products are shown as seed packets, with a WHMCS-linked Buy button, live demo links, categories, reviews, FAQ and a quote form. Products are managed under "WHMCS Products" in the admin; text and links under Appearance → Customize → ThemeHarvest settings.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: themeharvest
Tags: e-commerce, two-columns, custom-menu, custom-logo, featured-images, editor-style
*/

/* ---------- Tokens ---------- */
:root {
	--ink: #0E2A1F;
	--ink-2: #16382B;
	--ink-3: #2C4F40;
	--paper: #F1F2EC;
	--paper-2: #E9EBE2;
	--card: #FBFBF7;
	--muted: #3D5246;
	--muted-2: #4F6458;
	--rule: #B9C2B6;
	--dot: #8A9488;
	--gold: #E8B84A;
	--gold-2: #F0C766;
	--red: #A8391F;
	--star: #B9860F;
	--on-ink: #F1F2EC;
	--on-ink-muted: #C6D1C9;
	--t-green: #A9C4A0;
	--t-gold: #E8B84A;
	--t-blue: #9CC3D5;
	--t-coral: #E7A08F;
	--t-purple: #C9B6E4;
	--t-pink: #EDB3C8;
	--serif: "Instrument Serif", Georgia, serif;
	--sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "DM Mono", ui-monospace, Menlo, monospace;
	--wrap: 1280px;
	--text: var(--ink);
	--btn-radius: 999px;
	--head-scale: 1;

	/* Shared page templates (assets/css/pages.css) */
	--thp-bg: var(--paper);
	--thp-card: var(--card);
	--thp-soft: var(--paper-2);
	--thp-text: var(--text);
	--thp-muted: var(--muted);
	--thp-line: var(--ink);
	--thp-primary: var(--ink);
	--thp-primary-text: var(--on-ink);
	--thp-accent: var(--gold);
	--thp-accent-text: var(--ink);
	--thp-highlight: var(--red);
	--thp-star: var(--star);
	--thp-head: var(--serif);
	--thp-head-weight: 400;
	--thp-head-tracking: -0.02em;
	--thp-label-font: var(--mono);
	--thp-radius: 12px;
	--thp-border-w: 1.5px;
	--thp-faq-size: 26px;
	--thp-faq-weight: 400;
	--thp-icon: var(--ink);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--red); }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
button, input, select, textarea { font: inherit; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}
.screen-reader-text:focus {
	clip: auto; width: auto; height: auto; padding: 10px 16px; background: var(--gold);
	z-index: 100; top: 8px; left: 8px;
}
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.serif { font-family: var(--serif); }
.mono { font-family: var(--mono); }
.eyebrow {
	font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em;
	text-transform: uppercase; color: var(--red); margin-bottom: 10px;
}
.h-section em, .feature__copy h2 em { font-style: italic; }
.h-section em { color: var(--red); }
.h-section {
	font-family: var(--serif); font-size: calc(clamp(42px, 5vw, 64px) * var(--head-scale));
	line-height: 1; letter-spacing: -0.02em;
}
.section { padding-top: 110px; }
.section-head {
	display: flex; flex-wrap: wrap; justify-content: space-between;
	align-items: flex-end; gap: 20px; margin-bottom: 40px;
}
.section-head p { max-width: 400px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	text-decoration: none; font-weight: 600; font-size: 15px;
	padding: 14px 26px; border-radius: var(--btn-radius); border: 1.5px solid var(--ink);
	transition: background .15s, color .15s; cursor: pointer; min-height: 44px;
}
.btn--ink, .btn--primary { background: var(--ink); color: var(--on-ink); }
.btn--primary:hover { background: var(--ink-2); color: var(--on-ink); }
.btn--secondary { background: transparent; color: var(--ink); }
.btn--secondary:hover { background: var(--paper-2); color: var(--ink); }
.btn--ink:hover { background: var(--ink-2); color: var(--on-ink); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--paper-2); color: var(--ink); }
.btn--gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-2); color: var(--ink); }
.btn--ghost-light { background: transparent; color: var(--on-ink); border-color: #5E7E6F; }
.btn--ghost-light:hover { background: var(--ink-2); color: var(--on-ink); }
.btn--lg { padding: 17px 30px; font-size: 16px; }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--block { width: 100%; justify-content: space-between; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--ink); color: #DCE5DF; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 9px; padding-bottom: 9px; }
.topbar a { color: #DCE5DF; }
.topbar__dot { color: var(--gold); }
.topbar__right { display: flex; gap: 22px; }

.site-header { background: var(--paper); border-bottom: 1px solid var(--ink); position: sticky; top: 0; z-index: 30; }
.admin-bar .site-header { top: 32px; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 36px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 42px; height: 42px; flex: 0 0 auto; color: var(--ink); }
.brand img { height: 42px; width: auto; max-width: 180px; flex: 0 0 auto; object-fit: contain; }
.brand__name { display: block; font-family: var(--serif); font-size: 30px; line-height: 0.9; }
.brand__tag { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--muted-2); }
.main-nav { display: flex; flex-wrap: wrap; gap: 6px 30px; font-weight: 500; font-size: 15px; flex: 1 1 auto; justify-content: center; }
.main-nav a { text-decoration: none; padding: 8px 0; }
.main-nav a[aria-current="page"] { color: var(--red); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.nav-toggle {
	display: none; background: transparent; border: 1.5px solid var(--ink); border-radius: 999px;
	width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
}

/* ---------- Hero ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero__copy { flex: 1 1 540px; min-width: 0; }
.pill-label {
	display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px;
	letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--ink);
	border-radius: 999px; padding: 6px 14px; margin-bottom: 28px;
}
.pill-label i { width: 7px; height: 7px; border-radius: 50%; background: #2F9E6B; display: inline-block; }
.hero h1 { font-family: var(--serif); font-size: calc(clamp(56px, 7.4vw, 96px) * var(--head-scale)); line-height: 0.92; letter-spacing: -0.03em; margin-bottom: 28px; }
.hero h1 em { color: var(--red); }
.hero__text { font-size: 19px; color: var(--muted); margin-bottom: 36px; max-width: 540px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; font-size: 14px; color: var(--muted); }
.hero__proof strong { color: var(--ink); }
.avatars { display: flex; }
.avatars span { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--paper); margin-left: -10px; }
.avatars span:first-child { margin-left: 0; background: var(--t-gold); }
.avatars span:nth-child(2) { background: var(--t-green); }
.avatars span:nth-child(3) { background: var(--t-blue); }
.stars { color: var(--star); letter-spacing: 1px; }

.hero__art { flex: 1 1 460px; min-width: 0; position: relative; height: 540px; }
.mini-packet {
	position: absolute; width: 250px; background: var(--card); border: 1.5px solid var(--ink);
	border-radius: 8px; box-shadow: 0 20px 40px rgba(14,42,31,0.12); overflow: hidden;
}
.mini-packet__band {
	padding: 18px; border-bottom: 1.5px solid var(--ink); height: 210px;
	display: flex; flex-direction: column; justify-content: space-between;
}
.mini-packet__band b { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 0.95; }
.mini-packet__foot { padding: 14px 18px; font-family: var(--mono); font-size: 11px; }
.mini-packet--l { left: 4%; top: 70px; transform: rotate(-9deg); }
.mini-packet--r { right: 2%; top: 40px; transform: rotate(8deg); }
.hero-packet {
	position: absolute; left: 50%; margin-left: -150px; top: 150px; width: 300px; background: var(--card);
	border: 2px solid var(--ink); border-radius: 8px; box-shadow: 0 30px 60px rgba(14,42,31,0.22); overflow: hidden;
}
.hero-packet__band { background: var(--gold); padding: 22px; border-bottom: 2px solid var(--ink); position: relative; }
.hero-packet__band svg { display: block; margin: 10px auto 6px; }
.hero-packet__band b { display: block; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 0.92; }
.hero-packet__stamp {
	position: absolute; right: -14px; bottom: -40px; width: 96px; height: 96px; border-radius: 50%;
	background: var(--ink); color: var(--on-ink); display: flex; flex-direction: column; align-items: center;
	justify-content: center; transform: rotate(-12deg); border: 3px solid var(--card);
	font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
}
.hero-packet__stamp span { font-family: var(--serif); font-size: 26px; letter-spacing: 0; line-height: 1; }
.hero-packet__rows { padding: 16px 22px; font-size: 13px; }

/* ---------- Spec rows (used in packets) ---------- */
.spec { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px dotted var(--dot); font-size: 14px; }
.spec:first-child { border-top: 1px solid var(--ink); }
.spec span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.spec strong { text-align: right; }

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--paper-2); }
.trust .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.trust__item { padding: 26px 24px; display: flex; gap: 14px; align-items: center; border-left: 1px solid var(--rule); }
.trust__item:first-child { border-left: 0; padding-left: 0; }
.trust__item b { font-family: var(--serif); font-weight: 400; font-size: 48px; line-height: 1; }
.trust__item span { font-size: 14px; color: var(--muted); line-height: 1.35; max-width: 140px; }

/* ---------- Categories ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.cat {
	border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 26px 22px;
	text-decoration: none; display: flex; flex-direction: column; gap: 40px; transition: background .15s;
}
.cat:hover { background: var(--card); color: var(--ink); }
.cat__top { display: flex; justify-content: space-between; align-items: center; }
.cat__mark {
	width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink);
	display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px; font-weight: 500;
}
.cat__count { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.cat__name { font-family: var(--serif); font-size: 28px; line-height: 1; }

.tone-green { background: var(--t-green); }
.tone-gold { background: var(--t-gold); }
.tone-blue { background: var(--t-blue); }
.tone-coral { background: var(--t-coral); }
.tone-purple { background: var(--t-purple); }
.tone-pink { background: var(--t-pink); }

/* ---------- Filter tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border: 1.5px solid var(--ink); border-radius: 999px; padding: 4px; font-size: 14px; font-weight: 600; }
.tabs a { text-decoration: none; padding: 8px 18px; border-radius: 999px; }
.tabs a.is-active { background: var(--ink); color: var(--on-ink); }

/* ---------- Seed packet card ---------- */
.packets { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.packet {
	background: var(--card); border: 1.5px solid var(--ink); border-radius: 8px; overflow: hidden;
	display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.packet:hover { transform: translateY(-6px); box-shadow: 0 22px 40px rgba(14,42,31,0.14); }
.packet__band {
	border-bottom: 1.5px solid var(--ink); padding: 20px 22px 24px; position: relative; min-height: 150px;
	display: flex; flex-direction: column; justify-content: space-between;
}
.packet__meta { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.packet__name { font-family: var(--serif); font-size: 36px; line-height: 0.95; margin-top: 18px; max-width: calc(100% - 96px); }
.packet__name a { text-decoration: none; }
.packet__badge {
	align-self: flex-start; margin-top: 14px; margin-bottom: -6px;
	background: var(--ink); color: var(--on-ink); font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
	padding: 3px 9px; border-radius: 999px; text-transform: uppercase;
}
.stamp {
	position: absolute; right: 18px; bottom: -30px; width: 84px; height: 84px; border-radius: 50%;
	background: var(--ink); color: var(--on-ink); display: flex; flex-direction: column; align-items: center;
	justify-content: center; transform: rotate(-10deg); border: 3px solid var(--card); text-align: center;
}
.stamp b { font-weight: 700; font-size: 17px; line-height: 1.1; }
.stamp s { font-size: 11px; opacity: .75; }
.stamp span { font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.packet__body { padding: 22px 22px 8px; flex: 1 1 auto; }
.packet__desc { font-size: 15px; color: var(--muted); margin-bottom: 16px; max-width: 210px; }
.packet__foot { border-top: 1.5px dashed var(--ink); padding: 16px 22px 20px; display: flex; gap: 10px; }
.packet__foot .btn { flex: 1 1 0; padding: 11px; font-size: 14px; }
.more-line { text-align: center; margin-top: 40px; color: var(--muted); }
.more-line a { font-weight: 600; }

/* ---------- Featured theme ---------- */
.feature { background: var(--ink); color: var(--on-ink); border-radius: 16px; overflow: hidden; display: flex; flex-wrap: wrap; }
.feature__copy { flex: 1 1 420px; min-width: 0; padding: 56px 52px; }
.feature__copy .eyebrow { color: var(--gold); }
.feature__copy h2 { font-family: var(--serif); font-size: clamp(40px, 4.4vw, 56px); line-height: 1; letter-spacing: -0.02em; margin-bottom: 18px; }
.feature__copy h2 em { color: var(--gold); }
.feature__copy p { color: var(--on-ink-muted); font-size: 17px; margin-bottom: 28px; }
.ticks { list-style: none; padding: 0; margin: 0 0 34px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; font-size: 15px; }
.ticks li::before { content: "✓ "; }
.feature__ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.feature__ctas a.link-light { color: var(--on-ink); text-decoration: none; font-weight: 600; padding: 14px 8px; }
.feature__shot { flex: 1 1 480px; min-width: 0; background: var(--ink-2); padding: 44px 0 0 44px; display: flex; align-items: flex-end; }
.feature__shot img { border-radius: 12px 0 0 0; width: 100%; }
.mock { background: var(--card); color: var(--ink); border-radius: 12px 0 0 0; width: 100%; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.3); }
.mock__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid #DDE1D6; }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: #DDE1D6; }
.mock__bar span { margin-left: 12px; font-family: var(--mono); font-size: 11px; color: var(--muted-2); }
.mock__body { display: flex; }
.mock__side { flex: 0 0 150px; border-right: 1px solid #DDE1D6; padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.mock__side b { font-family: var(--serif); font-weight: 400; font-size: 20px; margin: 0 8px 12px; }
.mock__side span { padding: 8px 10px; border-radius: 6px; }
.mock__side span.on { background: var(--ink); color: var(--on-ink); }
.mock__main { flex: 1 1 auto; padding: 20px; min-width: 0; }
.mock__hello { font-family: var(--serif); font-size: 26px; margin-bottom: 14px; }
.mock__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.mock__stats div { background: var(--paper-2); border-radius: 8px; padding: 12px; font-size: 11px; color: var(--muted-2); }
.mock__stats div.due { background: #F7E7BE; }
.mock__stats b { display: block; font-size: 20px; color: var(--ink); }
.mock__rows { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.mock__rows div { display: flex; justify-content: space-between; border: 1px solid #DDE1D6; border-radius: 8px; padding: 10px 12px; }
.ok { color: #2F7D55; font-weight: 600; }
.warn { color: #9A6A00; font-weight: 600; }

/* ---------- Custom builds stages ---------- */
.split-head { display: flex; flex-wrap: wrap; gap: 24px 48px; margin-bottom: 44px; align-items: flex-end; }
.split-head > div { flex: 1 1 520px; }
.split-head p { flex: 1 1 340px; color: var(--muted); font-size: 17px; }
.stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border: 1.5px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--card); }
.stage { padding: 30px 28px; border-right: 1px solid var(--ink); }
.stage:last-child { border-right: 0; background: var(--gold); }
.stage small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; margin: 18px 0 8px; color: var(--red); }
.stage:last-child small { color: var(--ink); }
.stage h3 { font-family: var(--serif); font-size: 30px; line-height: 1; margin-bottom: 8px; }
.stage p { font-size: 15px; color: var(--muted); }
.stage:last-child p { color: var(--ink); }
.after-stages { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 30px; font-size: 14px; color: var(--muted); }

/* ---------- Quote block ---------- */
.quote-block { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; margin-top: 56px; scroll-margin-top: 120px; }
.quote-block__copy { flex: 1 1 340px; }
.quote-block__copy h3 { font-family: var(--serif); font-size: 44px; line-height: 1; margin-bottom: 12px; }
.quote-block__copy p { color: var(--muted); }
.quote-block .th-form { flex: 1 1 480px; }

/* ---------- Forms ---------- */
.th-form { background: var(--card); border: 1.5px solid var(--ink); border-radius: 12px; padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.th-form__row { display: flex; flex-wrap: wrap; gap: 14px; }
.th-form__row .th-form__field { flex: 1 1 200px; }
.th-form__field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.th-form__field input, .th-form__field select, .th-form__field textarea {
	background: #FFFFFF; color: var(--ink); border: 1.5px solid var(--rule); border-radius: 10px; padding: 12px 14px; font-weight: 400;
}
.th-form__field textarea { resize: vertical; }
.th-form__field input:focus, .th-form__field select:focus, .th-form__field textarea:focus { border-color: var(--ink); outline: none; }
.th-form__submit { background: var(--ink); color: var(--on-ink); border: 0; border-radius: 999px; padding: 15px; font-weight: 600; font-size: 16px; cursor: pointer; }
.th-form__submit:hover { background: var(--ink-2); }
.th-form__hp { position: absolute; left: -9999px; }
.th-form__notice { background: #DCEFE3; border-radius: 8px; padding: 12px 14px; font-size: 14px; }
.th-form__notice--error { background: #F7DCD5; }

/* ---------- Reviews ---------- */
.reviews { display: flex; flex-wrap: wrap; gap: 48px; }
.reviews__summary { flex: 1 1 300px; }
.reviews__score { font-family: var(--serif); font-size: 88px; line-height: 0.9; margin-top: 24px; }
.reviews__summary .stars { font-size: 22px; letter-spacing: 3px; margin: 6px 0; display: block; }
.reviews__summary small { color: var(--muted); font-size: 15px; }
.reviews__grid { flex: 2 1 640px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.review { margin: 0; background: var(--card); border: 1.5px solid var(--ink); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.review blockquote { margin: 0; font-family: var(--serif); font-size: 26px; line-height: 1.2; flex: 1 1 auto; }
.review figcaption { display: flex; gap: 12px; align-items: center; border-top: 1px dotted var(--dot); padding-top: 16px; }
.review figcaption i { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--ink); flex: 0 0 auto; }
.review figcaption b { display: block; font-weight: 600; }
.review figcaption small { font-family: var(--mono); font-size: 11px; color: var(--muted-2); text-transform: uppercase; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-wrap: wrap; gap: 48px; }
.faq__intro { flex: 1 1 320px; }
.faq__intro p { color: var(--muted); margin: 18px 0; }
.faq__list { flex: 2 1 600px; border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--ink); padding: 22px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-family: var(--serif); font-size: 28px; line-height: 1.15; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 22px; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 12px; }

/* ---------- Big CTA + footer ---------- */
.site-footer { margin-top: 120px; background: var(--ink); color: var(--on-ink); }
.cta-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px; padding-top: 96px; padding-bottom: 72px; border-bottom: 1px solid var(--ink-3); }
.cta-band h2 { font-family: var(--serif); font-size: clamp(56px, 8vw, 104px); line-height: 0.9; letter-spacing: -0.03em; flex: 1 1 620px; }
.cta-band h2 em { color: var(--gold); display: block; }
.cta-band__actions { flex: 0 1 360px; display: flex; flex-direction: column; gap: 12px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 56px; }
.footer-about { flex: 1 1 320px; }
.footer-about b { display: block; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; margin-bottom: 12px; }
.footer-about p { color: var(--on-ink-muted); margin-bottom: 22px; max-width: 320px; font-size: 15px; }
.footer-col { flex: 1 1 150px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col h3 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--gold); text-transform: uppercase; }
.footer-col a, .footer-legal a { color: var(--on-ink-muted); text-decoration: none; }
.footer-col a:hover, .footer-legal a:hover { color: #FFFFFF; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding: 22px 0 36px; border-top: 1px solid var(--ink-3); font-family: var(--mono); font-size: 12px; color: var(--on-ink-muted); text-transform: uppercase; }
.footer-legal nav { display: flex; gap: 18px; }
.th-subscribe { display: flex; flex-wrap: wrap; gap: 8px; max-width: 380px; }
.th-subscribe input { flex: 1 1 180px; min-width: 0; background: var(--ink-2); border: 1px solid var(--ink-3); color: var(--on-ink); border-radius: 999px; padding: 12px 16px; font-size: 14px; }
.th-subscribe button { background: var(--gold); color: var(--ink); border: 0; border-radius: 999px; padding: 12px 18px; font-weight: 700; font-size: 14px; cursor: pointer; }
.th-subscribe__ok { width: 100%; font-size: 13px; color: var(--gold); }

/* ---------- Product page ---------- */
.crumbs { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 32px; color: var(--muted-2); }
.crumbs a { text-decoration: none; color: var(--muted-2); }
.product-hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 28px; padding-bottom: 72px; }
.product-hero__main { flex: 1 1 600px; min-width: 0; }
.product-hero__main h1 { font-family: var(--serif); font-size: calc(clamp(52px, 6.5vw, 88px) * var(--head-scale)); line-height: 0.92; letter-spacing: -0.03em; margin: 12px 0 20px; }
.product-hero__lede { font-size: 19px; color: var(--muted); max-width: 640px; margin-bottom: 28px; }
.product-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip { border: 1px solid var(--ink); border-radius: 999px; padding: 5px 12px; font-family: var(--mono); font-size: 12px; }
.product-shot { border: 1.5px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--card); }
.product-shot__placeholder { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 64px; }
.buy-card { flex: 0 1 380px; position: sticky; top: 110px; background: var(--card); border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; }
.buy-card__band { padding: 22px 24px; border-bottom: 2px solid var(--ink); }
.buy-card__price { font-family: var(--serif); font-size: 64px; line-height: 1; }
.buy-card__price s { font-size: 28px; opacity: .55; margin-left: 8px; }
.buy-card__period { font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
.buy-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 12px; }
.buy-card__body .btn { width: 100%; }
.buy-card__specs { margin-top: 8px; }
.buy-card__note { font-size: 13px; color: var(--muted); text-align: center; }
.product-body { display: flex; flex-wrap: wrap; gap: 48px; }
.product-body__content { flex: 2 1 600px; min-width: 0; }
.product-body__side { flex: 1 1 320px; }
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.features li { padding: 18px 20px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); display: flex; gap: 12px; }
.features li::before { content: "✦"; color: var(--red); }
.entry { font-size: 17px; line-height: 1.7; }
.entry > * + * { margin-top: 1.1em; }
.entry h2 { font-family: var(--serif); font-size: 40px; line-height: 1.05; margin-top: 1.4em; }
.entry h3 { font-family: var(--serif); font-size: 30px; margin-top: 1.2em; }
.entry img { border-radius: 10px; border: 1px solid var(--rule); }
.entry a { color: var(--red); }
.entry blockquote { margin-left: 0; padding-left: 20px; border-left: 3px solid var(--gold); font-family: var(--serif); font-size: 24px; }
.entry pre, .entry code { font-family: var(--mono); font-size: 14px; background: var(--paper-2); border-radius: 6px; }
.entry pre { padding: 16px; overflow-x: auto; }
.changelog { border-top: 1.5px solid var(--ink); }
.changelog div { display: grid; grid-template-columns: 90px 1fr; gap: 6px 16px; padding: 14px 0; border-bottom: 1px dotted var(--dot); }
.changelog b { font-family: var(--mono); font-size: 13px; }
.changelog small { font-family: var(--mono); font-size: 11px; color: var(--muted-2); grid-column: 1; }
.changelog p { grid-column: 2; grid-row: 1 / span 2; font-size: 15px; }
.side-box { border: 1.5px solid var(--ink); border-radius: 12px; padding: 24px; background: var(--card); margin-bottom: 20px; }
.side-box h3 { font-family: var(--serif); font-size: 30px; margin-bottom: 14px; }

/* ---------- Archive / blog ---------- */
.page-head { padding-top: 64px; padding-bottom: 40px; border-bottom: 1px solid var(--ink); margin-bottom: 48px; }
.page-head h1 { font-family: var(--serif); font-size: calc(clamp(52px, 6.5vw, 88px) * var(--head-scale)); line-height: 0.95; letter-spacing: -0.03em; }
.page-head p { color: var(--muted); margin-top: 14px; font-size: 18px; max-width: 640px; }
.archive-tabs { margin-top: 28px; }
.empty-note { border: 1.5px dashed var(--ink); border-radius: 12px; padding: 40px; text-align: center; }
.posts { border-top: 1.5px solid var(--ink); }
.post-row { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 26px 0; border-bottom: 1px solid var(--ink); text-decoration: none; }
.post-row small { font-family: var(--mono); font-size: 12px; flex: 0 0 140px; padding-top: 10px; text-transform: uppercase; }
.post-row h2 { font-family: var(--serif); font-size: 36px; line-height: 1.1; flex: 1 1 400px; }
.post-row:hover h2 { color: var(--red); }
.pagination { display: flex; gap: 8px; margin-top: 40px; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--ink); border-radius: 999px; text-decoration: none; }
.pagination .current { background: var(--ink); color: var(--on-ink); }
.single-wrap { max-width: 780px; margin: 0 auto; padding: 64px 28px 0; }
.single-wrap h1 { font-family: var(--serif); font-size: clamp(44px, 6vw, 72px); line-height: 1; letter-spacing: -0.02em; margin: 12px 0 28px; }
.single-wrap .featured { margin-bottom: 32px; border-radius: 12px; overflow: hidden; }

/* ---------- Options additions ---------- */
.hero__image { flex: 1 1 460px; min-width: 0; }
.hero__image img { width: 100%; border-radius: 12px; border: 1.5px solid var(--ink); box-shadow: 0 30px 60px rgba(14,42,31,0.16); }
.hero__clients { display: flex; align-items: center; gap: 10px; }
.site-footer--no-cta .footer-cols { padding-top: 64px; }
.site-footer .thv-social { --thp-social-color: var(--on-ink); --thp-social-line: var(--ink-3); }
.site-footer .thv-social a:hover { color: var(--ink); }
.thp-hero { border-bottom-color: var(--ink); }
.thp-full { min-height: 40vh; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.nav-toggle { display: inline-flex; }
	.main-nav { display: none; order: 3; flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 0; border-top: 1px solid var(--ink); padding-top: 8px; }
	.main-nav a { padding: 12px 0; width: 100%; border-bottom: 1px dotted var(--dot); }
	.site-header.is-open .main-nav { display: flex; }
	.site-header .wrap { justify-content: space-between; }
	.header-actions .btn--line { display: none; }
	.hero__art { flex-basis: 100%; }
	.buy-card { position: static; flex-basis: 100%; }
}
@media (max-width: 640px) {
	.wrap { padding: 0 16px; }
	.section { padding-top: 80px; }
	.topbar__right { display: none; }
	.header-actions .btn--ink { display: none; }
	.hero { padding-top: 48px; }
	.hero__art { height: 480px; }
	.mini-packet { width: 170px; }
	.mini-packet__band { height: 170px; }
	.mini-packet__band b { font-size: 22px; }
	.mini-packet--l { left: 0; top: 40px; }
	.mini-packet--r { right: 0; top: 20px; }
	.hero-packet { width: 230px; margin-left: -115px; top: 80px; }
	.hero-packet__band { padding: 18px; }
	.hero-packet__band svg { width: 76px; height: 96px; }
	.hero-packet__band b { font-size: 32px; }
	.hero-packet__stamp { width: 80px; height: 80px; right: -10px; bottom: -32px; }
	.cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cat { gap: 24px; padding: 20px 16px; }
	.cat__name { font-size: 24px; }
	.trust__item { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
	.stage { border-right: 0; border-bottom: 1px solid var(--ink); }
	.feature__copy { padding: 40px 24px; }
	.feature__shot { padding: 28px 0 0 24px; }
	.mock__side { display: none; }
	.th-form { padding: 22px; }
	.packets { grid-template-columns: 1fr; }
	.admin-bar .site-header { top: 0; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
