/*
Theme Name: Lucky Lady Ranch Zen
Description: A quiet, fast, dependency free theme for Lucky Lady Ranch natural body care.
Version: 1.0.0
Requires PHP: 8.1
Text Domain: llr
*/

:root {
	--paper: #F6F2EA;
	--paper-2: #EEE8DD;
	--paper-3: #E5DED0;
	--ink: #2B342E;
	--ink-soft: #55605A;
	--sage: #6F8466;
	--sage-deep: #4F6248;
	--sage-wash: #DFE5D6;
	--clay: #A86F4C;
	--clay-wash: #EFDCCB;
	--seal: #A5452F;
	--line: #D9D1C2;
	--serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
	--sans: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;
	--measure: 68ch;
	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 4px;
	--shadow: 0 1px 2px rgb(43 52 46 / 6%), 0 8px 30px rgb(43 52 46 / 6%);
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.0625rem/1.75 var(--sans);
	letter-spacing: .005em;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-deep); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--clay); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -.005em; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); font-weight: 400; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1.2em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--ink); color: var(--paper); padding: 8px 14px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(var(--measure) + 2 * var(--gutter)); }
.kicker { font: 500 .78rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--clay); margin: 0 0 1rem; display: inline-flex; align-items: center; gap: .7em; }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 46ch; }
.muted { color: var(--ink-soft); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .6em; padding: .85em 1.6em; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper); font: 500 .9rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: background .25s, color .25s, border-color .25s; cursor: pointer; }
.btn:hover { background: var(--sage-deep); border-color: var(--sage-deep); color: var(--paper); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn .arr { transition: transform .25s; }
.btn:hover .arr { transform: translateX(3px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgb(246 242 234 / 92%); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { width: 46px; height: 46px; }
.brand-name { font: 500 1.5rem/1 var(--serif); letter-spacing: .01em; }
.brand-tag { display: block; font: 400 .62rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft); margin-top: 6px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(16px, 2.4vw, 34px); align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font: 400 .92rem/1 var(--sans); letter-spacing: .06em; padding: 8px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--clay); transition: right .3s; }
.nav a:hover::after, .nav .current a::after { right: 0; }
.nav .cta a { border: 1px solid var(--ink); border-radius: 999px; padding: 10px 18px; }
.nav .cta a::after { display: none; }
.nav .cta a:hover { background: var(--ink); color: var(--paper); }
.menu-toggle { display: none; }
@media (max-width: 860px) {
	.menu-toggle { display: block; position: relative; }
	.menu-toggle summary { list-style: none; cursor: pointer; padding: 10px; font: 500 .8rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; border: 1px solid var(--ink); border-radius: 999px; }
	.menu-toggle summary::-webkit-details-marker { display: none; }
	.menu-toggle[open] .nav { display: block; }
	.nav-desktop { display: none; }
	.menu-toggle .nav { display: none; position: absolute; right: 0; top: calc(100% + 12px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 22px; min-width: 220px; }
	.menu-toggle .nav ul { flex-direction: column; align-items: flex-start; gap: 4px; }
	.brand-tag { display: none; }
}

/* Hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 em { font-style: italic; color: var(--sage-deep); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-art { border-radius: 2px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero-grid > *, .page-head > *, .product > *, .article-layout > * { min-width: 0; }
html, body { overflow-x: clip; }

/* Sections */
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section.tint { background: var(--paper-2); }
.section.deep { background: var(--ink); color: var(--paper); }
.section.deep h2, .section.deep h3 { color: var(--paper); }
.section.deep a { color: var(--clay-wash); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 22ch; }

/* Leave-out list */
.leave-out { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 14px; }
.leave-out a { display: inline-block; overflow-wrap: anywhere; font: 400 clamp(1.3rem, 2.4vw, 1.9rem)/1.2 var(--serif); color: var(--paper); text-decoration: line-through; text-decoration-color: var(--clay); text-decoration-thickness: 2px; padding: 6px 4px; opacity: .92; }
.leave-out a:hover { color: var(--clay-wash); text-decoration-color: var(--paper); }
.leave-out li:not(:last-child)::after { content: "·"; color: var(--sage); margin-left: 14px; font-size: 1.4rem; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); counter-reset: p; }
.principles > div { border-top: 1px solid var(--line); padding-top: 22px; }
.principles > div::before { counter-increment: p; content: "0" counter(p); display: block; font: 400 .85rem/1 var(--sans); letter-spacing: .2em; color: var(--clay); margin-bottom: 18px; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }

/* Product grid */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: clamp(20px, 3vw, 36px); }
.p-card { text-decoration: none; color: var(--ink); display: block; }
.p-card .ph { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-3); border-radius: 2px; }
.p-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.p-card:hover img { transform: scale(1.04); }
.p-card h3 { font-size: 1.35rem; margin: 14px 0 2px; }
.p-card .meta { display: flex; justify-content: space-between; color: var(--ink-soft); font-size: .92rem; }
.p-card .kind { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sage-deep); }

