/*
Theme Name: Custom Auto Theme
Author: System
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root{
  --primary:#c05621;
  --accent:#e07b39;
  --bg:#fffbf5;
  --bg2:#fdf0e0;
  --text:#1a1a1a;
  --muted:#6b6b6b;
  --white:#ffffff;
  --dark:#1a0f0a;
  --r:8px;
  --sh:4px 4px 0 var(--primary);
  --sha:4px 4px 0 var(--accent);
  --fh:'Space Grotesk',sans-serif;
  --fb:'Inter',sans-serif;
  --tr:all .25s ease;
  --mw:1200px;
  --g:1.5rem;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;font-size:16px;}
body{font-family:var(--fb);background:var(--bg);color:var(--text);line-height:1.7;overflow-x:hidden;}
h1,h2,h3,h4,h5,h6{font-family:var(--fh);font-weight:700;line-height:1.2;color:var(--text);}
h1{font-size:clamp(2rem,5vw,3.5rem);}
h2{font-size:clamp(1.4rem,3vw,2rem);}
h3{font-size:clamp(1.1rem,2.5vw,1.5rem);}
p{margin-bottom:1rem;}
a{display:inline-block;text-align:center;color:var(--primary);text-decoration:none;transition:var(--tr);}
a:hover{color:var(--accent);}
img{max-width:100%;height:auto;display:block;}
ul{list-style:none;}

/* Container */
.container{width:100%;max-width:var(--mw);margin:0 auto;padding:0 var(--g);}

/* Buttons */
.btn{display:inline-block;text-align:center;padding:.875rem 2rem;border-radius:var(--r);font-family:var(--fh);font-weight:700;font-size:1rem;cursor:pointer;border:2px solid transparent;transition:var(--tr);}
.btn-primary{background:var(--primary);color:var(--white);border-color:var(--primary);box-shadow:var(--sh);}
.btn-primary:hover{background:transparent;color:var(--primary);transform:translate(-2px,-2px);box-shadow:6px 6px 0 var(--primary);}
.btn-outline{background:transparent;color:var(--primary);border-color:var(--primary);}
.btn-outline:hover{background:var(--primary);color:var(--white);}

/* HEADER */
.site-header{position:sticky;top:0;z-index:200;background:var(--bg);border-bottom:2px solid var(--primary);padding:.875rem 0;transition:var(--tr);}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;}
.site-logo{font-family:var(--fh);font-size:1.5rem;font-weight:700;color:var(--primary);text-decoration:none;display:inline-flex;align-items:center;gap:.4rem;white-space:nowrap;text-align:left;}
.site-logo:hover{color:var(--accent);}
.site-nav{display:flex;align-items:center;gap:.1rem;}
.nav-link{padding:.45rem .875rem;border-radius:var(--r);font-weight:500;font-size:.9rem;color:var(--text);white-space:nowrap;text-decoration:none;transition:var(--tr);}
.nav-link:hover,.nav-link.active{color:var(--primary);background:var(--bg2);}
.burger-btn{display:none;flex-direction:column;justify-content:space-between;width:26px;height:18px;cursor:pointer;background:none;border:none;padding:0;}
.burger-btn span{display:block;height:2px;background:var(--primary);border-radius:2px;transition:var(--tr);}

