
:root{
  --tan:#d9b98a;
  --tan-deep:#b78036;
  --paper:#f7efe2;
  --ink:#111;
  --muted:#6b6b6b;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Georgia, "Times New Roman", serif;
  color:var(--ink);
  background: var(--tan) url("./assets/site-bg.jpg") center top / cover fixed no-repeat;
}
a{color:#2d1e8c;text-decoration:none}
a:hover{text-decoration:underline}
.wrap{max-width:1200px;margin:0 auto;padding:24px 20px 80px}
.site-title{
  font-size: clamp(28px, 6vw, 64px);
  font-weight: 700;
  letter-spacing:.5px;
  margin: 8px 0 8px 0;
}
.searchbar{position: sticky; top:10px; z-index: 10; display:flex; justify-content:flex-end;}
.searchbar input{width:min(420px, 60vw);border:1px solid rgba(0,0,0,.15);background:rgba(247,239,226,.92);border-radius:14px;height:42px; padding:0 14px;outline:none; font-size:16px;box-shadow:0 6px 16px rgba(0,0,0,.08);}
.grid{display:grid;grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));gap:20px;margin-top:18px;}
.card{background: rgba(247,239,226,0.94);border:1px solid rgba(0,0,0,.15);border-radius:18px;box-shadow:0 10px 20px rgba(0,0,0,.08);overflow:hidden;}
.card .thumb{display:block; width:100%; height:200px; object-fit:cover; border-bottom:1px solid rgba(0,0,0,.1);}
.card .body{padding:14px 14px 18px}
.card .title{font-size:22px; line-height:1.2; margin:6px 0}
.card .meta{font-size:14px;color:var(--muted); margin-bottom:8px}
.card .excerpt{font-size:16px;line-height:1.5}
.article{max-width:800px;margin:0 auto;background: rgba(247,239,226,.96);border:1px solid rgba(0,0,0,.15);border-radius:18px; padding:22px;box-shadow:0 10px 20px rgba(0,0,0,.08);}
.article h1{font-size:42px;margin:0 0 10px}
.article .meta{color:var(--muted);margin-bottom:12px}
.article figure{margin:22px 0; }
.article figure img{width:100%; height:auto; border:1px solid #000;}
.article figure figcaption{color:#555; font-style:italic; font-size:0.95rem; margin-top:6px;}
.tabs{display:flex; gap:14px; margin-bottom:14px}
.tabs a{font-weight:700}
.admin-card{background: rgba(247,239,226,.96); border:1px solid rgba(0,0,0,.15); border-radius:18px; padding:18px; box-shadow:0 10px 20px rgba(0,0,0,.08);}
.post-row{display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid rgba(0,0,0,.08)}
.post-row img{width:80px;height:60px;object-fit:cover;border:1px solid rgba(0,0,0,.2)}
.badge{font-size:12px;color:#fff;background:var(--tan-deep);padding:2px 8px;border-radius:999px}
.btn{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border:1px solid rgba(0,0,0,.2);border-radius:10px;background:#fff;cursor:pointer}
.btn.primary{background:var(--tan-deep);color:#fff;border-color:var(--tan-deep)}
.toolbar{display:flex; flex-wrap:wrap; gap:8px; padding:8px 0}
.lb{position:fixed; inset:0; background:rgba(0,0,0,.8); display:none; align-items:center; justify-content:center; z-index:9999}
.lb img{max-width:92vw; max-height:88vh; border:1px solid #000; background:#fff}
.lb.show{display:flex}
footer{margin:40px 0; text-align:center; color:#3a2a17;}
