/*
Theme Name: Lipika
Description: A warm, script-first theme for a calligraphy generator website. It is designed around the Lipika Calligraphy Generator plugin, with a home page, language landing pages, gallery, FAQ, contact and blog. Includes a one-click starter content setup under Appearance → Lipika Setup.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Author: Lipika
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lipika
Tags: one-column, custom-logo, custom-menu, featured-images, translation-ready, blog
*/

/* ---------- Fonts (SIL OFL, bundled) ---------- */
@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces-600.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces-italic-500.woff") format("woff"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Mukta"; src: url("assets/fonts/mukta-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Mukta"; src: url("assets/fonts/mukta-600.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Mukta"; src: url("assets/fonts/mukta-800.woff") format("woff"); font-weight: 700 800; font-display: swap; }
@font-face { font-family: "Lipika Deco Deva"; src: url("assets/fonts/yatra-one.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Lipika Deco Guj"; src: url("assets/fonts/mogra.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Lipika Deco Latin"; src: url("assets/fonts/great-vibes.woff") format("woff"); font-display: swap; }

/* ---------- Tokens ---------- */
:root {
	--ink: #1c1a3a;
	--ink-2: #3b3860;
	--muted: #6b6784;
	--paper: #fbf6ee;
	--paper-2: #f4ecdf;
	--surface: #ffffff;
	--line: #e7dfd2;
	--accent: #d9481f;
	--accent-2: #f29a2e;
	--night: #14122b;
	--radius: 20px;
	--shadow: 0 1px 2px rgba(28, 26, 58, .06), 0 18px 40px -18px rgba(28, 26, 58, .22);
	--wrap: 1180px;
	--gutter: clamp(16px, 4vw, 32px);
	--f-display: "Fraunces", Georgia, "Times New Roman", serif;
	--f-body: "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-deco-deva: "Lipika Deco Deva", "Mukta", serif;
	--f-deco-guj: "Lipika Deco Guj", "Mukta", serif;
	--f-deco-lat: "Lipika Deco Latin", cursive;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--f-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--accent-2) 40%, transparent); }

.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { background: var(--surface); clip: auto !important; clip-path: none; display: block; height: auto; left: 8px; top: 8px; padding: 12px 16px; width: auto; z-index: 100001; border-radius: 8px; box-shadow: var(--shadow); }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section--tint { background: var(--paper-2); }
.section--white { background: var(--surface); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 24px;
	border-radius: 14px;
	border: 1.5px solid transparent;
	font-family: var(--f-body); font-weight: 700; font-size: 1rem; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: transform .15s, background .15s, color .15s, box-shadow .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn--primary:hover { color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { color: #fff; background: var(--ink-2); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { color: var(--ink); }
.btn--outline-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--outline-light:hover { border-color: #fff; color: #fff; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--paper) 88%, transparent);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s, box-shadow .2s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(28,26,58,.35); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand__mark {
	width: 40px; height: 40px; border-radius: 12px;
	display: grid; place-items: center;
	background: linear-gradient(145deg, var(--accent), var(--accent-2));
	color: #fff;
	font-family: var(--f-deco-deva); font-size: 1.45rem; line-height: 1;
	box-shadow: inset 0 -3px 0 rgba(0,0,0,.12);
}
.brand__mark span { transform: translateY(2px); }
.brand__name { font-family: var(--f-display); font-weight: 600; font-size: 1.4rem; letter-spacing: -.01em; }
.custom-logo-link img { max-height: 44px; width: auto; display: block; }

.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.primary-nav a {
	display: block; padding: 8px 14px; border-radius: 10px;
	color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem;
}
.primary-nav a:hover { background: var(--paper-2); color: var(--ink); }
.primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { color: var(--accent); }
.primary-nav .sub-menu { display: none; }
.header-cta { flex: none; padding: 10px 18px; }
.nav-toggle {
	display: none; margin-left: auto;
	width: 44px; height: 44px; border-radius: 12px;
	border: 1px solid var(--line); background: var(--surface); color: var(--ink);
	align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, opacity .2s; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; }
	.header-cta { display: none; }
	.primary-nav {
		position: fixed; inset: 72px 0 auto 0;
		background: var(--paper);
		border-bottom: 1px solid var(--line);
		box-shadow: 0 20px 30px -20px rgba(0,0,0,.25);
		padding: 8px var(--gutter) 20px;
		display: none;
		max-height: calc(100vh - 72px); overflow: auto;
	}
	.admin-bar .primary-nav { top: 104px; }
	.nav-open .primary-nav { display: block; }
	.primary-nav ul { flex-direction: column; }
	.primary-nav a { padding: 12px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
	.primary-nav .mobile-cta { display: block; margin-top: 14px; }
	.primary-nav .mobile-cta a { border: 0; text-align: center; border-radius: 14px; color: #fff; }
}
@media (min-width: 901px) { .primary-nav .mobile-cta { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 84px) 0 clamp(56px, 8vw, 96px); overflow: hidden; isolation: isolate; }
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -2;
	background:
		radial-gradient(60% 50% at 85% 0%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 70%),
		radial-gradient(50% 45% at 5% 20%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
}
.hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
	background-image: radial-gradient(color-mix(in srgb, var(--ink) 16%, transparent) 1px, transparent 1.2px);
	background-size: 22px 22px;
	mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
	-webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}
.hero__glyphs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__glyphs span { position: absolute; line-height: 1; color: var(--ink); opacity: .06; user-select: none; }
.hero__glyphs .g1 { top: 6%; left: 3%; font-family: var(--f-deco-deva); font-size: clamp(90px, 14vw, 200px); transform: rotate(-10deg); }
.hero__glyphs .g2 { top: 12%; right: 4%; font-family: var(--f-deco-guj); font-size: clamp(80px, 12vw, 170px); transform: rotate(8deg); color: var(--accent); opacity: .09; }
.hero__glyphs .g3 { top: 44%; left: -1%; font-family: var(--f-deco-lat); font-size: clamp(90px, 13vw, 190px); transform: rotate(-4deg); }
.hero__glyphs .g4 { top: 38%; right: -1%; font-family: var(--f-deco-deva); font-size: clamp(90px, 13vw, 180px); transform: rotate(-6deg); }
.hero__head { text-align: center; max-width: 820px; margin: 0 auto 36px; }
.hero__title .accent {
	font-family: var(--f-display); font-style: italic; font-weight: 500;
	background: linear-gradient(120deg, var(--accent), var(--accent-2));
	-webkit-background-clip: text; background-clip: text; color: transparent;
	padding-right: .08em;
}
.hero__lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--muted); max-width: 640px; margin: 0 auto 22px; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; list-style: none; margin: 0; padding: 0; color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { color: var(--accent); flex: none; }
.hero__tool { max-width: 880px; margin: 0 auto; }
.hero__tool .lpk-results { width: min(var(--wrap), 100vw - var(--gutter) * 2); position: relative; left: 50%; transform: translateX(-50%); }
.plugin-missing {
	background: var(--surface); border: 2px dashed var(--line); border-radius: var(--radius);
	padding: 28px; text-align: center; color: var(--muted);
}

/* ---------- Script ribbon ---------- */
.ribbon { background: var(--night); color: #fff; overflow: hidden; padding: 18px 0; }
.ribbon__track { display: flex; gap: 48px; width: max-content; animation: ribbon 40s linear infinite; }
.ribbon__track span { font-size: 1.7rem; line-height: 1.3; white-space: nowrap; opacity: .9; }
.ribbon__track span:nth-child(3n+1) { font-family: var(--f-deco-deva); color: var(--accent-2); }
.ribbon__track span:nth-child(3n+2) { font-family: var(--f-deco-lat); font-size: 2.1rem; }
.ribbon__track span:nth-child(3n) { font-family: var(--f-deco-guj); color: #ffb9a1; }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 26px 22px; position: relative; overflow: hidden;
	transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature__icon {
	width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
	background: color-mix(in srgb, var(--accent) 10%, var(--surface)); color: var(--accent);
	margin-bottom: 18px;
}
.feature__stat { font-family: var(--f-display); font-size: 2.1rem; line-height: 1; margin-bottom: 6px; }
.feature h3 { font-family: var(--f-body); font-weight: 700; font-size: 1.08rem; margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: 16%; right: 16%; border-top: 2px dashed var(--line); z-index: 0; }
.step { text-align: center; position: relative; z-index: 1; padding: 0 10px; }
.step__num {
	width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--surface); border: 2px solid var(--line);
	font-family: var(--f-deco-deva); font-size: 1.9rem; color: var(--accent);
	box-shadow: 0 0 0 8px var(--paper-2);
}
.section--white .step__num { box-shadow: 0 0 0 8px var(--surface); }
.step h3 { font-family: var(--f-body); font-weight: 700; font-size: 1.15rem; }
.step p { color: var(--muted); margin: 0 auto; max-width: 300px; }

/* ---------- Showcase ---------- */
.showcase { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.tile {
	grid-column: span 4;
	position: relative; display: grid; place-items: center;
	min-height: 210px; padding: 28px 20px;
	border-radius: var(--radius); overflow: hidden;
	text-decoration: none; text-align: center;
	background: var(--surface); border: 1px solid var(--line);
	transition: transform .2s, box-shadow .2s;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile--wide { grid-column: span 8; }
.tile__text { font-size: clamp(2.2rem, 4.2vw, 3.4rem); line-height: 1.35; display: block; }
.tile__meta {
	position: absolute; left: 14px; bottom: 12px;
	font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
	padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.85); color: var(--ink);
}
.tile__try { position: absolute; right: 14px; bottom: 12px; font-size: .8rem; font-weight: 700; opacity: 0; transform: translateY(4px); transition: .2s; color: inherit; }
.tile:hover .tile__try, .tile:focus-visible .tile__try { opacity: 1; transform: none; }
.fx-deva { font-family: var(--f-deco-deva); }
.fx-guj { font-family: var(--f-deco-guj); }
.fx-lat { font-family: var(--f-deco-lat); font-size: clamp(2.8rem, 5vw, 4.2rem) !important; }
.fx-gold { background: linear-gradient(180deg, #7a4a00, #c9921c 30%, #f9e08b 50%, #d4a02c 70%, #8f5c05); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-saffron { background: linear-gradient(180deg, #ffb347, #ff7a18 40%, #e8412c 70%, #b3122e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-royal { background: linear-gradient(180deg, #2b1466, #5b2a9e 40%, #c2479b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-ink { color: var(--ink); }
.fx-glow { color: #ffe3c4; text-shadow: 0 0 18px #ff9a3c, 0 0 6px #ff9a3c; }
.fx-deep { color: #fff; text-shadow: 1px 1px 0 #b3122e, 2px 2px 0 #b3122e, 3px 3px 0 #b3122e, 4px 4px 0 #8a0f24, 5px 5px 0 #8a0f24; }
.fx-outline { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.bg-night { background: var(--night); border-color: var(--night); color: #fff; }
.bg-maroon { background: linear-gradient(135deg, #7a1f2b, #4a1020); border-color: #5b1622; color: #fff; }
.bg-parchment { background: #fbf1dc; }
.bg-saffron { background: linear-gradient(135deg, #ffcf70, #f29a2e); border-color: #f0a640; }
.bg-paper { background: var(--surface) radial-gradient(color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 1.2px) 0 0 / 16px 16px; }

/* ---------- Occasions ---------- */
.occasions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.occasion {
	display: flex; flex-direction: column;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; text-decoration: none; color: var(--ink);
	transition: transform .2s, box-shadow .2s;
}
.occasion:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.occasion__art {
	height: 140px; display: grid; place-items: center; position: relative;
	font-size: 2.6rem; line-height: 1.3;
}
.occasion__art--wedding { background: linear-gradient(135deg, #7a1f2b, #b8323f); color: #ffd98a; font-family: var(--f-deco-deva); }
.occasion__art--festival { background: linear-gradient(135deg, #f29a2e, #d9481f); color: #fff; font-family: var(--f-deco-deva); }
.occasion__art--business { background: linear-gradient(135deg, #1c1a3a, #3b3860); color: #fff; font-family: var(--f-display); font-size: 2rem; letter-spacing: .02em; }
.occasion__art--personal { background: linear-gradient(135deg, #fbe7d0, #f6d0c1); color: var(--ink); font-family: var(--f-deco-lat); font-size: 3rem; }
.occasion__body { padding: 20px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.occasion h3 { font-family: var(--f-body); font-weight: 700; font-size: 1.12rem; margin-bottom: 6px; }
.occasion p { color: var(--muted); font-size: .97rem; margin: 0 0 14px; flex: 1; }
.occasion__link { font-weight: 700; color: var(--accent); font-size: .95rem; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin: 0; display: flex; flex-direction: column; }
.review__stars { color: var(--accent-2); letter-spacing: 2px; margin-bottom: 10px; }
.review blockquote { margin: 0 0 18px; font-size: 1.04rem; flex: 1; }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.review__avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); font-weight: 800; color: var(--accent); overflow: hidden; flex: none; }
.review__avatar img { width: 100%; height: 100%; object-fit: cover; }
.review__name { font-weight: 700; display: block; line-height: 1.2; }
.review__role { color: var(--muted); font-size: .88rem; }
.admin-hint { border: 2px dashed var(--line); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--muted); background: var(--surface); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.faq summary {
	list-style: none; cursor: pointer;
	padding: 18px 56px 18px 22px; position: relative;
	font-weight: 700; font-size: 1.06rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
	border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
	transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.faq__answer { padding: 0 22px 18px; color: var(--ink-2); }
.faq__answer > :last-child { margin-bottom: 0; }
.faq-more { text-align: center; margin-top: 28px; }

/* ---------- CTA ---------- */
.cta {
	position: relative; overflow: hidden; isolation: isolate;
	background: var(--night); color: #fff; border-radius: 28px;
	padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
	text-align: center;
}
.cta::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(50% 80% at 0% 100%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%),
		radial-gradient(40% 70% at 100% 0%, color-mix(in srgb, var(--accent-2) 35%, transparent), transparent 70%);
}
.cta__glyph { position: absolute; right: 4%; bottom: -30px; font-family: var(--f-deco-deva); font-size: 220px; line-height: 1; opacity: .07; z-index: -1; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.78); max-width: 560px; margin: 0 auto 26px; font-size: 1.1rem; }
.cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Page hero & content ---------- */
.page-hero { padding: clamp(44px, 7vw, 80px) 0 clamp(28px, 4vw, 44px); text-align: center; position: relative; }
.page-hero p { color: var(--muted); font-size: 1.12rem; max-width: 640px; margin: 0 auto; }
.breadcrumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.entry { padding-bottom: clamp(56px, 8vw, 96px); }
.entry-content > * { margin-top: 0; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { margin-top: 1.8em; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.entry-content h3 { margin-top: 1.6em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .35em; }
.entry-content blockquote { margin-left: 0; padding: 6px 0 6px 20px; border-left: 3px solid var(--accent); font-family: var(--f-display); font-style: italic; font-size: 1.2rem; }
.entry-content img { border-radius: 14px; }
.entry-content .alignwide { width: min(var(--wrap), 100vw - var(--gutter) * 2); margin-left: 50%; transform: translateX(-50%); max-width: none; }
.entry-content .alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); max-width: none; }
.entry-content .lpk { margin-top: 1.6em; margin-bottom: 1.6em; }
.template-generator .entry-content > .lpk:first-child { margin-top: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); }
.wp-block-button__link { border-radius: 14px; background: var(--ink); }
table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
code { background: var(--paper-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }

/* Posts */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card__thumb { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--paper-2), #f6d9c4); display: grid; place-items: center; overflow: hidden; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__thumb span { font-family: var(--f-deco-deva); font-size: 3.4rem; color: var(--accent); opacity: .5; }
.post-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.post-card h2, .post-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.post-card h2 a, .post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--accent); }
.post-card p { color: var(--muted); font-size: .97rem; margin: 0; }
.entry-meta { color: var(--muted); font-size: .95rem; }
.post-thumb { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; }
.pagination { margin-top: 40px; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 600; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-nav a { text-decoration: none; font-weight: 700; }

/* Comments */
.comments { margin-top: 56px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-bottom: 14px; }
.comment-meta { font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.comment-author .avatar { border-radius: 50%; vertical-align: middle; margin-right: 8px; }

/* Forms */
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], textarea, select {
	width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
	background: var(--surface); color: var(--ink); font: inherit;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
input[type="submit"], button[type="submit"] { border: 0; border-radius: 14px; background: var(--ink); color: #fff; padding: 12px 22px; font: inherit; font-weight: 700; cursor: pointer; }
.search-form { display: flex; gap: 8px; max-width: 520px; margin: 0 auto; }
.search-form label { flex: 1; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; }
.contact-list .ico { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); color: var(--accent); }
.contact-list strong { display: block; }
.contact-list a { color: var(--ink); }

/* 404 */
.notfound { text-align: center; padding: clamp(60px, 10vw, 120px) 0; }
.notfound__big { font-family: var(--f-deco-deva); font-size: clamp(6rem, 18vw, 11rem); line-height: 1; background: linear-gradient(180deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: rgba(255,255,255,.72); padding: clamp(56px, 7vw, 80px) 0 28px; margin-top: 0; font-size: .97rem; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 36px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { max-width: 340px; }
.footer-contact { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { flex: none; margin-top: 4px; color: var(--accent-2); }
.footer-col h2 { font-family: var(--f-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.social { display: flex; gap: 8px; margin-top: 18px; }
.social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.social a:hover { background: var(--accent); }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .9rem; }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Plugin integration: match the theme tokens ---------- */
.lpk { --lpk-ink: var(--ink); --lpk-accent: var(--accent); --lpk-accent-2: var(--accent-2); --lpk-line: var(--line); --lpk-soft: var(--paper); --lpk-muted: var(--muted); font-family: var(--f-body); }
.lpk-heading { font-family: var(--f-display); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.features, .occasions { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.reviews, .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
	.tile, .tile--wide { grid-column: span 12; min-height: 170px; }
	.steps { grid-template-columns: 1fr; gap: 34px; }
	.steps::before { display: none; }
	.contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.features, .occasions, .reviews, .post-grid, .footer-grid { grid-template-columns: 1fr; }
	.hero__glyphs .g3, .hero__glyphs .g4 { display: none; }
	.cta__actions .btn { width: 100%; }
	.footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.ribbon__track { animation: none; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
	*, *::before, *::after { transition: none !important; }
}

/* ---------- v2: festivals, daily, community, header ---------- */
.header-icon { position: relative; flex: none; width: 44px; height: 44px; border-radius: 12px; display: inline-grid; place-items: center; color: var(--ink); border: 1px solid var(--line); background: var(--surface); }
.header-icon:hover { color: var(--accent); border-color: var(--accent); }
.header-icon__badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--paper); }
.header-icon__badge[hidden] { display: none; }
@media (max-width: 900px) { .header-icon { margin-left: auto; } .nav-toggle { margin-left: 8px; } }
.primary-nav .mobile-cta .lpk-install { width: 100%; margin-top: 10px; color: var(--ink); justify-content: center; }

.section--tight { padding: clamp(48px, 6vw, 72px) 0; }
.section-head--left { text-align: left; max-width: none; margin-left: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-head--left > div { max-width: 620px; }
.lpk-fests { --lpk-surface: var(--surface); --lpk-line: var(--line); --lpk-ink: var(--ink); --lpk-accent: var(--accent); --lpk-accent-2: var(--accent-2); --lpk-muted: var(--muted); }
.lpk-fest__phrase { font-family: var(--f-deco-deva); }
.lpk-fest__phrase.lpk-script-guj { font-family: var(--f-deco-guj); }
.lpk-fest__phrase.lpk-script-lat { font-family: var(--f-display); font-style: italic; }
.lpk-fest__name { font-family: var(--f-body) !important; }
.lpk-fests__more a { color: var(--ink); font-weight: 600; }

.daily { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: start; }
.daily__wotd h2 { margin-bottom: 18px; }
.daily__return { position: relative; }
.daily__return h3 { font-family: var(--f-display); font-size: 1.6rem; margin-bottom: 6px; }
.daily__return > p { color: var(--muted); }
.daily__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); color: var(--accent); margin-bottom: 14px; }
.daily__return .lpk-remind__row { grid-template-columns: 1fr 1fr; }
.daily__return .lpk-remind__field:first-child { grid-column: 1 / -1; }
.daily__extra { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .95rem; }
.daily__extra a { color: var(--ink); font-weight: 600; }
.lpk-remind .lpk-btn--primary, .lpk-fest .lpk-btn--primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: #fff; }
.lpk-btn { font-family: var(--f-body); }

#community .lpk-gallery__grid { columns: 4 220px; }
@media (max-width: 900px) { .daily { grid-template-columns: 1fr; } .section-head--left { display: block; } }