/* HERO */
.hero{background:var(--bg2);padding:4.5rem 0;overflow:hidden;}
.hero-inner{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:center;}
.hero-badge{display:inline-block;background:var(--primary);color:var(--white);padding:.3rem 1rem;border-radius:100px;font-size:.8rem;font-weight:700;margin-bottom:1.25rem;font-family:var(--fh);letter-spacing:.04em;}
.hero-title{margin-bottom:1.25rem;}
.hero-title span{color:var(--primary);}
.hero-lead{font-size:1.1rem;color:var(--muted);margin-bottom:2rem;}
.hero-actions{display:flex;gap:1rem;flex-wrap:wrap;}
.hero-img{position:relative;}
.hero-img img{border-radius:var(--r);box-shadow:var(--sh);width:100%;height:420px;object-fit:cover;}
.hero-img::before{content:'';position:absolute;inset:-8px;border:2px solid var(--accent);border-radius:calc(var(--r) + 8px);z-index:-1;}
.hero-img-placeholder{width:100%;height:420px;border-radius:var(--r);background:linear-gradient(135deg,var(--bg2) 0%,#f5d5b0 100%);box-shadow:var(--sh);display:flex;align-items:center;justify-content:center;font-size:5rem;}

/* TOPICS */
.topics{padding:4rem 0;background:var(--bg);}
.section-header{text-align:center;margin-bottom:2.5rem;}
.section-title{margin-bottom:.5rem;}
.section-lead{color:var(--muted);max-width:540px;margin:0 auto;}
.topics-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem;}
.topic-card{background:var(--bg2);border:2px solid transparent;border-radius:var(--r);padding:1.75rem 1.5rem;text-align:center;transition:var(--tr);text-decoration:none;color:var(--text);display:block;}
.topic-card:hover{border-color:var(--primary);background:var(--primary);color:var(--white);transform:translateY(-4px);box-shadow:var(--sh);}
.topic-emoji{font-size:2.25rem;margin-bottom:.75rem;display:block;}
.topic-name{font-family:var(--fh);font-weight:600;font-size:1rem;}

/* ABOUT */
.about{padding:4rem 0;background:var(--bg2);}
.about-inner{display:grid;grid-template-columns:1fr 2fr;gap:3rem;align-items:center;}
.author-photo-wrap{text-align:center;}
.author-photo{width:200px;height:200px;border-radius:50%;object-fit:cover;border:4px solid var(--primary);box-shadow:var(--sh);margin:0 auto;display:block;}
.author-placeholder{width:200px;height:200px;border-radius:50%;background:linear-gradient(135deg,var(--primary),var(--accent));border:4px solid var(--primary);box-shadow:var(--sh);margin:0 auto;display:flex;align-items:center;justify-content:center;font-size:5rem;}
.label-badge{display:inline-block;background:var(--accent);color:var(--white);padding:.3rem .875rem;border-radius:100px;font-size:.8rem;font-weight:700;margin-bottom:1rem;font-family:var(--fh);}

/* ARTICLES GRID */
.articles-section{padding:4rem 0;background:var(--bg);}
.articles-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;}
.article-card{background:var(--white);border:2px solid var(--bg2);border-radius:var(--r);overflow:hidden;transition:var(--tr);display:flex;flex-direction:column;text-decoration:none;color:var(--text);}
.article-card:hover{transform:translateY(-6px);box-shadow:var(--sh);border-color:var(--primary);}
.card-img-wrap{height:200px;overflow:hidden;background:linear-gradient(135deg,var(--bg2),#f5d5b0);}
.card-img-wrap img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease;}
.article-card:hover .card-img-wrap img{transform:scale(1.05);}
.card-img-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:3rem;}
.card-body{padding:1.25rem;flex:1;display:flex;flex-direction:column;}
.card-badge{display:inline-block;background:var(--bg2);color:var(--primary);padding:.25rem .75rem;border-radius:100px;font-size:.75rem;font-weight:700;margin-bottom:.75rem;font-family:var(--fh);border:1.5px solid var(--accent);text-align:center;}
.card-title{font-family:var(--fh);font-size:1.05rem;font-weight:700;color:var(--text);margin-bottom:.5rem;line-height:1.4;}
.card-meta-row{margin-top:auto;font-size:.8rem;color:var(--muted);display:flex;gap:.75rem;padding-top:.75rem;border-top:1px solid var(--bg2);}

/* SUBSCRIBE */
.subscribe-section{padding:4rem 0;background:var(--primary);text-align:center;}
.subscribe-section h2{color:var(--white);margin-bottom:.75rem;}
.subscribe-section .sub-lead{color:rgba(255,255,255,.85);margin-bottom:2rem;font-size:1.1rem;}
.subscribe-form{display:flex;gap:.75rem;max-width:560px;margin:0 auto;flex-wrap:wrap;justify-content:center;}
.subscribe-form input{flex:1;min-width:180px;padding:.875rem 1.25rem;border:2px solid rgba(255,255,255,.6);border-radius:var(--r);background:rgba(255,255,255,.1);color:var(--white);font-size:1rem;font-family:var(--fb);outline:none;transition:var(--tr);}
.subscribe-form input::placeholder{color:rgba(255,255,255,.6);}
.subscribe-form input:focus{border-color:var(--white);background:rgba(255,255,255,.15);}
.subscribe-form .btn-white{background:var(--white);color:var(--primary);border:2px solid var(--white);font-weight:700;padding:.875rem 1.75rem;border-radius:var(--r);cursor:pointer;font-size:1rem;font-family:var(--fh);transition:var(--tr);display:inline-block;text-align:center;}
.subscribe-form .btn-white:hover{background:var(--bg2);border-color:var(--bg2);}