/* Article cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(22px, 3vw, 40px); }
.a-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.a-card .ph { aspect-ratio: 1200 / 630; overflow: hidden; border-radius: 2px; background: var(--paper-3); }
.a-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.a-card:hover img { transform: scale(1.03); }
.a-card .cat { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--clay); margin-top: 16px; }
.a-card h3 { font-size: 1.4rem; margin: 6px 0 8px; }
.a-card p { color: var(--ink-soft); font-size: .97rem; margin: 0; }
.list-plain { list-style: none; padding: 0; margin: 0; columns: 2 280px; column-gap: 48px; }
.list-plain li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list-plain a { text-decoration: none; color: var(--ink); }
.list-plain a:hover { color: var(--clay); }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.pillar { position: relative; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; display: flex; flex-direction: column; }
.pillar img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.pillar div { padding: 22px 24px 26px; }
.pillar h3 { margin-bottom: 6px; }
.pillar p { color: var(--ink-soft); margin: 0; font-size: .97rem; }
.pillar .count { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--clay); }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* Breadcrumbs */
.crumbs { font-size: .82rem; letter-spacing: .04em; color: var(--ink-soft); padding-top: 28px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--line); }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--clay); }

/* Article */
.article-head { padding-top: 32px; padding-bottom: 28px; }
.article-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 20ch; }
.article-head .dek { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .85rem; color: var(--ink-soft); margin-top: 18px; }
.article-art { margin: 0 auto 48px; }
.article-art img { max-height: 560px; object-fit: cover; }
.article-art img { width: 100%; border-radius: 2px; }
.article-layout { display: grid; grid-template-columns: 220px minmax(0, var(--measure)) 1fr; gap: 56px; }
.toc { position: sticky; top: 100px; align-self: start; font-size: .88rem; }
.toc h2 { font: 500 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--clay); margin-bottom: 14px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.toc li a { display: block; padding: 6px 0 6px 14px; color: var(--ink-soft); text-decoration: none; line-height: 1.4; margin-left: -1px; border-left: 1px solid transparent; }
.toc li a:hover { color: var(--ink); border-left-color: var(--clay); }
@media (max-width: 1100px) { .article-layout { grid-template-columns: minmax(0, 1fr); max-width: var(--measure); margin: 0 auto; } .toc { position: static; } .article-aside { display: none; } }
.prose { font-size: 1.09rem; }
.prose h2 { font-size: clamp(1.7rem, 2.6vw, 2.15rem); margin-top: 2em; scroll-margin-top: 100px; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.4em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--clay); }
.prose blockquote { margin: 2em 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--clay); font: italic 400 1.45rem/1.5 var(--serif); color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 500; background: var(--paper-2); }
.takeaways { background: var(--sage-wash); border-radius: 2px; padding: 26px 30px 12px; margin: 0 0 2.4em; }
.takeaways h2 { font: 500 .78rem/1 var(--sans) !important; letter-spacing: .22em; text-transform: uppercase; color: var(--sage-deep); margin: 0 0 14px !important; }
.takeaways ul { padding-left: 1.1em; }
.faq { margin-top: 3em; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font: 500 1.25rem/1.35 var(--serif); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 300 1.6rem/1 var(--sans); color: var(--clay); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); }
.sources { margin-top: 3em; font-size: .9rem; color: var(--ink-soft); }
.sources h2 { font: 500 .75rem/1 var(--sans) !important; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 12px !important; }
.sources ol { padding-left: 1.2em; }
.note { font-size: .88rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 3em; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 2.4em 0; }
.shelf a { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 2px; padding: 10px; background: var(--paper); transition: border-color .25s; }
.shelf a:hover { border-color: var(--clay); }
.shelf img { width: 72px; height: 72px; object-fit: cover; border-radius: 2px; }
.shelf strong { display: block; font: 500 1.1rem/1.2 var(--serif); }
.shelf span { font-size: .8rem; color: var(--ink-soft); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 3em; border-top: 1px solid var(--line); padding-top: 24px; }
.pager a { text-decoration: none; color: var(--ink); }
.pager small { display: block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--clay); }
.pager .next { text-align: right; }

