/* ===== Base ===== */
:root{
  --maxw: 980px;
  --pad: 16px;
  --text: #111;
  --muted: #666;
  --line: #ddd;
  --bg: #fafafa;
  --card: #fff;
  --link: #0b57d0;
}

*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

a{ color: var(--link); text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--pad);
}

/* ===== Header / Nav ===== */
.site-header{
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.brand{
  font-weight: 700;
  letter-spacing: 0.2px;
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.nav-links a{
  margin-left: 12px;
  color: var(--text);
  opacity: 0.9;
}

.nav-links a:hover{
  opacity: 1;
}

/* ===== Main ===== */
main{
  display:block;
  padding: 20px 0;
}

h1,h2,h3{ line-height: 1.2; margin: 0 0 12px; }
p{ margin: 0 0 12px; color: var(--text); }
small, .muted{ color: var(--muted); }

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

/* ===== Footer ===== */
.site-footer{
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding: 18px 0;
  color: var(--muted);
}

/* ===== Simple lists ===== */
ul{ padding-left: 18px; }
li{ margin: 6px 0; }

/* ===== Mobile tweaks ===== */
@media (max-width: 560px){
  .nav{ flex-direction: column; align-items:flex-start; }
  .nav-links a{ margin-left: 0; margin-ri

/* ===== Home ===== */
.hero{
  padding: 18px 0 8px;
}

.hero h1{
  margin: 0 0 8px;
  font-size: 34px;
}

.hero p{
  margin: 0 0 12px;
  color: var(--muted);
}

.hero-actions{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.btn{
  display:inline-block;
  padding: 10px 14px;
  border: 1px solid var(--text);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
}

.btn:hover{
  text-decoration:none;
}

.btn.secondary{
  border-color: var(--line);
  color: var(--text);
  opacity: 0.9;
}

.grid-5{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.navcard{
  display:block;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: var(--card);
  color: var(--text);
  min-height: 92px;
}

.navcard:hover{
  text-decoration:none;
  border-color: #bbb;
}

.navcard .title{
  font-weight: 700;
  margin

.nav-links a.is-active{
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* ===== Prose / Reading ===== */
.prose{
  max-width: 72ch;
}

.prose h1, .prose h2, .prose h3{
  margin-top: 18px;
}

.prose p{
  margin: 0 0 14px;
}

.prose a{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.95em;
  background: #f2f2f2;
  padding: 2px 6px;
  border-radius: 6px;
}

.prose pre{
  overflow-x: auto;
  background: #f2f2f2;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.prose blockquote{
  margin: 0 0 14px;
  padding: 10px 12px;
  border-left: 4px solid var(--line);
  background: #ffffff;
  border-radius: 10px;
}

.prose img{
  max-width: 100%;
  height: auto;
  display: block;
  margin: 14px 0;
  border-radius: 12px;
  border: 1px solid var(--line);
}

mark{
  padding: 0 .18em;
  border-radius: 6px;
}

.embed{
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 video */
  margin: 12px 0;
}
.embed iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}

/* =========================
   Blog post content polish
   (StackEdit / Parsedown)
========================= */

/* Make images behave nicely */
.card.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 12px 0;
  border-radius: 12px;
}

/* Make embedded videos responsive */
.embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  margin: 14px 0;
}
.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}

/* Lists: better spacing */
.card.prose ul,
.card.prose ol {
  padding-left: 22px;
  margin: 10px 0 14px;
}

.card.prose li {
  margin: 6px 0;
}

/* Checklists (GitHub-style) */
.card.prose input[type="checkbox"] {
  transform: translateY(1px);
  margin-right: 8px;
}

/* Blockquotes look like notes */
.card.prose blockquote {
  margin: 14px 0;
  padding: 10px 12px;
  border-left: 4px solid rgba(0,0,0,0.2);
  background: rgba(0,0,0,0.03);
  border-radius: 10px;
}

/* Code blocks */
.card.prose pre {
  overflow: auto;
  padding: 12px;
  border-radius: 12px;
  background: #f0f0f0;
  border: 1px solid rgba(0,0,0,0.08);
}

.card.prose code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.95em;
}

/* Header logo */
.site-logo {
  display: inline-flex;
  align-items: center;
}

.site-logo img {
  height: 32px;   /* adjust if needed */
  width: auto;
  display: block;
}

/* Hide text visually but keep it for SEO & screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
