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

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Mulish:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary:#0f172a;--accent:#22d3ee;--bg:#ffffff;--bg-sec:#f0f9ff;
  --text:#0f172a;--muted:#64748b;--border:#e2e8f0;
  --radius:3px;
  --sh:0 2px 8px rgba(15,23,42,.06);--sh-md:0 6px 24px rgba(15,23,42,.11);
  --tr:.3s ease;
  --fh:'EB Garamond',Georgia,serif;--fb:'Mulish',Arial,sans-serif;
  --mw:1200px;--mwa:740px;
}

*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;}
body{font-family:var(--fb);color:var(--text);background:var(--bg);font-size:16px;line-height:1.78;-webkit-font-smoothing:antialiased;}

h1,h2,h3,h4,h5,h6{font-family:var(--fh);color:var(--primary);line-height:1.22;}
h1{font-size:clamp(2rem,5vw,3.4rem);font-weight:700;}
h2{font-size:clamp(1.45rem,3vw,2.1rem);font-weight:600;margin-bottom:.9rem;}
h3{font-size:clamp(1.15rem,2.5vw,1.6rem);font-weight:600;}
p{margin-bottom:1.2rem;color:var(--text);}

a{display:inline-block;text-align:center;color:var(--primary);text-decoration:none;transition:color var(--tr),opacity var(--tr);}
a:hover{color:var(--accent);}
img{max-width:100%;height:auto;display:block;border-radius:var(--radius);}

.container{width:100%;max-width:var(--mw);margin:0 auto;padding:0 1.25rem;}
.container--narrow{max-width:var(--mwa);margin:0 auto;padding:0 1.25rem;}
.section{padding:4rem 0;}
.section--alt{background:var(--bg-sec);}

/* BUTTONS */
.btn{display:inline-block;padding:.75rem 2rem;border-radius:var(--radius);font-family:var(--fb);font-weight:700;font-size:.9rem;cursor:pointer;transition:all var(--tr);border:2px solid transparent;text-align:center;letter-spacing:.04em;}
.btn--primary{background:var(--accent);color:var(--primary);border-color:var(--accent);}
.btn--primary:hover{background:transparent;color:var(--accent);border-color:var(--accent);}
.btn--outline{background:transparent;color:var(--primary);border-color:var(--primary);}
.btn--outline:hover{background:var(--primary);color:var(--bg);}
.btn--light{background:var(--bg);color:var(--primary);border-color:var(--bg);}
.btn--light:hover{background:transparent;color:var(--bg);border-color:var(--bg);}

/* HEADER */
.site-header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.97);border-bottom:1px solid var(--border);box-shadow:var(--sh);backdrop-filter:blur(8px);}
.nav{display:flex;align-items:center;justify-content:space-between;padding:.875rem 1.25rem;max-width:var(--mw);margin:0 auto;}
.nav__logo{font-family:var(--fh);font-size:1.7rem;font-weight:700;color:var(--primary);letter-spacing:-.02em;display:inline-block;text-align:left;}
.nav__logo-accent{color:var(--accent);}
.nav__links{display:none;list-style:none;gap:2rem;align-items:center;}
.nav__links li a{font-size:.8rem;font-weight:700;color:var(--muted);letter-spacing:.07em;text-transform:uppercase;transition:color var(--tr);}
.nav__links li a:hover{color:var(--accent);}
.nav__cta{background:var(--accent);color:var(--primary) !important;padding:.35rem .9rem;border-radius:var(--radius);font-weight:800 !important;}
.nav__cta:hover{background:var(--primary);color:var(--bg) !important;}

/* BURGER */
.nav__burger{display:flex;flex-direction:column;gap:5px;cursor:pointer;padding:.5rem;background:none;border:none;}
.nav__burger span{display:block;width:23px;height:2px;background:var(--primary);border-radius:2px;transition:all var(--tr);}
.nav__mobile{display:none;flex-direction:column;background:var(--bg);border-top:1px solid var(--border);padding:1rem 1.25rem 1.5rem;list-style:none;gap:.75rem;}
.nav__mobile.is-open{display:flex;}
.nav__mobile li a{font-weight:700;font-size:.95rem;color:var(--muted);display:block;text-align:left;}
.nav__mobile li a:hover{color:var(--accent);}

