
:root{
  --bg:#d8b27f;             /* tan */
  --ink:#000000;            /* black text */
  --ink-60: rgba(0,0,0,.60);
  --card:#fffaf3;
  --line: rgba(0,0,0,.12);
  --link:#402a16;
  --accent:#6a4623;
}

*{box-sizing:border-box}
html,body{height:100%}
html{scroll-behavior:smooth}
body{
  margin:0;
  font: 16px/1.7 Georgia, "Times New Roman", serif;
  color:var(--ink);
  background: var(--bg) url("/assets/background.jpg") center/cover fixed no-repeat;
}

/* subtle tint for readability over the busy bg */
body::before{
  content:"";
  position:fixed; inset:0; z-index:-1;
  background: rgba(216,178,127,.40);
  backdrop-filter: grayscale(20%) contrast(.96);
  pointer-events:none;
}

/* layout */
.site{ max-width: 980px; margin: 0 auto; padding: 28px 20px 80px; }
.header{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:20px; }
.title{ font: 700 42px/1 Georgia, "Times New Roman", serif; letter-spacing:.3px; color:var(--ink); }
.nav a{ margin-left:18px; font-weight:600; letter-spacing:.3px; color:var(--link); text-decoration:none }
.nav a:hover{ color:var(--accent); text-decoration:underline }

/* cards / surfaces */
.card{ background: rgba(255,250,243,.92); border:1px solid var(--line); border-radius:14px; overflow:hidden; margin:22px 0; box-shadow:0 8px 30px rgba(0,0,0,.08); }
.card img{ width:100%; display:block; object-fit:cover; max-height:460px }
.card .pad{ padding:18px 18px 22px; }
.meta{ font-size:13px; text-transform:uppercase; letter-spacing:.14em; color:var(--ink-60); margin-bottom:8px; }
.card h2{ margin:0 0 8px; font-size:26px; line-height:1.25 }
.card p{ margin:0 0 10px }

/* archive grid */
.grid{ display:grid; gap:18px; grid-template-columns: repeat(3, minmax(0,1fr)); }
.thumb{ background: rgba(255,250,243,.93); border:1px solid var(--line); border-radius:12px; overflow:hidden; transition: transform .15s ease; text-decoration:none; color:inherit; }
.thumb:hover{ transform:translateY(-3px) }
.thumb img{ width:100%; height:180px; object-fit:cover; display:block }
.thumb .t{ padding:12px; font-weight:600 }

/* single post */
.article{ background: rgba(255,250,243,.95); border:1px solid var(--line); border-radius:14px; padding:24px; }
.article h1{ margin: 0 0 6px; font-size:36px; line-height:1.2 }
.article .meta{ margin-bottom:16px }
.article img.cover{ width:100%; max-height:520px; object-fit:cover; border-radius:10px; margin:10px 0 18px }
/* images inside post body: thin black border + padding */
.article .body img{ max-width:100%; height:auto; display:block; border:1px solid #000; padding:3px; margin: 16px auto; }

/* subheadings inside post body: lighter grey, smaller, italics */
.article .body h2, .article .body h3{
  color: #555; font-style: italic; font-weight: 700;
}
.article .body h2{ font-size:22px; }
.article .body h3{ font-size:18px; }

.footer{ margin-top:44px; padding:30px 0; color:var(--ink-60); font-size:14px; text-align:center; }

/* editor */
.editor{ background: rgba(255,250,243,.96); border:1px solid var(--line); border-radius:14px; padding:18px; }
.toolbar{ display:flex; flex-wrap:wrap; gap:8px; margin: 8px 0 12px; }
.toolbar button{ font:600 14px Georgia, serif; padding:6px 10px; border:1px solid var(--line); background:#fff; cursor:pointer; border-radius:8px; }
.toolbar input[type="file"]{ display:none; }
.toolbar label{ border:1px solid var(--line); padding:6px 10px; border-radius:8px; cursor:pointer; background:#fff; }
input.title{ width:100%; font: 700 28px Georgia, serif; padding:10px 12px; border:1px solid var(--line); background:#fff; margin:6px 0 10px }
.editable{ min-height: 340px; padding:12px; border:1px solid var(--line); background:#fff; }
.actions{ display:flex; gap:10px; margin-top:12px }
.actions button{ font:600 15px Georgia, serif; padding:10px 14px; border:1px solid var(--line); background:#fff; border-radius:8px; cursor:pointer; }

/* responsive */
@media (max-width: 1100px){
  .grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px){
  .title{ font-size:34px }
  .grid{ grid-template-columns: 1fr; }
}
