/* ==========================================================================
   Makarios Fortune — main stylesheet (tokens, base, layout, header, footer, components)
   Design reference: docs/DESIGN_SYSTEM.md
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
	/* Colour — gold is decorative only; use gold-ink for gold-toned text on light backgrounds. */
	--mf-parchment: #f3ebdd;
	--mf-ivory: #faf7f0;
	--mf-navy: #172235;
	--mf-navy-2: #1f2d45;
	--mf-charcoal: #282521;
	--mf-muted: #5c564d;
	--mf-gold: #b08a45;
	--mf-gold-ink: #7e6230;
	--mf-gold-soft: #d9c49b;
	--mf-olive: #66705a;
	--mf-olive-ink: #555e4a;
	--mf-burgundy: #663d3d;
	--mf-line: rgb(40 37 33 / 0.14);
	--mf-line-light: rgb(250 247 240 / 0.18);

	/* Type */
	--mf-font-display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
	--mf-font-caps: "Cinzel", "Trajan Pro", "Cormorant Garamond", serif;
	--mf-font-ui: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--fs-xs: 0.8rem;
	--fs-sm: 0.9rem;
	--fs-base: 1.0625rem;
	--fs-md: 1.25rem;
	--fs-lg: clamp(1.45rem, 1.2rem + 1vw, 1.75rem);
	--fs-xl: clamp(2rem, 1.4rem + 2.6vw, 2.9rem);
	--fs-display: clamp(2.75rem, 1.6rem + 5.4vw, 5.6rem);

	/* Space (4px base) */
	--sp-1: 0.25rem;
	--sp-2: 0.5rem;
	--sp-3: 0.75rem;
	--sp-4: 1rem;
	--sp-5: 1.5rem;
	--sp-6: 2rem;
	--sp-7: 3rem;
	--sp-8: 4rem;
	--sp-9: 6rem;
	--sp-10: 8rem;
	--section-y: clamp(3.5rem, 2rem + 6vw, 7rem);

	/* Layout */
	--w-text: 42rem;
	--w-wide: 76rem;
	--w-full: 96rem;
	--gutter: 1rem;
	--radius: 2px;
	--header-h: 4.25rem;

	--ease: cubic-bezier(0.2, 0.6, 0.2, 1);
	--shadow-lift: 0 18px 40px -24px rgb(23 34 53 / 0.45);

	/* Motion system (Phase 10) — the only timing/distance values interactions use (assets/css/motion.css). */
	--mf-motion-fast: 150ms;
	--mf-motion-standard: 220ms;
	--mf-motion-slow: 360ms;
	--mf-ease-standard: var(--ease);
	--mf-ease-emphasis: cubic-bezier(0.16, 1, 0.3, 1);
	--mf-lift: -3px;
	--mf-lift-sm: -1px;
	--mf-zoom: 1.03;
	--mf-reveal-shift: 12px;
	--mf-shadow-soft: 0 8px 18px -12px rgb(23 34 53 / 0.45);
	--mf-shadow-hover: 0 18px 36px -20px rgb(23 34 53 / 0.5);

	--meander: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14'%3E%3Cpath d='M0 13.5h28M0 .5h28M3.5 13V4.5h10v6h-5v-3M17.5 1v9h8V4.5h-5v3' fill='none' stroke='%23B08A45' stroke-width='1'/%3E%3C/svg%3E");
}

@media (min-width: 768px) {
	:root {
		--gutter: 2rem;
		--header-h: 5rem;
	}
}

