/**
 * Byebye.Works clarity layer.
 *
 * The atmosphere remains dark and ceremonial, but reading and purchasing
 * surfaces use solid contrast, familiar UI typography, and visible controls.
 */

:root {
	--text-main: #f4f1eb;
	--text-muted: #c9c4b9;
	--text-faint: #918b81;
	--border-subtle: #715f3f;
	--border-fainter: #3f3527;
	--surface-base: #0d0d0c;
	--surface-raised: #141411;
	--surface-input: #181815;
	--font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
	--font-ui: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
	--font-script: system-ui, sans-serif;
	--font-body-size: 1.035rem;
	--font-body-weight: 450;
	--font-body-leading: 1.7;
	--font-ui-weight: 540;
	--font-ui-strong: 680;
}

html {
	font-size: 16px;
}

body {
	color: var(--text-main);
	font-family: var(--font-body);
	font-size: var(--font-body-size);
	font-weight: var(--font-body-weight);
	line-height: var(--font-body-leading);
	-webkit-font-smoothing: auto;
	font-optical-sizing: auto;
	font-synthesis: none;
	text-rendering: optimizeLegibility;
}

p,
li,
dd,
dt {
	font-family: var(--font-body);
}

label,
input,
select,
textarea,
button {
	font-family: var(--font-ui);
}

h1,
h2,
h3,
h4,
h5,
h6,
.site-logo,
.footer-brand-name {
	font-weight: 600;
}

main p,
main li {
	max-width: 72ch;
}

a {
	text-underline-offset: 0.18em;
	text-decoration-thickness: 0.08em;
}

:focus-visible {
	outline: 3px solid var(--arcane-cyan);
	outline-offset: 3px;
}

/* Navigation remains restrained, but never faint. */
.site-header {
	background: rgba(5, 5, 5, 0.98);
	border-bottom-color: var(--border-fainter);
}

.site-header.is-transparent {
	background: linear-gradient(to bottom, rgba(5, 5, 5, 0.98), rgba(5, 5, 5, 0.76) 72%, transparent);
}

.primary-nav a,
.cart-link,
.locale-toggle,
.locale-group-title,
.locale-option,
.nav-toggle {
	color: var(--text-muted);
	font-family: var(--font-ui);
	font-weight: var(--font-ui-strong);
	letter-spacing: 0.12em;
}

.primary-nav a,
.cart-link,
.locale-toggle {
	font-size: 0.84rem;
}

.locale-toggle,
.nav-toggle {
	min-height: 42px;
	border-color: var(--border-subtle);
}

.locale-menu {
	width: 250px;
	max-height: min(72vh, 620px);
	overflow-y: auto;
	overscroll-behavior: contain;
	background: #10100e;
	border: 1px solid var(--border-subtle);
	box-shadow: 0 16px 44px rgba(0, 0, 0, 0.72);
}

.locale-option {
	min-height: 44px;
}

html:lang(ja) h1,
html:lang(ja) h2,
html:lang(ja) h3,
html:lang(ja) h4,
html:lang(th) h1,
html:lang(th) h2,
html:lang(th) h3,
html:lang(th) h4,
html:lang(km) h1,
html:lang(km) h2,
html:lang(km) h3,
html:lang(km) h4,
html:lang(lo) h1,
html:lang(lo) h2,
html:lang(lo) h3,
html:lang(lo) h4,
html:lang(my) h1,
html:lang(my) h2,
html:lang(my) h3,
html:lang(my) h4,
html:lang(ja) .section-eyebrow,
html:lang(th) .section-eyebrow,
html:lang(km) .section-eyebrow,
html:lang(lo) .section-eyebrow,
html:lang(my) .section-eyebrow {
	font-family: var(--font-script);
	letter-spacing: 0.03em;
	text-transform: none;
}