/* Product page */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); padding: 28px 0 40px; }
.gallery .main { aspect-ratio: 4 / 5; background: var(--paper-3); border-radius: 2px; overflow: hidden; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery .thumbs button { padding: 0; border: 1px solid var(--line); border-radius: 2px; background: none; cursor: pointer; width: 72px; height: 72px; overflow: hidden; }
.gallery .thumbs button[aria-current="true"] { border-color: var(--ink); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy { position: sticky; top: 100px; align-self: start; }
.buy h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: .2em; }
.buy .price { font: 400 1.6rem/1 var(--serif); margin: 10px 0 22px; }
.buy .variants { font-size: .9rem; color: var(--ink-soft); margin-bottom: 22px; }
.free-from { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.free-from a { display: inline-block; font-size: .8rem; letter-spacing: .04em; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink-soft); }
.free-from a:hover { border-color: var(--clay); color: var(--clay); }
.spec { border-top: 1px solid var(--line); margin-top: 28px; }
.spec details { border-bottom: 1px solid var(--line); }
.spec summary { cursor: pointer; padding: 16px 0; font: 500 .82rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; list-style: none; }
.spec summary::-webkit-details-marker { display: none; }
.spec .inner { padding: 0 0 18px; color: var(--ink-soft); }
@media (max-width: 860px) { .product { grid-template-columns: minmax(0, 1fr); } .buy { position: static; } }

/* Page head (hubs) */
.page-head { padding: 24px 0 48px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.page-head img { border-radius: 2px; box-shadow: var(--shadow); }
@media (max-width: 860px) { .page-head { grid-template-columns: minmax(0, 1fr); } }

/* Forms */
.form { display: grid; gap: 18px; max-width: 620px; }
.form label { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); display: block; margin-bottom: 6px; }
.form input, .form textarea, .form select { width: 100%; font: inherit; color: var(--ink); background: #FBF9F5; border: 1px solid var(--line); border-radius: 2px; padding: 12px 14px; transition: border-color .2s; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--sage-deep); }
.form textarea { min-height: 170px; resize: vertical; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form .two { grid-template-columns: 1fr; } }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 18px; border-radius: 2px; margin-bottom: 22px; }
.notice.ok { background: var(--sage-wash); }
.notice.err { background: var(--clay-wash); }

/* Footer */
.site-footer { background: var(--ink); color: #CFD3CC; padding: 72px 0 32px; font-size: .95rem; }
.site-footer a { color: #E8E3D8; text-decoration: none; }
.site-footer a:hover { color: var(--clay-wash); }
.f-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.f-grid h2 { font: 500 .75rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--clay-wash); margin-bottom: 18px; }
.f-grid ul { list-style: none; padding: 0; margin: 0; }
.f-grid li { padding: 4px 0; }
.f-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; color: #F3EEE4; }
.f-brand svg { width: 54px; height: 54px; }
.f-brand span { font: 500 1.6rem/1 var(--serif); }
.f-bottom { border-top: 1px solid rgb(255 255 255 / 12%); margin-top: 56px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: #A6ADA4; }
@media (max-width: 860px) { .f-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .f-grid { grid-template-columns: 1fr; } }

/* Reveal on scroll (progressive enhancement) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Pagination */
.pagination { margin-top: 48px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* HTML sitemap */
.sitemap-html section { margin-top: 56px; }
.sitemap-html h2 a { color: inherit; text-decoration: none; }
.sitemap-html h2 a:hover { color: var(--clay); }
.sitemap-html small { display: block; font-size: .8rem; color: var(--ink-soft); margin-top: 2px; }

/* Glossary */
.az { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 16px; padding-bottom: 16px; position: sticky; top: 76px; background: var(--paper); z-index: 5; border-bottom: 1px solid var(--line); }
.az a { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .85rem; }
.az a:hover { border-color: var(--clay); color: var(--clay); }
.glossary h2 { margin-top: 48px; scroll-margin-top: 150px; color: var(--clay); }
.glossary dl { margin: 0; }
.glossary .term { padding: 18px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 150px; }
.glossary dt { font: 500 1.35rem/1.3 var(--serif); }
.glossary dd { margin: 6px 0 0; color: var(--ink-soft); }
.glossary dd.aka { font-size: .85rem; }
.tag { font: 500 .66rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; vertical-align: middle; margin-left: 6px; }
.tag-avoid { background: var(--clay-wash); color: #7A4A2E; }
.tag-caution { background: #EDE6CF; color: #6A5B2A; }
.tag-natural { background: var(--sage-wash); color: var(--sage-deep); }

/* Featured images chosen in wp-admin fill the same frames as the illustrations. */
.a-card img.featured, .article-art img.featured { width: 100%; object-fit: cover; aspect-ratio: 1200 / 630; height: auto; }