/* ---------- 2. Base ------------------------------------------------------ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
	margin: 0;
	background: var(--mf-ivory);
	color: var(--mf-charcoal);
	font-family: var(--mf-font-ui);
	font-size: var(--fs-base);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img,
svg {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: var(--mf-gold-ink);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:hover {
	color: var(--mf-navy);
}

h1,
h2,
h3,
h4 {
	margin: 0;
	color: var(--mf-navy);
	font-family: var(--mf-font-display);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

p {
	margin: 0 0 var(--sp-4);
}

ul[role="list"] {
	margin: 0;
	padding: 0;
	list-style: none;
}

:focus-visible {
	outline: 2px solid var(--mf-gold);
	outline-offset: 3px;
}

::selection {
	background: var(--mf-gold-soft);
	color: var(--mf-navy);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.mf-skip-link {
	position: absolute;
	top: -100px;
	left: var(--sp-4);
	z-index: 100;
	padding: var(--sp-2) var(--sp-4);
	background: var(--mf-navy);
	color: var(--mf-ivory);
}

.mf-skip-link:focus {
	top: var(--sp-2);
}

/* ---------- 3. Layout ---------------------------------------------------- */
.mf-container {
	width: 100%;
	max-width: calc(var(--w-wide) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.mf-container--wide {
	max-width: calc(var(--w-full) + 2 * var(--gutter));
}

.mf-container--narrow {
	max-width: calc(var(--w-text) + 2 * var(--gutter));
}

.mf-section {
	padding-block: var(--section-y);
}

.mf-section--parchment {
	background: var(--mf-parchment);
}

.mf-section--navy {
	background: var(--mf-navy);
	color: var(--mf-ivory);
}

.mf-section--navy h2,
.mf-section--navy h3,
.mf-section--navy a {
	color: var(--mf-ivory);
}

.mf-section__header {
	max-width: 46rem;
	margin: 0 auto var(--sp-7);
	text-align: center;
}

.mf-section__title {
	font-size: var(--fs-xl);
}

.mf-section__header .mf-ornament--rule {
	margin: var(--sp-4) auto;
	color: var(--mf-gold);
}

.mf-section__intro {
	margin: 0 auto;
	max-width: 36rem;
	color: var(--mf-muted);
	font-family: var(--mf-font-display);
	font-size: var(--fs-md);
	font-style: italic;
	line-height: 1.5;
}

.mf-section--navy .mf-section__intro {
	color: rgb(250 247 240 / 0.78);
}

.mf-section__more {
	margin: var(--sp-7) 0 0;
	text-align: center;
}

.mf-eyebrow {
	margin: 0 0 var(--sp-2);
	color: var(--mf-gold-ink);
	font-family: var(--mf-font-caps);
	font-size: var(--fs-xs);
	font-weight: 500;
	letter-spacing: 0.16em;
	line-height: 1.4;
	text-transform: uppercase;
}

.mf-section--navy .mf-eyebrow,
.mf-eyebrow--light {
	color: var(--mf-gold-soft);
}

.mf-meander {
	height: 14px;
	background: var(--mf-meander) repeat-x left center;
	opacity: 0.7;
}

/* ---------- 4. Buttons & links ------------------------------------------ */
.mf-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-2);
	min-height: 48px;
	padding: 0.7rem 1.6rem;
	border: 1px solid var(--mf-navy);
	border-radius: var(--radius);
	font-family: var(--mf-font-caps);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.mf-button--primary {
	background: var(--mf-navy);
	color: var(--mf-ivory);
	box-shadow: inset 0 -2px 0 0 var(--mf-navy);
}

.mf-button--primary:hover {
	background: var(--mf-navy-2);
	color: var(--mf-ivory);
	box-shadow: inset 0 -2px 0 0 var(--mf-gold);
}

.mf-button--secondary {
	background: transparent;
	color: var(--mf-navy);
}

.mf-button--secondary:hover {
	background: var(--mf-navy);
	color: var(--mf-ivory);
}

.mf-button--gold {
	background: var(--mf-gold);
	border-color: var(--mf-gold);
	color: var(--mf-navy);
}

.mf-button--gold:hover {
	background: var(--mf-gold-soft);
	border-color: var(--mf-gold-soft);
	color: var(--mf-navy);
}

/* 44px tall touch target; the underline is drawn as a background so padding doesn't move it. */
.mf-link-arrow {
	display: inline-block;
	padding: 0.8rem 0;
	font-family: var(--mf-font-caps);
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	line-height: 1.4;
	text-decoration: none;
	text-transform: uppercase;
	background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(100% - 0.6rem) / 100% 1px;
}

.mf-section--navy .mf-link-arrow {
	color: var(--mf-gold-soft);
}

/* Whole-card click target while keeping one link per card for screen readers. */
.mf-stretched-link {
	color: inherit;
	text-decoration: none;
}

.mf-stretched-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* ---------- 5. Header ---------------------------------------------------- */
.mf-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid var(--mf-line);
}

/* The frosted background lives on a pseudo-element: backdrop-filter on the header itself would become the
   containing block for the position:fixed mobile drawer and clip it to the header's height. */
.mf-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgb(250 247 240 / 0.96);
	backdrop-filter: saturate(1.2) blur(6px);
}

