/*
 * override.css
 * Typography and layout layer — Source Serif 4 editorial style.
 *
 * Palette (from std-bureau.framer.website):
 *   Text primary   #0f0f0f   Near-black
 *   Text secondary #4d4d4d   Dark gray
 *   Text muted     #9a9a9a   Mid gray
 *   Background     #fefdfa   Warm off-white
 *   Border         #e8e4de   Warm rule
 */

/* ─── Base ───────────────────────────────────────────────────────── */

body {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 15px;
  font-weight: 400;
  color: #0f0f0f;
  background: #fefdfa;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Source Serif 4', Georgia, serif;
  color: #0f0f0f;
  font-weight: 400;
}

/* ─── Content column — left-biased desktop, full-width mobile ────── */

.container,
.wrapper {
  max-width: 750px !important;
  width: auto !important;
  margin-left: max(24px, calc((100vw - 750px) / 3)) !important;
  margin-right: 24px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

/* Below 860px: drop the left bias, equal breathing room */
@media (max-width: 860px) {
  .container,
  .wrapper {
    margin-left: 20px !important;
    margin-right: 20px !important;
  }
}

/* At mobile the theme adds body { padding: 20px }, remove double-indent */
@media (max-width: 767px) {
  .container,
  .wrapper {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }
}

/* ─── Site header — stacked: avatar → name → intro → links ──────── */

.site-header {
  padding: 40px 0 32px;
  text-align: left;
}

.sh-avatar-link {
  display: inline-block;
  margin-bottom: 32px;
}

.sh-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0; /* override theme img { margin: auto } */
}

.sh-name {
  display: block;
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 400;
  font-size: 14px;
  color: #9a9a9a;
  text-decoration: none;
  line-height: 1.4;
  margin-bottom: 12px;
}

.sh-name:hover {
  color: #0f0f0f;
}

.sh-intro {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  color: #0f0f0f;
  margin: 0 0 32px;
  line-height: 1.35;
}

.sh-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sh-links a {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 14px;
  font-weight: 400;
  color: #4d4d4d;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: #c8c4be;
  transition: color 0.15s;
}

.sh-links a:hover {
  color: #0f0f0f;
  text-decoration-color: #0f0f0f;
}

/* ─── Nav ─────────────────────────────────────────────────────────── */

.sh-nav {
  margin-top: 20px;
}

.sh-nav ul.flat {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
}

.sh-nav ul.flat li {
  margin: 0;
}

.sh-nav ul.flat li a {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 12px;
  font-weight: 400;
  color: #9a9a9a;
  text-decoration: none;
  transition: color 0.15s;
}

.sh-nav ul.flat li a:hover {
  color: #0f0f0f;
}

/* ─── Dividers ────────────────────────────────────────────────────── */

hr {
  border: none;
  border-top: 1px solid #e8e4de;
}

/* ─── Footer ──────────────────────────────────────────────────────── */

.footer {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 12px;
  font-weight: 400;
  color: #9a9a9a;
  border-top: 1px solid #e8e4de;
  padding: 24px 0;
  margin-top: 40px;
  background: transparent;
  text-align: left;
}

.footer a {
  color: #9a9a9a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer a:hover {
  color: #0f0f0f;
}

/* ─── Post body typography ───────────────────────────────────────── */

.post-content,
section.main .content .markdown {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 17px;
  line-height: 1.75;
  color: #0f0f0f;
}

section.main .content .markdown p {
  font-size: 17px;
  line-height: 1.75;
  color: #0f0f0f;
}

section.main .content .markdown img {
  margin: auto;
  display: block;
  max-width: 100%;
}

/* ─── Single post title ──────────────────────────────────────────── */

.post-title,
h1.post-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.25;
  color: #0f0f0f;
}
