@font-face {
	font-family: "Cormorant Garamond";
	src: url("../fonts/cormorant-garamond.woff2") format("woff2");
	font-display: swap;
	font-weight: 300 700;
}

@font-face {
	font-family: Manrope;
	src: url("../fonts/manrope.woff2") format("woff2");
	font-display: swap;
	font-weight: 200 800;
}

/* ---------- Tokens: the mock's Tailwind values, named ---------- */
:root {
	color-scheme: dark;
	--am-void: #080112;
	--am-abyss: #150421;
	--am-abyss-raised: #24083d;
	--am-abyss-deep: #0b0215;
	--am-plum: #2a0a4f;
	--am-plum-bright: #4d167e;
	--am-plum-deep: #12031f;
	--am-violet: #d8b4fe;
	--am-fuchsia: #f0abfc;
	--am-ember: #fde68a;
	--am-glow-violet: #9333ea;
	--am-glow-fuchsia: #d946ef;
	--am-glow-indigo: #4f46e5;
	--am-ink: #ffffff;
	--am-mist: #ada3b8;
	--am-mist-faint: #898094;
	--am-on-light: #020617;
	--am-on-white: #3b0764;
	--am-white-hover: #f3e8ff;
	--am-glass: rgba(255, 255, 255, 0.07);
	--am-glass-strong: rgba(255, 255, 255, 0.12);
	--am-glass-line: rgba(255, 255, 255, 0.1);
	--am-violet-line: rgba(233, 213, 255, 0.15);
	--am-gradient: linear-gradient(90deg, var(--am-fuchsia), var(--am-violet), var(--am-ember));
	--am-gradient-diagonal: linear-gradient(135deg, var(--am-violet), var(--am-fuchsia), var(--am-ember));
	--am-gradient-text: linear-gradient(90deg, #f5d0fe, #e9d5ff, #fef3c7);
	--am-radius-pill: 9999px;
	--am-radius-card: 24px;
	--am-radius-panel: 32px;
	--am-radius-hero: 40px;
	--am-gutter: clamp(24px, 4vw, 64px);
	--am-section: clamp(64px, 8vw, 96px);
	--am-max: 80rem;
	--am-shadow: 0 25px 50px -12px rgba(59, 7, 100, 0.4);
	--am-shadow-glow: 0 25px 50px -12px rgba(74, 4, 78, 0.5);
	--am-focus: #f0abfc;
	--am-error: #fca5a5;
	--am-field-line: #6b6280;
	--am-accent-1a: #e879f9;
	--am-accent-1b: #a78bfa;
	--am-accent-2a: #d8b4fe;
	--am-accent-2b: #f9a8d4;
	--am-accent-3a: #a5b4fc;
	--am-accent-3b: #67e8f9;
	--am-accent-4a: #fde68a;
	--am-accent-4b: #f0abfc;
	--am-blur: blur(24px);
}

/* ---------- Base ---------- */
* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--am-void);
	color: var(--am-ink);
	font-family: var(--wp--preset--font-family--body);
	overflow-x: clip;
}

.wp-site-blocks {
	overflow: clip;
}

.wp-site-blocks > main,
.wp-site-blocks > .am-main {
	margin-block-start: 0;
}

h1,
h2,
h3,
.wp-block-heading {
	font-family: var(--wp--preset--font-family--display);
	color: var(--am-ink);
	letter-spacing: -0.01em;
}

p,
li {
	color: var(--am-mist);
}

a {
	color: var(--am-fuchsia);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
}

a:hover {
	color: var(--am-ink);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--am-focus);
	outline-offset: 3px;
}

button,
input:not([type="checkbox"]):not([type="radio"]),
select {
	min-height: 44px;
}

/* Native option lists follow the dark surface instead of drawing white on white. */
select option {
	background: var(--am-abyss);
	color: var(--am-ink);
}

.am-eyebrow {
	font-size: 0.875rem;
	letter-spacing: 0.4em;
	text-transform: uppercase;
	color: var(--am-fuchsia);
}

.am-glass {
	background: var(--am-glass);
	border: 1px solid var(--am-glass-line);
	border-radius: var(--am-radius-panel);
	box-shadow: var(--am-shadow);
	backdrop-filter: var(--am-blur);
}

.am-gradient-text,
mark.am-gradient-text {
	background: var(--am-gradient-text);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* ---------- Buttons: the mock's pills ---------- */
.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	min-height: 44px;
	padding: 1rem 1.75rem;
	border: 0;
	border-radius: var(--am-radius-pill);
	background: var(--am-gradient);
	color: var(--am-on-light);
	font-weight: 600;
	text-decoration: none;
	box-shadow: var(--am-shadow-glow);
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.wp-element-button:hover,
.wp-block-button__link:hover {
	transform: scale(1.02);
	color: var(--am-on-light);
}

.is-style-am-glass .wp-block-button__link,
.is-style-outline .wp-block-button__link {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: var(--am-ink);
	backdrop-filter: var(--am-blur);
	box-shadow: none;
}

.is-style-am-glass .wp-block-button__link:hover,
.is-style-outline .wp-block-button__link:hover {
	background: var(--am-glass-strong);
	color: var(--am-ink);
}

.is-style-am-light .wp-block-button__link {
	background: var(--am-ink);
	color: var(--am-on-white);
	padding: 0.625rem 1.25rem;
	font-size: 0.875rem;
}

.is-style-am-light .wp-block-button__link:hover {
	background: var(--am-white-hover);
	color: var(--am-on-white);
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation: none !important;
		transition-property: opacity !important;
	}

	.wp-element-button:hover,
	.wp-block-button__link:hover {
		transform: none;
	}
}

/* ---------- Header: the mock's glass pill (max-w-7xl, rounded-full, px-5 py-4) ---------- */
.am-site-header {
	position: relative;
	z-index: 20;
	padding: 24px var(--am-gutter) 0;
}

.am-nav-pill {
	max-width: var(--am-max);
	margin: 0 auto;
	padding: 0.75rem 1.25rem;
	gap: 1rem;
	border: 1px solid var(--am-glass-line);
	border-radius: var(--am-radius-pill);
	background: rgba(255, 255, 255, 0.06);
	box-shadow: var(--am-shadow);
	backdrop-filter: var(--am-blur);
}