.header-search input[type="search"] {
	color: var(--text-main);
	font-family: var(--font-ui);
	font-size: 0.94rem;
	font-weight: var(--font-ui-weight);
	border-bottom-color: var(--border-subtle);
}

.header-search input[type="search"]::placeholder {
	color: var(--text-faint);
	font-style: normal;
	opacity: 1;
}

/* Body copy: italics are accents, not the default reading mode. */
.hero-subtitle,
.pain-overlay-subtitle,
.pain-desc,
.altar-desc,
.footer-text,
.narrative-subtitle,
.archive-subtitle,
.archive-desc,
.footer-brand-text,
.covenant-grant-text,
.covenant-grant-fine,
.secure-note,
.checkout-note,
.woocommerce-privacy-policy-text p,
.wc_payment_method .payment_box,
.antisha-woo-wrap input::placeholder,
.antisha-woo-wrap textarea::placeholder {
	color: var(--text-muted);
	font-style: normal;
	font-weight: var(--font-body-weight);
}

.pain-desc,
.material-desc,
.archive-desc,
.related-card-stock,
.footer-col a,
.compliance-text,
.footer-base,
.secure-note {
	font-size: 0.94rem;
	line-height: 1.65;
}

.footer-col a,
.footer-brand-text,
.footer-base,
.compliance-title,
.compliance-text {
	color: var(--text-muted);
}

.site-footer {
	background: #080807;
	border-top-color: var(--border-subtle);
}

/* Primary actions are solid, familiar, and immediately identifiable. */
.btn-ritual,
.btn-acquire,
.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button,
.woocommerce #place_order,
.woocommerce button.button.alt,
.woocommerce a.button.alt {
	min-height: 52px;
	background: var(--luminous-gold);
	border: 2px solid var(--luminous-gold);
	color: #090806;
	font-family: var(--font-ui);
	font-size: 0.94rem;
	font-weight: var(--font-ui-strong);
	line-height: 1.25;
	letter-spacing: 0.08em;
	text-shadow: none;
	box-shadow: 0 7px 22px rgba(0, 0, 0, 0.35);
}

.btn-ritual:hover,
.btn-acquire:hover:not(:disabled),
.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button:hover,
.woocommerce #place_order:hover {
	background: #f4d79c;
	border-color: #f4d79c;
	color: #050504;
	box-shadow: 0 0 0 3px rgba(229, 192, 123, 0.2), 0 10px 28px rgba(0, 0, 0, 0.45);
}

.btn-quiet {
	min-height: 46px;
	background: var(--surface-raised);
	border: 1px solid var(--border-subtle);
	color: var(--text-main);
	font-family: var(--font-ui);
	font-weight: var(--font-ui-strong);
	letter-spacing: 0.08em;
}

.btn-quiet:hover {
	background: #211c14;
	color: #f4d79c;
}

/* Give repeated content blocks enough separation to be scanned quickly. */
.pain-card,
.archive-card,
.related-card,
.standard-item,
.good-box,
.bad-box,
.faq-list details {
	border-color: var(--border-fainter);
}

.faq-list summary {
	color: var(--text-main);
	font-weight: 650;
}

.faq-list details p,
.standard-item p {
	color: var(--text-muted);
}

/* WooCommerce purchase surfaces. */
.antisha-woo-wrap {
	max-width: var(--site-content-max);
}

.checkout-title {
	color: var(--text-main);
	font-weight: 600;
	text-shadow: none;
}

.woocommerce-billing-fields > h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields > h3,
#order_review_heading,
.antisha-woo-wrap .cart_totals > h2 {
	color: var(--text-main);
	font-family: var(--font-ui);
	font-size: 1.05rem;
	font-weight: var(--font-ui-strong);
	line-height: 1.4;
	letter-spacing: 0.08em;
	border-left-width: 4px;
}

