@import url("https://fonts.googleapis.com/css2?family=Geist&family=JetBrains+Mono&display=swap");

/* Site-level overrides loaded after the re-Terminal theme. */
body {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.0625rem;
  text-wrap: pretty;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
}

/* Editorial reading layer: prose is distinct from the terminal-style UI. */
.post .post-content {
  max-width: 65ch;
  font-family: Geist, sans-serif;
  line-height: 1.65;
  letter-spacing: normal;
}

/* Keep code consistently monospace. */
code,
kbd {
  font-family: "JetBrains Mono", monospace !important;
}

/* Titles carry the accent; remove the competing decorative divider. */
.post-title {
  border-bottom: 0;
  padding-bottom: 0;
}

.post-title::after {
  display: none;
}

.post-meta {
  font-size: 1rem;
}

.post h1 {
  color: var(--syntax-value-color);
  font-size: 2rem;
}

.post h2 { font-size: 1.5rem; }
.post h3 { font-size: 1.25rem; }
.post h4 { font-size: 1.1rem; }
.post h5,
.post h6 { font-size: 1rem; }

/* Homepage: a compact terminal-style post index. */
.posts__heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  color: var(--accent);
  font-size: 1.6rem;
  text-transform: uppercase;
}

.posts__heading::after {
  content: "";
  flex: 1;
  border-top: 1px dotted var(--accent);
}

.on-list {
  margin: 0;
  padding: 14px 0;
}

.post-listing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
}

.on-list .post-title {
  margin: 0;
  font-size: 1.4rem;
}

.on-list .post-title::before {
  content: "➜";
  margin-right: 0.3em;
  color: var(--accent);
}

.on-list .post-meta {
  margin: 0;
  font-size: 1rem;
  white-space: nowrap;
}

.on-list:hover .post-title a {
  color: var(--accent);
}

@media (max-width: 684px) {
  .post-listing {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .on-list .post-title::before {
    margin-right: 0.1em;
  }
}
