/* Blog layout in Night glass (DESIGN.md): tokens and the top bar come from night.css; this file only adds the
   reading column. One accent (iris) for focus and hover, the system face for words, no all caps, no monospace
   labels. Code keeps a monospace face because it is code. */

.blog-index,
.blog-post { padding: 0 var(--gutter) 80px; }

.blog-col { max-width: 720px; margin: 0 auto; }

/* ───── index ───── */
.blog-index h1,
.blog-post h1 {
  margin: 48px 0 8px;
  font-size: clamp(32px, 6vw, var(--t-hero));
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

/* a post's title is a sentence, not a hero: smaller, so a dated title keeps its date on one line */
.blog-post h1 { font-size: clamp(30px, 5vw, 56px); }

.blog-index .lede { margin: 0 0 32px; color: var(--text-2); }
.blog-index .lede a, .blog-footer a { color: var(--text-2); }
.blog-index .lede a:hover, .blog-footer a:hover { color: var(--iris); }

.post-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }

.post-row {
  position: relative;
  padding: 20px 22px;
  border-radius: var(--r-card);
  background: var(--glass);
  border: 1px solid var(--hair);
  box-shadow: inset 0 1px 0 var(--edge);
  transition: background .2s var(--ease);
}
.post-row:hover { background: var(--glass-hi); }

.post-row a {
  color: var(--text);
  text-decoration: none;
  font-size: var(--t22);
  font-weight: 600;
  letter-spacing: -0.015em;
}
/* the whole card is the link */
.post-row a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

.post-row time {
  display: block;
  margin-bottom: 6px;
  color: var(--text-2);
  font-size: var(--t13);
  font-variant-numeric: tabular-nums;
}

.post-desc { margin: 6px 0 0; color: var(--text-2); font-size: var(--t15); }

/* ───── post ───── */
.blog-post .meta {
  margin: 48px 0 0;
  color: var(--text-2);
  font-size: var(--t13);
  font-variant-numeric: tabular-nums;
}

.blog-post .tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  margin-left: 6px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hair);
  background: var(--glass);
  color: var(--text);
}

.blog-post article h2 { margin: 48px 0 12px; font-size: var(--t32); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.blog-post article h3 { margin: 32px 0 10px; font-size: var(--t22); font-weight: 600; }
.blog-post article p { margin: 0 0 18px; }
.blog-post article strong { font-weight: 600; }
.blog-post article em { font-style: normal; color: var(--text-2); }

.blog-post article a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(247, 255, 168, .45);
  text-underline-offset: 3px;
  transition: color .2s var(--ease);
}
.blog-post article a:hover { color: var(--iris); }

.blog-post article ul,
.blog-post article ol { margin: 0 0 18px; padding-left: 22px; }
.blog-post article li { margin-bottom: 8px; }
.blog-post article li::marker { color: var(--text-2); }

.blog-post article blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-radius: var(--r-inner);
  background: var(--glass);
  border: 1px solid var(--hair);
  color: var(--text-2);
}

/* pictures sit in a glass frame at card radius */
.blog-post article img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 8px 0;
  border-radius: var(--r-card);
  border: 1px solid var(--hair);
}

.blog-post article code,
.blog-index code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85em;
  background: var(--glass);
  border: 1px solid var(--hair);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--text-2);
}

/* long code samples scroll inside the block instead of widening the page */
.blog-post article pre {
  background: var(--glass);
  border: 1px solid var(--hair);
  border-radius: var(--r-inner);
  padding: 16px;
  overflow-x: auto;
  font-size: var(--t13);
  line-height: 1.5;
}
.blog-post article pre code { background: none; border: 0; padding: 0; color: var(--text); }

.blog-post article table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: var(--t15); }
.blog-post article th,
.blog-post article td { padding: 8px 10px; border-bottom: 1px solid var(--hair); text-align: left; }
.blog-post article th { color: var(--text-2); font-weight: 600; }

.blog-post article hr { border: 0; border-top: 1px solid var(--hair); margin: 40px 0; }

/* ───── footer ───── */
.blog-footer {
  max-width: 720px;
  margin: 64px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
  color: var(--text-2);
  font-size: var(--t13);
}
