:root{
  --bg:#faf9f6;
  --ink:#1c1c1a;
  --muted:#6f6f6a;
  --blue:#3f6188;
  --blue-deep:#33506f;
  --green:#7fae95;
  --rule:#e4e1d9;
  --maxread:42rem;
}
*{box-sizing:border-box;}
html{font-size:18px;}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:Georgia,"Times New Roman",serif;
  line-height:1.62;
}
a{color:var(--blue);text-decoration:none;}
a:hover{text-decoration:underline;}

/* ---- masthead + nav ---- */
.masthead{
  display:flex;align-items:center;justify-content:space-between;
  gap:1rem;flex-wrap:wrap;
  max-width:64rem;margin:0 auto;padding:1.1rem 1.5rem;
  border-bottom:2px solid var(--blue);
}
.brand{display:flex;align-items:center;gap:.6rem;color:var(--ink);}
.brand:hover{text-decoration:none;}
.brand-logo{width:34px;height:34px;border-radius:3px;display:block;}
.brand-name{font-size:1.3rem;letter-spacing:.02em;}
.nav{display:flex;gap:1.25rem;}
.nav a{color:var(--muted);font-size:1rem;}
.nav a:hover{color:var(--blue);text-decoration:none;}
.nav a.active{color:var(--blue-deep);border-bottom:2px solid var(--green);padding-bottom:2px;}

/* ---- layout ---- */
.content{max-width:64rem;margin:0 auto;padding:2rem 1.5rem 3rem;}
.content.single{max-width:var(--maxread);}
.wrap{display:flex;gap:2.5rem;max-width:64rem;margin:0 auto;padding:2rem 1.5rem 3rem;align-items:flex-start;}
.wrap .content{padding:0;margin:0;max-width:var(--maxread);flex:1 1 auto;}
.sidebar{flex:0 0 14rem;}

/* ---- sidebar index ---- */
.sidebar-h{font-size:.85rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);border-bottom:1px solid var(--rule);padding-bottom:.4rem;margin:.2rem 0 .9rem;}
.post-index{list-style:none;margin:0;padding:0;}
.post-index li{margin:0 0 .9rem;padding-left:.6rem;border-left:2px solid transparent;}
.post-index li.current{border-left-color:var(--green);}
.post-index a{display:block;color:var(--ink);}
.post-index a:hover{text-decoration:none;color:var(--blue);}
.s-date{display:block;font-size:.72rem;color:var(--muted);letter-spacing:.03em;}
.s-title{display:block;font-size:.95rem;line-height:1.35;}
.post-index li.current .s-title{color:var(--blue-deep);font-weight:bold;}

/* ---- posts + pages ---- */
.post-title,.page h1,.page-head h1{font-size:1.9rem;line-height:1.2;margin:0 0 .3rem;}
.post-meta{color:var(--muted);font-size:.9rem;margin:0 0 2rem;font-style:italic;}
.post h2,.page h2{font-size:1.3rem;margin:2.2rem 0 .6rem;}
.post h3,.page h3{font-size:1.08rem;margin:1.6rem 0 .4rem;}
.post p,.page p{margin:0 0 1.1rem;}
.post blockquote{margin:1.3rem 0;padding:.2rem 0 .2rem 1.1rem;border-left:3px solid var(--rule);color:var(--muted);font-style:italic;}
code{font-family:Consolas,"Courier New",monospace;font-size:.9em;background:#efece4;padding:.05em .3em;border-radius:3px;}
hr{border:none;border-top:1px solid var(--rule);margin:2rem 0;}

/* ---- blog list ---- */
.page-head{margin-bottom:1.6rem;}
.lede{color:var(--muted);font-style:italic;margin-top:.2rem;}
.entry-list{list-style:none;margin:0;padding:0;}
.entry{padding:1.1rem 0;border-top:1px solid var(--rule);}
.entry-date{font-size:.8rem;color:var(--muted);letter-spacing:.03em;}
.entry-title{font-size:1.25rem;margin:.15rem 0 .3rem;}
.entry-summary{margin:0;color:#39392f;}

/* ---- draft + tags ---- */
.draft-banner{background:#f3efe0;border:1px solid #e2d9b8;color:#6b5f33;padding:.5rem .8rem;border-radius:4px;font-size:.85rem;font-style:italic;margin-bottom:1.4rem;}
.tag{font-size:.65rem;text-transform:uppercase;letter-spacing:.08em;color:#9a7b2f;border:1px solid #d8c486;border-radius:3px;padding:0 .3rem;vertical-align:middle;}

/* ---- figures ---- */
figure{margin:1.6rem 0;text-align:center;}
figure img{max-width:100%;height:auto;}
figcaption{font-size:.82rem;color:var(--muted);margin-top:.4rem;}

/* ---- tables ---- */
.post table,.page table{border-collapse:collapse;width:100%;margin:1.5rem 0;font-size:.92rem;}
.post th,.post td,.page th,.page td{border:1px solid var(--rule);padding:.45rem .7rem;}
.post thead th,.page thead th{background:#f0eee8;font-weight:bold;}
.post th:first-child,.post td:first-child,.page th:first-child,.page td:first-child{text-align:left;}
.post th:not(:first-child),.post td:not(:first-child),.page th:not(:first-child),.page td:not(:first-child){text-align:right;font-variant-numeric:tabular-nums;}

/* ---- footer / disclaimer ---- */
.site-footer{max-width:64rem;margin:2rem auto 0;padding:1.4rem 1.5rem 2.5rem;border-top:1px solid var(--rule);}
.disclaimer{font-size:.72rem;line-height:1.5;color:#8a8a83;}
.disclaimer p{margin:0 0 .6rem;}
.disclaimer .disc-title{font-size:.8rem;color:var(--muted);}
.copyright{margin-top:1rem;font-size:.75rem;color:var(--muted);}

/* ---- responsive ---- */
@media (max-width:760px){
  .wrap{flex-direction:column;gap:1.5rem;}
  .sidebar{flex:none;width:100%;}
  .nav{gap:1rem;}
}