.admin-bar .mf-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .mf-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .mf-header {
		top: 0;
	}
}

.mf-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-5);
	max-width: calc(var(--w-full) + 2 * var(--gutter));
	min-height: var(--header-h);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.mf-wordmark {
	display: inline-flex;
	align-items: center;
	color: var(--mf-navy);
	text-decoration: none;
}

.mf-wordmark__text {
	font-family: var(--mf-font-caps);
	font-size: clamp(0.95rem, 0.8rem + 0.6vw, 1.2rem);
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* Emblem beside the wordmark: sized from the wordmark text so the header height never changes. */
.mf-wordmark__mark {
	flex: 0 0 auto;
	width: 2.25rem;
	min-width: 2.25rem;
	height: 2.25rem;
	margin-right: 0.65rem;
	color: var(--mf-gold);
}

/* Small phones (up to 499px: four 48px header controls since the search button): a slightly smaller emblem, and the wordmark stacks. */
@media (max-width: 499px) {
	.mf-wordmark__mark {
		width: 1.75rem;
		min-width: 1.75rem;
		height: 1.75rem;
		margin-right: 0.5rem;
	}

	/* The wordmark keeps its size and tracking and stacks "MAKARIOS / FORTUNE" instead of being cut off. */
	.mf-header .mf-wordmark__text {
		white-space: normal;
		text-overflow: clip;
		line-height: 1.25;
	}
}

@media (min-width: 1280px) {
	.mf-header .mf-wordmark {
		flex-shrink: 0; /* Never squeezed under the navigation. */
	}
}

/* 1280–1439px: the full wordmark, seven links, the call to action and three 48px icons need ~1360px at the regular
   spacing, but a 1280px window leaves ~1265px beside its scrollbar — tighter gaps keep the cart icon inside. */
@media (min-width: 1280px) and (max-width: 1439px) {
	.mf-header .mf-header__inner {
		gap: var(--sp-4);
	}

	.mf-header .mf-nav {
		gap: var(--sp-4);
	}

	.mf-header .mf-nav__list {
		gap: var(--sp-3);
	}
}

@media (min-width: 420px) and (max-width: 767px) {
	.mf-wordmark__mark {
		width: 1.75rem;
		min-width: 1.75rem;
		height: 1.75rem;
		margin-right: 0.5rem;
	}
}

.mf-wordmark--footer .mf-wordmark__mark {
	color: var(--mf-gold-soft);
}

.mf-wordmark__logo {
	width: auto;
	max-height: 48px;
}

.mf-nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-right: -12px;
	border: 0;
	background: none;
	color: var(--mf-navy);
	cursor: pointer;
}

.mf-nav-toggle__close,
.mf-nav-open .mf-nav-toggle__open {
	display: none;
}

.mf-nav-open .mf-nav-toggle__close {
	display: inline;
}

.mf-nav {
	position: fixed;
	/* navigation.js sets --mf-nav-top to the header's real bottom edge (admin bar, scroll position). */
	inset: var(--mf-nav-top, var(--header-h)) 0 0 0;
	display: flex;
	flex-direction: column;
	gap: var(--sp-5);
	padding: var(--sp-6) var(--gutter) var(--sp-8);
	background: var(--mf-ivory);
	overflow-y: auto;
	visibility: hidden;
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
}