/* FOOTER */
.site-footer{background:var(--dark);color:rgba(255,255,255,.8);padding:3rem 0 1.5rem;}
.footer-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem;margin-bottom:2rem;}
.footer-col h4{color:var(--white);font-family:var(--fh);margin-bottom:1rem;font-size:.9rem;text-transform:uppercase;letter-spacing:.06em;}
.footer-col a{display:block;color:rgba(255,255,255,.65);text-align:left;padding:.25rem 0;font-size:.9rem;text-decoration:none;}
.footer-col a:hover{color:var(--accent);}
.footer-logo-link{font-family:var(--fh);font-size:1.35rem;font-weight:700;color:var(--accent) !important;margin-bottom:.75rem;}
.footer-desc{font-size:.88rem;color:rgba(255,255,255,.55);line-height:1.6;}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12);padding-top:1.5rem;display:flex;flex-direction:column;gap:.75rem;text-align:center;}
.footer-policy-links{display:flex;justify-content:center;gap:1.5rem;flex-wrap:wrap;}
.footer-policy-links a{color:rgba(255,255,255,.55);font-size:.83rem;text-decoration:none;}
.footer-policy-links a:hover{color:var(--accent);}
.footer-disclaimer{font-size:.75rem;color:rgba(255,255,255,.38);max-width:680px;margin:0 auto;line-height:1.6;}
.footer-copy{font-size:.82rem;color:rgba(255,255,255,.4);}

/* COOKIE MODAL */
.cookie-modal{position:fixed;bottom:1.5rem;right:1.5rem;z-index:9999;max-width:320px;width:calc(100% - 3rem);}
#cookie-chk{display:none;}
#cookie-chk:checked ~ .cookie-box{display:none;}
.cookie-box{background:var(--dark);border:2px solid var(--accent);border-radius:var(--r);padding:1.25rem;box-shadow:var(--sh);}
.cookie-box p{font-size:.83rem;color:rgba(255,255,255,.82);margin-bottom:1rem;line-height:1.5;}
.cookie-box a{color:var(--accent);text-align:left;font-size:.83rem;}
.cookie-actions{display:flex;gap:.5rem;}
.ck-btn{flex:1;padding:.5rem;border-radius:var(--r);cursor:pointer;font-size:.82rem;font-weight:700;font-family:var(--fh);transition:var(--tr);text-align:center;display:inline-block;}
.ck-accept{background:var(--accent);color:var(--white);border:2px solid var(--accent);}
.ck-accept:hover{background:var(--primary);border-color:var(--primary);}
.ck-decline{background:transparent;color:rgba(255,255,255,.65);border:2px solid rgba(255,255,255,.25);}
.ck-decline:hover{border-color:var(--accent);color:var(--accent);}

/* ARTICLE PAGE */
.article-hero{background:var(--bg2);padding:3rem 0;border-bottom:2px solid var(--accent);}
.article-hero-inner{display:grid;grid-template-columns:3fr 2fr;gap:2.5rem;align-items:center;}
.art-badge{display:inline-block;background:var(--primary);color:var(--white);padding:.28rem .875rem;border-radius:100px;font-size:.78rem;font-weight:700;margin-bottom:1rem;font-family:var(--fh);}
.art-title{margin-bottom:1rem;}
.art-lead{font-size:1.05rem;color:var(--muted);margin-bottom:1rem;}
.art-meta{display:flex;gap:1rem;flex-wrap:wrap;font-size:.82rem;color:var(--muted);}
.art-hero-img{border-radius:var(--r);box-shadow:var(--sh);width:100%;height:280px;object-fit:cover;}

/* Breadcrumbs */
.breadcrumbs{padding:.875rem 0;border-bottom:1px solid var(--bg2);}
.breadcrumbs ol{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;}
.breadcrumbs li{font-size:.82rem;color:var(--muted);}
.breadcrumbs li+li::before{content:'›';margin-right:.5rem;color:var(--muted);}
.breadcrumbs a{color:var(--primary);text-align:left;font-size:.82rem;text-decoration:none;}
.breadcrumbs span{color:var(--muted);}

