:root {
  --color-primary: #4a6fa5;
  --color-primary-hover: #3a5a8a;
  --color-border: #7a9cc0;
  --font-size-base: 17px;
}

html, body, p, h1, h2, h3, h4, h5, h6, li, blockquote, td, th, dt, dd {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

ul.posts li.post {
  margin-bottom: 0.2rem;
}

/* Thinner link underlines globally */
a {
  border-block-end-width: 2px;
  border-bottom-width: 2px;
}

/* Match list item spacing to body paragraph style */
.body li {
  line-height: var(--line-height-content, 1.5);
  margin-bottom: 0.5em;
}

/* Fix bullet alignment — replace theme's text-indent approach with absolute
   positioning so all lines of text align flush, not just the first. */
.body ul {
  padding-inline-start: 1.2em;
}

.body ul li {
  text-indent: 0;
  position: relative;
}

.body ul > li::before {
  position: absolute;
  inset-inline-start: -1.2em;
}

/* Replace dotted footer/hr borders with a clean solid line */
footer {
  border-top: none !important;
  border-block-start: none !important;
  position: relative;
}

footer::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #c0cdd8 15%, #c0cdd8 85%, transparent);
}

hr {
  border: none !important;
  border-top: none !important;
  border-block-start: none !important;
  height: 1px;
  background: linear-gradient(to right, transparent, #c0cdd8 15%, #c0cdd8 85%, transparent);
  margin: 1.5em 0;
}

@media (prefers-color-scheme: dark) {
  footer::before, hr {
    background: linear-gradient(to right, transparent, #3a4250 15%, #3a4250 85%, transparent);
  }
}

/* Remove pseudo-markdown # prefixes on headings */
h1::before, h2::before, h3::before,
h4::before, h5::before, h6::before {
  content: none !important;
}

/* ── Social post cards ── */
.post-card {
  border: 1px solid #e0e7ef;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  background-color: #f7f9fc;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.post-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.11);
  border-color: #b8cde0;
}

@media (prefers-color-scheme: dark) {
  .post-card {
    background-color: #272a2e;
    border-color: #383c42;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  }

  .post-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    border-color: #4a5260;
  }
}

.post-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.post-card-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.post-card-meta {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0;
}

.post-card-name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
}

.post-card-handle {
  color: var(--color-text-muted, #737373);
  font-size: 13px;
}

.post-card-sep {
  color: var(--color-text-muted, #737373);
  font-size: 18px;
  line-height: 1;
  margin: 0 5px;
}

.post-card-time {
  color: var(--color-text-muted, #737373);
  font-size: 13px;
  white-space: nowrap;
  border: none !important;
}

.post-card-time:hover,
.post-card-time:focus {
  background: none !important;
  color: var(--color-text-muted, #737373) !important;
  outline: none;
}

.post-card-body {
  padding-left: 56px; /* avatar width + gap */
}

.post-card-content p {
  margin: 0 0 0.5em;
  margin-block: 0 0.5em;
}

.post-card-content p:first-child {
  margin-top: 0;
  margin-block-start: 0;
}

.post-card-content p:last-child {
  margin-bottom: 0;
  margin-block-end: 0;
}

.post-card-content blockquote {
  margin-top: 1em;
  margin-bottom: 1em;
  margin-block: 1em;
}

.post-card--article .post-card-title {
  margin-top: 0;
  margin-block-start: 0;
}


/* Dark mode */
@media (prefers-color-scheme: dark) {
  .post-card {
    border-color: #2f3336;
  }

  .post-card-time:hover,
  .post-card-time:focus {
    color: var(--color-text-muted-dark, #888) !important;
  }
}
