/*
Theme Name: Moonlit Grayscale Bridge
Theme URI: https://grayscalecoloring.com
Author: OpenAI for Moonlit Grayscale
Description: A lightweight, responsive WordPress theme designed to attract search/Pinterest traffic and send visitors to the Moonlit Grayscale Etsy shop.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: moonlit-grayscale
*/

:root{
  --mg-bg:#fbf9fb;
  --mg-surface:#ffffff;
  --mg-ink:#2d2230;
  --mg-muted:#6f6572;
  --mg-lav:#7b6694;
  --mg-lav-soft:#eee9f2;
  --mg-line:#e9e3eb;
  --mg-dark:#4f3e60;
  --mg-max:1180px;
  --mg-radius:16px;
  --mg-shadow:0 16px 45px rgba(45,34,48,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--mg-bg);color:var(--mg-ink);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.65}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
.mg-container{width:min(var(--mg-max),calc(100% - 40px));margin:auto}
.mg-eyebrow{font-size:.76rem;letter-spacing:.18em;text-transform:uppercase;color:var(--mg-lav);font-weight:800}
h1,h2,h3,.mg-brand{font-family:Georgia,"Times New Roman",serif;line-height:1.08}
h1{font-size:clamp(2.7rem,6vw,5.4rem);margin:.25em 0 .28em}
h2{font-size:clamp(2rem,4vw,3.4rem);margin:.2em 0 .35em}
h3{font-size:1.45rem;margin:.2em 0 .45em}
p{color:var(--mg-muted)}