/* Article Meta Block */
.art-meta-block{padding:1.5rem 0;display:flex;align-items:center;gap:1.25rem;border-bottom:2px solid var(--bg2);flex-wrap:wrap;}
.author-avatar{width:48px;height:48px;border-radius:50%;background:var(--primary);color:var(--white);display:flex;align-items:center;justify-content:center;font-family:var(--fh);font-weight:700;font-size:1rem;flex-shrink:0;}
.author-info-col{flex:1;}
.author-name{font-weight:700;font-size:.95rem;color:var(--text);display:block;}
.author-role{font-size:.8rem;color:var(--muted);}
.meta-stats{display:flex;gap:1rem;font-size:.8rem;color:var(--muted);flex-wrap:wrap;margin-left:auto;}

/* TOC */
.toc-card{background:var(--bg2);border:2px solid var(--accent);border-radius:var(--r);padding:1.5rem;margin:2rem 0;}
.toc-card h4{color:var(--primary);margin-bottom:1rem;font-family:var(--fh);font-size:1rem;text-transform:uppercase;letter-spacing:.05em;}
.toc-list{counter-reset:toc;}
.toc-list li{counter-increment:toc;margin-bottom:.5rem;display:flex;align-items:flex-start;gap:.5rem;}
.toc-list li::before{content:counter(toc) '.';color:var(--primary);font-weight:700;font-family:var(--fh);min-width:1.4em;font-size:.9rem;}
.toc-list a{color:var(--text);text-align:left;font-size:.92rem;text-decoration:none;}
.toc-list a:hover{color:var(--primary);}

/* Article Body */
.art-content-wrap{padding:2rem 0;}
.art-body{max-width:780px;margin:0 auto;}
.art-body h2{margin-top:2.5rem;margin-bottom:1rem;padding-bottom:.5rem;border-bottom:2px solid var(--bg2);}
.art-body p{font-size:1.02rem;line-height:1.8;}

/* Pull-quote */
.pull-quote{margin:2rem 0;padding:1.5rem 1.75rem 1.5rem 3rem;border-left:4px solid var(--primary);background:var(--bg2);border-radius:0 var(--r) var(--r) 0;position:relative;}
.pull-quote::before{content:'\201C';font-size:5rem;color:var(--accent);font-family:Georgia,serif;position:absolute;top:-1.25rem;left:.75rem;line-height:1;opacity:.5;}
.pull-quote p{font-size:1.2rem;font-style:italic;font-weight:600;color:var(--text);margin:0;}

/* Facts Block */
.facts-block{background:var(--primary);border-radius:var(--r);padding:2rem;margin:2rem 0;display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;text-align:center;}
.fact-num{font-family:var(--fh);font-size:2.5rem;font-weight:700;color:var(--white);display:block;}
.fact-lbl{font-size:.82rem;color:rgba(255,255,255,.82);margin-top:.25rem;display:block;line-height:1.4;}

/* FAQ Accordion */
.faq-block{margin:2rem 0;}
.faq-block>h3{margin-bottom:1rem;color:var(--primary);}
.faq-item{border:2px solid var(--bg2);border-radius:var(--r);margin-bottom:.75rem;overflow:hidden;}
.faq-chk{display:none;}
.faq-lbl{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.25rem;cursor:pointer;font-family:var(--fh);font-weight:600;font-size:.95rem;color:var(--text);background:var(--bg);transition:var(--tr);user-select:none;}
.faq-lbl:hover{background:var(--bg2);color:var(--primary);}
.faq-lbl::after{content:'+';font-size:1.3rem;color:var(--primary);font-weight:700;}
.faq-chk:checked ~ .faq-lbl::after{content:'−';}
.faq-ans{max-height:0;overflow:hidden;transition:max-height .4s ease;background:var(--bg2);}
.faq-chk:checked ~ .faq-lbl ~ .faq-ans{max-height:400px;}
.faq-ans p{padding:1rem 1.25rem;font-size:.92rem;color:var(--muted);margin:0;line-height:1.6;}