.mf-nav-open .mf-nav {
	visibility: visible;
	opacity: 1;
	transform: none;
	transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.mf-nav-open body {
	overflow: hidden;
}

.mf-nav__list {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mf-nav__list a {
	display: block;
	padding: var(--sp-3) 0;
	border-bottom: 1px solid var(--mf-line);
	color: var(--mf-navy);
	font-family: var(--mf-font-display);
	font-size: 1.6rem;
	text-decoration: none;
}

.mf-nav__list .current-menu-item > a {
	color: var(--mf-gold-ink);
}

.mf-nav__list--secondary a {
	font-family: var(--mf-font-ui);
	font-size: var(--fs-base);
}

.mf-nav__cta {
	align-self: flex-start;
}

/* Desktop navigation from 1280px: below that the full wordmark and seven links do not fit on one line. */
@media (min-width: 1280px) {
	.mf-nav-toggle {
		display: none;
	}

	.mf-nav {
		position: static;
		flex-direction: row;
		align-items: center;
		gap: var(--sp-6);
		padding: 0;
		background: none;
		overflow: visible;
		visibility: visible;
		opacity: 1;
		transform: none;
	}

	.mf-nav__list {
		flex-direction: row;
		gap: var(--sp-5);
	}

	.mf-nav__list a {
		padding: var(--sp-2) 0;
		border: 0;
		font-family: var(--mf-font-caps);
		font-size: 0.78rem;
		letter-spacing: 0.16em;
		text-transform: uppercase;
		background: linear-gradient(var(--mf-gold), var(--mf-gold)) no-repeat left bottom / 0 1px;
		transition: background-size 0.25s var(--ease);
	}

	.mf-nav__list a:hover,
	.mf-nav__list .current-menu-item > a {
		background-size: 100% 1px;
	}

	.mf-nav__list--secondary a {
		font-family: var(--mf-font-ui);
		font-size: var(--fs-sm);
		letter-spacing: 0.02em;
		text-transform: none;
	}

	.mf-nav__cta {
		min-height: 44px;
		padding-inline: 1.2rem;
	}
}

/* ---------- 6. Frames, cards, grids ------------------------------------- */

/* Passe-partout: ivory mat with a fine gold inner rule. */
.mf-frame {
	margin: 0;
	padding: clamp(0.6rem, 0.3rem + 1.2vw, 1.25rem);
	background: var(--mf-ivory);
	border: 1px solid var(--mf-line);
	box-shadow: var(--shadow-lift);
}

.mf-frame__img {
	width: 100%;
	outline: 1px solid rgb(176 138 69 / 0.55);
	outline-offset: 5px;
}

.mf-grid {
	display: grid;
	gap: var(--sp-6) var(--sp-5);
	grid-template-columns: 1fr;
}

@media (min-width: 480px) {
	.mf-grid--fortunes,
	.mf-grid--symbols,
	.mf-grid--list {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 768px) {
	.mf-grid--collections,
	.mf-grid--stories,
	.mf-grid--showcase {
		grid-template-columns: repeat(2, 1fr);
	}

	.mf-grid--symbols {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1024px) {
	.mf-grid--fortunes,
	.mf-grid--collections,
	.mf-grid--stories,
	.mf-grid--showcase,
	.mf-grid--list {
		grid-template-columns: repeat(3, 1fr);
	}

	.mf-grid--symbols {
		grid-template-columns: repeat(6, 1fr);
	}
}

.mf-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.mf-card__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background: var(--mf-parchment);
}

.mf-card__media--wide {
	aspect-ratio: 3 / 2;
}

.mf-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}

.mf-card:hover .mf-card__media img {
	transform: scale(1.03);
}

.mf-card__seal {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--mf-accent, var(--mf-gold));
}

.mf-card__seal svg {
	width: 62%;
	height: auto;
}

.mf-card__initial {
	position: absolute;
	font-family: var(--mf-font-display);
	font-size: clamp(3rem, 2rem + 4vw, 5rem);
	font-weight: 500;
	color: var(--mf-navy);
}

.mf-card__body {
	padding-top: var(--sp-4);
}

.mf-card__title {
	font-size: var(--fs-lg);
}

.mf-card__title a:hover {
	color: var(--mf-gold-ink);
}

.mf-card-price {
	margin: var(--sp-2) 0 0;
	color: var(--mf-navy);
	font-family: var(--mf-font-ui);
	font-size: var(--fs-base);
	font-weight: 600;
	line-height: 1.35;
	font-variant-numeric: lining-nums tabular-nums;
}

.mf-card-price .amount {
	color: var(--mf-gold-ink);
	white-space: nowrap;
}

.mf-card__text {
	margin: var(--sp-2) 0 0;
	color: var(--mf-muted);
	font-size: var(--fs-sm);
}

.mf-card__more {
	margin: var(--sp-3) 0 0;
	color: var(--mf-gold-ink);
	font-family: var(--mf-font-caps);
	font-size: var(--fs-xs);
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.mf-empty {
	text-align: center;
	color: var(--mf-muted);
	font-style: italic;
}

/* ---------- 7. Forms & notices ------------------------------------------ */
.mf-input {
	width: 100%;
	min-height: 48px;
	padding: 0.7rem 1rem;
	border: 1px solid rgb(40 37 33 / 0.35);
	border-radius: var(--radius);
	background: #fff;
	color: var(--mf-charcoal);
	font: inherit;
}

.mf-input:focus-visible {
	border-color: var(--mf-navy);
	outline-offset: 1px;
}

.mf-input[aria-invalid="true"] {
	border-color: var(--mf-burgundy);
}

.mf-check {
	display: flex;
	gap: var(--sp-3);
	align-items: flex-start;
	font-size: var(--fs-sm);
	color: var(--mf-muted);
	cursor: pointer;
}

.mf-check input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: var(--mf-navy);
}

.mf-notice {
	padding: var(--sp-3) var(--sp-4);
	border-left: 3px solid;
	background: #fff;
}

.mf-notice--success {
	border-color: var(--mf-olive);
	color: var(--mf-olive-ink);
}

.mf-notice--error {
	border-color: var(--mf-burgundy);
	color: var(--mf-burgundy);
}

/* Honeypot: off-screen, never display:none (some bots skip hidden fields). */
.mf-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- 8. Footer (Phase 9) ----------------------------------------- */
/* Navy museum-plaque footer: brand + support, then Explore / Your account / Information. Desktop 4 columns,
   tablet brand row + 3 columns, mobile brand stacked above two compact link columns. */
.mf-footer {
	background: var(--mf-navy);
	color: rgb(250 247 240 / 0.84);
	font-size: var(--fs-sm);
	line-height: 1.55;
}

.mf-footer a {
	color: var(--mf-ivory);
	text-decoration: none;
	text-underline-offset: 0.2em;
}

.mf-footer a:hover {
	color: var(--mf-gold-soft);
	text-decoration: underline;
}

.mf-footer a:focus-visible {
	outline: 2px solid var(--mf-gold-soft);
	outline-offset: 3px;
	border-radius: 2px;
}

.mf-footer .mf-meander {
	opacity: 0.6;
}

.mf-footer__inner {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--sp-7) var(--sp-5);
	max-width: calc(var(--w-wide) + 2 * var(--gutter));
	margin-inline: auto;
	padding: var(--sp-8) var(--gutter) var(--sp-7);
}

