*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.01em;
	color: var(--ink);
	text-wrap: balance;
	margin: 0 0 0.5em;
}

p { text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-strong); }

::selection { background: var(--accent-wash); color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* --- Layout --- */
.emz-container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
/* Half-unit padding per section: two adjacent sections add up to one full
   --section-y of separation, and banded sections always keep their own
   internal padding (a "+ section" collapse rule broke both). */
.emz-section { padding-block: calc(var(--section-y) / 2); }
.emz-section--band { background: var(--bg-deep); }

.emz-section__head { max-width: var(--container-narrow); margin: 0 auto clamp(28px, 4vw, 52px); text-align: center; }
.emz-section__title { font-size: var(--fs-h2); margin: 0; }
.emz-section__title--left { text-align: left; }

/* Handwritten kicker — the brand's one signature flourish (used sparingly) */
.emz-kicker {
	font-family: var(--font-script);
	font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem);
	color: var(--accent-ink);
	line-height: 1;
	display: inline-block;
	transform: rotate(-3deg);
}

/* Heart divider */
.emz-divider {
	display: flex; align-items: center; justify-content: center; gap: 12px;
	color: var(--accent); margin: 8px 0;
}
.emz-divider::before, .emz-divider::after {
	content: ""; height: 1px; width: min(80px, 12vw); background: var(--line-strong);
}
.emz-divider__heart { width: 14px; height: 14px; }

/* --- Skip link / a11y --- */
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px;
	padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}
.emz-skiplink:focus {
	position: fixed; top: 12px; left: 12px; z-index: var(--z-toast);
	width: auto; height: auto; clip: auto;
	padding: 10px 18px; background: var(--surface);
	border-radius: var(--r-sm); box-shadow: var(--shadow-md);
	font-family: var(--font-ui); font-weight: 600;
}

/* --- Header --- */
.emz-header {
	position: sticky; top: 0; z-index: var(--z-header);
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.emz-header__inner { display: flex; align-items: center; gap: 22px; min-height: 74px; }
.emz-logo {
	font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
	letter-spacing: 0.02em; text-decoration: none; color: var(--ink);
}
.emz-logo:hover { color: var(--accent-ink); }
.emz-nav { margin-left: auto; }
.emz-nav__list {
	list-style: none; display: flex; gap: 26px; margin: 0; padding: 0;
	font-family: var(--font-ui); font-size: 0.95rem; font-weight: 500;
}
.emz-nav__list a { color: var(--ink); text-decoration: none; position: relative; padding-block: 6px; }
.emz-nav__list a::after {
	content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
	background: var(--accent); transition: right var(--dur-2) var(--ease-out);
}
.emz-nav__list a:hover { color: var(--accent-ink); }
.emz-nav__list a:hover::after { right: 0; }
.emz-cart-link {
	min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
	font-size: 1.3rem; text-decoration: none; border-radius: var(--r-pill);
	transition: background var(--dur-1) var(--ease-out);
}
.emz-cart-link:hover { background: var(--surface-2); }

/* --- Footer --- */
.emz-footer { margin-top: calc(var(--section-y) / 2); background: var(--ink); color: #efe7dc; }
.emz-footer__inner { padding-block: clamp(40px, 6vw, 72px); display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.emz-footer__brand { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: 0.02em; margin: 0; }
.emz-footer__list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin: 0; padding: 0; font-family: var(--font-ui); font-size: 0.9rem; }
.emz-footer__list a { color: #d9cfc2; text-decoration: none; }
.emz-footer__list a:hover { color: #fff; }
.emz-footer__copy { color: #b6ab9c; font-size: var(--fs-sm); margin: 0; font-family: var(--font-ui); }

@media (max-width: 640px) {
	.emz-nav__list { gap: 16px; font-size: 0.85rem; }
	.emz-logo { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
	.emz-nav__list a::after { transition: none; }
	* { scroll-behavior: auto !important; }
}
