/* ==========================================================================
   The Data Chronicle — theme.css
   Theme by The Free Website Guys.
   ========================================================================== */

:root {
	--font-sans: 'Inter', sans-serif;
	--font-serif: 'Fraunces', serif;
	--font-body: 'Inter', sans-serif;

	--radius: 0.25rem;
	--card-radius: 0.5rem;

	--btn-radius: 9999px;
	--btn-height: 52px;
	--btn-padding: 0 1.75rem;
	--btn-font-size: 0.6875rem;
	--btn-font-weight: 700;
	--btn-letter-spacing: 0.22em;
	--btn-text-transform: uppercase;
	--btn-icon-padding: 0 0.85rem;

	--color-button-text: var(--primary-foreground, #f7f5f3);
	--color-primary: var(--primary, #1c2736);
	--color-accent: var(--accent, #7a1f1f);
	--cream: var(--primary-foreground, #fdfcf0);
	--plum: var(--primary, #1c2736);
	--terracotta: var(--accent, #7a1f1f);
	--plum-light: #364357;
	--header-height: 88px;
	--section-padding-y: 7rem;
	--checkout-gap: 1.5rem;
	--checkout-max-width: 80rem;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
* {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
}
body {
	margin: 0;
	background-color: var(--background);
	color: var(--foreground);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.5;
	background-image: radial-gradient(color-mix(in srgb, var(--foreground) 2.5%, transparent) 1px, transparent 1px);
	background-size: 3px 3px;
	overflow-x: hidden;
}
img {
	max-width: 100%;
	display: block;
	transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1), filter 500ms ease, opacity 500ms ease;
}
img:not(.cover-img):not(.hero-bg-img):not(.product-card-img) {
	height: auto;
}
.cover-img,
.hero-bg-img,
.product-card-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
a {
	color: inherit;
	text-decoration: none;
}
a, button {
	transition: color 300ms ease, background-color 300ms ease, border-color 300ms ease, transform 300ms ease, opacity 300ms ease;
}
button {
	font-family: inherit;
	cursor: pointer;
	background: none;
	border: none;
}
ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
::selection {
	background: var(--color-primary, #1c2736);
	color: var(--primary-foreground, #f7f5f3);
}

h1, h2, h3, h4, h5, h6 {
	font-weight: inherit;
	font-size: inherit;
	margin: 0;
	font-family: var(--font-sans);
}

.theme-container {
	max-width: 72rem;
	margin: 0 auto;
	padding: 0;
}
.theme-container--narrow {
	max-width: 64rem;
}
.theme-generic-page .theme-container,
.single-product-page .theme-container,
.theme-shop-archive .theme-container,
.theme-404-page .theme-container {
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}
@media (min-width: 768px) {
	.theme-generic-page .theme-container,
	.single-product-page .theme-container,
	.theme-shop-archive .theme-container,
	.theme-404-page .theme-container {
		padding-left: 3rem;
		padding-right: 3rem;
	}
}

.site-main { position: relative; }
body.theme-no-hero .site-main { padding-top: var(--header-height); }

/* ==========================================================================
   Typography utility roles
   ========================================================================== */
.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }

.theme-eyebrow {
	font-family: var(--font-sans);
	font-size: 0.65rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--foreground) 65%, transparent);
}
.theme-eyebrow--light { color: color-mix(in srgb, var(--primary-foreground) 65%, transparent); }
@media (min-width: 768px) { .theme-eyebrow { font-size: 0.75rem; } }

.theme-kicker {
	display: flex;
	align-items: baseline;
	gap: 1rem;
	margin-bottom: 2.5rem;
}
.theme-kicker__line {
	height: 1px;
	flex: 1;
	max-width: 120px;
	background: color-mix(in srgb, var(--foreground) 30%, transparent);
}
.theme-kicker__line--light { background: color-mix(in srgb, var(--primary-foreground) 30%, transparent); }

.link-underline {
	position: relative;
	display: inline-block;
}
.link-underline::after {
	content: "";
	position: absolute;
	left: 0; bottom: -2px;
	width: 100%; height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}
.link-underline:hover::after { transform: scaleX(1); transform-origin: left; }

.hover-lift {
	transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 450ms ease, border-color 300ms ease;
}
.hover-lift:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px -20px color-mix(in srgb, var(--foreground) 30%, transparent);
}
.hover-press { transition: transform 250ms ease, box-shadow 250ms ease; }
.hover-press:hover { transform: translateY(-2px); }
.hover-press:active { transform: translateY(0); }

.img-zoom { overflow: hidden; }
.img-zoom img { transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1); }
.img-zoom:hover img { transform: scale(1.06); }

.polaroid {
	box-shadow: 0 1px 2px color-mix(in srgb, var(--foreground) 8%, transparent), 0 12px 30px -12px color-mix(in srgb, var(--foreground) 25%, transparent);
	transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 500ms ease;
}
.polaroid:hover {
	transform: translateY(-6px) scale(1.02);
	box-shadow: 0 2px 4px color-mix(in srgb, var(--foreground) 10%, transparent), 0 24px 50px -16px color-mix(in srgb, var(--foreground) 35%, transparent);
}

.icon-shift { transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1); }
a:hover .icon-shift, button:hover .icon-shift { transform: translateX(4px); }
.icon-shift-up { transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1); }
a:hover .icon-shift-up, button:hover .icon-shift-up { transform: translateY(-3px); }

.btn-shine { position: relative; overflow: hidden; isolation: isolate; }
.btn-shine::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, transparent 0%, transparent 38%, color-mix(in srgb, var(--primary-foreground) 28%, transparent) 50%, transparent 62%, transparent 100%);
	transform: translateX(-110%);
	transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
	pointer-events: none;
	z-index: 1;
}
.btn-shine:hover::before { transform: translateX(110%); }
.btn-shine > * { position: relative; z-index: 2; }

/* ==========================================================================
   Animations / keyframes (ported verbatim from the source design tokens)
   ========================================================================== */
@keyframes hero-zoom {
	0%   { transform: scale(1) translate3d(0, 0, 0); }
	100% { transform: scale(1.18) translate3d(-2%, -1.5%, 0); }
}
.hero-zoom { animation: hero-zoom 18s ease-out forwards; }

@keyframes hero-rise {
	0% { opacity: 0; transform: translateY(28px); }
	100% { opacity: 1; transform: translateY(0); }
}
.hero-rise { animation: hero-rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) both; }

@keyframes bg-drift {
	0%, 100% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
}
.bg-drift { background-size: 200% 200%; animation: bg-drift 14s ease-in-out infinite; }

@keyframes draw-ellipse { to { stroke-dashoffset: 0; } }

@keyframes fade-in {
	0% { opacity: 0; transform: translateY(20px); }
	100% { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fade-in 0.8s ease-out forwards; }

@keyframes slide-up {
	0% { opacity: 0; transform: translateY(40px); }
	100% { opacity: 1; transform: translateY(0); }
}
.animate-slide-up { animation: slide-up 0.4s ease-out forwards; }

/* Scroll-reveal utilities (paired with main.js IntersectionObserver) */
.reveal, [data-reveal] {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1), transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
	will-change: opacity, transform;
}
.reveal.is-visible, [data-reveal].is-visible { opacity: 1; transform: none; }

.reveal-left { transform: translateX(-32px); }
.reveal-left.is-visible { transform: translateX(0); }
.reveal-right { transform: translateX(32px); }
.reveal-right.is-visible { transform: translateX(0); }
.reveal-up { transform: translateY(40px) scale(0.98); }
.reveal-up.is-visible { transform: translateY(0) scale(1); }

/* Product card reveal used inside a shared partial across many contexts
   (shop, homepage grid, related products) — Section 2.1 rule 5 */
.reveal-item {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1), transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-item.is-visible { opacity: 1; transform: none; }

/* Customizer-preview & no-JS fallback: reveal content must never be stuck hidden */
body.is-customizer .reveal,
body.is-customizer [data-reveal],
body.is-customizer .reveal-left,
body.is-customizer .reveal-right,
body.is-customizer .reveal-up,
body.is-customizer .reveal-item,
body.is-customizer .hero-rise,
html.no-js .reveal,
html.no-js [data-reveal],
html.no-js .reveal-left,
html.no-js .reveal-right,
html.no-js .reveal-up,
html.no-js .reveal-item {
	opacity: 1 !important;
	transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.hero-zoom, .bg-drift, .hero-rise {
		animation: none !important;
	}
	.reveal, [data-reveal], .reveal-left, .reveal-right, .reveal-up, .reveal-item {
		opacity: 1 !important;
		transform: none !important;
	}
}

