/*
Theme Name: Luma Art
Theme URI: https://www.pinterest.com/CrochetByLumaArt/
Author: Crochet By Luma Art
Description: Lightweight kawaii crochet blog theme. Fast, AdSense-ready (auto ads + ads.txt from the Customizer), pattern-friendly typography, Pinterest save buttons, Article schema.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: lumaart
*/

:root {
	--pink: #d9a3b0;
	--pink-deep: #8b4a5c;
	--pink-soft: #f7e7e9;
	--lav: #d8c3c9;
	--lav-soft: #f6eeee;
	--mint: #bfe8d8;
	--cream: #fffaf5;
	--ink: #4a2c35;
	--muted: #7f6a6e;
	--line: #efdfdc;
	--white: #ffffff;
	--radius: 18px;
	--shadow: 0 6px 24px rgba(139, 74, 92, .10);
	--font-head: "Quicksand", "Nunito", system-ui, sans-serif;
	--font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--pink-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.25;
	color: var(--ink);
	margin: 1.6em 0 .6em;
}
h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
h3 { font-size: 1.3rem; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus { clip: auto; width: auto; height: auto; top: 8px; left: 8px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.site-header {
	background: var(--white);
	border-bottom: 1px solid var(--line);
	position: sticky; top: 0; z-index: 50;
}
.header-inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px; min-height: 72px;
}
.site-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.site-brand img, .custom-logo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.site-title { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; margin: 0; line-height: 1.1; white-space: nowrap; }
.site-title span { color: var(--pink-deep); }
.site-tagline { font-size: .8rem; color: var(--muted); margin: 0; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: nowrap; }
.main-nav a {
	display: block; padding: 8px 12px; border-radius: 999px; white-space: nowrap;
	text-decoration: none; color: var(--ink); font-weight: 700; font-size: .95rem;
}
.main-nav a:hover, .main-nav .current-menu-item > a { background: var(--pink-soft); color: var(--pink-deep); }

.nav-toggle {
	display: none; background: var(--pink-soft); border: 0; border-radius: 12px;
	padding: 10px 14px; font: inherit; font-weight: 700; color: var(--pink-deep); cursor: pointer;
}

@media (max-width: 1024px) {
	.nav-toggle { display: block; }
	.main-nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--white); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; }
}

/* ---------- Hero ---------- */
.hero {
	background: #fcf4eb;
	padding: 28px 0 52px; text-align: center;
}
.hero-logo { display: block; width: min(460px, 88%); height: auto; margin: 0 auto 8px; }
.hero h1 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.hero h1 { margin: 0 0 14px; }
.hero p { max-width: 640px; margin: 0 auto 24px; color: var(--muted); font-size: 1.1rem; }
.btn {
	display: inline-block; background: var(--pink-deep); color: var(--white);
	padding: 12px 26px; border-radius: 999px; font-weight: 800; text-decoration: none;
	box-shadow: var(--shadow); border: 0; cursor: pointer; font: inherit; font-weight: 800;
}
.btn:hover { background: var(--ink); color: var(--white); }
.btn-ghost { background: var(--white); color: var(--pink-deep); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.chip {
	background: var(--white); border: 1px solid var(--line); border-radius: 999px;
	padding: 8px 16px; font-weight: 700; font-size: .92rem; text-decoration: none; color: var(--ink);
}
.chip:hover { border-color: var(--pink); color: var(--pink-deep); }

/* ---------- Layout ---------- */
.site-main { padding: 40px 0 64px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } }

.section-title { text-align: center; margin: 12px 0 28px; }
.section-title small { display: block; color: var(--pink-deep); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.card {
	background: var(--white); border-radius: var(--radius); overflow: hidden;
	box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s ease;
}
.card:hover { transform: translateY(-4px); }
.card-thumb { aspect-ratio: 4 / 5; background: var(--pink-soft); display: block; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-thumb .ph {
	width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
	font-size: 3rem; background: linear-gradient(135deg, var(--pink-soft), var(--lav-soft));
}
.card-body { padding: 18px 20px 22px; }
.card-cat { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--pink-deep); text-decoration: none; }
.card h2, .card h3 { font-size: 1.15rem; margin: 6px 0 8px; }
.card h2 a, .card h3 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { color: var(--pink-deep); }
.card p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }

