/* Paper Heart — mobile-first brand + layout */

:root {
	--ph-pink: #ff2e93;
	--ph-red: #e31c23;
	--ph-yellow: #ffd60a;
	--ph-teal: #00a8a0;
	--ph-black: #1a1a1a;
	--ph-kraft: #c4a574;
	--ph-paper: #fff8f0;
	--ph-white: #ffffff;
	--ph-ink: #1a1a1a;
	--ph-display: "Fredoka", system-ui, sans-serif;
	--ph-body: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
	--ph-space: 1rem;
	--ph-space-lg: 1.5rem;
	--ph-header: 4rem;
	--ph-radius: 1.25rem;
	--ph-shadow: 4px 6px 0 var(--ph-black);
	--ph-max: 72rem;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	background-color: var(--ph-paper);
	background-image:
		radial-gradient(circle at 12px 12px, rgba(26, 26, 26, 0.06) 1.4px, transparent 1.6px);
	background-size: 28px 28px;
	color: var(--ph-ink);
	font-family: var(--ph-body);
	font-size: 1rem;
	line-height: 1.6;
	min-height: 100vh;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--ph-red);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
	color: var(--ph-black);
}

:focus-visible {
	outline: 3px solid var(--ph-yellow);
	outline-offset: 3px;
}

.screen-reader-text,
.skip-link {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	left: 1rem;
	top: 1rem;
	width: auto;
	z-index: 100000;
	background: var(--ph-yellow);
	color: var(--ph-black);
	padding: 0.75rem 1rem;
	font-weight: 700;
}

.site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-main {
	flex: 1;
	width: min(100% - 2rem, var(--ph-max));
	margin: 0 auto;
	padding: 1.25rem 0 5rem;
}

h1,
h2,
h3,
h4,
.page-title,
.entry-title,
.home-section__title {
	font-family: var(--ph-display);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0 0 0.75rem;
}

h1,
.page-title {
	font-size: clamp(1.75rem, 7vw, 3rem);
}

h2,
.home-section__title {
	font-size: clamp(1.4rem, 5.5vw, 2rem);
}

.button,
button,
input[type="submit"],
.search-submit,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.75rem 1.35rem;
	border: 3px solid var(--ph-black);
	border-radius: 999px;
	background: var(--ph-black);
	color: var(--ph-white);
	font-family: var(--ph-display);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	box-shadow: var(--ph-shadow);
	cursor: pointer;
}

.button:hover,
.button:focus-visible,
button:hover,
input[type="submit"]:hover,
.search-submit:hover {
	background: var(--ph-pink);
	color: var(--ph-white);
	border-color: var(--ph-black);
}

.button--xl {
	min-height: 52px;
	width: 100%;
	padding: 0.95rem 1.5rem;
	font-size: 1.15rem;
	background: var(--ph-yellow);
	color: var(--ph-black);
}

.button--xl:hover,
.button--xl:focus-visible {
	background: var(--ph-pink);
	color: var(--ph-white);
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 200;
	display: grid;
	grid-template-columns: 44px 1fr auto;
	align-items: center;
	gap: 0.5rem;
	min-height: var(--ph-header);
	padding: 0 0.75rem;
	background: var(--ph-paper);
	border-bottom: 3px solid var(--ph-black);
}

.menu-toggle {
	width: 44px;
	height: 44px;
	padding: 0;
	box-shadow: none;
	background: var(--ph-yellow);
	color: var(--ph-black);
}

.menu-toggle__bars {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 18px;
	margin: 0 auto;
}