.mf-footer__brand {
	grid-column: 1 / -1;
}

.mf-footer__col--information {
	grid-column: 1 / -1;
}

.mf-footer__col--information .mf-footer__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: var(--sp-5);
}

@media (min-width: 768px) {
	.mf-footer__inner {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.mf-footer__brand {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		column-gap: var(--sp-7);
		align-items: start;
		padding-bottom: var(--sp-6);
		border-bottom: 1px solid var(--mf-line-light);
	}

	.mf-footer__brand > :not(.mf-footer__support, .mf-social) {
		grid-column: 1;
	}

	.mf-footer__support {
		grid-column: 2;
		grid-row: 1 / span 3;
	}

	.mf-footer__col--information {
		grid-column: auto;
	}

	.mf-footer__email {
		white-space: nowrap;
	}

	.mf-footer__col--information .mf-footer__list {
		display: block;
	}
}

@media (min-width: 1100px) {
	.mf-footer__inner {
		grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
		column-gap: var(--sp-7);
	}

	.mf-footer__brand {
		grid-column: auto;
		display: block;
		padding-bottom: 0;
		border-bottom: 0;
	}
}

.mf-wordmark--footer {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--mf-ivory);
	font-size: 1.15em;
}

.mf-footer__tagline {
	margin: var(--sp-3) 0 var(--sp-3);
	color: var(--mf-gold-soft);
	font-family: var(--mf-font-display);
	font-size: var(--fs-lg, 1.35rem);
	font-style: italic;
	line-height: 1.3;
}

.mf-footer__about {
	max-width: 28rem;
	margin: 0 0 var(--sp-5);
}