/* ---------- Single ---------- */
.entry { background: var(--white); border-radius: var(--radius); padding: clamp(20px, 4vw, 44px); box-shadow: var(--shadow); }
.entry-header h1 { margin-top: 0; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumbs a { color: var(--muted); }
.entry-meta { color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.entry-thumb { border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }

.entry-content > *:first-child { margin-top: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .35em; }
.entry-content h2 { border-bottom: 2px dashed var(--pink); padding-bottom: 6px; }
.entry-content h3 { color: var(--pink-deep); }
.entry-content blockquote { margin: 1.5em 0; padding: 16px 20px; background: var(--lav-soft); border-radius: 12px; border-left: 4px solid var(--lav); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.entry-content th { background: var(--pink-soft); }
.entry-content code { background: var(--pink-soft); padding: 2px 6px; border-radius: 6px; font-size: .9em; }

/* Pattern rounds: lists that start with R1 look like a pattern card */
.entry-content ul.pattern-rounds {
	list-style: none; padding: 16px 20px; background: var(--cream);
	border: 1px solid var(--line); border-radius: 14px;
}
.entry-content ul.pattern-rounds li { border-bottom: 1px dotted var(--line); padding: 6px 0; margin: 0; }
.entry-content ul.pattern-rounds li:last-child { border-bottom: 0; }

.pin-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }
.pin-btn {
	display: inline-flex; align-items: center; gap: 8px; background: #e60023; color: #fff;
	padding: 10px 18px; border-radius: 999px; font-weight: 800; text-decoration: none; font-size: .95rem;
}
.pin-btn:hover { background: #ad081b; color: #fff; }
.share-btn { background: var(--lav-soft); color: var(--ink); }
.share-btn:hover { background: var(--lav); color: var(--ink); }

.author-box {
	display: flex; gap: 18px; align-items: center; margin-top: 36px; padding: 20px;
	background: var(--pink-soft); border-radius: var(--radius);
}
.author-box img { width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0; }
.author-box p { margin: 4px 0 0; font-size: .95rem; color: var(--muted); }

.related { margin-top: 48px; }

.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; font-weight: 700; }

/* ---------- Sidebar ---------- */
.sidebar .widget { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 24px; }
.sidebar .widget-title { margin: 0 0 12px; font-size: 1.1rem; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 6px 0; border-bottom: 1px dotted var(--line); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--ink); text-decoration: none; }
.sidebar a:hover { color: var(--pink-deep); }
.about-widget { text-align: center; }
.about-widget img { width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 12px; }

/* ---------- Forms ---------- */
.search-form { display: flex; gap: 8px; }
input[type="text"], input[type="email"], input[type="search"], textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
	font: inherit; font-size: 1rem; background: var(--white); color: var(--ink);
}
input:focus, textarea:focus { outline: 2px solid var(--pink); outline-offset: 1px; }
.luma-contact p { margin: 0 0 14px; }
.luma-contact label { font-weight: 700; display: block; margin-bottom: 4px; }
.luma-hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-weight: 700; }
.notice-ok { background: var(--mint); }
.notice-err { background: var(--pink-soft); color: var(--pink-deep); }

/* ---------- Pagination ---------- */
.pagination { margin-top: 36px; text-align: center; }
.pagination .page-numbers {
	display: inline-block; min-width: 42px; padding: 8px 12px; margin: 0 3px; border-radius: 999px;
	background: var(--white); text-decoration: none; color: var(--ink); font-weight: 700; box-shadow: var(--shadow);
}
.pagination .current { background: var(--pink-deep); color: var(--white); }

/* ---------- Comments ---------- */
.comments-area { margin-top: 40px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { background: var(--cream); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.comment-list .children { list-style: none; padding-left: 20px; }
.comment-meta { font-size: .85rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #eadde8; padding: 48px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: var(--white); font-size: 1.05rem; margin: 0 0 12px; }
.site-footer a { color: #f7c6d9; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; font-size: .85rem; color: #bfaebd; text-align: center; }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: 40px 0; }
.not-found .big { font-size: 5rem; line-height: 1; }

/* WordPress core alignment */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--muted); text-align: center; }