.menu-toggle__bars span {
	display: block;
	height: 3px;
	background: var(--ph-black);
	border-radius: 99px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) {
	opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

.menu-toggle__bars span {
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-branding {
	display: flex;
	justify-content: center;
	min-width: 0;
}

.custom-logo-link,
.site-title-link {
	display: block;
	line-height: 0;
	text-decoration: none;
}

.custom-logo {
	display: block;
	width: auto;
	height: 42px;
}

.site-title-link {
	font-family: var(--ph-display);
	font-size: 1.15rem;
	color: var(--ph-black);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.header-cart,
.header-account {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: var(--ph-black);
	text-decoration: none;
}

.header-cart__count {
	position: absolute;
	top: 2px;
	right: 0;
	min-width: 1.2rem;
	height: 1.2rem;
	padding: 0 0.3rem;
	border-radius: 999px;
	background: var(--ph-pink);
	color: var(--ph-white);
	border: 2px solid var(--ph-black);
	font-family: var(--ph-display);
	font-size: 0.7rem;
	line-height: 1.05rem;
	text-align: center;
}

.site-nav {
	position: fixed;
	inset: var(--ph-header) 0 0;
	background: var(--ph-paper);
	z-index: 190;
	overflow: auto;
	padding: 1.5rem 1.25rem 3rem;
	border-top: 3px dashed var(--ph-black);
	min-height: calc(100dvh - var(--ph-header));
}

body.nav-open {
	overflow: hidden;
}

.main-navigation .menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.main-navigation a {
	display: flex;
	align-items: center;
	min-height: 52px;
	padding: 0.75rem 1rem;
	border: 3px solid var(--ph-black);
	border-radius: 1rem;
	background: var(--ph-white);
	color: var(--ph-black);
	font-family: var(--ph-display);
	font-size: 1.25rem;
	text-decoration: none;
	box-shadow: 3px 4px 0 var(--ph-black);
}

.main-navigation a:hover,
.main-navigation a:focus-visible,
.main-navigation .current-menu-item > a {
	background: var(--ph-yellow);
}

.main-navigation .sub-menu {
	list-style: none;
	margin: 0.4rem 0 0.8rem 0.75rem;
	padding: 0;
}

/* Footer */
.site-footer {
	background: var(--ph-black);
	color: var(--ph-paper);
	padding: 2rem 1.25rem 2.5rem;
}

.site-footer a {
	color: var(--ph-yellow);
}

.site-footer__inner {
	width: min(100%, var(--ph-max));
	margin: 0 auto;
}

.site-footer__brand {
	font-family: var(--ph-display);
	font-size: 1.15rem;
	line-height: 1.35;
	margin: 0 0 1.25rem;
}

.footer-navigation .menu {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.footer-navigation a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	text-decoration: none;
	font-weight: 600;
}

.site-footer__copy {
	margin: 0;
	opacity: 0.85;
}

/* Cards + content */
.card-sticker,
.entry.card-sticker,
.home-story__card {
	background: var(--ph-white);
	border: 3px solid var(--ph-black);
	border-radius: var(--ph-radius);
	box-shadow: var(--ph-shadow);
	padding: 1.15rem;
	margin-bottom: 1.25rem;
}

.entry-media img {
	width: 100%;
	border-radius: 0.8rem;
	display: block;
}

.entry-meta,
.posted-on,
.archive-description {
	color: #444;
}

.more-link {
	font-family: var(--ph-display);
	font-weight: 600;
}

.page-header {
	margin-bottom: 1.25rem;
}

.search-form {
	display: flex;
	gap: 0.5rem;
	margin: 1rem 0;
}

.search-field,
input[type="search"],
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
textarea,
select {
	width: 100%;
	min-height: 48px;
	padding: 0.7rem 0.85rem;
	border: 3px solid var(--ph-black);
	border-radius: 0.85rem;
	background: var(--ph-white);
	font: inherit;
	color: var(--ph-ink);
}

textarea {
	min-height: 8rem;
}

.post-navigation,
.posts-pagination,
.comments-area {
	margin-top: 2rem;
}

.nav-links {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

/* Homepage */
.front-page {
	padding-top: 0.5rem;
}

.hero {
	position: relative;
	text-align: center;
	padding: 1.25rem 0 2rem;
}

.hero__deco {
	position: absolute;
	inset: 0.5rem 0 auto;
	height: 8px;
	background:
		repeating-linear-gradient(
			90deg,
			var(--ph-pink) 0 16px,
			var(--ph-yellow) 16px 32px,
			var(--ph-teal) 32px 48px,
			var(--ph-red) 48px 64px
		);
	border-radius: 99px;
	border: 2px solid var(--ph-black);
}

.hero__logo {
	margin: 1.75rem auto 1rem;
	max-width: 20rem;
}

.hero__logo img {
	width: 100%;
	filter: drop-shadow(3px 4px 0 rgba(26, 26, 26, 0.18));
}

.hero__tagline {
	font-size: 1.1rem;
	margin: 0 auto 1.25rem;
	max-width: 22rem;
}

.home-section {
	margin: 2rem 0;
}

.home-section__title {
	text-align: center;
}

.home-fallback {
	text-align: center;
	background: var(--ph-white);
	border: 3px dashed var(--ph-black);
	border-radius: var(--ph-radius);
	padding: 1.25rem;
}

.collection-chips {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.6rem;
}

.collection-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.55rem 1rem;
	border: 3px solid var(--ph-black);
	border-radius: 999px;
	background: var(--ph-teal);
	color: var(--ph-white);
	font-family: var(--ph-display);
	font-weight: 600;
	text-decoration: none;
	box-shadow: 3px 3px 0 var(--ph-black);
}

.collection-chip:hover,
.collection-chip:focus-visible {
	background: var(--ph-pink);
	color: var(--ph-white);
}

.home-story__card {
	background: var(--ph-yellow);
}

.home-story__card p {
	margin: 0;
	font-size: 1.05rem;
}

.home-cta {
	text-align: center;
}

/* Alignwide blocks */
.entry-content .alignwide,
.entry-content .alignfull {
	margin-left: 0;
	margin-right: 0;
}

.wp-block-image img {
	height: auto;
}

/* Desktop enhancement */
@media (min-width: 768px) {
	.site-main {
		padding-top: 2rem;
	}

	.custom-logo {
		height: 56px;
		width: auto;
		max-height: 56px;
	}

	.site-top {
		position: sticky;
		top: 0;
		z-index: 200;
		display: flex;
		align-items: center;
		gap: 1rem;
		padding: 0.35rem 1.5rem;
		background: var(--ph-paper);
		border-bottom: 3px solid var(--ph-black);
	}

	.site-header {
		position: static;
		display: contents;
		border: 0;
		padding: 0;
		min-height: 0;
		background: transparent;
	}

	.menu-toggle {
		display: none;
	}

	.site-branding {
		order: 1;
		justify-content: flex-start;
	}

	.site-nav {
		order: 2;
		flex: 1;
		position: static;
		inset: auto;
		display: block !important;
		min-height: 0;
		padding: 0;
		border: 0;
		background: transparent;
		overflow: visible;
	}

	.site-nav[hidden] {
		display: block !important;
	}

	.header-actions {
		order: 3;
	}

	.main-navigation .menu {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0.4rem;
	}

	.main-navigation a {
		min-height: 44px;
		padding: 0.45rem 0.85rem;
		font-size: 1rem;
		box-shadow: none;
		border-width: 2px;
		background: transparent;
	}

	.main-navigation .sub-menu {
		position: absolute;
		margin: 0.35rem 0 0;
		background: var(--ph-white);
		padding: 0.4rem;
		border: 2px solid var(--ph-black);
		border-radius: 0.75rem;
	}

	.button--xl {
		width: auto;
		min-width: 16rem;
	}

	.hero__logo {
		max-width: 28rem;
	}

	.hero__tagline {
		font-size: 1.25rem;
		max-width: 28rem;
	}

	.footer-navigation .menu {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 1rem;
	}

	.nav-links {
		flex-direction: row;
		justify-content: space-between;
	}
}

@media (min-width: 1024px) {
	.home-section {
		margin: 2.75rem 0;
	}
}
