/*
Theme Name: Easy Amigurumi
Theme URI: https://easyamigurumi.com
Author: Ysn
Description: A clean, cozy block theme for easyamigurumi.com. Warm paper background, soft sage and honey accents, rounded photos and lots of breathing room.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: easyamigurumi
Tags: blog, full-site-editing, block-patterns, custom-colors, wide-blocks
*/

:root {
	--ea-radius: var(--wp--custom--radius, 18px);
	--ea-line: var(--wp--preset--color--line, #E8DFD3);
	--ea-muted: var(--wp--preset--color--muted, #6E665E);
	--ea-shadow: var(--wp--preset--shadow--soft, 0 8px 30px rgba(46, 42, 38, .07));
}
::selection { background: var(--wp--preset--color--honey-soft, #FBF0D6); }
img { height: auto; }
.wp-site-blocks { overflow-x: clip; }
:where(.wp-element-button, .wp-block-button__link) { transition: background-color .2s ease, transform .2s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); }

/* Secondary button */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--ink, #2E2A26);
	border: 1.5px solid var(--ea-line);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--oat, #F5EEE4); }

/* ---------- Header ---------- */
.ea-header { border-bottom: 1px solid var(--ea-line); }
.ea-logo-dot {
	width: 34px; height: 34px; border-radius: 50%;
	background: var(--wp--preset--color--honey, #E9B44C);
	box-shadow: inset -6px -6px 0 rgba(0,0,0,.08);
	flex: none;
}
.ea-header .wp-block-navigation-item__content { padding: .4rem .2rem; position: relative; }
.ea-header .wp-block-navigation-item__content:hover { text-decoration: none; }
.ea-header .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
	background: var(--wp--preset--color--honey, #E9B44C); transform: scaleX(0); transition: transform .2s ease;
}
.ea-header .wp-block-navigation-item__content:hover::after,
.ea-header .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }

/* ---------- Small label above headings ---------- */
.ea-eyebrow {
	color: var(--ea-muted);
	font-weight: 700;
	font-size: .9rem;
	display: flex !important;
	align-items: center;
	gap: .5rem;
}
.ea-eyebrow::before {
	content: ""; width: 10px; height: 10px; border-radius: 50%;
	background: var(--wp--preset--color--honey, #E9B44C); flex: none;
}
.ea-eyebrow.has-text-align-center { justify-content: center; }

/* ---------- Hero ---------- */
.ea-hero h1 { text-wrap: balance; }
.ea-hero h1 em { font-style: normal; color: var(--wp--preset--color--sage, #4F6B52); }
.ea-hero-art img { width: 100%; max-width: 480px; margin-inline: auto; display: block; }

/* Search block */
.ea-search .wp-block-search__inside-wrapper {
	background: var(--wp--preset--color--white, #fff);
	border: 1px solid var(--ea-line) !important;
	border-radius: 14px;
	padding: 6px !important;
	box-shadow: var(--ea-shadow);
}
.ea-search .wp-block-search__input { border: none !important; background: transparent; padding: .6rem .8rem !important; font: inherit; color: inherit; }
.ea-search .wp-block-search__input:focus { outline: none; }
.ea-search .wp-block-search__inside-wrapper:focus-within { border-color: var(--wp--preset--color--sage, #4F6B52) !important; }
.ea-search .wp-block-search__button { margin-left: 6px; border-radius: 10px; }

/* Quick category chips */
.ea-chips { gap: .5rem !important; }
.ea-chips p { margin: 0 !important; }
.ea-chips a {
	display: inline-block;
	padding: .35rem .9rem;
	border-radius: 999px;
	background: var(--wp--preset--color--oat, #F5EEE4);
	color: var(--wp--preset--color--ink, #2E2A26);
	font-size: .9rem;
	font-weight: 600;
	transition: background-color .2s ease;
}
.ea-chips a:hover { background: var(--wp--preset--color--honey-soft, #FBF0D6); text-decoration: none; }

/* ---------- Pattern cards (Query Loop) ---------- */
.ea-grid .wp-block-post { display: flex; flex-direction: column; gap: .55rem; }
.ea-grid .wp-block-post-featured-image { margin: 0 0 .35rem; border-radius: var(--ea-radius); overflow: hidden; background: var(--wp--preset--color--oat, #F5EEE4); }
.ea-grid .wp-block-post-featured-image img { aspect-ratio: 1; object-fit: cover; width: 100%; display: block; transition: transform .4s ease; }
.ea-grid .wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.04); }
.ea-grid .wp-block-post-title { font-size: 1.12rem !important; margin: 0; line-height: 1.3; }
.ea-grid .wp-block-post-title a:hover { text-decoration: none; color: var(--wp--preset--color--sage, #4F6B52); }
.ea-meta, .ea-meta a { color: var(--ea-muted); font-size: .85rem; font-weight: 600; }
.wp-block-post-terms.ea-meta .wp-block-post-terms__separator { opacity: .6; }

/* ---------- Category tiles ---------- */
.ea-tile {
	border-radius: var(--ea-radius) !important;
	transition: transform .2s ease, box-shadow .2s ease;
	height: 100%;
}
.ea-tile:hover { transform: translateY(-3px); box-shadow: var(--ea-shadow); }
.ea-tile h3 a { color: inherit; }
.ea-tile h3 a::after { content: ""; position: absolute; inset: 0; }
.ea-tile { position: relative; }
.ea-tile .ea-arrow { font-size: 1.3rem; margin: 0 !important; line-height: 1; }
.ea-tile img { width: 64px; height: 64px; }

/* ---------- Beginner panel ---------- */
.ea-panel { border-radius: calc(var(--ea-radius) + 8px) !important; }
.ea-steps { counter-reset: ea; list-style: none; padding: 0 !important; margin: 0; display: grid; gap: .75rem; }
.ea-steps li {
	counter-increment: ea;
	display: flex; align-items: center; gap: .9rem;
	background: var(--wp--preset--color--white, #fff);
	border-radius: 14px;
	padding: .8rem 1rem;
	font-weight: 600;
}
.ea-steps li::before {
	content: counter(ea);
	width: 30px; height: 30px; flex: none;
	display: grid; place-items: center;
	border-radius: 50%;
	background: var(--wp--preset--color--sage, #4F6B52);
	color: #fff;
	font-family: var(--wp--preset--font-family--heading);
	font-size: .9rem;
}
.ea-steps a { color: var(--wp--preset--color--ink, #2E2A26); }

/* ---------- FAQ (Details) ---------- */
.wp-block-details summary { font-family: var(--wp--preset--font-family--heading); font-weight: 500; font-size: 1.08rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; color: var(--wp--preset--color--sage, #4F6B52); font-size: 1.4rem; line-height: 1; transition: transform .2s ease; }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > p { color: var(--ea-muted); margin-top: .6rem; }

/* ---------- Newsletter ---------- */
.ea-newsletter { border-radius: calc(var(--ea-radius) + 8px) !important; }

/* ---------- Footer ---------- */
.ea-footer a { color: var(--wp--preset--color--ink, #2E2A26); }
.ea-footer h3 { font-size: .95rem !important; color: var(--ea-muted); }
.ea-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }

/* ---------- Single post ---------- */
.ea-single .wp-block-post-featured-image img { border-radius: var(--ea-radius); }
.ea-content h2 { margin-top: 2.5rem; }
.ea-content h3 { margin-top: 2rem; }
.ea-content ol, .ea-content ul { padding-left: 1.3rem; }
.ea-content li { margin-bottom: .35rem; }
.ea-content li::marker { color: var(--wp--preset--color--sage, #4F6B52); font-weight: 700; }
.ea-content table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.ea-content th, .ea-content td { border-bottom: 1px solid var(--ea-line); padding: .6rem .5rem; text-align: left; }
.ea-content th { color: var(--ea-muted); font-weight: 700; }
.ea-content blockquote, .ea-content .wp-block-quote {
	border-left: 3px solid var(--wp--preset--color--honey, #E9B44C);
	background: var(--wp--preset--color--honey-soft, #FBF0D6);
	border-radius: 0 14px 14px 0;
	padding: 1rem 1.25rem;
	margin-left: 0;
}
.ea-content img { border-radius: 14px; }

/* Pagination */
.wp-block-query-pagination .page-numbers, .wp-block-query-pagination a { padding: .3rem .75rem; border-radius: 10px; color: var(--wp--preset--color--ink, #2E2A26); }
.wp-block-query-pagination .page-numbers.current { background: var(--wp--preset--color--sage, #4F6B52); color: #fff; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
