/* Cozy Small Home — styles.css */
:root{--cream:#FAF6EF;--cream2:#F3EDE2;--sage:#5A7A63;--sage-dark:#3E5C48;--terra:#C96F4A;--amber:#E8A94C;--ink:#2B2B2B;--muted:#6B655C;--line:#E5DCCB;--white:#fff;--radius:14px}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Georgia,'Times New Roman',serif;color:var(--ink);background:var(--cream);line-height:1.65;font-size:18px}
h1,h2,h3,h4,.sans{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif}
a{color:var(--sage-dark);text-decoration:none}
a:hover{color:var(--terra);text-decoration:underline}
img{max-width:100%;height:auto;display:block}
.wrap{max-width:1080px;margin:0 auto;padding:0 20px}
.narrow{max-width:760px}
/* Header */
header.site{position:sticky;top:0;z-index:50;background:rgba(250,246,239,.97);border-bottom:1px solid var(--line);backdrop-filter:blur(4px)}
.header-in{display:flex;align-items:center;gap:14px;padding:12px 0;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.brand img{width:52px;height:52px;border-radius:50%;object-fit:cover;border:2px solid var(--sage)}
.brand b{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;font-size:22px;color:var(--sage-dark);line-height:1.1;display:block}
.brand span{font-size:13px;color:var(--muted);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;letter-spacing:.04em}
nav.main{margin-left:auto;display:flex;gap:4px;flex-wrap:wrap}
nav.main a{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;font-size:15px;font-weight:600;padding:8px 10px;min-height:48px;display:inline-flex;align-items:center;border-radius:8px;color:var(--ink)}
nav.main a:hover{background:var(--cream2);text-decoration:none;color:var(--sage-dark)}
/* Hero */
.hero{position:relative;border-radius:0 0 18px 18px;overflow:hidden;margin:0 0 28px}
.hero img{width:100%;height:380px;object-fit:cover}
.hero-text{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(transparent,rgba(0,0,0,.62));color:#fff;padding:56px 28px 24px}
.hero-text h1{font-size:44px;margin:0 0 6px;line-height:1.05}
.hero-text p{margin:0;font-size:19px;max-width:640px}
/* Ad slots — collapse completely until AdSense is activated. No blank boxes, no borders. */
.ad-slot{display:none;min-height:0;margin:0;padding:0}
.ad-slot.active{display:block;margin:22px auto;text-align:center}
/* Cards / grids */
.section-title{font-size:28px;margin:34px 0 6px;color:var(--sage-dark)}
.section-sub{color:var(--muted);margin:0 0 18px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.card{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column}
.card img{width:100%;height:190px;object-fit:cover}
.card-body{padding:16px 18px 18px;display:flex;flex-direction:column;flex:1}
.eyebrow{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--terra)}
.card h3{font-size:21px;line-height:1.3;margin:8px 0}
.card p{color:var(--muted);font-size:16px;margin:0 0 12px;flex:1}
.card .meta{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;font-size:13px;color:var(--muted)}
.cat-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
.cat{background:var(--sage-dark);color:#fff;border-radius:var(--radius);padding:20px 14px;text-align:center}
.cat h3{margin:0 0 4px;font-size:18px}
.cat p{margin:0;font-size:14px;opacity:.9;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif}
.cat:hover{background:var(--terra);text-decoration:none;color:#fff}
/* Posts */
.post-hero img{width:100%;height:340px;object-fit:cover;border-radius:var(--radius)}
.post-meta{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;color:var(--muted);font-size:15px;margin:14px 0}
article h1{font-size:38px;line-height:1.15;margin:10px 0 6px;color:var(--sage-dark)}
article h2{font-size:27px;margin:34px 0 10px;color:var(--sage-dark);border-bottom:2px solid var(--cream2);padding-bottom:6px}
article h3{font-size:21px;margin:24px 0 8px;color:var(--ink)}
article p{margin:0 0 16px}
.lead{font-size:21px;line-height:1.6;color:#444}
article ul,article ol{margin:0 0 18px;padding-left:26px}
article li{margin-bottom:10px}
article li strong{color:var(--sage-dark)}
.disclosure{background:#FFF7E6;border:1px solid #F0D9A8;border-left:4px solid var(--amber);border-radius:10px;padding:14px 16px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;font-size:15px;margin:18px 0}
.tip{background:#EFF4EF;border-left:4px solid var(--sage);border-radius:10px;padding:14px 16px;margin:18px 0}
.tip b{color:var(--sage-dark)}
figure{margin:22px 0}
figure img{border-radius:var(--radius)}
figcaption{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;font-size:14px;color:var(--muted);text-align:center;margin-top:8px}
table{width:100%;border-collapse:collapse;margin:18px 0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;font-size:16px}
th,td{border:1px solid var(--line);padding:10px;text-align:left}
th{background:var(--cream2)}
.share{margin:30px 0;padding:18px;background:var(--white);border:1px solid var(--line);border-radius:var(--radius);text-align:center;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif}
.share a{display:inline-block;background:#E60023;color:#fff;font-weight:700;padding:13px 20px;border-radius:999px;margin-top:8px;min-height:48px;line-height:1.2}
.share a:hover{background:#ad081b;text-decoration:none;color:#fff}
.related{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:18px 22px;margin:28px 0}
.related h2{margin-top:0;border:none;padding:0}
.related ul{margin:0}
/* Pages */
.page h1{font-size:36px;color:var(--sage-dark)}
.page h2{font-size:25px;color:var(--sage-dark);margin-top:30px}
form label{display:block;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;font-weight:600;margin:16px 0 6px}
input,textarea{width:100%;padding:12px;border:1px solid var(--line);border-radius:10px;font-size:16px;font-family:inherit;background:#fff}
button{background:var(--sage-dark);color:#fff;border:0;padding:14px 26px;border-radius:999px;font-size:16px;font-weight:700;cursor:pointer;margin-top:16px;min-height:48px}
button:hover{background:var(--terra)}
/* Footer */
footer.site{background:var(--sage-dark);color:#EDEBE4;margin-top:48px;padding:38px 0 22px}
footer.site a{color:#EDEBE4}
footer.site .cols{display:grid;grid-template-columns:2fr 1fr 1fr;gap:26px}
footer.site h3{color:#fff;margin-top:0}
footer.site p,footer.site li{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;font-size:15px}
footer.site ul{list-style:none;padding:0}
footer.site li{margin-bottom:8px}
footer.site li a{display:inline-block;padding:6px 0}
.copy{border-top:1px solid rgba(255,255,255,.2);margin-top:26px;padding-top:16px;font-size:14px;text-align:center;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif}
.post-list{list-style:none;padding:0}
.post-list li{border-bottom:1px solid var(--line);padding:16px 0}
.post-list h3{margin:0 0 4px}
.post-list p{margin:0;color:var(--muted);font-size:16px}
/* Mobile */
@media (max-width:820px){
 body{font-size:17px}
 .grid{grid-template-columns:1fr 1fr}
 .cat-grid{grid-template-columns:1fr 1fr}
 footer.site .cols{grid-template-columns:1fr}
 .hero img{height:280px}
 .hero-text h1{font-size:32px}
 article h1{font-size:30px}
 nav.main{margin-left:0}
}
@media (max-width:520px){
 .grid{grid-template-columns:1fr}
 .cat-grid{grid-template-columns:1fr}
 .hero img{height:230px}
 .hero-text{padding:36px 18px 18px}
 .hero-text h1{font-size:27px}
 .hero-text p{font-size:16px}
 .brand b{font-size:19px}
 .post-hero img{height:220px}
 table{font-size:14px}
 th,td{padding:8px 6px}
}