form.woocommerce-checkout #order_review,
.woocommerce .cart_totals table,
.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.lost_reset_password {
	background: var(--surface-base);
	border: 2px solid var(--border-subtle);
	box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.lost_reset_password {
	max-width: 680px;
	margin-inline: auto;
	padding: 1.75rem;
}

form.woocommerce-checkout #order_review {
	padding: 1.75rem;
}

.woocommerce form .form-row label,
.antisha-woo-wrap label {
	color: var(--text-main);
	font-family: var(--font-ui);
	font-size: 0.86rem;
	font-weight: var(--font-ui-strong);
	line-height: 1.45;
	letter-spacing: 0.045em;
	margin-bottom: 0.5rem;
}

.woocommerce form .form-row .required {
	color: #f0c879;
}

.woocommerce .input-text,
.antisha-woo-wrap input[type="text"],
.antisha-woo-wrap input[type="email"],
.antisha-woo-wrap input[type="tel"],
.antisha-woo-wrap input[type="password"],
.antisha-woo-wrap input[type="number"],
.antisha-woo-wrap textarea,
.antisha-woo-wrap select {
	min-height: 50px;
	background: var(--surface-input);
	border: 2px solid var(--border-subtle);
	border-radius: 2px;
	color: var(--text-main);
	font-family: var(--font-ui);
	font-size: 1rem;
	font-weight: var(--font-ui-weight);
	line-height: 1.45;
	padding: 0.78rem 0.9rem;
}

.antisha-woo-wrap textarea {
	min-height: 112px;
	resize: vertical;
}

.woocommerce .input-text:focus,
.antisha-woo-wrap input:focus,
.antisha-woo-wrap textarea:focus,
.antisha-woo-wrap select:focus {
	outline: none;
	background: #1c1c18;
	border-color: var(--luminous-gold);
	box-shadow: 0 0 0 3px rgba(229, 192, 123, 0.18);
}

.antisha-woo-wrap input::placeholder,
.antisha-woo-wrap textarea::placeholder {
	color: #aaa399;
	opacity: 1;
}

.antisha-woo-wrap input:-webkit-autofill,
.antisha-woo-wrap input:-webkit-autofill:hover,
.antisha-woo-wrap input:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--text-main);
	caret-color: var(--text-main);
	box-shadow: 0 0 0 1000px var(--surface-input) inset;
	transition: background-color 9999s ease-out 0s;
}

.select2-container--default .select2-selection--single {
	min-height: 50px;
	background: var(--surface-input);
	border: 2px solid var(--border-subtle);
	border-radius: 2px;
	padding: 0 2.5rem 0 0.9rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	color: var(--text-main);
	font-family: var(--font-ui);
	font-size: 1rem;
	font-weight: var(--font-ui-weight);
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
	color: #aaa399;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
	border-color: var(--luminous-gold);
	box-shadow: 0 0 0 3px rgba(229, 192, 123, 0.18);
}

.select2-dropdown {
	background: #171713;
	border: 2px solid var(--luminous-gold);
}

.select2-container--default .select2-results__option {
	color: var(--text-main);
	font-family: var(--font-ui);
	font-size: 0.96rem;
	line-height: 1.45;
	padding: 0.72rem 0.9rem;
}

