/* Reset + tokens */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;font-size:17px;line-height:1.65;color:#1a1a1a;background:#fafaf7}
img{max-width:100%;height:auto;display:block}
a{color:var(--accent,#1a73e8);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3,h4{font-family:'Lora',Georgia,serif;font-weight:600;line-height:1.25;color:#0d0d0d;margin:0 0 .5em}
h1{font-size:2.4rem;letter-spacing:-.01em}
h2{font-size:1.6rem}
h3{font-size:1.25rem}
h4{font-size:1rem;font-family:'Inter',sans-serif;text-transform:uppercase;letter-spacing:.05em;color:#666}
p{margin:0 0 1em}
.muted{color:#7a7a7a;font-size:.9em}
.wrap{max-width:1100px;margin:0 auto;padding:0 1.25rem}

/* Header */
.site-header{position:sticky;top:0;z-index:10;background:rgba(255,255,255,.94);backdrop-filter:blur(10px);border-bottom:1px solid #ececec}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem}
.brand{font-family:'Lora',serif;font-weight:700;font-size:1.35rem;color:#0d0d0d}
.brand:hover{text-decoration:none}
.site-header nav{display:flex;gap:1.5rem}
.site-header nav a{color:#3a3a3a;font-size:.95rem;font-weight:500}

/* Hero */
.hero-block{padding:3.5rem 0 2rem;text-align:center;border-bottom:1px solid #ececec;margin-bottom:2.5rem}
.hero-block h1{font-size:3rem;margin-bottom:.4em}
.hero-block .lead{font-size:1.15rem;color:#555;max-width:680px;margin:0 auto}

/* Article grid */
.article-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:2rem 1.5rem;margin-bottom:3rem}
.card{background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,.06);transition:transform .2s,box-shadow .2s}
.card:hover{transform:translateY(-3px);box-shadow:0 8px 22px rgba(0,0,0,.09)}
.card-img{display:block;aspect-ratio:16/10;background:#eee center/cover no-repeat}
.card-body{padding:1.1rem 1.2rem 1.4rem}
.card-body time{font-size:.82rem}
.card-body h2{font-size:1.2rem;margin:.5rem 0 .55em;font-family:'Lora',serif}
.card-body h2 a{color:#0d0d0d}
.card-body h2 a:hover{color:var(--accent)}
.card-body p{color:#4a4a4a;font-size:.95rem;margin:0;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}

/* Pager */
.pager{display:flex;justify-content:center;gap:.5rem;margin:2rem 0 4rem}
.pager a,.pager span{padding:.45rem .8rem;border-radius:6px;font-size:.95rem;color:#3a3a3a;border:1px solid #d8d8d8}
.pager a:hover{background:var(--accent);color:#fff;border-color:var(--accent);text-decoration:none}
.pager .current{background:#0d0d0d;color:#fff;border-color:#0d0d0d}

/* Single post */
.post{max-width:760px;margin:2rem auto 3rem}
.post-header{margin-bottom:2rem}
.post-header time{font-size:.92rem;display:block;margin-bottom:.5rem}
.post-header h1{font-size:2.6rem;margin-bottom:.4em}
.post-header .lead{font-size:1.2rem;color:#444;line-height:1.55}
.post-hero{margin:0 -1rem 2.5rem;border-radius:12px;overflow:hidden}
.post-hero img{width:100%;aspect-ratio:16/9;object-fit:cover}
.post-hero figcaption{padding:.5rem 1rem;font-size:.82rem}
.post-body{font-family:'Lora',Georgia,serif;font-size:1.13rem;line-height:1.75}
.post-body p{margin:0 0 1.3em}
.post-body h2{font-size:1.7rem;margin-top:2.2em;margin-bottom:.6em}
.post-body h3{font-size:1.35rem;margin-top:1.8em;margin-bottom:.5em}
.post-body ul,.post-body ol{padding-left:1.5em;margin:0 0 1.3em}
.post-body li{margin-bottom:.5em}
.post-body blockquote{border-left:3px solid var(--accent);padding:.5em 1.2em;margin:1.5em 0;color:#444;font-style:italic;background:#f6f4ee}
.post-body a{color:var(--accent);font-weight:500}
.post-body code{background:#f3f1ec;padding:.1em .35em;border-radius:3px;font-size:.92em}

/* Related */
.related{max-width:760px;margin:3rem auto 4rem;padding-top:2rem;border-top:1px solid #ececec}
.related h3{font-family:'Inter',sans-serif;text-transform:uppercase;font-size:.9rem;letter-spacing:.06em;color:#666;font-weight:600}
.related-list{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem}
.related-list li{padding:0}
.related-list a{display:block;padding:.9rem 1rem;background:#fff;border-radius:8px;color:#0d0d0d;font-family:'Lora',serif;font-weight:500;border:1px solid #ececec}
.related-list a:hover{border-color:var(--accent);color:var(--accent);text-decoration:none}

/* Page (about/contact/privacy) */
.page{max-width:720px;margin:2.5rem auto}
.page .lead{font-size:1.15rem;color:#444;margin-bottom:1.8em}

/* Footer */
.site-footer{margin-top:4rem;padding:3rem 0 2rem;background:#0d0d0d;color:#cfcfcf}
.site-footer .cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:2rem;margin-bottom:2rem}
.site-footer h4{color:#fff;font-family:'Inter',sans-serif;text-transform:uppercase;font-size:.78rem;letter-spacing:.08em;margin-bottom:.7rem}
.site-footer ul{list-style:none;padding:0;margin:0}
.site-footer li{margin-bottom:.45rem}
.site-footer a{color:#cfcfcf;font-size:.94rem}
.site-footer a:hover{color:#fff}
.site-footer .muted{color:#888;font-size:.92rem}
.site-footer .btn{display:inline-block;padding:.5rem 1rem;background:var(--accent);color:#fff;border-radius:6px;font-size:.9rem}
.site-footer .btn:hover{background:#fff;color:var(--accent);text-decoration:none}
.site-footer .copy{padding-top:1.5rem;border-top:1px solid #2a2a2a;font-size:.85rem;color:#7a7a7a;text-align:center}

/* Inter + Lora self-host fallback (regular weights only — keeps payload small) */
@font-face{font-family:'Inter';font-weight:400 700;font-style:normal;src:local('Inter');font-display:swap}
@font-face{font-family:'Lora';font-weight:400 700;font-style:normal;src:local('Lora');font-display:swap}

/* Responsive */
@media(max-width:640px){
  .hero-block h1{font-size:2.2rem}
  .post-header h1{font-size:1.9rem}
  .post-hero{margin:0 -1.25rem 2rem;border-radius:0}
  .site-header nav{gap:1rem;font-size:.9rem}
  body{font-size:16px}
}