.am-brand-lockup {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	min-height: 44px;
	color: var(--am-ink);
	text-decoration: none;
}

.am-brand-lockup:hover {
	color: var(--am-ink);
}

.am-badge {
	position: relative;
	display: grid;
	flex: none;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--am-abyss);
	box-shadow: 0 0 22px rgba(217, 70, 239, 0.45);
}

.am-badge-ring {
	position: absolute;
	inset: 0;
	padding: 2px;
	border-radius: 50%;
	background: conic-gradient(from 0deg, var(--am-violet), var(--am-fuchsia), var(--am-ember), var(--am-violet));
	-webkit-mask: linear-gradient(black 0 0) content-box, linear-gradient(black 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(black 0 0) content-box exclude, linear-gradient(black 0 0);
	animation: am-spin 18s linear infinite;
}

.am-badge img {
	position: relative;
	width: 20px;
	height: auto;
}

@keyframes am-spin {
	to {
		transform: rotate(360deg);
	}
}

.am-identity-copy {
	display: grid;
	gap: 2px;
	line-height: 1.15;
}

.am-identity-name {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.125rem;
	font-weight: 400;
	letter-spacing: 0.025em;
}

.am-identity-descriptor {
	font-size: 10px;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	color: var(--am-violet);
}

.am-primary-nav {
	gap: 2rem;
}

.am-primary-nav a,
.am-primary-nav .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--am-mist);
	font-size: 0.875rem;
	text-decoration: none;
}

.am-primary-nav a:hover {
	color: var(--am-ink);
}

.am-primary-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--am-abyss);
	color: var(--am-ink);
}

.am-nav-actions {
	gap: 0.75rem;
}

.am-header-search .wp-block-search__inside-wrapper {
	border: 1px solid var(--am-glass-line);
	border-radius: var(--am-radius-pill);
	background: rgba(255, 255, 255, 0.04);
	padding: 2px;
}

.am-header-search .wp-block-search__input {
	width: 9rem;
	border: 0;
	background: transparent;
	color: var(--am-ink);
	padding-inline: 0.875rem;
}

.am-header-search .wp-block-search__input::placeholder {
	color: var(--am-mist-faint);
}

.am-header-search .wp-block-search__button {
	min-width: 40px;
	min-height: 40px;
	padding: 0.5rem;
	border-radius: var(--am-radius-pill);
	background: transparent;
	color: var(--am-mist);
	box-shadow: none;
}

.am-header-search .wp-block-search__button svg {
	fill: currentColor;
}

@media (min-width: 782px) {
	.am-nav-pill {
		flex-wrap: nowrap !important;
	}

	.am-primary-nav {
		flex: 1 1 auto;
		min-width: 0;
	}
}

@media (max-width: 1279px) {
	.am-identity-descriptor {
		display: none;
	}

	.am-primary-nav {
		gap: 1.25rem;
	}

	.am-header-search .wp-block-search__input {
		width: 7rem;
	}
}

@media (max-width: 781px) {
	.am-nav-pill {
		flex-wrap: nowrap !important;
		gap: 0.5rem;
		padding: 0.75rem 1rem;
		border-radius: var(--am-radius-panel);
	}

	/* Like the mock: the name wraps before anything leaves the row. */
	.am-brand-lockup {
		flex: 1 1 auto;
		min-width: 0;
		gap: 0.625rem;
	}

	.am-identity-name {
		font-size: 1rem;
	}

	.am-identity-descriptor,
	.am-header-search {
		display: none;
	}

	.am-nav-actions .wp-block-button__link {
		padding: 0.5rem 0.875rem;
		font-size: 0.8125rem;
		white-space: nowrap;
	}
}

/* ---------- Footer ---------- */
.am-site-footer {
	margin-top: var(--am-section);
	padding: var(--am-section) var(--am-gutter) 32px;
	border-top: 1px solid var(--am-glass-line);
	background:
		radial-gradient(circle at 15% 0%, rgba(147, 51, 234, 0.22), transparent 55%),
		radial-gradient(circle at 90% 100%, rgba(217, 70, 239, 0.14), transparent 50%),
		var(--am-abyss-deep);
}

.am-footer-inner {
	max-width: var(--am-max);
	margin: 0 auto;
}

.am-footer-grid {
	gap: clamp(32px, 5vw, 72px);
}

.am-site-footer .am-identity-mark {
	width: 44px;
	height: auto;
}

.am-site-footer .am-identity {
	display: inline-flex;
	align-items: center;
	gap: 0.875rem;
}

.am-site-footer h2 {
	font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.am-footer-nav a {
	color: var(--am-mist);
	text-decoration: none;
	min-height: 32px;
	display: inline-flex;
	align-items: center;
}

.am-footer-nav a:hover {
	color: var(--am-ink);
}

.am-footer-rail {
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--am-glass-line);
}

.am-footer-rail p {
	color: var(--am-mist-faint);
	margin: 0;
}

/* ---------- Coming soon ---------- */
.am-coming-soon {
	max-width: 48rem;
	margin: 0 auto;
	padding: var(--am-section) var(--am-gutter);
	text-align: center;
}

.am-coming-soon-seal img {
	width: 96px;
	height: auto;
	margin: 0 auto;
	filter: drop-shadow(0 0 28px rgba(217, 70, 239, 0.45));
}

.am-coming-soon h1 {
	font-size: clamp(2.75rem, 7vw, 4.5rem);
	line-height: 0.95;
}

body:has(.am-coming-soon) {
	background:
		radial-gradient(circle at 10% 10%, rgba(147, 51, 234, 0.35), transparent 40%),
		radial-gradient(circle at 90% 5%, rgba(217, 70, 239, 0.3), transparent 40%),
		var(--am-void);
}