.woocommerce table.shop_table,
.antisha-woo-wrap table {
	border-color: var(--border-subtle);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td,
.antisha-woo-wrap table th,
.antisha-woo-wrap table td {
	color: var(--text-main);
	border-bottom-color: var(--border-fainter);
	font-family: var(--font-ui);
	font-size: 0.94rem;
	line-height: 1.55;
}

.woocommerce table.shop_table th,
.antisha-woo-wrap table th {
	color: var(--text-muted);
	font-family: var(--font-ui);
	font-size: 0.78rem;
	font-weight: var(--font-ui-strong);
	letter-spacing: 0.09em;
}

.woocommerce table.cart td.product-name a {
	color: var(--text-main);
	font-family: var(--font-ui);
	font-weight: var(--font-ui-strong);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc_payment_methods {
	background: var(--surface-raised);
	border-color: var(--border-subtle);
	color: var(--text-main);
	font-size: 0.96rem;
	line-height: 1.6;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-left-width: 4px;
}

#order_review .wc_payment_methods {
	padding: 1.1rem 1.25rem;
}

.woocommerce-privacy-policy-text p,
.secure-note,
.checkout-note {
	color: var(--text-muted);
	font-size: 0.9rem;
	line-height: 1.55;
}

.woocommerce input[type="radio"],
.woocommerce input[type="checkbox"],
.antisha-woo-wrap input[type="radio"],
.antisha-woo-wrap input[type="checkbox"] {
	width: 18px;
	height: 18px;
}

/* Searchable product catalogue. */
body.post-type-archive-product .breadcrumb {
	margin-top: 9rem;
}

.catalog-page {
	position: relative;
	z-index: 2;
	max-width: var(--site-content-max);
	margin: 0 auto;
	padding: 7.5rem 2rem 7rem;
}

.catalog-hero {
	max-width: 820px;
	margin: 0 auto 3.5rem;
	text-align: center;
}

.catalog-title {
	margin: 0.7rem 0 1.1rem;
	color: var(--luminous-gold);
	font-family: var(--font-heading);
	font-size: clamp(2.4rem, 5vw, 4.6rem);
	font-weight: 550;
	line-height: 1.08;
}

.catalog-intro {
	max-width: 700px;
	margin: 0 auto;
	color: var(--text-muted);
	font-size: 1.12rem;
	line-height: 1.65;
}

.catalog-controls {
	margin-bottom: 2rem;
	padding: 1.35rem;
	background: var(--surface-base);
	border: 2px solid var(--border-subtle);
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.catalog-filter-form {
	display: grid;
	grid-template-columns: minmax(260px, 1.7fr) minmax(180px, 1fr) minmax(180px, 1fr) auto;
	gap: 1rem;
	align-items: end;
}

.catalog-field {
	display: grid;
	gap: 0.5rem;
}

.catalog-field label {
	color: var(--text-main);
	font-family: var(--font-ui);
	font-size: 0.78rem;
	font-weight: var(--font-ui-strong);
	letter-spacing: 0.075em;
	text-transform: uppercase;
}

.catalog-field input,
.catalog-field select {
	width: 100%;
	min-height: 50px;
	padding: 0.72rem 0.9rem;
	background: var(--surface-input);
	border: 2px solid var(--border-subtle);
	border-radius: 2px;
	color: var(--text-main);
	font-family: var(--font-ui);
	font-size: 1rem;
	font-weight: var(--font-ui-weight);
}

.catalog-field input::placeholder {
	color: #aaa399;
	opacity: 1;
}

.catalog-field input:focus,
.catalog-field select:focus {
	outline: none;
	border-color: var(--luminous-gold);
	box-shadow: 0 0 0 3px rgba(229, 192, 123, 0.18);
}

.catalog-filter-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.catalog-apply {
	min-width: 148px;
	white-space: nowrap;
}

.catalog-clear {
	color: var(--text-main);
	font-family: var(--font-ui);
	font-size: 0.88rem;
	font-weight: var(--font-ui-strong);
	white-space: nowrap;
}

.catalog-results-head {
	display: flex;
	justify-content: flex-end;
	margin: 0 0 1rem;
}

.catalog-results-head p {
	margin: 0;
	color: var(--text-muted);
	font-family: var(--font-ui);
	font-size: 0.88rem;
	font-weight: var(--font-ui-strong);
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.catalog-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.35rem;
}

.catalog-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	background: var(--surface-base);
	border: 1px solid var(--border-fainter);
	transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.catalog-card:hover {
	transform: translateY(-4px);
	border-color: var(--border-subtle);
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
}

.catalog-card-image {
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background: #090908;
}

.catalog-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(0.93) contrast(1.06);
	transition: transform 600ms ease, filter 220ms ease;
}

.catalog-card:hover .catalog-card-image img {
	transform: scale(1.025);
	filter: brightness(1) contrast(1.04);
}

.catalog-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.2rem;
}