.mf-footer__heading {
	margin: 0 0 var(--sp-3);
	color: var(--mf-gold-soft);
	font-family: var(--mf-font-caps);
	font-size: var(--fs-xs);
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.mf-footer__support {
	margin-top: var(--sp-2);
	padding: var(--sp-5);
	border: 1px solid rgb(217 196 155 / 0.45);
	background: rgb(250 247 240 / 0.04);
}

.mf-footer__support-text {
	margin: 0 0 var(--sp-3);
}

.mf-footer__email {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	min-height: 44px;
	max-width: 100%;
	color: var(--mf-ivory);
	font-family: var(--mf-font-display);
	font-size: var(--fs-md);
	font-weight: 600;
	overflow-wrap: anywhere;
}

.mf-footer__email .mf-icon {
	flex: none;
	color: var(--mf-gold-soft);
}

.mf-footer__list,
.mf-footer__legal,
.mf-social {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mf-footer__list a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

@media (min-width: 768px) {
	.mf-footer__list a {
		min-height: 36px;
	}
}

.mf-social {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
	margin-top: var(--sp-5);
}

.mf-social a {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--mf-line-light);
	border-radius: 50%;
}

.mf-footer__base {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-3) var(--sp-5);
	max-width: calc(var(--w-wide) + 2 * var(--gutter));
	margin-inline: auto;
	padding: var(--sp-5) var(--gutter);
	border-top: 1px solid var(--mf-line-light);
	font-size: var(--fs-xs);
}

.mf-footer__base p {
	margin: 0;
}

.mf-footer__base .mf-footer__parent {
	margin-top: var(--sp-1);
}

.mf-footer__parent a {
	text-decoration: underline;
}

.mf-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 0 var(--sp-5);
}

.mf-footer__legal a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

/* ---------- Entity cards (homepage and discovery pages) ------------------ */
/* Fortune */
.mf-card--fortune .mf-card__media {
	aspect-ratio: 1 / 1;
	background:
		radial-gradient(circle, rgb(255 255 255 / 0.6), transparent 70%),
		var(--mf-parchment);
	border: 1px solid var(--mf-line);
}

.mf-card--fortune .mf-card__body {
	text-align: center;
}