/* Tags & Share */
.art-tags{padding:1.5rem 0;border-top:2px solid var(--bg2);display:flex;gap:.6rem;flex-wrap:wrap;align-items:center;}
.tag-pill{display:inline-block;padding:.3rem .875rem;border-radius:100px;border:1.5px solid var(--primary);color:var(--primary);font-size:.78rem;font-weight:500;text-align:center;transition:var(--tr);}
.tag-pill:hover{background:var(--primary);color:var(--white);}
.share-group{margin-left:auto;display:flex;gap:.5rem;}
.share-btn{padding:.3rem .875rem;border-radius:100px;border:1.5px solid var(--muted);color:var(--muted);font-size:.78rem;background:transparent;cursor:pointer;font-family:var(--fb);transition:var(--tr);text-align:center;display:inline-block;}
.share-btn:hover{border-color:var(--primary);color:var(--primary);}

/* Art Disclaimer */
.art-disclaimer{background:var(--bg2);border:2px solid var(--accent);border-radius:var(--r);padding:1.25rem;margin:2rem 0;font-size:.88rem;color:var(--muted);}
.art-disclaimer strong{color:var(--primary);}

/* Related */
.related-section{padding:3rem 0;background:var(--bg2);}
.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem;}

/* POLICY PAGES */
.policy-hero{background:var(--bg2);padding:3rem 0;border-bottom:2px solid var(--accent);}
.policy-hero h1{color:var(--primary);}
.policy-hero .policy-date{color:var(--muted);font-size:.88rem;margin-top:.5rem;}
.policy-content{padding:3rem 0;}
.policy-content h2{margin:2.5rem 0 1rem;font-size:1.25rem;color:var(--text);padding-bottom:.5rem;border-bottom:1px solid var(--bg2);}
.policy-content p{font-size:.97rem;margin-bottom:1rem;color:var(--text);}
.policy-content ul{padding-left:1.5rem;margin-bottom:1rem;}
.policy-content li{margin-bottom:.5rem;font-size:.95rem;color:var(--text);list-style:disc;}

/* SUCCESS PAGE */
.success-wrap{min-height:65vh;display:flex;align-items:center;justify-content:center;text-align:center;padding:4rem 1rem;}
.success-inner{max-width:500px;}
.success-emoji{font-size:5rem;margin-bottom:1.5rem;display:block;animation:pop .6s ease;}
@keyframes pop{0%{transform:scale(0);}80%{transform:scale(1.1);}100%{transform:scale(1);}}
.success-inner h1{color:var(--primary);margin-bottom:1rem;}
.success-inner p{color:var(--muted);margin-bottom:2rem;font-size:1.1rem;}

/* 404 PAGE */
.e404-wrap{min-height:80vh;display:flex;align-items:center;justify-content:center;text-align:center;padding:4rem 1rem;position:relative;overflow:hidden;}
.e404-wrap::before{content:'404';position:absolute;font-family:var(--fh);font-size:clamp(8rem,30vw,20rem);font-weight:700;color:rgba(192,86,33,.07);top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none;user-select:none;}
.e404-inner{position:relative;max-width:520px;}
.e404-inner h1{font-size:clamp(1.8rem,4vw,3rem);color:var(--primary);margin-bottom:1rem;}
.e404-inner p{color:var(--muted);margin-bottom:2rem;font-size:1.1rem;}

/* RESPONSIVE */
@media(max-width:960px){
  .hero-inner,.about-inner,.article-hero-inner{grid-template-columns:1fr;}
  .hero-img{display:none;}
  .topics-grid,.articles-grid,.related-grid{grid-template-columns:repeat(2,1fr);}
  .footer-grid{grid-template-columns:1fr 1fr;}
  .facts-block{grid-template-columns:1fr;}
}
@media(max-width:640px){
  .burger-btn{display:flex;}
  .site-nav{display:none;position:absolute;top:100%;left:0;right:0;background:var(--bg);flex-direction:column;padding:1rem;border-bottom:2px solid var(--primary);gap:0;z-index:100;}
  .site-nav.open{display:flex;}
  .site-header{position:relative;}
  .topics-grid,.articles-grid,.related-grid{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr;}
  .subscribe-form{flex-direction:column;}
  .art-tags{flex-direction:column;align-items:flex-start;}
  .share-group{margin-left:0;}
  .footer-policy-links{flex-direction:column;gap:.4rem;}
  .meta-stats{margin-left:0;}
}