.catalog-card-kicker {
	min-height: 1.2em;
	margin: 0 0 0.5rem;
	color: var(--arcane-cyan);
	font-family: var(--font-ui);
	font-size: 0.72rem;
	font-weight: var(--font-ui-strong);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.catalog-card-title {
	margin: 0 0 0.85rem;
	font-family: var(--font-heading);
	font-size: 1.16rem;
	font-weight: 580;
	line-height: 1.36;
}

.catalog-card-title a {
	color: var(--text-main);
	text-decoration: none;
}

.catalog-card-title a:hover {
	color: var(--luminous-gold);
}

.catalog-card-meta {
	display: grid;
	gap: 0.28rem;
	margin-top: auto;
	padding-top: 0.35rem;
}

.catalog-card-price {
	color: var(--luminous-gold);
	font-family: var(--font-ui);
	font-size: 1.08rem;
	font-weight: 720;
}

.catalog-card-stock {
	min-height: 1.3em;
	color: var(--text-muted);
	font-family: var(--font-ui);
	font-size: 0.82rem;
	font-weight: var(--font-ui-weight);
}

.catalog-card-stock.is-out {
	color: #efaaa5;
}

.catalog-card-link {
	justify-content: space-between;
	width: 100%;
	margin-top: 1rem;
	text-decoration: none;
}

.catalog-empty {
	max-width: 680px;
	margin: 2rem auto 0;
	padding: 3rem 2rem;
	background: var(--surface-base);
	border: 2px solid var(--border-subtle);
	text-align: center;
}

.catalog-empty p {
	margin: 0 0 1.4rem;
	color: var(--text-main);
}

@media (max-width: 1120px) {
	.catalog-filter-form {
		grid-template-columns: 1.4fr 1fr 1fr;
	}

	.catalog-filter-actions {
		grid-column: 1 / -1;
	}

	.catalog-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 1000px) {
	.antisha-woo-wrap {
		padding-top: 7rem;
	}

	form.woocommerce-checkout .antisha-order-column {
		margin-top: 3rem;
	}
}

@media (max-width: 820px) {
	.catalog-page {
		padding-inline: 1.25rem;
	}

	.catalog-filter-form {
		grid-template-columns: 1fr 1fr;
	}

	.catalog-field-search {
		grid-column: 1 / -1;
	}

	.catalog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	body {
		--font-body-size: 1rem;
		--font-body-leading: 1.68;
	}

	.antisha-woo-wrap {
		padding: 6.5rem 1rem 4rem;
	}

	.checkout-header {
		margin-bottom: 2rem;
	}

	form.woocommerce-checkout #order_review {
		padding: 1rem;
	}

	.woocommerce form .form-row {
		margin-bottom: 1.1rem;
	}

	.btn-ritual,
	.btn-acquire,
	.woocommerce .button,
	.woocommerce button.button,
	.woocommerce input.button,
	.woocommerce a.button,
	.woocommerce #place_order {
		width: 100%;
		min-height: 54px;
		padding-inline: 1.1rem;
	}

	.catalog-page {
		padding: 6.5rem 1rem 4.5rem;
	}

	.catalog-hero {
		margin-bottom: 2.25rem;
	}

	.catalog-controls {
		padding: 1rem;
	}

	.catalog-filter-form {
		grid-template-columns: 1fr;
	}

	.catalog-field-search,
	.catalog-filter-actions {
		grid-column: auto;
	}

	.catalog-filter-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.catalog-apply {
		width: 100%;
	}

	.catalog-clear {
		padding: 0.5rem;
		text-align: center;
	}

	.catalog-grid {
		grid-template-columns: 1fr;
	}
}
