/* ---- Imports ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=Literata:opsz,wght@7..72,400;600&display=swap');

/* ---- Color theme ---- */
:root{
  --accent:#0066cc;
  --accent-light:#e6f2ff;
  --gray-1:#6c7178;
  --gray-2:#d1d5db;
}
@media (prefers-color-scheme:dark){
  :root{
    --accent:#3fa0ff;
    --accent-light:#0d1a26;
    --gray-1:#9ca3af;
    --gray-2:#334155;
  }
}

/* ---- Base tweaks ---- */
body{
  font-family:"Literata", Georgia, "Times New Roman", serif;
  font-size:1.05rem;
  line-height:1.8;
  max-width:46rem;
  margin:0 auto;
  padding:0 1rem;
  background:Canvas;
  color:CanvasText;
}

a{
  color:var(--accent);
  text-decoration-thickness:0.08em;
  text-underline-offset:0.15em;
}
a:hover{
  text-decoration:none;
}

/* ---- Top strip ---- */
.strip{
  background:var(--accent-light);
  border:0;
  border-bottom:1px solid var(--gray-2);
  font:0.8rem/1.4 "Inter", system-ui, sans-serif;
}
.strip a{
  font-weight:600;
}

/* ---- Masthead ---- */
.masthead{
  text-align:center;
  padding-top:2.2rem;
  padding-bottom:2rem;
}
.avatar{
  margin:0 auto 0.8rem;
  width:4.5rem;
  height:4.5rem;
}
.blog-title{
  font-family:"Inter", system-ui, sans-serif;
  font-weight:800;
  font-size:2.1rem;
  margin:0;
}
.tagline{
  font-family:"Inter", system-ui, sans-serif;
  color:var(--gray-1);
  margin-top:0.4rem;
}

/* ---- Headings ---- */
h1,h2,h3,h4{
  font-family:"Inter", system-ui, sans-serif;
  font-weight:600;
  line-height:1.3;
  margin-top:2rem;
  margin-bottom:0.5rem;
}
h1{font-size:1.75rem;}
h2{font-size:1.35rem;}
h3{font-size:1.15rem;}
h4{font-size:1rem;}

/* ---- Lists of posts ---- */
.post-list li{
  border-bottom:1px solid var(--gray-2);
  padding:0.65rem 0;
}
.post-link{
  flex-grow:1;
  font-weight:600;
}
.post-link:hover{
  color:var(--accent);
}

/* ---- Block elements ---- */
blockquote{
  border-left:3px solid var(--accent);
  color:var(--gray-1);
}
pre{
  background:var(--accent-light);
  border:1px solid var(--gray-2);
  border-radius:4px;
}
code{
  font-family:ui-monospace, SFMono-Regular, "Courier New", monospace;
  font-size:0.93em;
}

/* ---- Footer & meta ---- */
time,
.empty,
.notice,
.receipt,
.colophon{
  color:var(--gray-1);
}
.colophon{
  border-top:1px solid var(--gray-2);
}

/* ---- Utility ---- */
main{padding-bottom:4rem;}
@media (max-width:30rem){
  body{font-size:1rem;}
  .blog-title{font-size:1.8rem;}
}
