
.post-page{
  color: inherit;
}

.post-back{
  text-decoration:none;
  font-weight: 800;
  color: color-mix(in srgb, currentColor 78%, transparent);
}
.post-back:hover{ text-decoration: underline; }

.post-toplink{
  text-decoration:none;
  font-weight: 750;
  color: color-mix(in srgb, currentColor 68%, transparent);
}
.post-toplink:hover{ text-decoration: underline; }

.post-layout{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 3rem 3rem;
}

.post-article{
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  border-radius: 18px;
  overflow: hidden;


  width: 100%;
  max-width: none;
}


.post-header{
  padding: 28px 26px 18px;
  border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}

.post-kicker{
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: .18em;
  color: color-mix(in srgb, currentColor 58%, transparent);
}

.post-title{
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 2.4vw, 2.35rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: color-mix(in srgb, currentColor 92%, transparent);
}

.post-subtitle{
  margin: 0 0 14px;
  max-width: 70ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: color-mix(in srgb, currentColor 74%, transparent);
}

.post-meta{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  align-items:center;
  font-size: 0.95rem;
  font-weight: 700;
  color: color-mix(in srgb, currentColor 62%, transparent);
}
.post-meta__dot{ opacity: .7; }

.post-tags{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}
.post-tag{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;

  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  background: color-mix(in srgb, currentColor 6%, transparent);
  color: color-mix(in srgb, currentColor 78%, transparent);
  text-decoration:none;
  font-weight: 800;
  font-size: 12px;
}
.post-tag:hover{
  border-color: color-mix(in srgb, currentColor 22%, transparent);
  background: color-mix(in srgb, currentColor 9%, transparent);
}

.post-content{
  padding: 22px 26px 26px;
}

.post-content p,
.post-content li{
  max-width: 78ch;
  line-height: 1.7;
  color: color-mix(in srgb, currentColor 78%, transparent);
}

.post-content h2,
.post-content h3{
  margin: 22px 0 10px;
  letter-spacing: -0.01em;
  color: color-mix(in srgb, currentColor 92%, transparent);
}

.post-content h2{
  font-size: 1.35rem;
}
.post-content h3{
  font-size: 1.15rem;
}

.post-content a{
  color: var(--clr4);
  text-decoration: none;
  font-weight: 800;
}
.post-content a:hover{ text-decoration: underline; }

.post-divider{
  border: none;
  height: 1px;
  background: color-mix(in srgb, currentColor 12%, transparent);
  margin: 24px 0 18px;
}

/* ------ screenshots ------ */
.post-figure{
  margin: 14px 0 18px;
  padding: 12px;
  border-radius: 16px;

  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  background: color-mix(in srgb, currentColor 6%, transparent);
}

.post-figure img{
  width: 100%;
  height: auto;
  display:block;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}

.post-figure figcaption{
  margin-top: 10px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: color-mix(in srgb, currentColor 62%, transparent);
}




/* responsive */
@media (max-width: 980px){
  .post-layout{ grid-template-columns: 1fr; }
}

@media (max-width: 760px){
  .post-layout{ padding: 12px 1rem 2rem; }
  .post-header, .post-content{ padding-left: 16px; padding-right: 16px; }
}











/* -----    highlight text --------------------   */
code {
  font-family: Consolas,"courier new";
  color: crimson;
  background-color: #f1f1f1;
  padding: 2px;
  font-size: 105%;
}


/* -----    TODO fix code blocks --------------------   */

/* Code blocks */
.codeblock{
  position: relative;
  margin: 14px 0 18px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  overflow:hidden;
    /* background: color-mix(in srgb, #000 45%, transparent); */
  background-color: #f1f1f1;
}

.codeblock::before{
  content: attr(data-lang);
  position:absolute;
  left: 12px;
  top: 10px;

  font-size: 11px;
  letter-spacing: .18em;
  font-weight: 900;
  /* color: color-mix(in srgb, currentColor 58%, transparent); */
}

.codeblock pre{
  margin: 0;
  padding: 36px 14px 14px;
  overflow:auto;
}

.codeblock code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.92rem;
  line-height: 1.55;
  /* color: color-mix(in srgb, currentColor 86%, transparent); */
  white-space: pre;
}