/* ---------- Icons: lucide (ISC) as masks, so they take the text colour ---------- */
.am-icon--eye,
.am-icon-before--eye,
.am-icon-after--eye { --am-icon: url(../icons/eye.svg); }
.am-icon--scroll-text,
.am-icon-before--scroll-text,
.am-icon-after--scroll-text { --am-icon: url(../icons/scroll-text.svg); }
.am-icon--book-open,
.am-icon-before--book-open,
.am-icon-after--book-open { --am-icon: url(../icons/book-open.svg); }
.am-icon--wand-sparkles,
.am-icon-before--wand-sparkles,
.am-icon-after--wand-sparkles { --am-icon: url(../icons/wand-sparkles.svg); }
.am-icon--moon,
.am-icon-before--moon { --am-icon: url(../icons/moon.svg); }
.am-icon--stars { --am-icon: url(../icons/stars.svg); }
.am-icon--gem { --am-icon: url(../icons/gem.svg); }
.am-icon--users { --am-icon: url(../icons/users.svg); }
.am-icon-before--shopping-bag { --am-icon: url(../icons/shopping-bag.svg); }
.am-icon-after--arrow-right { --am-icon: url(../icons/arrow-right.svg); }
.am-icon--circle-dot,
.am-path-step { --am-icon: url(../icons/circle-dot.svg); }
.am-icon--sparkles { --am-icon: url(../icons/sparkles.svg); }
.am-path .am-panel .am-eyebrow { --am-icon: url(../icons/stars.svg); }

.am-hero-pill::before,
.am-orbit-button::before,
.am-circle-card::before,
.am-path-step::before,
.am-path .am-panel .am-eyebrow::before,
[class*="am-icon-before--"] .wp-block-button__link::before,
[class*="am-icon-after--"] .wp-block-button__link::after {
	content: "";
	display: inline-block;
	flex: none;
	width: 1.25em;
	height: 1.25em;
	background: currentColor;
	-webkit-mask: var(--am-icon) center / contain no-repeat;
	mask: var(--am-icon) center / contain no-repeat;
}

[class*="am-icon-after--"] .wp-block-button__link::after {
	transition: transform 0.2s ease;
}

[class*="am-icon-after--"] .wp-block-button__link:hover::after {
	transform: translateX(4px);
}

/* ---------- Shared section frame (the mock's px-6 py-20, max-w-7xl) ---------- */
.am-main {
	margin: 0;
}

.am-section {
	position: relative;
	padding: 80px var(--am-gutter);
	margin: 0;
}

.am-section > * {
	max-width: var(--am-max);
	margin-inline: auto;
}

.am-section h2 {
	font-size: clamp(2.25rem, 4vw, 3rem);
	line-height: 1.05;
	margin: 1rem 0 0;
}

.am-section-head {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-bottom: 40px;
}

.am-section-head > * {
	margin: 0;
}

.am-section-lead {
	max-width: 36rem;
	color: var(--am-mist);
}

.am-eyebrow--ember {
	color: var(--am-ember);
}

.am-eyebrow--violet {
	color: var(--am-violet);
}

@media (min-width: 1024px) {
	.am-section-head {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
	}
}

/* ---------- Hero ---------- */
body.home .wp-site-blocks > header.wp-block-template-part {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: 20;
}

.am-hero {
	position: relative;
	min-height: 100vh;
	/* Sideways only: the indigo orb spills down into the next section, as in the mock. */
	overflow-x: clip;
	padding: 120px var(--am-gutter) 24px;
	margin: 0;
}

.am-orbs,
.am-starfield {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.am-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(64px);
	opacity: 0.4;
	animation: am-drift 8s ease-in-out infinite;
}

.am-orb--violet {
	top: 6rem;
	left: -8rem;
	width: 20rem;
	height: 20rem;
	background: var(--am-glow-violet);
}

.am-orb--fuchsia {
	top: 2.5rem;
	right: -10rem;
	width: 24rem;
	height: 24rem;
	background: var(--am-glow-fuchsia);
	animation-delay: 1.2s;
}

.am-orb--indigo {
	bottom: -10rem;
	left: 33%;
	width: 24rem;
	height: 24rem;
	background: var(--am-glow-indigo);
	animation-delay: 2.4s;
}

@keyframes am-drift {
	50% {
		transform: translate(16px, -24px) scale(1.08);
	}
}

.am-star {
	position: absolute;
	width: 2px;
	height: 2px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.8);
	box-shadow: 0 0 18px rgba(255, 255, 255, 0.8);
	opacity: 0.15;
	animation: am-twinkle 3.5s infinite;
}

.am-star--large {
	width: 3px;
	height: 3px;
}

@keyframes am-twinkle {
	50% {
		opacity: 0.9;
		transform: scale(1.6);
	}
}

.am-hero-grid {
	position: relative;
	z-index: 10;
	display: grid;
	align-items: center;
	gap: 56px;
	max-width: var(--am-max);
	margin: 0 auto;
	padding-block: 80px;
}

.am-hero-copy > * {
	margin: 0;
}

.am-hero-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 24px !important;
	padding: 8px 16px;
	border: 1px solid rgba(216, 180, 254, 0.3);
	border-radius: var(--am-radius-pill);
	background: rgba(192, 132, 252, 0.1);
	color: var(--am-white-hover);
	font-size: 0.875rem;
	box-shadow: var(--am-shadow);
	backdrop-filter: blur(4px);
}

.am-hero-pill::before {
	width: 16px;
	height: 16px;
}

.am-hero-title {
	max-width: 56rem;
	font-size: clamp(3.75rem, 8vw, 6rem);
	font-weight: 400;
	line-height: 0.92;
	letter-spacing: -0.025em;
}

.am-hero-lead {
	max-width: 42rem;
	margin-top: 28px !important;
	color: var(--am-white-hover);
	font-size: 1.125rem;
	line-height: 2rem;
	opacity: 0.9;
}

.am-hero-actions {
	gap: 16px;
	margin-top: 36px !important;
}

@media (max-width: 639px) {
	.am-hero-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.am-hero-actions .wp-block-button__link {
		width: 100%;
	}
}

@media (min-width: 1024px) {
	.am-hero-grid {
		grid-template-columns: 1.05fr 0.95fr;
		padding-block: 112px;
	}
}

/* The orbiting card: halo, two counter-rotating rings, the floating mark. */
.am-orbit-rig {
	position: relative;
	width: 100%;
	max-width: 520px;
	aspect-ratio: 1;
	margin: 0 auto;
}

.am-orbit-halo,
.am-orbit-ring,
.am-orbit-core {
	position: absolute;
	border-radius: 50%;
}

