/* ===========================================================================
   blog.css — the only new CSS this migration adds.

   The post page itself is `.doc-*` and `.prose` out of legal.css, because a
   blog post and a privacy policy are the same object: one column of long-form
   text with a contents rail. What is genuinely new is the index list and two
   small post affordances, and that is all this file holds.
   Tokens come from canaan.css. Nothing here redefines one.
   =========================================================================== */

/* ------------------------------------------------------------- index list */

.post-list{
  list-style:none;
  margin:0 0 clamp(64px,10vh,120px);
  padding:0;
  border-top:1px solid var(--line-3);
}

.post-list__item{border-bottom:1px solid var(--line-3)}

.post-list__link{
  display:grid;
  gap:10px;
  padding-block:clamp(28px,4vh,44px);
  text-decoration:none;
  color:inherit;
  transition:opacity .35s var(--ease);
}
.post-list__link:hover{opacity:.72}
.post-list__link:focus-visible{
  outline:2px solid var(--terracotta);
  outline-offset:6px;
  opacity:1;
}

.post-list__cat{color:var(--terracotta)}

.post-list__title{
  font-family:var(--serif);
  font-weight:400;
  font-size:var(--t-h2);
  line-height:1.08;
  margin:0;
  max-width:24ch;
}

.post-list__desc{
  margin:0;
  max-width:62ch;
  color:var(--muted);
  font-size:var(--t-body);
  line-height:1.55;
}

.post-list__meta{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:4px;
  font-family:var(--mono);
  font-size:13px;
  color:var(--muted);
}

/* On a phone the title is the tap target; the description is still worth
   showing, but the rail of metadata below it can breathe less. */
@media (max-width:640px){
  .post-list__link{gap:8px}
  .post-list__title{max-width:none}
}

/* ------------------------------------------------------------- post extras */

/* legal.css wraps its body in <section> elements and gets separators from
   `.prose > section`. Markdown emits a flat run of headings and paragraphs, so
   the separator is hung on the h2 instead — same line, same rhythm, no
   requirement that the author write section tags by hand. */
.prose--post > h2{
  border-top:1px solid var(--line-3);
  padding-top:clamp(30px,4.5vh,52px);
  margin-top:clamp(34px,5vh,60px);
}
.prose--post > h2:first-child{border-top:0;padding-top:0;margin-top:0}

.prose--post > ul,
.prose--post > ol{
  max-width:66ch;
  margin-block:18px;
  padding-left:1.15em;
  color:var(--body);
  line-height:1.6;
}
.prose--post > ul li + li,
.prose--post > ol li + li{margin-top:8px}

.prose--post > blockquote{
  margin:26px 0;
  padding-left:20px;
  border-left:2px solid var(--terracotta);
  color:var(--limestone);
  font-style:italic;
  max-width:62ch;
}

.prose--post table{
  width:100%;
  max-width:70ch;
  border-collapse:collapse;
  margin-block:26px;
  font-size:15px;
}
.prose--post th,
.prose--post td{
  text-align:left;
  padding:10px 14px 10px 0;
  border-bottom:1px solid var(--line-3);
  vertical-align:top;
}
.prose--post th{
  font-family:var(--mono);
  font-size:12px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--muted);
  font-weight:400;
}

.prose--post pre{
  overflow-x:auto;
  padding:18px 20px;
  margin-block:24px;
  background:var(--wash-2);
  border:1px solid var(--line-3);
  border-radius:2px;
  font-size:13.5px;
  line-height:1.55;
}
.prose--post code{font-family:var(--mono);font-size:.92em}
.prose--post :not(pre) > code{
  background:var(--wash-2);
  padding:.15em .4em;
  border-radius:2px;
}

/* Anchors sit under a fixed nav; without this a hash link buries the heading. */
.prose--post > h2,
.prose--post > h3{scroll-margin-top:96px}

.post-back{
  margin-top:clamp(48px,7vh,88px);
  padding-top:26px;
  border-top:1px solid var(--line-3);
  font-family:var(--mono);
  font-size:13px;
}
.post-back a{color:var(--muted);text-decoration:none}
.post-back a:hover{color:var(--limestone)}

/* A draft is deployed but not indexed. Saying so on the page stops a review
   link from being mistaken for something live. */
.is-draft{color:var(--terracotta)}