.mf-card--fortune .mf-card__media::after {
	content: "";
	position: absolute;
	inset: 8px;
	border: 1px solid color-mix(in srgb, var(--mf-accent, #b08a45) 55%, transparent);
	pointer-events: none;
}

/* ---------- Collections -------------------------------------------------- */
.mf-card--collection .mf-card__media {
	border: 1px solid var(--mf-line);
}

.mf-card--collection .mf-card__seal {
	color: var(--mf-gold);
}

/* Symbol medallion */
.mf-symbol {
	position: relative;
	text-align: center;
}

.mf-symbol__medallion {
	width: min(140px, 70%);
	aspect-ratio: 1;
	margin: 0 auto var(--sp-4);
	padding: 6px;
	border: 1px solid rgb(176 138 69 / 0.6);
	border-radius: 50%;
	color: var(--mf-gold);
	overflow: hidden;
}

.mf-symbol__medallion img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
}

.mf-symbol__name {
	font-size: var(--fs-md);
}

.mf-symbol__name a:hover {
	color: var(--mf-gold-ink);
}

.mf-symbol__meaning {
	margin: var(--sp-2) 0 0;
	color: var(--mf-muted);
	font-size: var(--fs-sm);
}

/* ---------- 9. Fallback templates --------------------------------------- */
.mf-entry__media {
	margin-bottom: var(--sp-7);
}

.mf-prose {
	font-size: 1.125rem;
}

.mf-prose > * + * {
	margin-top: var(--sp-5);
}

/* Information and policy pages (About, Contact, Privacy, Terms, Refund & Returns, Shipping & Delivery). */
.page:not(.woocommerce-page) .mf-prose h2 {
	margin-top: var(--sp-7);
	padding-top: var(--sp-5);
	font-size: var(--fs-lg);
	border-top: 1px solid var(--mf-line);
}

.page:not(.woocommerce-page) .mf-prose h2 + * {
	margin-top: var(--sp-3);
}

.page:not(.woocommerce-page) .mf-prose h3 {
	margin-top: var(--sp-5);
	font-size: var(--fs-md);
}

.page:not(.woocommerce-page) .mf-prose ul,
.page:not(.woocommerce-page) .mf-prose ol {
	margin-bottom: 0;
	padding-left: 1.25em;
}

.page:not(.woocommerce-page) .mf-prose li + li {
	margin-top: var(--sp-2);
}

.page:not(.woocommerce-page) .mf-prose li::marker {
	color: var(--mf-gold);
}

.page:not(.woocommerce-page) .mf-prose p {
	margin-bottom: 0;
}

.page:not(.woocommerce-page) .mf-prose .mf-lede {
	color: var(--mf-charcoal);
	font-family: var(--mf-font-display);
	font-size: var(--fs-md);
	line-height: 1.5;
}

.page:not(.woocommerce-page) .mf-prose .mf-policy-meta {
	color: var(--mf-muted);
	font-size: var(--fs-sm);
}

/* An undecided business fact: clearly visible, edited in WordPress. */
.mf-placeholder {
	padding: 0.05em 0;
	color: var(--mf-burgundy);
	font-family: var(--mf-font-ui);
	font-size: 0.85em;
	font-weight: 600;
	background: var(--mf-parchment);
	outline: 1px dashed var(--mf-gold);
	outline-offset: -1px;
}

.mf-contact-card {
	padding: var(--sp-5);
	text-align: center;
	background: var(--mf-ivory);
	border: 1px solid var(--mf-line);
	border-top: 2px solid var(--mf-gold);
	box-shadow: var(--mf-shadow-soft);
}

.mf-contact-card p + p {
	margin-top: var(--sp-2);
}

.mf-contact-card__label {
	color: var(--mf-gold-ink);
	font-family: var(--mf-font-caps);
	font-size: var(--fs-xs);
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.mf-contact-card__email {
	font-family: var(--mf-font-display);
	font-size: clamp(1.35rem, 1rem + 2vw, 2rem);
	font-weight: 600;
	overflow-wrap: anywhere;
}

.mf-contact-card__email a {
	display: inline-block;
	min-height: 44px;
	padding: var(--sp-1) 0;
	color: var(--mf-navy);
}

.mf-contact-card__note {
	color: var(--mf-muted);
	font-size: var(--fs-sm);
}

.mf-pagination ul {
	display: flex;
	justify-content: center;
	gap: var(--sp-2);
	margin: var(--sp-7) 0 0;
	padding: 0;
	list-style: none;
}

.mf-pagination a,
.mf-pagination span {
	display: grid;
	place-items: center;
	min-width: 44px;
	min-height: 44px;
	border: 1px solid var(--mf-line);
	text-decoration: none;
}

.mf-404__seal {
	width: 120px;
	margin: 0 auto var(--sp-5);
	color: var(--mf-gold);
}

/* ---------- 10. Motion preferences -------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.mf-card:hover .mf-card__media img {
		transform: none;
	}
}

/* ---------- Header cart (Phase 6) ----------------------------------------- */
.mf-cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	color: var(--mf-navy);
	text-decoration: none;
}

.mf-cart .mf-icon {
	width: 24px;
	height: 24px;
}

.mf-cart:hover {
	color: var(--mf-gold-ink);
}

.mf-cart:focus-visible {
	outline: 2px solid var(--mf-gold-ink);
	outline-offset: 2px;
}

.mf-cart__count {
	position: absolute;
	top: 4px;
	right: 2px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	color: var(--mf-ivory);
	font-family: var(--mf-font-ui);
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 20px;
	text-align: center;
	background: var(--mf-burgundy);
	border-radius: 999px;
}

.mf-cart__count[hidden] {
	display: none;
}

/* Mobile/tablet: wordmark · (space) · menu button · cart. */
@media (max-width: 1279px) {
	.mf-header__inner {
		gap: var(--sp-2);
	}

	.mf-nav-toggle {
		margin-left: auto;
		margin-right: 0;
	}

	.mf-cart:last-child {
		margin-right: -8px;
	}
}

/* Header icons never shrink; on narrow phones the wordmark tightens instead (menu, account and cart stay 48px). */
.mf-nav-toggle,
.mf-cart {
	flex-shrink: 0;
}

.mf-wordmark {
	min-width: 0;
}

@media (max-width: 420px) {
	.mf-wordmark__text {
		overflow: hidden;
		text-overflow: ellipsis;
		font-size: 0.86rem;
		letter-spacing: 0.1em;
	}
}

/* ---------- Global search (header) --------------------------------------- */
/* Hidden until assets/js/search.js runs (.mf-cart sets display, so [hidden] needs restating). */
.mf-search-toggle {
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
}

.mf-search-toggle[hidden],
.mf-search[hidden] {
	display: none;
}

.mf-search-toggle[aria-expanded="true"] {
	color: var(--mf-gold-ink);
}

/* The panel hangs under the header bar (outside the flow, so the page does not jump). */
.mf-search {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	border-bottom: 1px solid var(--mf-line);
	background: var(--mf-ivory);
	box-shadow: var(--shadow-lift);
}

.mf-search::before {
	content: "";
	display: block;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--mf-gold-soft), transparent);
}