.am-orbit-halo {
	inset: 0;
	background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(217, 70, 239, 0.1), rgba(253, 230, 138, 0.2));
	filter: blur(40px);
}

.am-orbit-ring--dashed {
	inset: 24px;
	border: 1px dashed rgba(233, 213, 255, 0.25);
	animation: am-spin 40s linear infinite;
}

.am-orbit-ring--inner {
	inset: 64px;
	border: 1px solid rgba(245, 208, 254, 0.2);
	animation: am-spin 55s linear infinite reverse;
}

.am-orbit-core {
	inset: 96px;
	display: grid;
	place-items: center;
	border: 1px solid var(--am-glass-line);
	background: var(--am-glass);
	box-shadow: var(--am-shadow);
	backdrop-filter: var(--am-blur);
}

.am-orbit-card {
	display: grid;
	place-items: center;
	width: 128px;
	height: 176px;
	border: 1px solid rgba(233, 213, 255, 0.2);
	border-radius: var(--am-radius-panel);
	background: linear-gradient(135deg, var(--am-plum), var(--am-plum-bright), var(--am-plum-deep));
	box-shadow: var(--am-shadow-glow);
	animation: am-float 4.5s ease-in-out infinite;
}

.am-orbit-card img {
	width: 64px;
	height: auto;
	filter: drop-shadow(0 0 16px rgba(240, 171, 252, 0.45));
}

@keyframes am-float {
	50% {
		transform: translateY(-14px);
	}
}

.am-orbit-button {
	position: absolute;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	padding: 0;
	border: 1px solid var(--am-glass-line);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.1);
	color: var(--am-white-hover);
	cursor: pointer;
	backdrop-filter: var(--am-blur);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.am-orbit-button::before {
	width: 28px;
	height: 28px;
}

.am-orbit-button:hover {
	transform: scale(1.12);
}

.am-orbit-button.am-is-active {
	box-shadow: 0 0 34px rgba(232, 121, 249, 0.65);
}

.am-orbit-button--1 { top: 96px; left: 16px; }
.am-orbit-button--2 { top: 128px; right: 12px; }
.am-orbit-button--3 { bottom: 80px; left: 48px; }
.am-orbit-button--4 { right: 64px; bottom: 48px; }

@media (max-width: 479px) {
	.am-orbit-core {
		inset: 64px;
	}

	.am-orbit-card {
		width: 88px;
		height: 120px;
		border-radius: var(--am-radius-card);
	}

	.am-orbit-card img {
		width: 44px;
	}

	.am-orbit-button {
		width: 52px;
		height: 52px;
	}

	.am-orbit-button--1 { top: 40px; left: 0; }
	.am-orbit-button--2 { top: 64px; right: 0; }
	.am-orbit-button--3 { bottom: 40px; left: 12px; }
	.am-orbit-button--4 { right: 16px; bottom: 16px; }
}

/* ---------- Choose Your Working ---------- */
.am-working-cards {
	display: grid;
	gap: 20px;
}

.am-working-card {
	position: relative;
	display: grid;
	grid-template-columns: 44px 1fr;
	column-gap: 16px;
	align-content: start;
	overflow: hidden;
	margin: 0;
	padding: 20px;
	border: 1px solid var(--am-glass-line);
	border-radius: var(--am-radius-card);
	background:
		radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--am-accent-a) 22%, transparent), transparent 45%),
		rgba(255, 255, 255, 0.07);
	transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
	--am-accent-a: var(--am-accent-1a);
	--am-accent-b: var(--am-accent-1b);
}

.am-working-card:nth-child(4n + 2) { --am-accent-a: var(--am-accent-2a); --am-accent-b: var(--am-accent-2b); }
.am-working-card:nth-child(4n + 3) { --am-accent-a: var(--am-accent-3a); --am-accent-b: var(--am-accent-3b); }
.am-working-card:nth-child(4n + 4) { --am-accent-a: var(--am-accent-4a); --am-accent-b: var(--am-accent-4b); }

.am-working-card > * {
	grid-column: 2;
	margin: 0;
}

/* The mock's gradient icon tile, with the lucide icon masked on top of it. */
.am-working-card::before {
	content: "";
	grid-column: 1;
	grid-row: 1 / span 3;
	width: 44px;
	height: 44px;
	border-radius: 16px;
	background: linear-gradient(135deg, var(--am-accent-a), var(--am-accent-b));
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.am-working-card::after {
	content: "";
	position: absolute;
	top: 32px;
	left: 32px;
	width: 20px;
	height: 20px;
	background: var(--am-on-light);
	-webkit-mask: var(--am-icon) center / contain no-repeat;
	mask: var(--am-icon) center / contain no-repeat;
}

.am-working-card:hover {
	transform: translateY(-8px) scale(1.02);
	border-color: rgba(216, 180, 254, 0.5);
}

.am-working-card.am-is-active {
	border-color: rgba(240, 171, 252, 0.8);
	background-color: rgba(255, 255, 255, 0.15);
	box-shadow: var(--am-shadow-glow);
}

.am-kicker {
	color: var(--am-violet);
	font-size: 0.75rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
}

.am-working-card h3 {
	margin-top: 8px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.4;
}

.am-working-text {
	margin-top: 12px !important;
	font-size: 0.875rem;
	line-height: 1.5rem;
}

.am-working-detail {
	margin-top: 16px !important;
}

.am-working-detail p {
	font-size: 0.875rem;
}

/* The button JS lays over the whole card; its text is the accessible name. */
button.am-select {
	position: absolute;
	inset: 0;
	z-index: 2;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: inherit;
	background: transparent;
	color: transparent;
	font-size: 0;
	cursor: pointer;
}

button.am-select:focus-visible {
	outline: 2px solid var(--am-focus);
	outline-offset: -2px;
}

.am-is-enhanced .am-working-card .am-working-detail,
.am-is-enhanced .am-path-step .am-path-detail {
	display: none;
}

.am-panel {
	margin-top: 32px;
	overflow: hidden;
	padding: 28px;
	border: 1px solid var(--am-violet-line);
	border-radius: var(--am-radius-panel);
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
	box-shadow: var(--am-shadow);
	backdrop-filter: var(--am-blur);
}

.am-panel-inner {
	display: grid;
	gap: 12px 32px;
	animation: am-rise 0.4s ease-out;
}

.am-panel-inner > *,
.am-panel-inner .am-working-detail > *,
.am-panel-inner .am-path-detail > * {
	margin: 0;
}

.am-panel .am-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--am-violet);
	font-size: 0.875rem;
	letter-spacing: 0.35em;
}