/* BADGE */
.badge{display:inline-block;background:var(--accent);color:var(--primary);font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.12em;padding:.2rem .7rem;border-radius:var(--radius);margin-bottom:.9rem;}

/* HERO */
.hero{padding:3.5rem 0 4rem;background:var(--bg-sec);border-bottom:1px solid var(--border);}
.hero__inner{display:grid;gap:2.5rem;max-width:var(--mw);margin:0 auto;padding:0 1.25rem;}
.hero__meta{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin-bottom:1.25rem;}
.hero__meta time,.hero__meta .reading-time{font-size:.8rem;color:var(--muted);font-weight:600;}
.hero__meta .sep{color:var(--border);}
.hero__title{margin-bottom:1.25rem;}
.hero__lead{font-size:1.1rem;color:#334155;line-height:1.85;margin-bottom:1.75rem;max-width:660px;}
.hero__img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:var(--radius);box-shadow:var(--sh-md);}
.hero__read-more{font-weight:700;color:var(--accent);font-size:.9rem;}
.hero__read-more:hover{color:var(--primary);}

/* ARTICLE CONTENT */
.article-content h2{margin-top:2.75rem;margin-bottom:1rem;padding-bottom:.5rem;border-bottom:2px solid var(--accent);}
.article-content h3{margin-top:2rem;margin-bottom:.75rem;color:#1e293b;}
.article-content blockquote{border-left:4px solid var(--accent);padding:1.1rem 1.5rem;margin:2.25rem 0;background:var(--bg-sec);border-radius:0 var(--radius) var(--radius) 0;font-family:var(--fh);font-size:1.22rem;font-style:italic;color:var(--primary);line-height:1.55;}
.article-content ul{padding-left:1.5rem;margin-bottom:1.25rem;}
.article-content ul li{margin-bottom:.5rem;color:var(--text);}
.article-content ul li::marker{color:var(--accent);}

/* TAGS */
.tags{display:flex;flex-wrap:wrap;gap:.5rem;margin:2rem 0;}
.tags a{background:var(--bg-sec);border:1px solid var(--border);color:var(--muted);padding:.25rem .7rem;border-radius:var(--radius);font-size:.76rem;font-weight:700;transition:all var(--tr);display:inline-block;}
.tags a:hover{background:var(--accent);color:var(--primary);border-color:var(--accent);}

/* DISCLAIMER */
.disclaimer{background:var(--bg-sec);border:1px solid var(--border);border-left:4px solid var(--accent);padding:1rem 1.25rem;border-radius:var(--radius);font-size:.84rem;color:var(--muted);margin:2.5rem 0;line-height:1.6;}

/* CARDS GRID */
.posts-grid{padding:4rem 0;}
.posts-grid__heading{margin-bottom:2.25rem;text-align:center;}
.cards-grid{display:grid;grid-template-columns:1fr;gap:1.75rem;}
.card{border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;background:var(--bg);box-shadow:var(--sh);transition:transform var(--tr),box-shadow var(--tr);}
.card:hover{transform:translateY(-4px);box-shadow:var(--sh-md);}
.card__placeholder{aspect-ratio:16/9;background:linear-gradient(135deg,var(--bg-sec) 0%,#bae6fd 100%);display:flex;align-items:center;justify-content:center;font-size:2.5rem;color:var(--accent);overflow:hidden;}
.card__body{padding:1.4rem 1.5rem;}
.card__category{font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.1em;color:var(--accent);margin-bottom:.45rem;display:block;text-align:left;}
.card__title{font-size:1.15rem;font-weight:600;margin-bottom:.65rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-family:var(--fh);line-height:1.3;}
.card__title a{color:var(--primary);display:block;text-align:left;}
.card__title a:hover{color:var(--accent);}
.card__excerpt{font-size:.875rem;color:#64748b;line-height:1.65;margin-bottom:0;}

/* SUBSCRIBE */
.subscribe{padding:4rem 0;background:var(--primary);text-align:center;}
.subscribe h2{color:var(--bg);margin-bottom:.9rem;}
.subscribe p{color:#94a3b8;margin-bottom:2rem;max-width:480px;margin-left:auto;margin-right:auto;}
.subscribe__form{display:flex;flex-wrap:wrap;flex-direction:column;gap:.875rem;max-width:480px;margin:0 auto;}
.subscribe__form input[type="email"]{padding:.875rem 1.25rem;border:2px solid #334155;border-radius:var(--radius);background:#1e293b;color:var(--bg);font-family:var(--fb);font-size:1rem;transition:border-color var(--tr);width:100%;}
.subscribe__form input[type="email"]:focus{outline:none;border-color:var(--accent);}
.subscribe__form input[type="email"]::placeholder{color:#64748b;}
.subscribe__form input[type="text"]{padding:.875rem 1.25rem;border:2px solid #334155;border-radius:var(--radius);background:#1e293b;color:var(--bg);font-family:var(--fb);font-size:1rem;transition:border-color var(--tr);width:100%;}
.subscribe__form input[type="text"]:focus{outline:none;border-color:var(--accent);}

/* ARTICLE PAGE */
.article-header{padding:3rem 0 2.5rem;background:var(--bg-sec);border-bottom:1px solid var(--border);text-align:center;}
.article-header .container--narrow{display:flex;flex-direction:column;align-items:center;}
.article-header h1{margin-bottom:1.2rem;}
.article-meta{display:flex;align-items:center;justify-content:center;gap:1.25rem;flex-wrap:wrap;font-size:.82rem;color:var(--muted);font-weight:600;margin-bottom:2rem;}
.article-meta span{display:flex;align-items:center;gap:.35rem;}
.article-hero{width:100%;max-width:var(--mw);margin:0 auto;padding:0 1.25rem;}
.article-hero img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:var(--radius);box-shadow:var(--sh-md);}
.article-body{padding:3rem 0;}
.article-author{display:flex;align-items:center;gap:1rem;margin-bottom:2rem;padding-bottom:2rem;border-bottom:1px solid var(--border);}
.article-author__avatar{width:48px;height:48px;border-radius:50%;background:var(--accent);display:flex;align-items:center;justify-content:center;font-family:var(--fh);font-size:1.4rem;font-weight:700;color:var(--primary);flex-shrink:0;}
.article-author__info strong{display:block;font-weight:700;font-size:.9rem;color:var(--primary);}
.article-author__info span{font-size:.8rem;color:var(--muted);}

/* RELATED POSTS */
.related-posts{padding:3rem 0 4rem;background:var(--bg-sec);border-top:1px solid var(--border);}
.related-posts h2{text-align:center;margin-bottom:2rem;}
.related-grid{display:grid;grid-template-columns:1fr;gap:1.5rem;}

/* FOOTER */
.site-footer{background:var(--primary);color:#94a3b8;padding:3rem 0 1.5rem;}
.footer__inner{display:grid;gap:2rem;margin-bottom:2rem;}
.footer__logo{font-family:var(--fh);font-size:1.5rem;font-weight:700;color:var(--bg);margin-bottom:.75rem;display:block;text-align:left;}
.footer__logo-accent{color:var(--accent);}
.footer__brand p{font-size:.84rem;line-height:1.65;color:#64748b;margin-bottom:0;}
.footer__links h4{font-family:var(--fh);color:var(--bg);margin-bottom:.875rem;font-size:1rem;}
.footer__links ul{list-style:none;display:flex;flex-direction:column;gap:.5rem;}
.footer__links ul li a{color:#94a3b8;font-size:.84rem;display:inline-block;text-align:left;transition:color var(--tr);}
.footer__links ul li a:hover{color:var(--accent);}
.footer__bottom{border-top:1px solid #1e293b;padding-top:1.5rem;display:flex;flex-direction:column;gap:.75rem;}
.footer__copy{font-size:.78rem;color:#475569;}
.footer__disclaimer{font-size:.76rem;color:#475569;line-height:1.55;font-style:italic;max-width:640px;}

/* POLICY / STATIC PAGES */
.policy-header{padding:3rem 0;background:var(--bg-sec);border-bottom:1px solid var(--border);text-align:center;}
.policy-content{padding:3rem 0;}
.policy-content h2{margin-top:2rem;margin-bottom:.7rem;font-size:1.45rem;}
.policy-content p{margin-bottom:1rem;}
.policy-content ul{padding-left:1.5rem;margin-bottom:1rem;}
.policy-content ul li{margin-bottom:.4rem;}

/* SUCCESS PAGE */
.success-page{min-height:70vh;display:flex;align-items:center;justify-content:center;text-align:center;padding:4rem 1.25rem;}
.success-page__wrap{max-width:500px;}
.success-icon{font-size:4rem;margin-bottom:1.25rem;display:block;}
.success-page h1{margin-bottom:1rem;}
.success-page p{color:var(--muted);margin-bottom:2rem;}

/* 404 */
.error-page{min-height:70vh;display:flex;align-items:center;justify-content:center;text-align:center;padding:4rem 1.25rem;}
.error-page__wrap{max-width:500px;}
.error-code{font-family:var(--fh);font-size:7rem;font-weight:700;color:var(--accent);opacity:.25;line-height:1;display:block;}
.error-page h1{margin-bottom:.9rem;}
.error-page p{color:var(--muted);margin-bottom:2rem;}

/* COOKIE BANNER (CSS-only) */
.cookie-toggle{display:none;}
.cookie-banner{position:fixed;bottom:1.5rem;right:1.5rem;z-index:999;width:min(340px,calc(100vw - 2rem));background:var(--primary);color:var(--bg);border-radius:var(--radius);padding:1.25rem 1.4rem;box-shadow:0 8px 32px rgba(15,23,42,.28);transition:opacity .4s ease,transform .4s ease;}
.cookie-toggle:checked ~ .cookie-banner{opacity:0;pointer-events:none;transform:translateY(12px);}
.cookie-banner h3{font-family:var(--fh);font-size:1.05rem;color:var(--bg);margin-bottom:.65rem;}
.cookie-banner p{font-size:.78rem;color:#94a3b8;line-height:1.55;margin-bottom:1rem;}
.cookie-banner p a{color:var(--accent);display:inline;}
.cookie-banner__actions{display:flex;gap:.6rem;}
.cookie-btn{flex:1;padding:.5rem .9rem;border-radius:var(--radius);font-family:var(--fb);font-weight:700;font-size:.78rem;cursor:pointer;border:none;transition:all var(--tr);}
.cookie-btn--accept{background:var(--accent);color:var(--primary);}
.cookie-btn--reject{background:transparent;color:#94a3b8;border:1px solid #334155;}
label.cookie-btn{display:block;text-align:center;}
label.cookie-btn:hover{opacity:.82;}

/* SCROLL ANIM */
.fade-up{opacity:0;transform:translateY(22px);transition:opacity .55s ease,transform .55s ease;}
.fade-up.visible{opacity:1;transform:translateY(0);}

/* INLINE STYLES BLOCK */
style{display:none;}

/* RESPONSIVE */
@media(min-width:640px){
  .subscribe__form{flex-direction:row;}
  .subscribe__form input[type="email"]{flex:1;}
}
@media(min-width:768px){
  .nav__links{display:flex;}
  .nav__burger{display:none;}
  .hero__inner{grid-template-columns:3fr 2fr;align-items:start;gap:3.5rem;}
  .cards-grid{grid-template-columns:repeat(2,1fr);}
  .related-grid{grid-template-columns:repeat(2,1fr);}
  .footer__inner{grid-template-columns:2fr 1fr 1fr;}
  .footer__bottom{flex-direction:row;justify-content:space-between;align-items:flex-start;}
}
@media(min-width:1024px){
  .cards-grid{grid-template-columns:repeat(3,1fr);}
  .related-grid{grid-template-columns:repeat(3,1fr);}
}