/* ==========================================================================
   Buttons (shared)
   ========================================================================== */
.theme-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	border-radius: var(--btn-radius);
	padding: var(--btn-padding);
	min-height: var(--btn-height);
	font-family: var(--font-sans);
	font-size: var(--btn-font-size);
	font-weight: var(--btn-font-weight);
	letter-spacing: var(--btn-letter-spacing);
	text-transform: var(--btn-text-transform);
}
.theme-btn--primary { background-color: var(--color-primary); color: var(--color-button-text); }
.theme-btn--primary:hover { background-color: var(--color-accent); }
.theme-btn--light { background-color: var(--primary-foreground); color: var(--foreground); }
.theme-btn--light:hover { background-color: var(--color-accent); color: var(--primary-foreground); }
.theme-link { font-family: var(--font-sans); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: color-mix(in srgb, var(--foreground) 70%, transparent); }
.theme-link:hover { color: var(--foreground); }
.theme-link--light { color: color-mix(in srgb, var(--primary-foreground) 80%, transparent); }
.theme-link--light:hover { color: var(--primary-foreground); }

.theme-accent-dot { color: var(--color-accent); }

.theme-social-btn {
	width: 2.5rem; height: 2.5rem;
	border-radius: 50%;
	border: 1px solid color-mix(in srgb, var(--primary-foreground) 25%, transparent);
	display: grid;
	place-items: center;
	transition: all 300ms ease;
}
.theme-social-btn:hover { background-color: var(--color-accent); border-color: var(--color-accent); transform: translateY(-3px); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 50;
	transition: all 500ms ease;
	background: transparent;
	padding: 0.5rem 0;
}
.site-header.is-solid {
	background: color-mix(in srgb, #ffffff 95%, transparent);
	backdrop-filter: blur(10px);
	padding: 0.375rem 0;
	box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.site-header.menu-open { background-color: var(--background); padding: 0.5rem 0; }

.site-header__inner {
	max-width: 80rem;
	margin: 0 auto;
	padding: 0 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
@media (min-width: 768px) { .site-header__inner { padding: 0 3rem; } }

.site-header__brand { display: inline-flex; align-items: center; }
.site-header__brand:hover { opacity: 0.9; }
.site-logo-img { height: var(--logo-height) !important; width: auto !important; display: block; transition: opacity 500ms ease; }
.site-logo-text { font-family: var(--font-serif); font-size: 1.5rem; color: var(--primary-foreground); display: block; line-height: var(--logo-height); }
.site-header:not(.is-solid):not(.menu-open) .site-logo-text { color: var(--cream, #fdfcf0); }
.site-header.is-solid .site-logo-text,
.site-header.menu-open .site-logo-text { color: var(--foreground); }

.site-header__nav { display: none; }
@media (min-width: 1024px) {
	.site-header__nav { display: block; }
}
.theme-nav-list { display: flex; align-items: center; gap: 2.25rem; }
.theme-nav-link {
	font-family: var(--font-sans);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--cream, #fdfcf0) 80%, transparent);
}
.site-header.is-solid .theme-nav-link,
.site-header.menu-open .theme-nav-link { color: color-mix(in srgb, var(--foreground) 80%, transparent); }
.theme-nav-link:hover { color: var(--cream, #fdfcf0); }
.site-header.is-solid .theme-nav-link:hover,
.site-header.menu-open .theme-nav-link:hover { color: var(--foreground); }

.site-header__actions { display: flex; align-items: center; gap: 0.5rem; }

.theme-cart-toggle {
	position: relative;
	padding: 0.5rem;
	color: var(--foreground);
}
.site-header:not(.is-solid):not(.menu-open) .theme-cart-toggle { color: var(--cream, #fdfcf0); }
.theme-cart-toggle:hover { color: var(--color-accent); }
.theme-cart-count {
	position: absolute;
	top: -2px; right: -2px;
	min-width: 18px; height: 18px;
	padding: 0 4px;
	border-radius: 50%;
	background: var(--color-accent);
	color: var(--primary-foreground);
	font-size: 10px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}
.theme-cart-count:empty { display: none; }

.theme-header-cta {
	display: none;
	font-family: var(--font-sans);
	font-size: 0.625rem;
	font-weight: 800;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	padding: 0.65rem 1.5rem;
	border-radius: 9999px;
	background: var(--cream, #fdfcf0);
	color: var(--foreground);
	transition: all 300ms ease;
}
.site-header.is-solid .theme-header-cta,
.site-header.menu-open .theme-header-cta { background: var(--color-primary); color: var(--color-button-text); }
.theme-header-cta:hover { background: var(--color-accent); color: var(--primary-foreground); }
@media (min-width: 1024px) { .theme-header-cta { display: inline-flex; } }

.theme-menu-toggle { padding: 0.5rem; color: var(--foreground); }
.site-header:not(.is-solid):not(.menu-open) .theme-menu-toggle { color: var(--cream, #fdfcf0); }
.icon-close { display: none; }
.theme-menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.theme-menu-toggle[aria-expanded="true"] .icon-close { display: block; }
@media (min-width: 1024px) { .theme-menu-toggle { display: none; } }

.site-header__mobile {
	display: none;
	background: var(--background);
}
.site-header__mobile.is-open { display: block; }
.site-header__mobile .theme-mobile-nav-list,
.site-header__mobile .theme-nav-list {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.25rem;
	padding: 2rem 1.5rem 1rem;
	list-style: none;
	margin: 0;
}
@media (min-width: 768px) {
	.site-header__mobile .theme-mobile-nav-list,
	.site-header__mobile .theme-nav-list { padding: 2rem 3rem 1rem; }
}
.site-header__mobile .theme-mobile-nav-list li,
.site-header__mobile .theme-nav-list li {
	width: 100%;
}
.site-header__mobile .theme-mobile-nav-list a,
.site-header__mobile .theme-nav-list a {
	display: block;
	font-family: var(--font-serif);
	font-size: 1.5rem;
	color: var(--foreground);
}
.site-header__mobile .theme-mobile-nav-list a:hover,
.site-header__mobile .theme-nav-list a:hover { color: var(--color-accent); }
.theme-mobile-cta {
	display: inline-flex;
	margin: 1.5rem 1.5rem 2.5rem;
	font-family: var(--font-sans);
	font-size: 0.625rem;
	font-weight: 800;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	background: var(--color-primary);
	color: var(--color-button-text);
	padding: 0.9rem 1.75rem;
	border-radius: 9999px;
}
@media (min-width: 1024px) { .site-header__mobile { display: none !important; } }

/* ==========================================================================
   WordPress admin bar — hero extends behind bar; header sits below it
   ========================================================================== */
html.admin-bar {
	margin-top: 0 !important;
}
body.admin-bar .site-header {
	top: 32px;
}
body.admin-bar.theme-no-hero .site-main {
	padding-top: calc(var(--header-height) + 32px);
}
body.admin-bar #theme-cart-drawer {
	top: 32px;
	height: calc(100% - 32px);
}
@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
	body.admin-bar.theme-no-hero .site-main {
		padding-top: calc(var(--header-height) + 46px);
	}
	body.admin-bar #theme-cart-drawer {
		top: 46px;
		height: calc(100% - 46px);
	}
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero-section {
	position: relative;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background-color: var(--ink, #0d1117);
	color: var(--cream, #fdfcf0);
}
.hero-section__bg { position: absolute; inset: 0; z-index: 0; }
.hero-section__wash {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(10,14,20,0.55) 0%, rgba(13,17,23,0.65) 45%, rgba(6,10,16,0.92) 100%);
}
.hero-section__tint {
	position: absolute; inset: 0;
	mix-blend-mode: overlay;
	opacity: 0.6;
	background: radial-gradient(circle at 18% 25%, rgba(122,31,31,0.45), transparent 55%), radial-gradient(circle at 82% 78%, rgba(32,52,90,0.55), transparent 60%);
}
.hero-section__fade {
	position: absolute; left: 0; right: 0; bottom: 0; height: 50%;
	background: linear-gradient(to top, rgba(6,10,16,0.95) 0%, rgba(6,10,16,0.5) 60%, transparent 100%);
}
.hero-section__content {
	position: relative; z-index: 10;
	flex: 1;
	display: flex;
	align-items: flex-end;
	padding: 10rem 1.5rem 5rem;
}
@media (min-width: 768px) { .hero-section__content { padding: 10rem 4rem 6rem; } }
@media (min-width: 1024px) { .hero-section__content { padding: 10rem 6rem 6rem; } }
.hero-section__inner { width: 100%; max-width: 80rem; margin: 0 auto; }

.hero-eyebrow {
	font-family: var(--font-sans);
	font-size: 0.6875rem;
	letter-spacing: 0.4em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--cream, #fdfcf0) 70%, transparent);
	margin: 0 0 2rem;
}
@media (min-width: 768px) { .hero-eyebrow { font-size: 0.75rem; } }

.hero-title {
	font-family: var(--font-sans);
	font-weight: 900;
	text-transform: uppercase;
	line-height: 0.86;
	letter-spacing: -0.03em;
	font-size: 3rem;
	color: var(--cream, #fdfcf0);
	text-shadow: 0 2px 18px rgba(0,0,0,0.55);
	margin: 0;
}
@media (min-width: 640px)  { .hero-title { font-size: 3.75rem; } }
@media (min-width: 768px)  { .hero-title { font-size: 4.5rem; } }
@media (min-width: 1280px) { .hero-title { font-size: 6rem; } }

.hero-title__em {
	position: relative;
	display: inline-block;
	font-family: var(--font-serif);
	font-style: italic;
	font-weight: 300;
	letter-spacing: normal;
	text-transform: none;
}
.hero-title__circle {
	position: absolute;
	inset: -0.5rem -0.75rem;
	width: 112%;
	height: 140%;
	pointer-events: none;
	color: var(--color-accent);
}
.hero-title__circle path {
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	animation: draw-ellipse 1.6s ease-out 0.9s forwards;
}

.hero-section__row {
	margin-top: 2.5rem;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	gap: 2rem;
}
@media (min-width: 768px) {
	.hero-section__row { flex-direction: row; align-items: flex-end; margin-top: 3rem; }
}
.hero-subtitle {
	font-family: var(--font-serif);
	font-size: 1.25rem;
	line-height: 1.6;
	max-width: 36rem;
	color: var(--cream, #fdfcf0);
	text-shadow: 0 1px 10px rgba(0,0,0,0.5);
	margin: 0;
}
@media (min-width: 768px) { .hero-subtitle { font-size: 1.5rem; } }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
@media (min-width: 768px) { .hero-ctas { gap: 1.25rem; justify-content: flex-end; } }
.hero-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 2.25rem;
	border-radius: 9999px;
	font-family: var(--font-sans);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	box-shadow: 0 20px 40px -10px rgba(0,0,0,0.4);
}
.hero-cta--primary { background-color: var(--color-accent, #7a1f1f); color: var(--cream, #fdfcf0); }
.hero-cta--secondary {
	color: var(--cream, #fdfcf0);
	border: 1px solid rgba(253,252,240,0.55);
}
.hero-cta--secondary:hover { border-color: rgba(253,252,240,0.7); }

/* ==========================================================================
   Section headings — per-section scale (Section 2.2 rule 5)
   ========================================================================== */
.section-heading {
	font-family: var(--font-sans);
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0;
}
.section-heading em, .contact-title em, .footer-heading em {
	font-style: italic;
	color: var(--color-accent);
}

.about-section .section-heading,
.author-section .section-heading,
.services-section .section-heading,
.shop-heading,
.faq-heading {
	font-size: 3rem;
	line-height: 0.95;
}
@media (min-width: 768px) {
	.about-section .section-heading,
	.author-section .section-heading,
	.services-section .section-heading,
	.shop-heading,
	.faq-heading { font-size: 3.75rem; }
}
@media (min-width: 1024px) {
	.about-section .section-heading,
	.author-section .section-heading,
	.services-section .section-heading,
	.shop-heading,
	.faq-heading { font-size: 4.5rem; }
}

.contact-title {
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 3.75rem;
	line-height: 0.9;
	letter-spacing: -0.02em;
	margin: 0;
}
@media (min-width: 768px)  { .contact-title { font-size: 4.5rem; } }
@media (min-width: 1024px) { .contact-title { font-size: 6rem; } }

.footer-heading {
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 3rem;
	line-height: 0.95;
	letter-spacing: -0.02em;
	margin: 0;
}
@media (min-width: 768px)  { .footer-heading { font-size: 4.5rem; } }
@media (min-width: 1024px) { .footer-heading { font-size: 6rem; } }

/* ==========================================================================
   About section
   ========================================================================== */
.about-section, .services-section, .books-section, .faq-section {
	position: relative;
	background: var(--background);
	color: var(--foreground);
	padding: var(--section-padding-y) 1.5rem;
	overflow: hidden;
}
@media (min-width: 768px) {
	.about-section, .services-section, .books-section, .faq-section { padding: 9rem 3rem; }
}

.about-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: stretch; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 7fr 5fr; gap: 3.5rem; } }
.about-grid__copy { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.about-copy { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.5rem; font-family: var(--font-serif); font-size: 1.125rem; line-height: 1.7; color: color-mix(in srgb, var(--foreground) 85%, transparent); max-width: 42rem; }
@media (min-width: 768px) { .about-copy { font-size: 1.25rem; } }

.about-card {
	background: var(--color-primary);
	color: var(--color-button-text);
	padding: 2rem;
	display: flex;
	flex-direction: column;
	height: 100%;
	box-shadow: 0 30px 60px -30px rgba(0,0,0,0.5);
}
@media (min-width: 768px) { .about-card { padding: 2.5rem; } }
.about-card__list { flex: 1; display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.5rem; }
.about-card__item { display: flex; gap: 1.25rem; padding-top: 1.25rem; border-top: 1px solid color-mix(in srgb, var(--color-button-text) 15%, transparent); }
.about-card__item:first-child { border-top: none; padding-top: 0; }
.about-card__num { font-family: var(--font-serif); font-style: italic; color: var(--color-accent); font-size: 1.25rem; width: 2rem; flex-shrink: 0; }
.about-card__title { font-family: var(--font-sans); font-weight: 700; letter-spacing: 0.02em; margin: 0; }
.about-card__desc { font-family: var(--font-serif); font-size: 0.875rem; margin-top: 0.25rem; line-height: 1.6; color: color-mix(in srgb, var(--color-button-text) 75%, transparent); }
.about-card__image { margin: 1.5rem 0; border-radius: 0.5rem; overflow: hidden; border: 1px solid color-mix(in srgb, var(--color-button-text) 10%, transparent); }
.about-card__image img { width: 100%; height: 10rem; object-fit: cover; opacity: 0.9; }
.about-card__quote { margin-top: auto; padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--color-button-text) 15%, transparent); }
.about-card__quote p { font-family: var(--font-serif); font-style: italic; font-size: 0.875rem; line-height: 1.6; color: color-mix(in srgb, var(--color-button-text) 60%, transparent); margin: 0; }

/* ==========================================================================
   Author section
   ========================================================================== */
.author-section {
	position: relative;
	background: var(--color-primary);
	color: var(--color-button-text);
	padding: var(--section-padding-y) 1.5rem;
	overflow: hidden;
}
@media (min-width: 768px) { .author-section { padding: 9rem 3rem; } }
.author-section__drift {
	position: absolute; inset: 0;
	opacity: 0.25;
	background-image: radial-gradient(circle at 15% 25%, color-mix(in srgb, var(--color-accent) 45%, transparent), transparent 55%), radial-gradient(circle at 85% 75%, color-mix(in srgb, var(--color-accent) 35%, transparent), transparent 55%);
	background-size: 200% 200%;
	animation: bg-drift 14s ease-in-out infinite;
}
.author-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .author-grid { grid-template-columns: 5fr 7fr; gap: 4rem; } }
.author-polaroid { background: var(--cream, #fdfcf0); padding: 0.75rem; display: inline-block; transform: rotate(-1.5deg); }
.author-polaroid img { width: 100%; max-width: 28rem; aspect-ratio: 4/5; object-fit: cover; }
.author-polaroid__caption { font-family: var(--font-serif); font-style: italic; color: color-mix(in srgb, var(--ink, #0d1117) 70%, transparent); font-size: 0.875rem; margin: 0.75rem 0.25rem 0; }
.author-subtitle { font-family: var(--font-serif); font-style: italic; font-size: 1.25rem; color: color-mix(in srgb, var(--color-button-text) 80%, transparent); margin-top: 1rem; }
.author-copy { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; font-family: var(--font-serif); font-size: 1.125rem; line-height: 1.7; color: color-mix(in srgb, var(--color-button-text) 90%, transparent); max-width: 42rem; }
.author-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }

/* ==========================================================================
   Services section
   ========================================================================== */
.services-head { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: flex-end; margin-bottom: 4rem; }
@media (min-width: 1024px) { .services-head { grid-template-columns: 7fr 5fr; } }
.services-subtitle { font-family: var(--font-serif); font-size: 1.125rem; line-height: 1.7; color: color-mix(in srgb, var(--foreground) 80%, transparent); margin: 0; }

.services-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .services-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; } }

.service-card {
	position: relative;
	background: color-mix(in srgb, var(--cream, #fdfcf0) 100%, transparent);
	border: 1px solid color-mix(in srgb, var(--foreground) 10%, transparent);
	padding: 2rem;
}
@media (min-width: 768px) { .service-card { padding: 2.5rem; } }
.service-card__num { position: absolute; top: 1.5rem; right: 1.5rem; font-family: var(--font-serif); font-style: italic; color: color-mix(in srgb, var(--foreground) 30%, transparent); font-size: 0.875rem; }
.service-card__icon { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--color-primary); color: var(--color-button-text); margin-bottom: 1.5rem; flex-shrink: 0; }
.service-card__icon .theme-icon { width: 1.25rem; height: 1.25rem; }
.service-card__title { font-family: var(--font-sans); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; color: var(--foreground); }
@media (min-width: 768px) { .service-card__title { font-size: 1.5rem; } }
.service-card__body { font-family: var(--font-serif); margin-top: 0.75rem; line-height: 1.7; color: color-mix(in srgb, var(--foreground) 75%, transparent); }

.services-ctas { margin-top: 4rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }

/* ==========================================================================
   Books / shop section
   ========================================================================== */
.theme-product-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 3rem 2rem;
	align-items: stretch;
}
@media (max-width: 1023px) { .theme-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .theme-product-grid { grid-template-columns: 1fr; } }

.theme-product-pager[data-product-pager] .theme-product-grid > .theme-product-card-wrap { display: none; }
.theme-product-pager[data-product-pager] .theme-product-grid > .theme-product-card-wrap.is-page-active { display: block; min-width: 0; }

.theme-product-card-wrap { min-width: 0; height: 100%; }
.theme-product-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}
.theme-product-card__image-link { display: block; text-decoration: none; }
.theme-product-card__image-wrapper {
	position: relative;
	aspect-ratio: 3 / 4;
	width: 100%;
	overflow: hidden;
	background-color: var(--ink, #0d1117);
}
.theme-product-card__image-wrapper.polaroid:hover {
	transform: none;
	box-shadow: 0 1px 2px color-mix(in srgb, var(--foreground) 8%, transparent), 0 12px 30px -12px color-mix(in srgb, var(--foreground) 25%, transparent);
}
.theme-product-card__image {
	transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.theme-product-card:hover .theme-product-card__image,
.theme-product-card__image-link:focus-visible .theme-product-card__image {
	transform: scale(1.05);
}
.theme-product-card__image-gradient {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.55) 100%);
}
.theme-product-card__image-overlay {
	position: absolute; inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 1.5rem;
	color: var(--cream, #fdfcf0);
}
@media (min-width: 768px) { .theme-product-card__image-overlay { padding: 1.75rem; } }
.theme-product-card__image-top { display: flex; align-items: center; justify-content: space-between; }
.theme-product-card__genre { font-family: var(--font-sans); font-size: 0.5625rem; letter-spacing: 0.3em; text-transform: uppercase; color: color-mix(in srgb, var(--cream, #fdfcf0) 60%, transparent); }
.theme-product-card__genre a { color: inherit; pointer-events: none; text-decoration: none; }
.theme-product-card__image-top .theme-icon { color: color-mix(in srgb, var(--cream, #fdfcf0) 50%, transparent); flex-shrink: 0; }
.theme-product-card__series { font-family: var(--font-sans); font-size: 0.5625rem; letter-spacing: 0.3em; text-transform: uppercase; color: color-mix(in srgb, var(--cream, #fdfcf0) 55%, transparent); margin: 0 0 0.75rem; }
.theme-product-card__cover-title { font-family: var(--font-serif); font-weight: 300; font-size: 1.875rem; line-height: 0.95; letter-spacing: -0.01em; margin: 0; }
@media (min-width: 768px) { .theme-product-card__cover-title { font-size: 2.25rem; } }
.theme-product-card__divider { display: block; margin-top: 1rem; height: 1px; width: 2.5rem; background: color-mix(in srgb, var(--cream, #fdfcf0) 40%, transparent); }
.theme-product-card__author { font-family: var(--font-sans); font-size: 0.5625rem; letter-spacing: 0.3em; text-transform: uppercase; color: color-mix(in srgb, var(--cream, #fdfcf0) 55%, transparent); margin-top: 1rem; }

.theme-product-card__info { margin-top: 1.5rem; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.theme-product-card__title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; min-width: 0; }
.theme-product-card__title { font-family: var(--font-serif); font-size: 1.25rem; color: var(--foreground); min-width: 0; transition: color 300ms ease; }
.theme-product-card__title:hover { color: var(--color-accent); }
.theme-product-card__price { font-family: var(--font-sans); font-size: 1.125rem; font-weight: 600; color: var(--foreground); white-space: nowrap; line-height: 1.2; }
.theme-product-card__price .woocommerce-Price-amount { font-weight: 600; }
.theme-product-card__price .woocommerce-Price-currencySymbol { font-weight: 600; }
.theme-product-card__blurb { font-family: var(--font-serif); color: color-mix(in srgb, var(--foreground) 80%, transparent); line-height: 1.7; flex: 1; margin: 0; }
.theme-product-card__footer { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid color-mix(in srgb, var(--foreground) 15%, transparent); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.theme-product-card__badge { display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid color-mix(in srgb, var(--foreground) 25%, transparent); color: color-mix(in srgb, var(--foreground) 60%, transparent); padding: 0.75rem 1.25rem; border-radius: 9999px; font-family: var(--font-sans); font-size: 0.625rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
.theme-product-card__view { font-family: var(--font-serif); font-style: italic; color: color-mix(in srgb, var(--foreground) 60%, transparent); font-size: 0.875rem; white-space: nowrap; }
.theme-product-card__view:hover { color: var(--color-accent); }

.theme-product-card__add.add_to_cart_button {
	display: inline-flex !important;
	align-items: center;
	gap: 0.5rem;
}

.theme-product-pager__controls { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 3rem; }
.theme-pager-arrow {
	width: 3.5rem; height: 3.5rem;
	border-radius: 50%;
	background: var(--color-primary);
	color: var(--color-button-text);
	display: grid;
	place-items: center;
	box-shadow: 0 10px 25px -8px rgba(0,0,0,0.3);
	transition: all 300ms ease;
}
.theme-pager-arrow:hover { background: var(--color-accent); transform: scale(1.05); }
.theme-pager-dots { display: flex; align-items: center; gap: 0.5rem; }
.theme-pager-dot { height: 0.5rem; width: 0.5rem; border-radius: 9999px; background: color-mix(in srgb, var(--foreground) 30%, transparent); transition: all 300ms ease; }
.theme-pager-dot:hover { background: color-mix(in srgb, var(--foreground) 50%, transparent); }
.theme-pager-dot.is-active { width: 2rem; background: var(--color-primary); }
.theme-product-pager__controls[hidden] { display: none; }

.books-promo { position: relative; margin-top: 5rem; overflow: hidden; border-radius: 2px; }
.books-promo__bg { object-fit: cover; }
.books-promo__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,14,20,0.88) 0%, rgba(10,14,20,0.75) 55%, rgba(10,14,20,0.65) 100%); }
.books-promo__content { position: relative; z-index: 1; padding: 2rem; }
@media (min-width: 768px) { .books-promo__content { padding: 2.5rem; } }
.books-promo__content { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center; }
@media (min-width: 768px) { .books-promo__content { grid-template-columns: 8fr 4fr; } }
.books-promo__desc { font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.7; color: color-mix(in srgb, var(--cream, #fdfcf0) 90%, transparent); margin-top: 0.5rem; }
.books-promo__cta { text-align: left; }
@media (min-width: 768px) { .books-promo__cta { text-align: right; } }

/* ==========================================================================
   FAQ section
   ========================================================================== */
.faq-heading { margin-bottom: 3.5rem; }
.faq-list { border-top: 1px solid color-mix(in srgb, var(--foreground) 15%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--foreground) 15%, transparent); }
.faq-item { border-bottom: 1px solid color-mix(in srgb, var(--foreground) 15%, transparent); }
.faq-item:last-child { border-bottom: none; }
.faq-item__question {
	width: 100%;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1.5rem 0;
	text-align: left;
}
@media (min-width: 768px) { .faq-item__question { padding: 1.75rem 0; } }
.faq-item__q-text { font-family: var(--font-serif); font-size: 1.25rem; color: var(--foreground); }
@media (min-width: 768px) { .faq-item__q-text { font-size: 1.5rem; } }
.faq-item__question:hover .faq-item__q-text { color: var(--color-accent); }
.faq-item__icon {
	flex-shrink: 0;
	margin-top: 0.25rem;
	width: 2.25rem; height: 2.25rem;
	border-radius: 50%;
	border: 1px solid color-mix(in srgb, var(--foreground) 25%, transparent);
	display: grid;
	place-items: center;
}
.faq-item__question:hover .faq-item__icon { border-color: var(--color-accent); color: var(--color-accent); }
.faq-item__icon .icon-minus { display: none; }
.faq-item__question[aria-expanded="true"] .icon-plus { display: none; }
.faq-item__question[aria-expanded="true"] .icon-minus { display: block; }
.faq-item__answer { padding: 0 3rem 1.75rem 0; font-family: var(--font-serif); color: color-mix(in srgb, var(--foreground) 75%, transparent); line-height: 1.7; max-width: 48rem; }
.faq-item__answer[hidden] { display: none; }

/* ==========================================================================
   Quote section
   ========================================================================== */
.quote-section { position: relative; min-height: 60vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
@media (min-width: 768px) { .quote-section { min-height: 70vh; } }
.quote-section__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; pointer-events: none; }
.quote-section__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.7); }
.quote-section__content { position: relative; z-index: 1; max-width: 56rem; margin: 0 auto; padding: 0 1.5rem; text-align: center; }
@media (min-width: 768px) { .quote-section__content { padding: 0 3rem; } }
.quote-section__rule { display: block; height: 1px; width: 4rem; background: color-mix(in srgb, var(--cream, #fdfcf0) 40%, transparent); margin: 2.5rem auto; }
.quote-section__text { font-family: var(--font-serif); font-size: 1.5rem; line-height: 1.4; color: var(--cream, #fdfcf0); letter-spacing: -0.01em; margin: 0; }
@media (min-width: 768px)  { .quote-section__text { font-size: 2.25rem; } }
@media (min-width: 1024px) { .quote-section__text { font-size: 3rem; } }
.quote-section__text em { font-style: italic; color: var(--color-accent); }
.quote-section__attribution { margin-top: 2rem; font-family: var(--font-sans); font-size: 0.625rem; letter-spacing: 0.3em; text-transform: uppercase; color: color-mix(in srgb, var(--cream, #fdfcf0) 55%, transparent); }

/* ==========================================================================
   Contact section
   ========================================================================== */
.contact-section { position: relative; background: var(--color-primary); color: var(--color-button-text); padding: 7rem 1.5rem 0; overflow: hidden; }
@media (min-width: 768px) { .contact-section { padding: 10rem 3rem 0; } }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: flex-start; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 4rem; } }

.contact-paragraph { font-family: var(--font-sans); font-weight: 300; color: color-mix(in srgb, var(--color-button-text) 85%, transparent); margin-top: 2rem; margin-bottom: 2.5rem; line-height: 1.7; font-size: 1rem; max-width: 28rem; }
@media (min-width: 768px) { .contact-paragraph { font-size: 1.125rem; } }

.contact-methods { display: flex; flex-direction: column; gap: 1.25rem; border-top: 1px solid color-mix(in srgb, var(--color-button-text) 15%, transparent); padding-top: 2rem; }
.contact-method { display: flex; align-items: center; gap: 1rem; }
.contact-method:hover { color: var(--color-accent); }
.contact-method__icon { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--color-button-text) 25%, transparent); display: grid; place-items: center; transition: border-color 300ms ease; }
.contact-method:hover .contact-method__icon { border-color: var(--color-accent); }
.contact-method__label { display: block; font-family: var(--font-sans); font-size: 0.625rem; letter-spacing: 0.3em; text-transform: uppercase; color: color-mix(in srgb, var(--color-button-text) 50%, transparent); }
.contact-method__value { font-family: var(--font-serif); font-size: 1.125rem; word-break: break-all; }
@media (min-width: 768px) { .contact-method__value { font-size: 1.25rem; } }

.contact-elsewhere { margin-top: 2.5rem; display: flex; align-items: center; gap: 1.25rem; }
.contact-elsewhere__label { font-family: var(--font-sans); font-size: 0.625rem; letter-spacing: 0.3em; text-transform: uppercase; color: color-mix(in srgb, var(--color-button-text) 50%, transparent); margin: 0; }
.contact-elsewhere__line { height: 1px; flex: 1; background: color-mix(in srgb, var(--color-button-text) 15%, transparent); }
.contact-socials { margin-top: 1.25rem; display: flex; align-items: center; gap: 0.75rem; }

.contact-form {
	background: var(--cream, #fdfcf0);
	color: var(--foreground);
	padding: 2rem;
	position: relative;
	box-shadow: 0 30px 80px -30px rgba(0,0,0,0.4);
	min-width: 0;
}
@media (min-width: 768px)  { .contact-form { padding: 2.5rem; } }
@media (min-width: 1024px) { .contact-form { padding: 3rem; } }
.contact-form__eyebrow { font-family: var(--font-sans); font-size: 0.625rem; letter-spacing: 0.3em; text-transform: uppercase; color: color-mix(in srgb, var(--foreground) 50%, transparent); margin: 0 0 0.5rem; }
.contact-form__heading { font-family: var(--font-sans); font-weight: 700; font-size: 1.875rem; letter-spacing: -0.02em; margin: 0 0 2rem; }
@media (min-width: 768px) { .contact-form__heading { font-size: 2.25rem; } }
.contact-form__heading em { font-style: italic; color: var(--color-primary); }

.contact-form__row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .contact-form__row { grid-template-columns: 1fr 1fr; } }
.contact-form__field { margin-top: 1.5rem; min-width: 0; }
.contact-form__field--full { grid-column: 1 / -1; }
.contact-form__field label { display: block; font-family: var(--font-sans); font-size: 0.625rem; letter-spacing: 0.25em; text-transform: uppercase; color: color-mix(in srgb, var(--foreground) 60%, transparent); margin-bottom: 0.5rem; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
	width: 100%;
	background: transparent;
	border: none;
	border-bottom: 1px solid color-mix(in srgb, var(--foreground) 30%, transparent);
	font-family: var(--font-serif);
	font-size: 1.125rem;
	padding: 0.5rem 0;
	transition: border-color 300ms ease;
	color: var(--foreground);
}
.contact-form textarea { font-family: var(--font-sans); font-size: 1rem; resize: none; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--color-primary); }
.contact-form__error { color: var(--color-accent); font-size: 0.75rem; margin: 0.25rem 0 0; font-family: var(--font-sans); }
.contact-form__footer-row { display: flex; justify-content: space-between; align-items: center; margin-top: 0.25rem; }
.contact-form__counter { font-size: 0.625rem; color: color-mix(in srgb, var(--foreground) 40%, transparent); font-family: var(--font-sans); }

.contact-topics { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.contact-topic-btn {
	font-size: 0.75rem;
	font-family: var(--font-sans);
	letter-spacing: 0.02em;
	padding: 0.4rem 0.9rem;
	border: 1px solid color-mix(in srgb, var(--foreground) 25%, transparent);
	color: color-mix(in srgb, var(--foreground) 70%, transparent);
}
.contact-topic-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.contact-topic-btn.is-active { background: var(--color-primary); color: var(--color-button-text); border-color: var(--color-primary); }

.contact-form__submit {
	margin-top: 2rem;
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	background: var(--color-primary);
	color: var(--color-button-text);
	padding: 1rem 1.75rem;
	font-family: var(--font-sans);
	font-size: 0.875rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}
.contact-form__submit:hover { background: var(--color-accent); }
.contact-form__submit:disabled { opacity: 0.6; cursor: not-allowed; }
.contact-form__note { font-size: 0.625rem; color: color-mix(in srgb, var(--foreground) 50%, transparent); font-family: var(--font-sans); margin-top: 1rem; }
.contact-section__spacer { height: 5rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { position: relative; background: var(--ink, #0d1117); color: var(--cream, #fdfcf0); overflow: hidden; }
.site-footer__inner { position: relative; padding: 5rem 1.5rem 2.5rem; max-width: 80rem; margin: 0 auto; }
@media (min-width: 768px) { .site-footer__inner { padding: 5rem 3rem 2.5rem; } }

.site-footer__top { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: flex-end; border-bottom: 1px solid color-mix(in srgb, var(--cream, #fdfcf0) 15%, transparent); padding-bottom: 3rem; margin-bottom: 3rem; }
@media (min-width: 1024px) { .site-footer__top { grid-template-columns: 8fr 4fr; } }
.site-footer__top-cta { text-align: left; }
@media (min-width: 1024px) { .site-footer__top-cta { text-align: right; } }
.theme-footer-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	font-family: var(--font-sans);
	font-size: 0.875rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	border: 1px solid color-mix(in srgb, var(--cream, #fdfcf0) 30%, transparent);
	padding: 1rem 1.5rem;
	color: var(--cream, #fdfcf0);
}
.theme-footer-cta:hover { background: var(--color-accent); border-color: var(--color-accent); }

.site-footer__cols {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	width: 100%;
}
@media (min-width: 768px) {
	.site-footer__cols {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		gap: 2.5rem 3rem;
		align-items: start;
	}
	.site-footer__col--brand { grid-column: 1 / span 4; }
	.site-footer__col--explore { grid-column: 5 / span 2; }
	.site-footer__col--discover { grid-column: 7 / span 2; }
	.site-footer__col--reach { grid-column: 9 / span 4; }
}
.site-footer__col { min-width: 0; }
.site-footer__col .theme-eyebrow--light { margin-bottom: 1.25rem; }
.footer-brand-name { font-family: var(--font-serif); font-size: 1.875rem; margin: 0; line-height: 1.2; }
.footer-tagline { font-family: var(--font-sans); font-size: 0.875rem; color: color-mix(in srgb, var(--cream, #fdfcf0) 60%, transparent); margin-top: 0.75rem; line-height: 1.6; max-width: 20rem; }
.footer-slogan { font-family: var(--font-serif); font-style: italic; color: color-mix(in srgb, var(--cream, #fdfcf0) 70%, transparent); font-size: 0.875rem; margin-top: 1.25rem; }
.theme-footer-nav-list { display: flex; flex-direction: column; gap: 0.75rem; margin: 0; }
.theme-footer-nav-list a { font-family: var(--font-sans); color: color-mix(in srgb, var(--cream, #fdfcf0) 80%, transparent); font-size: 0.875rem; }
.theme-footer-nav-list a:hover { color: var(--color-accent); }
.theme-footer-contact-list { display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; margin: 0; padding: 0; list-style: none; }
.theme-footer-mailto, .theme-footer-tel { display: inline-flex; align-items: center; gap: 0.5rem; color: color-mix(in srgb, var(--cream, #fdfcf0) 80%, transparent); word-break: break-all; }
.theme-footer-mailto:hover, .theme-footer-tel:hover { color: var(--color-accent); }
.site-footer__col--reach .theme-social-btn { margin-top: 1.5rem; }

.site-footer__bottom { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--cream, #fdfcf0) 10%, transparent); display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; justify-content: space-between; font-family: var(--font-sans); font-size: 0.75rem; color: color-mix(in srgb, var(--cream, #fdfcf0) 50%, transparent); }
@media (min-width: 768px) { .site-footer__bottom { flex-direction: row; align-items: center; } }
.theme-back-to-top { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-sans); font-size: 0.625rem; letter-spacing: 0.25em; text-transform: uppercase; color: color-mix(in srgb, var(--cream, #fdfcf0) 60%, transparent); }
.theme-back-to-top:hover { color: var(--color-accent); }
.theme-back-to-top__circle { width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--cream, #fdfcf0) 25%, transparent); display: grid; place-items: center; }
.theme-back-to-top:hover .theme-back-to-top__circle { border-color: var(--color-accent); }

/* ==========================================================================
   Generic pages / 404
   ========================================================================== */
.theme-generic-page { padding-top: var(--header-height); }
.theme-404-page .theme-404__inner { text-align: center; padding: 8rem 1.5rem 6rem; }
.theme-404__title { font-family: var(--font-serif); font-size: 2.5rem; font-weight: 300; margin-bottom: 1rem; }
.theme-404__body { font-family: var(--font-serif); color: color-mix(in srgb, var(--foreground) 75%, transparent); font-size: 1.125rem; margin-bottom: 2.5rem; }
.page-title { font-family: var(--font-serif); font-weight: 300; font-size: 3rem; margin-bottom: 1.5rem; }

/* ==========================================================================
   WooCommerce — global overrides (Section 14)
   ========================================================================== */
.woocommerce-page .woocommerce-message,
.woocommerce-page .woocommerce-info,
.woocommerce-page .woocommerce-error {
	font-family: var(--font-sans);
	border-top-color: var(--color-primary);
	border-radius: var(--card-radius);
	padding: 1rem 1.5rem;
}
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }

/* Add-to-cart button style override (Section 11.4.1) */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
	background-color: var(--color-primary) !important;
	color: var(--color-button-text) !important;
	border: none !important;
	border-radius: var(--btn-radius) !important;
	min-height: var(--btn-height) !important;
	padding: var(--btn-padding) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: var(--font-body) !important;
	font-size: var(--btn-font-size) !important;
	font-weight: var(--btn-font-weight) !important;
	letter-spacing: var(--btn-letter-spacing) !important;
	text-transform: var(--btn-text-transform) !important;
	cursor: pointer !important;
	transition: opacity 0.2s ease !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
	opacity: 0.85 !important;
	background-color: var(--color-primary) !important;
	color: var(--color-button-text) !important;
}
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
	cursor: not-allowed !important;
	opacity: 0.4 !important;
	pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
	opacity: 0.4 !important;
	background-color: var(--color-primary) !important;
}
.single-product .single_add_to_cart_button,
a.single_add_to_cart_button,
a.add_to_cart_button { text-transform: var(--btn-text-transform) !important; }

/* Card compact button variant */
.theme-product-card .add_to_cart_button.ajax_add_to_cart {
	min-height: auto !important;
	height: auto !important;
	padding: 0.75rem 1.25rem !important;
	border-radius: 9999px !important;
	background-color: var(--color-primary) !important;
	font-size: 0.625rem !important;
	letter-spacing: 0.22em !important;
	gap: 0.5rem !important;
	line-height: 1 !important;
}
.theme-product-card .add_to_cart_button.ajax_add_to_cart:hover {
	background-color: var(--color-accent) !important;
	opacity: 1 !important;
}
.theme-product-card .add_to_cart_button.ajax_add_to_cart.added,
.theme-product-card .add_to_cart_button.ajax_add_to_cart.is-added {
	background-color: var(--color-accent) !important;
}
.theme-product-card__add-icon { display: inline-flex; align-items: center; justify-content: center; }
.theme-product-card__add-label { white-space: nowrap; }

.ajax_add_to_cart.theme-btn-loading {
	opacity: 0.6 !important;
	pointer-events: none !important;
	cursor: wait !important;
}
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }

/* Hide "View cart" injected by WooCommerce after AJAX add-to-cart */
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward { display: none !important; }

/* ==========================================================================
   WooCommerce — Shop archive
   ========================================================================== */
.theme-shop-archive .theme-shop-archive__header { padding: 8rem 0 2rem; }
.theme-shop-archive__empty { font-family: var(--font-serif); padding: 4rem 0; text-align: center; color: color-mix(in srgb, var(--foreground) 60%, transparent); }

/* ==========================================================================
   WooCommerce — Single product (Section 11.13 responsive rules)
   ========================================================================== */
body.single-product.theme-no-hero .site-main {
	padding-top: 0;
}
.single-product-page .theme-product-section {
	padding: 8rem 0 2.5rem;
}
@media (min-width: 768px) {
	.single-product-page .theme-product-section {
		padding-top: 10rem;
	}
}
.single-product__back {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-sans);
	font-size: 0.75rem;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--foreground) 60%, transparent);
	margin-bottom: 2.5rem;
	text-decoration: none;
}
.single-product__back:hover { color: var(--color-accent); }

.theme-product-layout { display: grid; grid-template-columns: 1fr; gap: 3rem; min-width: 0; align-items: start; }
@media (min-width: 1024px) { .theme-product-layout { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }

.theme-product-gallery__main {
	position: relative;
	aspect-ratio: 3 / 4;
	background: var(--ink, #0d1117);
	overflow: hidden;
}
#product-main-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.theme-product-thumbnails { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; max-width: 100%; }
.theme-product-thumb { width: 4.5rem; height: 6rem; overflow: hidden; border: 2px solid transparent; opacity: 0.6; flex-shrink: 0; }
.theme-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.theme-product-thumb.is-active, .theme-product-thumb:hover { opacity: 1; border-color: var(--color-primary); }

.theme-product-info {
	display: flex;
	flex-direction: column;
}
.theme-product-info__genre {
	display: block;
	font-family: var(--font-sans);
	font-size: 0.625rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--foreground) 55%, transparent);
	margin: 0;
}
.theme-product-info__series {
	font-family: var(--font-sans);
	font-size: 0.625rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--foreground) 55%, transparent);
	margin: 0.25rem 0 0;
}
.product-title.single-product-title {
	font-family: var(--font-serif);
	font-weight: 300;
	font-size: 3rem;
	line-height: 1.05;
	letter-spacing: -0.02em;
	margin: 0.75rem 0 1.5rem;
}
@media (min-width: 768px) { .product-title.single-product-title { font-size: 3.75rem; } }
.theme-product-info__price {
	font-family: var(--font-sans);
	font-size: 1.5rem;
	font-weight: 600;
	margin: 0 0 1.5rem;
	line-height: 1.2;
}
.theme-product-info__price .woocommerce-Price-amount { font-weight: 600; }
.theme-product-info__stock--out {
	display: inline-flex;
	margin-bottom: 1.5rem;
	font-family: var(--font-sans);
	font-size: 0.75rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--color-accent);
}
.theme-product-info__blurb {
	font-family: var(--font-serif);
	font-size: 1.125rem;
	line-height: 1.7;
	color: color-mix(in srgb, var(--foreground) 80%, transparent);
	margin: 0 0 2.5rem;
	overflow-wrap: break-word;
}
.theme-product-info__blurb p { margin: 0; }

.theme-quantity-wrapper {
	display: inline-flex;
	align-items: center;
	border: 1px solid color-mix(in srgb, var(--foreground) 25%, transparent);
	border-radius: 9999px;
	height: auto;
}
.theme-qty-minus, .theme-qty-plus {
	padding: 0.75rem 1rem;
	height: 100%;
	display: flex;
	align-items: center;
	background: none;
	border: none;
	cursor: pointer;
	color: inherit;
}
.theme-qty-minus { border-radius: 9999px 0 0 9999px; }
.theme-qty-plus { border-radius: 0 9999px 9999px 0; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background: color-mix(in srgb, var(--foreground) 5%, transparent); }
.theme-qty-input {
	width: 3rem;
	text-align: center;
	border: none;
	background: transparent;
	font-family: var(--font-sans);
	padding: 0.75rem 0;
	-moz-appearance: textfield;
}
.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.theme-product-info__meta {
	margin-top: 0;
	padding-top: 1.5rem;
	border-top: 1px solid color-mix(in srgb, var(--foreground) 15%, transparent);
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	font-family: var(--font-sans);
	font-size: 0.875rem;
	color: color-mix(in srgb, var(--foreground) 70%, transparent);
}
.theme-product-info__meta-row { display: flex; align-items: center; gap: 0.75rem; }
.theme-product-info__meta-row svg { color: var(--color-accent); flex-shrink: 0; }

.single-product .theme-add-to-cart-area {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 2.5rem;
}
.single-product .single_add_to_cart_button,
.single-product .theme-btn-primary.single_add_to_cart_button {
	flex: 1 1 auto;
	min-width: 12.5rem;
}
.single-product .single_add_to_cart_button:hover {
	background-color: var(--color-accent) !important;
	opacity: 1 !important;
}
.single-product .posted_in { overflow-wrap: break-word; word-break: break-word; }

.related-products-section.scroll-reveal-section { margin-top: 6rem; padding-top: 4rem; border-top: 1px solid color-mix(in srgb, var(--foreground) 15%, transparent); }
.related-products__heading { font-family: var(--font-serif); font-size: 2rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .related-products__heading { font-size: 2.5rem; } }
.related-products-section .theme-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1023px) { .related-products-section .theme-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px)  { .related-products-section .theme-product-grid { grid-template-columns: 1fr; } }

/* Cover images that fill a fixed container need the global img height:auto exclusion */
#product-main-img,
.theme-product-thumb img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}

/* ==========================================================================
   WooCommerce — Side cart
   ========================================================================== */
#theme-cart-overlay {
	position: fixed;
	inset: 0;
	background: color-mix(in srgb, var(--ink, #0d1117) 40%, transparent);
	z-index: 60;
	opacity: 0;
	pointer-events: none;
	transition: opacity 300ms ease;
}
body.cart-open #theme-cart-overlay { opacity: 1; pointer-events: auto; }

#theme-cart-drawer {
	position: fixed;
	top: 0; right: 0;
	height: 100%;
	width: 100%;
	max-width: 28rem;
	background: var(--background);
	z-index: 70;
	box-shadow: -20px 0 60px -20px rgba(0,0,0,0.4);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

.theme-cart-drawer__header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid color-mix(in srgb, var(--foreground) 15%, transparent); }
.theme-cart-drawer__title { font-family: var(--font-serif); font-size: 1.5rem; margin: 0; }
.theme-cart-drawer__close { padding: 0.25rem; opacity: 0.7; }
.theme-cart-drawer__close:hover { opacity: 1; }

.theme-cart-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; }
.theme-cart-drawer__empty svg { color: color-mix(in srgb, var(--foreground) 40%, transparent); margin-bottom: 1rem; }
.theme-cart-drawer__empty-text { font-family: var(--font-serif); color: color-mix(in srgb, var(--foreground) 70%, transparent); margin-bottom: 1.5rem; }
.theme-cart-drawer__continue { font-family: var(--font-sans); font-size: 0.625rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; border: 1px solid color-mix(in srgb, var(--foreground) 30%, transparent); padding: 0.75rem 1.5rem; border-radius: 9999px; }
.theme-cart-drawer__continue:hover { background: var(--foreground); color: var(--background); }

.theme-cart-drawer__items { flex: 1; overflow: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.theme-cart-item { display: flex; gap: 1rem; }
.theme-cart-item__image { position: relative; width: 5rem; height: 7rem; background: color-mix(in srgb, var(--foreground) 8%, transparent); overflow: hidden; flex-shrink: 0; display: block; }
#theme-cart-drawer .theme-cart-item__image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}
.theme-cart-item__body { flex: 1; min-width: 0; }
.theme-cart-item__title { font-family: var(--font-serif); font-size: 1rem; color: var(--foreground); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-cart-item__title:hover { color: var(--color-accent); }
.theme-cart-item__price { font-size: 0.875rem; color: color-mix(in srgb, var(--foreground) 60%, transparent); margin: 0.125rem 0 0; font-family: var(--font-sans); }
.theme-cart-item__variation { font-size: 0.75rem; color: color-mix(in srgb, var(--foreground) 55%, transparent); margin-top: 0.25rem; }
.theme-cart-item__controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.theme-cart-item__qty-btn { padding: 0.25rem; border-radius: 0.25rem; }
.theme-cart-item__qty-btn:hover { background: color-mix(in srgb, var(--foreground) 10%, transparent); }
.theme-cart-item__qty { font-size: 0.875rem; width: 1.5rem; text-align: center; font-family: var(--font-sans); }
.theme-cart-item__remove { margin-left: auto; font-size: 0.75rem; color: color-mix(in srgb, var(--foreground) 60%, transparent); text-transform: uppercase; letter-spacing: 0.05em; font-family: var(--font-sans); }
.theme-cart-item__remove:hover { color: var(--color-accent); }

.theme-cart-drawer__footer { padding: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--foreground) 15%, transparent); display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-drawer__subtotal { display: flex; justify-content: space-between; font-size: 0.875rem; font-family: var(--font-sans); }
.theme-cart-drawer__delivery-note { font-size: 0.75rem; color: color-mix(in srgb, var(--foreground) 60%, transparent); font-family: var(--font-sans); margin: 0; }
.theme-cart-drawer__checkout {
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--color-primary);
	color: var(--color-button-text);
	padding: 1rem 1.75rem;
	border-radius: 9999px;
	font-family: var(--font-sans);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.25em;
	text-transform: uppercase;
}
.theme-cart-drawer__checkout:hover { background: var(--color-accent); }

/* ==========================================================================
   WooCommerce — Checkout Block (Section 13)
   ========================================================================== */
body.woocommerce-checkout .site-main { padding-top: var(--header-height); padding-bottom: 4rem; }

/* Remove parent width constraints so the checkout block can use --checkout-max-width */
body.woocommerce-checkout:not(.theme-thankyou-page) .theme-container,
body.woocommerce-checkout:not(.theme-thankyou-page) .site-main,
body.woocommerce-checkout:not(.theme-thankyou-page) article,
body.woocommerce-checkout:not(.theme-thankyou-page) #page-content,
body.woocommerce-checkout:not(.theme-thankyou-page) .entry-content,
body.woocommerce-cart .entry-content,
body.woocommerce-account .entry-content,
.entry-content:has(.wp-block-woocommerce-checkout),
.entry-content:has(.wc-block-checkout) {
	max-width: none;
	width: 100%;
	box-sizing: border-box;
}

body.woocommerce-checkout .page-title,
body.woocommerce-cart .page-title,
body.woocommerce-account .page-title { margin-top: 2rem; }

body.woocommerce-checkout .theme-container > .page-title {
	width: 100%;
	max-width: var(--checkout-max-width);
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

/* Checkout block shell — centered, up to 1280px */
body.woocommerce-checkout .entry-content .wp-block-woocommerce-checkout,
body.woocommerce-checkout .entry-content .wc-block-checkout,
.entry-content .wp-block-woocommerce-checkout,
.entry-content .wc-block-checkout {
	width: 100%;
	max-width: var(--checkout-max-width);
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
	font-family: var(--font-sans);
	color: var(--foreground);
}

body.woocommerce-cart .wc-block-cart {
	font-family: var(--font-sans);
	color: var(--foreground);
}

/* Notices — same width/alignment as checkout content */
body.woocommerce-checkout .wc-block-components-notices,
.entry-content .wc-block-components-notices {
	width: 100%;
	max-width: var(--checkout-max-width);
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

/* Two-column layout on the sidebar layout container (real checkout grid) */
@media (min-width: 768px) {
	body.woocommerce-checkout .entry-content .wc-block-components-sidebar-layout,
	body.woocommerce-checkout .entry-content .wc-block-checkout-sidebar-layout,
	.entry-content .wc-block-components-sidebar-layout,
	.entry-content .wc-block-checkout-sidebar-layout,
	body.woocommerce-checkout .entry-content .wc-block-components-sidebar-layout.wc-block-checkout,
	body.woocommerce-checkout .entry-content .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
		display: grid !important;
		grid-template-columns: 1fr minmax(360px, 400px);
		gap: var(--checkout-gap);
		align-items: start;
		width: 100%;
		max-width: var(--checkout-max-width);
		margin-left: auto;
		margin-right: auto;
		box-sizing: border-box;
	}

	body.woocommerce-checkout .entry-content .wc-block-components-sidebar-layout > .wc-block-components-notices,
	body.woocommerce-checkout .entry-content .wc-block-checkout-sidebar-layout > .wc-block-components-notices,
	.entry-content .wc-block-components-sidebar-layout > .wc-block-components-notices,
	.entry-content .wc-block-checkout-sidebar-layout > .wc-block-components-notices {
		grid-column: 1 / -1;
		order: 1;
	}

	/* Notice banners inside the layout also span full width */
	body.woocommerce-checkout .entry-content .wc-block-components-sidebar-layout > .wc-block-components-notice-banner,
	body.woocommerce-checkout .entry-content .wc-block-checkout-sidebar-layout > .wc-block-components-notice-banner,
	.entry-content .wc-block-components-sidebar-layout > .wc-block-components-notice-banner,
	.entry-content .wc-block-checkout-sidebar-layout > .wc-block-components-notice-banner {
		grid-column: 1 / -1;
		order: 1;
	}

	/* Form column */
	body.woocommerce-checkout .entry-content .wc-block-components-sidebar-layout > .wc-block-components-main,
	body.woocommerce-checkout .entry-content .wc-block-components-sidebar-layout > .wp-block-woocommerce-checkout-fields-block,
	body.woocommerce-checkout .entry-content .wc-block-checkout-sidebar-layout > .wc-block-components-main,
	body.woocommerce-checkout .entry-content .wc-block-checkout-sidebar-layout > .wp-block-woocommerce-checkout-fields-block,
	.entry-content .wc-block-components-sidebar-layout > .wc-block-components-main,
	.entry-content .wc-block-components-sidebar-layout > .wp-block-woocommerce-checkout-fields-block,
	.entry-content .wc-block-checkout-sidebar-layout > .wc-block-components-main,
	.entry-content .wc-block-checkout-sidebar-layout > .wp-block-woocommerce-checkout-fields-block {
		order: 2;
	}

	/* Order summary / totals column */
	body.woocommerce-checkout .entry-content .wc-block-components-sidebar-layout > .wc-block-components-sidebar,
	body.woocommerce-checkout .entry-content .wc-block-components-sidebar-layout > .wp-block-woocommerce-checkout-totals-block,
	body.woocommerce-checkout .entry-content .wc-block-checkout-sidebar-layout > .wc-block-components-sidebar,
	body.woocommerce-checkout .entry-content .wc-block-checkout-sidebar-layout > .wp-block-woocommerce-checkout-totals-block,
	.entry-content .wc-block-components-sidebar-layout > .wc-block-components-sidebar,
	.entry-content .wc-block-components-sidebar-layout > .wp-block-woocommerce-checkout-totals-block,
	.entry-content .wc-block-checkout-sidebar-layout > .wc-block-components-sidebar,
	.entry-content .wc-block-checkout-sidebar-layout > .wp-block-woocommerce-checkout-totals-block {
		order: 3;
		min-width: 360px;
	}
}

/* Reset WooCommerce flex widths so grid children fill their columns */
body.woocommerce-checkout .entry-content .wc-block-components-sidebar-layout .wc-block-components-main,
body.woocommerce-checkout .entry-content .wc-block-components-sidebar-layout .wc-block-components-sidebar,
body.woocommerce-checkout .entry-content .wc-block-checkout-sidebar-layout .wc-block-components-main,
body.woocommerce-checkout .entry-content .wc-block-checkout-sidebar-layout .wc-block-components-sidebar,
.entry-content .wc-block-components-sidebar-layout .wc-block-components-main,
.entry-content .wc-block-components-sidebar-layout .wc-block-components-sidebar,
.entry-content .wc-block-checkout-sidebar-layout .wc-block-components-main,
.entry-content .wc-block-checkout-sidebar-layout .wc-block-components-sidebar,
body.woocommerce-checkout .entry-content .wc-block-checkout__main,
body.woocommerce-checkout .entry-content .wc-block-checkout__sidebar {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0;
	padding-left: 0 !important;
	padding-right: 0 !important;
	box-sizing: border-box;
}

body.woocommerce-checkout .entry-content .wp-block-woocommerce-checkout-order-summary-block,
.entry-content .wp-block-woocommerce-checkout-order-summary-block {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-textarea textarea {
	width: 100% !important;
	max-width: none !important;
	font-family: var(--font-sans);
	color: var(--foreground);
	border: 1px solid color-mix(in srgb, var(--foreground) 25%, transparent);
	border-radius: var(--radius);
	background: var(--background);
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 1px var(--color-primary);
}
body.woocommerce-checkout .wc-block-components-text-input input::placeholder { color: color-mix(in srgb, var(--foreground) 40%, transparent); }

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background-color: var(--color-primary) !important;
	color: var(--color-button-text) !important;
	border-radius: var(--btn-radius) !important;
	font-family: var(--font-sans) !important;
	font-size: var(--btn-font-size) !important;
	font-weight: var(--btn-font-weight) !important;
	letter-spacing: var(--btn-letter-spacing) !important;
	text-transform: none !important;
	min-height: var(--btn-height) !important;
	border: none !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover { opacity: 0.85; }

body.woocommerce-checkout .wc-block-components-notice-banner {
	font-family: var(--font-sans);
	border-radius: var(--card-radius);
}

body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-cart .wc-block-cart__totals-title {
	background-color: color-mix(in srgb, var(--foreground) 4%, var(--background));
	border-radius: var(--card-radius);
	padding: 2rem;
}

body.woocommerce-checkout h2,
body.woocommerce-checkout h3 {
	font-family: var(--font-sans);
	font-weight: 700;
}

/* ==========================================================================
   WooCommerce — Thank you page (Section 22.8)
   ========================================================================== */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .site-main { padding-top: var(--header-height); padding-bottom: 4rem; }
body.theme-thankyou-page .theme-container {
	max-width: var(--checkout-max-width);
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	box-sizing: border-box;
}
body.theme-thankyou-page .entry-content,
body.theme-thankyou-page .theme-thankyou {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
	font-family: var(--font-serif);
	font-weight: 300;
	font-size: 2rem;
	padding: 0 0 1rem 0;
}
body.theme-thankyou-page .woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	list-style: none;
	padding: 0;
	margin: 0 0 2rem;
}
body.theme-thankyou-page .woocommerce-order-overview li {
	font-family: var(--font-sans);
	font-size: 0.875rem;
}
body.theme-thankyou-page .woocommerce-order-details table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	font-family: var(--font-sans);
}
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
body.theme-thankyou-page .woocommerce-customer-details {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-top: 2rem;
}
body.theme-thankyou-page .woocommerce-customer-details address {
	max-width: 480px;
	overflow-wrap: break-word;
}
@media (min-width: 768px) {
	body.theme-thankyou-page .woocommerce-customer-details {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
	}
	body.theme-thankyou-page .woocommerce-customer-details address { min-width: 0; }
}

/* ==========================================================================
   Utility: word wrap safety
   ========================================================================== */
.theme-product-card__title,
.theme-product-info__blurb,
.about-copy p,
.author-copy p {
	overflow-wrap: break-word;
}