.am-panel h3 {
	font-size: 1.875rem;
	font-weight: 400;
}

.am-panel .am-working-detail,
.am-panel .am-path-detail {
	display: contents;
}

.am-panel .am-working-detail p,
.am-panel .am-path-detail p {
	max-width: 42rem;
	font-size: 1rem;
}

@keyframes am-rise {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
}

@media (min-width: 1024px) {
	.am-working-cards {
		grid-template-columns: repeat(4, 1fr);
	}

	.am-working .am-panel-inner {
		grid-template-columns: 1fr auto;
		align-items: center;
	}

	.am-working .am-panel-inner > :not(.am-working-detail),
	.am-working .am-panel-inner .am-working-detail > p {
		grid-column: 1;
	}

	.am-working .am-panel-inner .wp-block-buttons {
		grid-column: 2;
		grid-row: 1 / span 3;
	}
}

.am-working .am-panel .is-style-am-glass .wp-block-button__link {
	border-color: rgba(245, 208, 254, 0.3);
	background: rgba(240, 171, 252, 0.1);
	color: var(--am-white-hover);
	padding: 12px 24px;
}

/* ---------- The Path ---------- */
.am-path-layout {
	display: grid;
	gap: 40px;
}

.am-path-intro > * {
	margin: 0;
}

.am-path-intro .am-section-lead {
	margin-top: 20px;
}

.am-path-console {
	margin: 0;
	padding: 24px;
}

.am-path-steps {
	display: grid;
	gap: 12px;
}

.am-path-step {
	position: relative;
	margin: 0;
	padding: 20px 16px;
	border: 1px solid var(--am-glass-line);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.04);
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.am-path-step::before {
	display: block;
	margin-bottom: 16px;
	color: rgba(216, 180, 254, 0.5);
}

.am-path-step:hover {
	background: rgba(255, 255, 255, 0.08);
}

.am-path-step.am-is-active {
	border-color: rgba(245, 208, 254, 0.6);
	background: rgba(245, 208, 254, 0.15);
}

.am-path-step.am-is-active::before {
	color: var(--am-fuchsia);
}

.am-path-step h3 {
	margin: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	font-weight: 600;
}

.am-path-number {
	margin: 8px 0 0;
	color: var(--am-mist-faint);
	font-size: 0.75rem;
	line-height: 1.25rem;
}

.am-path .am-panel {
	margin-top: 24px;
	border: 0;
	border-radius: var(--am-radius-card);
	background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(217, 70, 239, 0.1));
	box-shadow: none;
	padding: 24px;
}

.am-path .am-panel .am-eyebrow {
	color: var(--am-white-hover);
	letter-spacing: 0.3em;
}

.am-path .am-panel-inner {
	animation-name: am-slide;
}

@keyframes am-slide {
	from {
		opacity: 0;
		transform: translateX(20px);
	}
}

