/* 0n1 Journal — styles layered on /legal/legal.css.
   Only the blog-specific bits live here: the post list, post meta/tags, and
   long-form prose extras (code blocks, blockquotes, images). Everything else
   (typography, topbar, footer nav, colors) is inherited from legal.css. */

/* ── Index: post list ─────────────────────────────────────────────── */
.post-list {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
}
.post-card { margin: 0 0 18px; }
.post-card-link {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.post-card-link:hover {
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-2px);
}
.post-date {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
/* Override legal.css's section-h2 spacing for the card title. */
.post-card .post-title {
  font-family: "Audiowide", sans-serif;
  font-weight: 400;
  color: var(--heading);
  font-size: 1.1rem;
  line-height: 1.28;
  margin: 8px 0;
  padding: 0;
}
.post-card .post-summary {
  color: var(--text);
  font-size: 0.96rem;
  margin: 0;
}

/* ── Tags ─────────────────────────────────────────────────────────── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}
.tag {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 11px;
}
.doc-head .tags { margin-top: 16px; }

/* "Deliberate correction" wordplay in a title: cross off the wrong reading,
   keep the right one beside it (see the slashed-zero post). The struck word is
   dimmed and set aria-hidden in the markup, so it's a purely visual gesture. */
.doc-head h1 .t-was,
.post-title .t-was {
  color: var(--text-dim);
  font-weight: 400;
  text-decoration-thickness: 2px;
}

/* ── Post prose ───────────────────────────────────────────────────── */
.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 22px 0;
  display: block;
}
.post-body figure { margin: 22px 0; }
.post-body figcaption {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 8px;
  text-align: center;
}

.post-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 22px 0;
  padding: 4px 0 4px 18px;
  color: var(--text-dim);
}
.post-body blockquote p:last-child { margin-bottom: 0; }

/* Code — CSS-styled monospace (no per-token highlighting in v1). */
.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
    monospace;
}
.post-body :not(pre) > code {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.12em 0.4em;
  font-size: 0.88em;
  color: var(--heading);
  word-break: break-word;
}
.post-body pre {
  background: #0e0e12;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 22px 0;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.6;
  -webkit-overflow-scrolling: touch;
}
.post-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: #d6d6dd;
  white-space: pre;
}

/* ── Cover hero (post page) + thumbnails (index cards) ────────────── */
.post-hero {
  margin: 24px 0 6px;
}
.post-hero img {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: block;
}
/* Index cards: cover thumbnail on the left at full card height; text on the
   right. The thumb is a stretch flex item; the img fills it with object-fit. */
.post-thumb {
  flex: 0 0 190px;
  align-self: stretch;
  overflow: hidden;
  border-right: 1px solid var(--border);
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-card-body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 22px 24px;
}
/* Mobile: stack the cover above the text as a full-width banner instead of a
   narrow left column — the artwork reads far better at phone widths. */
@media (max-width: 560px) {
  .post-card-link { flex-direction: column; }
  .post-thumb {
    flex: none;
    width: 100%;
    aspect-ratio: 1200 / 630;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .post-card-body { padding: 16px 18px; }
}