.mf-search__inner {
	max-width: 48rem;
	margin-inline: auto;
	padding: var(--sp-4) var(--gutter) var(--sp-5);
}

.mf-search__form {
	position: relative;
	display: flex;
	align-items: center;
	border-bottom: 1px solid var(--mf-navy);
}

.mf-search__icon {
	display: inline-flex;
	color: var(--mf-gold-ink);
}

.mf-search__icon .mf-icon {
	width: 22px;
	height: 22px;
}

.mf-search__input {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 52px;
	padding: 0 var(--sp-3);
	color: var(--mf-navy);
	font-family: var(--mf-font-display);
	font-size: 1.35rem;
	background: transparent;
	border: 0;
	border-radius: 0;
	-webkit-appearance: none;
	appearance: none;
}

.mf-search__input::placeholder {
	color: var(--mf-muted);
	opacity: 1;
}

.mf-search__input::-webkit-search-cancel-button {
	display: none;
}

.mf-search__input:focus {
	outline: none;
}

.mf-search__form:focus-within {
	border-bottom-color: var(--mf-gold);
	box-shadow: 0 1px 0 var(--mf-gold);
}

.mf-search__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	margin-right: -10px;
	color: var(--mf-navy);
	background: none;
	border: 0;
	cursor: pointer;
}

.mf-search__close:hover {
	color: var(--mf-gold-ink);
}

/* Only the suggestions scroll; the input stays in view. */
.mf-search__results {
	max-height: calc(100vh - var(--header-h) - 8rem);
	max-height: calc(100dvh - var(--header-h) - 8rem);
	margin-top: var(--sp-3);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.mf-search__results[hidden] {
	display: none;
}

.mf-search[aria-busy="true"] .mf-search__results {
	opacity: 0.6;
}

.mf-search__group + .mf-search__group {
	margin-top: var(--sp-3);
	padding-top: var(--sp-3);
	border-top: 1px solid var(--mf-line);
}

.mf-search__label {
	margin: 0 0 var(--sp-2);
	color: var(--mf-gold-ink);
	font-family: var(--mf-font-caps);
	font-size: var(--fs-xs);
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.mf-search__option {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	min-height: 44px;
	padding: var(--sp-2);
	color: var(--mf-navy);
	text-decoration: none;
	border-left: 2px solid transparent;
}

.mf-search__option:hover,
.mf-search__option.is-active {
	background: var(--mf-parchment);
	border-left-color: var(--mf-gold);
}

.mf-search__option:focus-visible {
	outline: 2px solid var(--mf-gold);
	outline-offset: -2px;
}

.mf-search__thumb {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	overflow: hidden;
	background: var(--mf-parchment);
	border: 1px solid var(--mf-line);
}

.mf-search__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mf-search__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.mf-search__title,
.mf-search__entity-title {
	overflow: hidden;
	font-family: var(--mf-font-display);
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mf-search__meta {
	color: var(--mf-muted);
	font-size: var(--fs-sm);
	letter-spacing: 0.02em;
}

.mf-search__type {
	flex: 0 0 6.5rem;
	color: var(--mf-gold-ink);
	font-family: var(--mf-font-caps);
	font-size: var(--fs-xs);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.mf-search__more {
	justify-content: flex-end;
	font-family: var(--mf-font-caps);
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.mf-search__empty-text {
	margin: var(--sp-2) 0;
	font-family: var(--mf-font-display);
	font-size: 1.2rem;
}

@media (prefers-reduced-motion: no-preference) {
	.mf-search {
		animation: mf-search-in var(--mf-motion-standard) var(--mf-ease-standard);
	}

	.mf-search__option {
		transition: background-color var(--mf-motion-fast) var(--mf-ease-standard), border-color var(--mf-motion-fast) var(--mf-ease-standard);
	}
}

@keyframes mf-search-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
}

/* Phones: four 48px header controls; the wordmark gives way, as before. */
@media (max-width: 1279px) {
	.mf-search-toggle + .mf-cart:last-child {
		margin-left: -4px;
	}
}

@media (max-width: 479px) {
	.mf-search__input {
		font-size: 1.15rem;
		padding: 0 var(--sp-2);
	}

	.mf-search__type {
		flex-basis: 5.5rem;
	}
}