@media (min-width: 640px) {
	.am-path-steps {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (min-width: 1024px) {
	.am-path-layout {
		grid-template-columns: 0.8fr 1.2fr;
		align-items: center;
	}
}

/* ---------- The Circle ---------- */
.am-circle {
	padding-block: 96px;
}

.am-circle-panel {
	display: grid;
	gap: 40px;
	overflow: hidden;
	padding: clamp(32px, 5vw, 48px);
	border: 1px solid var(--am-violet-line);
	border-radius: var(--am-radius-hero);
	background: linear-gradient(135deg, var(--am-on-white), var(--am-abyss-raised), var(--am-abyss-deep));
	box-shadow: var(--am-shadow-glow);
}

.am-circle-copy > * {
	margin: 0;
}

.am-circle h2 {
	max-width: 48rem;
	font-size: clamp(2.25rem, 5vw, 3.75rem);
}

.am-circle .am-section-lead {
	margin-top: 24px;
	max-width: 42rem;
	color: var(--am-white-hover);
	opacity: 0.8;
}

.am-tags {
	gap: 12px;
	margin-top: 32px !important;
}

.am-tag {
	margin: 0;
	padding: 8px 16px;
	border: 1px solid var(--am-glass-line);
	border-radius: var(--am-radius-pill);
	background: var(--am-glass);
	color: var(--am-white-hover);
	font-size: 0.875rem;
}

.am-circle-side {
	display: grid;
	gap: 16px;
	align-content: center;
}

.am-circle-card {
	margin: 0;
	padding: 24px;
	border: 1px solid var(--am-glass-line);
	border-radius: var(--am-radius-card);
	background: rgba(255, 255, 255, 0.08);
}

.am-circle-card::before {
	width: 28px;
	height: 28px;
	color: var(--am-fuchsia);
}

.am-circle-card > * {
	margin: 0;
}

.am-circle-card h3 {
	margin-top: 16px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.25rem;
	font-weight: 600;
}

.am-circle-card p {
	margin-top: 12px;
	font-size: 0.875rem;
	line-height: 1.5rem;
}

.am-circle-card .wp-block-buttons {
	margin-top: 16px;
}

.am-circle-card .wp-block-button__link {
	padding: 10px 20px;
	font-size: 0.875rem;
}

.am-circle-actions {
	margin: 0;
}

.am-circle-cta .wp-block-button__link {
	width: 100%;
	padding: 20px 24px;
	border-radius: var(--am-radius-card);
	font-size: 1rem;
}

@media (min-width: 1024px) {
	.am-circle-panel {
		grid-template-columns: 1fr 0.8fr;
		align-items: center;
	}
}

/* ---------- Kept sections: featured products, Nour, editorial voices ---------- */
.am-product-feature {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 40px;
	padding: clamp(28px, 4vw, 48px);
}

.am-product-intro > * {
	margin: 0 0 16px;
}

.am-world-section .wp-block-columns,
.am-editorial-grid {
	gap: 20px;
}

.am-author-dossier > * {
	margin: 0 0 16px;
}

.am-card {
	padding: 28px;
	border: 1px solid var(--am-glass-line);
	border-radius: var(--am-radius-card);
	background: var(--am-glass);
	transition: transform 0.3s ease, border-color 0.3s ease;
}

.am-card:hover {
	border-color: rgba(216, 180, 254, 0.5);
}

.am-card > * {
	margin: 0 0 12px;
}

.am-card h3 {
	font-size: 1.75rem;
}

.am-nour-note .wp-block-quote {
	margin: 16px 0;
	padding: 0 0 0 20px;
	border-left: 2px solid var(--am-fuchsia);
}

.am-nour-note .wp-block-quote p {
	color: var(--am-ink);
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.625rem;
	line-height: 1.3;
}

.am-nour-note cite {
	color: var(--am-violet);
	font-style: normal;
	font-size: 0.875rem;
}

.am-editorial-masthead {
	margin-bottom: 40px;
}

.am-editorial-masthead > * {
	margin: 0 0 16px;
}

@media (min-width: 1024px) {
	.am-product-feature {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
		align-items: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.am-working-card:hover,
	.am-orbit-button:hover {
		transform: none;
	}
}

/* ---------- Pages: the copy that now lives in each Page's content ---------- */
.jetpack-subscribe-floating-button {
	display: none !important;
}

.am-main--page {
	overflow: hidden;
}

.am-main--page > .wp-block-post-content > * {
	margin-block: 0;
}

.am-page-hero {
	position: relative;
	padding: clamp(56px, 7vw, 96px) var(--am-gutter);
	background:
		radial-gradient(circle at 8% 20%, rgba(147, 51, 234, 0.32), transparent 42%),
		radial-gradient(circle at 92% 0%, rgba(217, 70, 239, 0.26), transparent 40%),
		radial-gradient(circle at 50% 120%, rgba(79, 70, 229, 0.24), transparent 45%);
}

.am-page-hero > * {
	max-width: 52rem;
	margin-inline: 0;
}

@media (min-width: 1360px) {
	.am-page-hero > * {
		margin-inline-start: calc((100vw - var(--am-max)) / 2 - var(--am-gutter));
	}
}

.am-page-hero h1 {
	margin-block: 1rem 1.5rem;
	font-size: clamp(3rem, 7vw, 5.5rem);
	font-weight: 400;
	line-height: 0.95;
	letter-spacing: -0.025em;
}

.am-page-hero .has-large-font-size {
	max-width: 42rem;
	color: var(--am-white-hover);
	font-size: 1.125rem !important;
	line-height: 2rem;
}

.am-legal-hero {
	padding-block-end: clamp(32px, 4vw, 56px);
}

.am-soft-band {
	border-block: 1px solid var(--am-glass-line);
	background: linear-gradient(145deg, rgba(36, 8, 61, 0.7), rgba(11, 2, 21, 0.5));
}

.am-prose {
	max-width: 68ch;
	padding-block: var(--am-section);
}

.am-section.am-prose,
.am-section.am-legal-copy {
	max-width: calc(68ch + 2 * var(--am-gutter));
	margin-inline: auto;
}

.am-prose > *,
.am-legal-copy > * {
	max-width: none;
}

.am-prose p:not(.am-eyebrow),
.am-prose li,
.am-legal-copy p:not(.am-eyebrow),
.am-legal-copy li {
	font-size: clamp(1rem, 1.3vw, 1.125rem);
	line-height: 1.8;
}

.am-legal-copy h2:not(:first-child) {
	margin-block-start: 2.5rem;
}

.am-legal-copy h2,
.am-prose h2 {
	font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.am-path-grid,
.am-support-grid,
.am-editorial-grid {
	gap: 20px;
}

@media (max-width: 781px) {
	.am-path-grid,
	.am-support-grid,
	.am-editorial-grid,
	.am-footer-grid,
	.am-world-section .wp-block-columns {
		flex-direction: column;
	}

	.am-card {
		padding: 20px;
	}
}

/* ---------- Plain templates: journal index, single post, search, 404 ---------- */
.am-plain {
	padding-top: clamp(56px, 7vw, 96px);
}

.am-plain > h1,
.am-plain > .wp-block-heading,
.am-plain > .wp-block-query-title,
.am-plain > .wp-block-post-title {
	font-size: clamp(2.75rem, 6vw, 4.5rem);
	font-weight: 400;
	line-height: 0.98;
}

.am-article > * {
	max-width: 48rem;
}

.am-article > .alignwide {
	max-width: var(--am-max);
}

.am-article .wp-block-post-date,
.am-article .wp-block-post-terms {
	color: var(--am-mist-faint);
	font-size: 0.875rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.am-article .wp-block-post-terms a {
	color: var(--am-violet);
	text-decoration: none;
}

.am-article .wp-block-post-featured-image img {
	border-radius: var(--am-radius-panel);
}

.am-article .wp-block-post-content p {
	font-size: 1.125rem;
	line-height: 1.85;
}

/* Post lists (journal, archives, search results) as glass cards */
.wp-block-post-template {
	display: grid;
	gap: 20px;
	padding: 0;
	list-style: none;
	color: var(--am-mist);
}

.wp-block-post-template > li {
	margin: 0;
	padding: 28px;
	border: 1px solid var(--am-glass-line);
	border-radius: var(--am-radius-card);
	background: var(--am-glass);
	transition: transform 0.3s ease, border-color 0.3s ease;
}

.wp-block-post-template > li:hover {
	transform: translateY(-4px);
	border-color: rgba(216, 180, 254, 0.5);
}

.wp-block-post-template .wp-block-post-title {
	margin: 0 0 12px;
	font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.wp-block-post-template .wp-block-post-title a {
	color: var(--am-ink);
	text-decoration: none;
}

.wp-block-post-template .wp-block-post-title a:hover {
	color: var(--am-fuchsia);
}

.am-journal-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.am-journal-grid > li {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

.am-journal-grid .am-card {
	height: 100%;
}

.wp-block-query-pagination {
	gap: 8px;
	margin-top: 32px;
}

.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--am-glass-line);
	border-radius: var(--am-radius-pill);
	background: var(--am-glass);
	color: var(--am-ink);
	text-decoration: none;
}

.wp-block-query-pagination .page-numbers.current {
	background: var(--am-gradient);
	color: var(--am-on-light);
}

/* Search fields outside the header */
.wp-block-search__input {
	min-height: 44px;
	padding: 0 20px;
	border: 1px solid var(--am-field-line);
	border-radius: var(--am-radius-pill);
	background: var(--am-glass);
	color: var(--am-ink);
}

.wp-block-search__input::placeholder {
	color: var(--am-mist-faint);
}

.wp-block-search__button {
	margin-inline-start: 8px;
}

.wp-block-search__label {
	color: var(--am-mist);
}

@media (max-width: 781px) {
	.am-journal-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Shop, category and product grid ---------- */
.am-commerce-header {
	padding-bottom: clamp(24px, 3.5vw, 46px);
}

.am-commerce-header h1,
.am-commerce-header .wp-block-query-title {
	font-size: clamp(2.75rem, 6vw, 4.5rem);
	font-weight: 400;
	line-height: 0.98;
}

.am-shop-grid,
.am-cart-surface {
	padding-top: 0;
}

.wp-block-woocommerce-product-template,
.wc-block-product-template {
	gap: 20px;
	margin: 0;
	padding: 0;
	color: var(--am-mist);
}

.wp-block-woocommerce-product-template > li,
.wc-block-product-template > li {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 16px;
	border: 1px solid var(--am-glass-line);
	border-radius: var(--am-radius-card);
	background: var(--am-glass);
	transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.wp-block-woocommerce-product-template > li:hover,
.wc-block-product-template > li:hover {
	transform: translateY(-6px);
	border-color: rgba(240, 171, 252, 0.6);
	box-shadow: var(--am-shadow-glow);
}

.wc-block-components-product-image,
.wc-block-grid__product-image {
	overflow: hidden;
	margin: 0;
	border-radius: 20px;
	background: var(--am-plum);
}

.wc-block-components-product-image img {
	display: block;
	border-radius: 20px;
}

.wp-block-woocommerce-product-template .wp-block-post-title,
.wc-block-product-template .wp-block-post-title {
	margin: 4px 0 0;
	font-size: clamp(1.375rem, 2vw, 1.75rem);
}

.wp-block-woocommerce-product-template .wp-block-post-title a,
.wc-block-product-template .wp-block-post-title a {
	color: var(--am-ink);
	text-decoration: none;
}

.wc-block-components-product-price,
.wp-block-woocommerce-product-price {
	color: var(--am-ember);
	font-weight: 600;
}

.wc-block-components-product-price del {
	color: var(--am-mist-faint);
}

.wc-block-components-product-button {
	margin-top: auto;
}

.wc-block-components-button,
.wc-block-components-product-button__button,
.wp-block-woocommerce-product-button .wp-element-button {
	min-height: 44px;
	border: 0;
	border-radius: var(--am-radius-pill);
	background: var(--am-gradient);
	color: var(--am-on-light);
	font-weight: 600;
}

.wc-block-components-button:not(.is-link):hover {
	color: var(--am-on-light);
	opacity: 0.92;
}

.wc-block-components-product-sale-badge,
.wc-block-components-sale-badge {
	border: 0;
	border-radius: var(--am-radius-pill);
	background: var(--am-ember);
	color: var(--am-on-light);
}

.am-empty-state {
	padding: clamp(20px, 3vw, 38px);
	border: 1px dashed var(--am-violet-line);
	border-radius: var(--am-radius-card);
}

.wc-block-breadcrumbs,
.woocommerce-breadcrumb {
	color: var(--am-mist-faint);
	font-size: 0.875rem;
}

.wc-block-breadcrumbs a {
	color: var(--am-violet);
}

/* WooCommerce paints notices near-white; on the dark theme they keep the abyss surface. */
body .wc-block-components-notice-banner,
body .wc-block-components-notice-banner.is-info,
body .wc-block-components-notice-banner.is-success,
body .wc-block-components-notice-banner.is-error,
body .wc-block-components-notice-banner.is-warning {
	border: 1px solid var(--am-violet-line);
	border-radius: var(--am-radius-card);
	background: var(--am-abyss);
	color: var(--am-ink);
}

body .wc-block-components-notice-banner > svg {
	border-radius: 50%;
	background: var(--am-fuchsia);
	fill: var(--am-on-light);
}

body .wc-block-components-notice-banner a {
	color: var(--am-fuchsia);
}

/* ---------- Single product ---------- */
.am-product-layout {
	gap: clamp(28px, 5.5vw, 74px);
	margin-top: clamp(24px, 4vw, 48px);
}

.am-product-gallery,
.am-product-summary {
	min-width: 0;
}

.wp-block-woocommerce-product-image-gallery img,
.woocommerce-product-gallery img {
	border: 1px solid var(--am-glass-line);
	border-radius: var(--am-radius-card);
	background: var(--am-plum);
}

.am-product-summary {
	padding: clamp(24px, 3vw, 40px);
	border: 1px solid var(--am-glass-line);
	border-radius: var(--am-radius-panel);
	background: var(--am-glass);
	backdrop-filter: var(--am-blur);
}

.am-product-summary > * {
	margin-block: 0 16px;
}

.am-product-summary h1 {
	font-size: clamp(2.5rem, 4.5vw, 4rem);
	font-weight: 400;
	line-height: 1;
}

.am-product-summary .quantity input {
	min-height: 44px;
	border: 1px solid var(--am-glass-line);
	border-radius: var(--am-radius-pill);
	background: var(--am-glass);
	color: var(--am-ink);
}

.am-product-summary .single_add_to_cart_button {
	padding: 0.875rem 1.75rem;
	border: 0;
	border-radius: var(--am-radius-pill);
	background: var(--am-gradient);
	color: var(--am-on-light);
	font-weight: 600;
}

.am-product-summary .wp-block-post-terms a {
	color: var(--am-violet);
}

.am-product-note {
	padding: 1rem 1.25rem;
	border-inline-start: 2px solid var(--am-fuchsia);
	border-radius: 0 16px 16px 0;
	background: rgba(240, 171, 252, 0.06);
	color: var(--am-mist);
	font-size: 0.9rem;
}

.am-reading-surface {
	border: 1px solid var(--am-glass-line);
	border-radius: var(--am-radius-panel);
	background: var(--am-glass);
	color: var(--am-mist);
}

.am-product-details {
	padding: clamp(24px, 4vw, 56px);
}

/* WooCommerce fades inactive tabs to 0.65 with `html body …`; match it so they keep AA contrast. */
html body .am-product-details .wp-block-woocommerce-product-details.is-style-minimal ul.tabs.wc-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

html body .am-product-details .wp-block-woocommerce-product-details.is-style-minimal ul.tabs.wc-tabs li {
	margin: 0;
	border: 1px solid var(--am-glass-line);
	border-radius: var(--am-radius-pill);
	color: var(--am-mist);
	opacity: 1;
}

html body .am-product-details .wp-block-woocommerce-product-details.is-style-minimal ul.tabs.wc-tabs li.active,
html body .am-product-details .wp-block-woocommerce-product-details.is-style-minimal ul.tabs.wc-tabs li:hover {
	border-color: rgba(240, 171, 252, 0.6);
	background: rgba(240, 171, 252, 0.15);
	color: var(--am-ink);
}

html body .am-product-details .wp-block-woocommerce-product-details.is-style-minimal ul.tabs.wc-tabs li a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
}

.am-product-details table {
	width: 100%;
	border-collapse: collapse;
}

.am-product-details th,
.am-product-details td {
	padding: 12px;
	border-bottom: 1px solid var(--am-glass-line);
	color: var(--am-mist);
	text-align: start;
}

/* ---------- Cart, checkout, order confirmation ---------- */
.wc-block-cart,
.wc-block-checkout {
	color: var(--am-mist);
	--am-field-bg: rgba(255, 255, 255, 0.05);
}

.wc-block-cart .wc-block-cart-items,
.wc-block-cart .wc-block-components-sidebar,
.wc-block-checkout .wc-block-components-sidebar,
.wc-block-checkout__main .wc-block-components-checkout-step {
	padding: clamp(16px, 2.5vw, 28px);
	border: 1px solid var(--am-glass-line);
	border-radius: var(--am-radius-card);
	background: var(--am-glass);
}

.wc-block-cart h2,
.wc-block-checkout h2,
.wc-block-components-title {
	color: var(--am-ink);
}

.wc-block-components-text-input input,
.wc-block-components-text-input textarea,
.wc-blocks-components-select__select,
.wc-block-components-combobox .wc-block-components-combobox-control input {
	border: 1px solid var(--am-field-line) !important;
	border-radius: 16px !important;
	background: var(--am-field-bg) !important;
	color: var(--am-ink) !important;
}

/* Validation: WooCommerce's dark red is unreadable on the void, so errors use the light error token. */
.wc-block-components-validation-error,
.wc-block-components-validation-error > p,
.wc-block-components-text-input.has-error label,
.wc-blocks-components-select.has-error .wc-blocks-components-select__label,
.woocommerce-error,
.woocommerce form .form-row.woocommerce-invalid label {
	color: var(--am-error) !important;
}

.wc-block-components-validation-error svg {
	fill: var(--am-error);
}

.wc-block-components-text-input.has-error input,
.wc-blocks-components-select.has-error .wc-blocks-components-select__select,
.woocommerce form .form-row.woocommerce-invalid .input-text {
	border-color: var(--am-error) !important;
}

.wc-block-components-text-input label,
.wc-blocks-components-select__label {
	color: var(--am-mist) !important;
}

.wc-block-components-text-input input:focus,
.wc-blocks-components-select__select:focus {
	outline: 2px solid var(--am-focus);
	outline-offset: 2px;
	box-shadow: none !important;
}

.wc-block-components-totals-item__label,
.wc-block-components-totals-item__value,
.wc-block-components-product-name {
	color: var(--am-ink);
}

.wc-block-components-order-summary-item__quantity {
	border-color: var(--am-violet);
	background: var(--am-abyss);
	color: var(--am-ink);
}

.wc-block-components-radio-control__option,
.wc-block-components-checkbox label {
	color: var(--am-mist);
}

.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
	border-color: var(--am-violet);
	background: transparent;
}

.woocommerce-order,
.wp-block-woocommerce-order-confirmation-summary,
.wp-block-woocommerce-order-confirmation-totals {
	color: var(--am-mist);
	padding: clamp(16px, 2.5vw, 28px);
	border: 1px solid var(--am-glass-line);
	border-radius: var(--am-radius-card);
	background: var(--am-glass);
}

.woocommerce-order table,
.wp-block-woocommerce-order-confirmation-totals table {
	width: 100%;
	border-collapse: collapse;
}

.woocommerce-order th,
.woocommerce-order td {
	padding: 12px;
	border-bottom: 1px solid var(--am-glass-line);
	color: var(--am-mist);
}

/* Classic (shortcode) cart and checkout, for stores that have not moved to the blocks */
.woocommerce form .form-row .input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea,
.woocommerce-page form .form-row .input-text,
.select2-container--default .select2-selection--single {
	min-height: 44px;
	padding: 0.625rem 1rem;
	border: 1px solid var(--am-field-line);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.05);
	color: var(--am-ink);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	color: var(--am-ink);
	line-height: 1.5;
}

.woocommerce form .form-row label {
	color: var(--am-mist);
}

.woocommerce-checkout-review-order-table,
.woocommerce table.shop_table {
	border: 1px solid var(--am-glass-line);
	border-radius: var(--am-radius-card);
	background: var(--am-glass);
	color: var(--am-ink);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	border-color: var(--am-glass-line);
}

.woocommerce-checkout #payment {
	border-radius: var(--am-radius-card);
	background: var(--am-glass);
}

.woocommerce #payment #place_order,
.woocommerce button.button.alt {
	border-radius: var(--am-radius-pill);
	background: var(--am-gradient);
	color: var(--am-on-light);
}

.am-plain > .wp-block-post-title,
.am-plain > .wp-block-heading {
	width: 100%;
	max-width: var(--am-max);
	margin-inline: auto;
}