/* header */
.mg-header{position:sticky;top:0;z-index:50;background:rgba(251,249,251,.94);backdrop-filter:blur(16px);border-bottom:1px solid rgba(233,227,235,.85)}
.mg-nav{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.mg-brand-wrap{display:flex;align-items:center;gap:12px}
.mg-mark{width:42px;height:42px;border-radius:50%;background:radial-gradient(circle at 60% 40%,#fff 0 34%,transparent 35%),linear-gradient(135deg,#cfc4d6,#71607f);box-shadow:inset -8px -8px 18px rgba(63,48,70,.16)}
.mg-brand{font-size:1.4rem;letter-spacing:.04em}
.mg-menu{display:flex;align-items:center;gap:24px;list-style:none;margin:0;padding:0;font-size:.94rem;font-weight:650}
.mg-menu a:hover{color:var(--mg-lav)}
.mg-etsy,.mg-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:8px;padding:13px 20px;background:var(--mg-lav);color:#fff;font-weight:800;font-size:.86rem;letter-spacing:.02em;box-shadow:0 8px 18px rgba(123,102,148,.24);transition:.2s ease}
.mg-etsy:hover,.mg-btn:hover{transform:translateY(-2px);background:#6d5787;color:#fff}
.mg-btn.secondary{background:#fff;color:var(--mg-dark);border:1px solid var(--mg-line);box-shadow:none}
.mg-mobile-toggle{display:none;border:0;background:none;font-size:1.5rem}

/* hero */
.mg-hero{padding:76px 0 58px;background:linear-gradient(90deg,#fcfafc 0%,#f7f3f8 54%,#f3eff5 100%)}
.mg-hero-grid{display:grid;grid-template-columns:1fr 1.15fr;gap:54px;align-items:center}
.mg-hero-copy p{font-size:1.08rem;max-width:600px}
.mg-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.mg-hero-media{min-height:520px;border-radius:22px;overflow:hidden;box-shadow:var(--mg-shadow);background:#e9e4eb}
.mg-hero-media img{width:100%;height:100%;min-height:520px;object-fit:cover}

/* sections */
.mg-section{padding:82px 0}
.mg-section.alt{background:#f7f3f8}
.mg-section-head{text-align:center;max-width:760px;margin:0 auto 42px}
.mg-grid{display:grid;gap:20px}
.mg-grid.four{grid-template-columns:repeat(4,1fr)}
.mg-grid.three{grid-template-columns:repeat(3,1fr)}
.mg-card{background:var(--mg-surface);border:1px solid var(--mg-line);border-radius:var(--mg-radius);overflow:hidden;box-shadow:0 8px 30px rgba(45,34,48,.04)}
.mg-card img{width:100%;aspect-ratio:1/1;object-fit:cover;background:#ebe7ed}
.mg-card-body{padding:22px}
.mg-card-body p{font-size:.92rem;margin-bottom:12px}
.mg-link{font-size:.8rem;font-weight:850;color:var(--mg-lav);letter-spacing:.08em;text-transform:uppercase}

/* features */
.mg-features{grid-template-columns:repeat(5,1fr)}
.mg-feature{text-align:center;padding:18px}
.mg-icon{width:54px;height:54px;border-radius:50%;margin:0 auto 14px;background:var(--mg-lav-soft);display:grid;place-items:center;color:var(--mg-lav);font-size:1.35rem}
.mg-feature strong{display:block;margin-bottom:6px}
.mg-feature p{font-size:.86rem;margin:0}

/* favorites */
.mg-gallery{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}
.mg-gallery img{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:10px;border:1px solid var(--mg-line);background:#ece8ee}

/* how */
.mg-how{background:linear-gradient(135deg,#4e3c60,#7b6694 55%,#5d476f);color:#fff;overflow:hidden}
.mg-how p{color:#eee8f3}
.mg-how-grid{display:grid;grid-template-columns:.8fr 1.2fr;align-items:center;gap:60px}
.mg-how-art img{width:100%;max-height:430px;object-fit:contain;filter:drop-shadow(0 18px 40px rgba(0,0,0,.15))}
.mg-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:28px}
.mg-step-num{width:42px;height:42px;border-radius:50%;background:#fff;color:var(--mg-dark);display:grid;place-items:center;font-weight:900;margin-bottom:14px}
.mg-step h3{font-family:Inter,sans-serif;font-size:1rem}
.mg-step p{font-size:.88rem}

/* content pages */
.mg-page-hero{padding:72px 0 42px;text-align:center;background:#f6f2f7;border-bottom:1px solid var(--mg-line)}
.mg-page{padding:60px 0 90px}
.mg-prose{max-width:850px;margin:auto;background:#fff;padding:40px;border:1px solid var(--mg-line);border-radius:var(--mg-radius)}
.mg-prose h2,.mg-prose h3{margin-top:1.4em}
.mg-faq details{background:#fff;border:1px solid var(--mg-line);padding:18px 20px;border-radius:12px;margin:12px 0}
.mg-faq summary{font-weight:800;cursor:pointer}

/* blog */
.mg-post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.mg-post{background:#fff;border:1px solid var(--mg-line);border-radius:14px;overflow:hidden}
.mg-post .thumb{aspect-ratio:16/10;background:#eee9f0}
.mg-post .thumb img{width:100%;height:100%;object-fit:cover}
.mg-post-body{padding:22px}
.mg-meta{font-size:.76rem;color:var(--mg-lav);font-weight:800;text-transform:uppercase;letter-spacing:.08em}

/* footer */
.mg-footer{background:#fff;border-top:1px solid var(--mg-line);padding:58px 0 24px}
.mg-footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:34px}
.mg-footer h4{margin:0 0 12px}
.mg-footer ul{list-style:none;padding:0;margin:0}
.mg-footer li{margin:7px 0;color:var(--mg-muted);font-size:.9rem}
.mg-footer-card{background:#f6f2f7;padding:22px;border-radius:12px}
.mg-copyright{border-top:1px solid var(--mg-line);margin-top:40px;padding-top:20px;display:flex;justify-content:space-between;color:#817783;font-size:.82rem}

/* wp helpers */
.alignwide{max-width:var(--mg-max);margin-left:auto;margin-right:auto}
.screen-reader-text{position:absolute;left:-9999px}

@media(max-width:980px){
  .mg-menu{display:none;position:absolute;left:20px;right:20px;top:76px;background:#fff;padding:20px;border:1px solid var(--mg-line);border-radius:12px;box-shadow:var(--mg-shadow);flex-direction:column;align-items:flex-start}
  .mg-menu.open{display:flex}.mg-mobile-toggle{display:block}.mg-header-etsy{display:none}
  .mg-hero-grid,.mg-how-grid{grid-template-columns:1fr}.mg-hero-media{min-height:400px}.mg-hero-media img{min-height:400px}
  .mg-grid.four{grid-template-columns:repeat(2,1fr)}.mg-features{grid-template-columns:repeat(2,1fr)}.mg-gallery{grid-template-columns:repeat(3,1fr)}
  .mg-post-grid{grid-template-columns:repeat(2,1fr)}.mg-footer-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:620px){
  .mg-container{width:min(100% - 28px,var(--mg-max))}.mg-nav{min-height:68px}.mg-brand{font-size:1.12rem}
  .mg-hero{padding:52px 0 40px}.mg-hero-grid{gap:30px}.mg-hero-media,.mg-hero-media img{min-height:320px}
  .mg-section{padding:62px 0}.mg-grid.four,.mg-grid.three,.mg-post-grid,.mg-footer-grid{grid-template-columns:1fr}
  .mg-features{grid-template-columns:1fr 1fr}.mg-gallery{grid-template-columns:repeat(2,1fr)}.mg-steps{grid-template-columns:1fr}
  .mg-prose{padding:26px}.mg-copyright{flex-direction:column;gap:8px}
}


/* Collections system v1.1 */
.mg-page-intro{max-width:760px;margin:18px auto 0;font-size:18px;line-height:1.7;color:#5f5360}
.mg-collections-page{padding-top:58px}
.mg-collection-admin-note{background:#f4eff7;border:1px solid #dfd3e6;border-radius:10px;padding:14px 18px;margin-bottom:28px;color:#66566d;font-size:14px}
.mg-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.mg-product-card{background:#fff;border:1px solid #e8e0e9;border-radius:15px;overflow:hidden;box-shadow:0 10px 30px rgba(55,37,59,.05);transition:.2s ease}
.mg-product-card:hover{transform:translateY(-3px);box-shadow:0 14px 36px rgba(55,37,59,.09)}
.mg-product-cover{display:block;aspect-ratio:1/1;overflow:hidden;background:#eee9ef}
.mg-product-cover img{width:100%;height:100%;object-fit:cover;display:block}
.mg-product-card-body{padding:24px}
.mg-product-card-body h2{font-family:Georgia,'Times New Roman',serif;font-size:26px;line-height:1.15;margin:0 0 12px;color:#2d2130}
.mg-product-card-body h2 a{color:inherit;text-decoration:none}
.mg-product-card-body p{color:#6d626e;line-height:1.7;margin:0 0 18px}
.mg-product-main{display:grid;grid-template-columns:1.05fr .95fr;gap:60px;align-items:start;margin-bottom:70px}
.mg-product-main-image{border-radius:16px;overflow:hidden;background:#f0ecf1;box-shadow:0 14px 36px rgba(45,33,48,.08)}
.mg-product-main-image img{width:100%;display:block;aspect-ratio:1/1;object-fit:cover}
.mg-product-info h2{font-family:Georgia,'Times New Roman',serif;font-size:45px;line-height:1.08;margin:10px 0 18px;color:#2c1f2e}
.mg-badges{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 24px}
.mg-badges span{border:1px solid #d9cce0;background:#f7f2f9;border-radius:999px;padding:7px 12px;font-size:13px;font-weight:700;color:#6c5678}
.mg-product-copy{font-size:17px;line-height:1.8;color:#5e555f;margin-bottom:28px}
.mg-big-etsy{display:inline-block}
.mg-gallery-title{margin-top:10px}
.mg-product-gallery{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-top:28px}
.mg-product-gallery a,.mg-placeholder-preview{display:block;position:relative;border-radius:12px;overflow:hidden;background:#eee9ef;aspect-ratio:4/5;border:1px solid #e2dae4}
.mg-product-gallery img{width:100%;height:100%;object-fit:cover;display:block;transition:.2s ease}
.mg-product-gallery a:hover img{transform:scale(1.02)}
.mg-placeholder-preview span{position:absolute;left:8px;right:8px;bottom:8px;background:rgba(255,255,255,.88);padding:6px;border-radius:6px;text-align:center;font-size:11px;color:#665b68}
.mg-final-cta{margin:70px 0 10px;padding:45px;text-align:center;border-radius:18px;background:linear-gradient(135deg,#f3edf6,#ebe2f0);border:1px solid #dfd3e5}
.mg-final-cta h2{font-family:Georgia,'Times New Roman',serif;font-size:38px;margin:0 0 10px;color:#2d2130}
.mg-final-cta p{margin:0 0 24px;color:#665d67}
@media(max-width:980px){.mg-product-grid{grid-template-columns:repeat(2,1fr)}.mg-product-main{grid-template-columns:1fr;gap:32px}.mg-product-gallery{grid-template-columns:repeat(3,1fr)}}
@media(max-width:640px){.mg-product-grid{grid-template-columns:1fr}.mg-product-gallery{grid-template-columns:repeat(2,1fr)}.mg-product-info h2{font-size:34px}.mg-final-cta{padding:30px 20px}}

/* Elementor / page-builder compatibility */
.mg-builder-content:empty{display:none}
.mg-builder-content > .elementor{width:100%}
body.elementor-page .mg-builder-content{width:100%}
.elementor-editor-active .mg-builder-content{min-height:40px}

/* v1.4 real product image presentation */
.mg-product-gallery a,.mg-placeholder-preview{aspect-ratio:3/4;background:#fff}
.mg-product-gallery img{object-fit:contain;background:#fff}
.mg-product-main-image img{object-fit:cover}
.mg-product-card-body h2{font-size:22px}
.mg-product-card-body p{font-size:15px}


/* Homepage refresh v1.5 — real product covers */
.mg-real-hero{padding-top:58px}
.mg-cover-hero{background:#fff;display:flex;align-items:center;justify-content:center;padding:18px}
.mg-cover-hero img{object-fit:contain!important;min-height:0!important;max-height:620px;width:100%;border-radius:12px}
.mg-hero-trust{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.mg-hero-trust span{font-size:.78rem;font-weight:800;color:#66566d;background:#fff;border:1px solid #e4dce7;border-radius:999px;padding:7px 11px}
.mg-home-product-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.mg-home-product-card{min-width:0}
.mg-home-cover-link{display:block;background:#f0ebf2;overflow:hidden}
.mg-home-product-card img{width:100%;aspect-ratio:1/1;object-fit:cover}
.mg-home-product-card .mg-card-body{padding:18px}
.mg-home-product-card h3{font-size:1.08rem;line-height:1.22;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.mg-home-product-card p{font-size:.84rem;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.mg-mini-label{font-size:.64rem;letter-spacing:.11em;color:#8a73a0;font-weight:850;margin-bottom:8px}
.mg-real-gallery{grid-template-columns:repeat(5,1fr);max-width:1050px;margin-left:auto;margin-right:auto}
.mg-real-gallery a{display:block;border-radius:10px;overflow:hidden;border:1px solid var(--mg-line);background:#ece8ee}
.mg-real-gallery img{aspect-ratio:4/5;width:100%;height:100%;object-fit:cover;border:0;border-radius:0}
.mg-how-art img{border-radius:16px;max-height:440px;object-fit:cover}
@media(max-width:1100px){.mg-home-product-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.mg-home-product-grid{grid-template-columns:repeat(2,1fr)}.mg-real-gallery{grid-template-columns:repeat(2,1fr)}}
@media(max-width:480px){.mg-home-product-grid{grid-template-columns:1fr}.mg-real-gallery{grid-template-columns:1fr 1fr}}

/* SEO content blocks v1.6 */
.mg-seo-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:28px}
.mg-seo-links a{display:flex;flex-direction:column;gap:8px;padding:24px;border:1px solid #e6dde9;border-radius:16px;background:#fff;text-decoration:none;color:#382b3d;box-shadow:0 10px 28px rgba(68,49,76,.05)}
.mg-seo-links a:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(68,49,76,.09)}
.mg-seo-links strong{font-family:Georgia,serif;font-size:21px}
.mg-seo-links span{font-size:14px;line-height:1.6;color:#6d5a70}
.mg-product-seo-copy .mg-container{max-width:900px}
.mg-product-seo-copy h2{font-family:Georgia,serif;font-size:34px;margin-bottom:12px}
.mg-product-seo-copy p{font-size:17px;line-height:1.75;color:#624f65}
@media(max-width:800px){.mg-seo-links{grid-template-columns:1fr}.mg-product-seo-copy h2{font-size:28px}}

/* v1.7 international-market SEO content */
.mg-international-seo{background:#fff;}
.mg-market-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;max-width:940px;margin:28px auto 0;}
.mg-market-grid>div{border:1px solid #e5dce9;border-radius:16px;padding:22px;text-align:center;background:#fbf8fc;}
.mg-market-grid strong{display:block;font-family:Georgia,serif;font-size:21px;color:#302336;margin-bottom:7px;}
.mg-market-grid span{font-size:14px;line-height:1.55;color:#675a6c;}
@media(max-width:760px){.mg-market-grid{grid-template-columns:1fr;}}
