/* Lacey Blog — public theme. Sky blue + Fraunces/IBM Plex Sans. */

:root {
  --accent: #0EA5E9;
  --accent-dark: #0284C7;
  --accent-soft: #E0F2FE;
  --ink: #0F172A;
  --ink-soft: #475569;
  --ink-faint: #94A3B8;
  --line: #E2E8F0;
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --radius: 14px;
  --maxw: 720px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 26px; padding-bottom: 26px; }
.site-title {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-size: 24px; font-weight: 600; letter-spacing: -0.01em;
  margin: 0; color: var(--ink); text-decoration: none;
}
.site-title span { color: var(--accent); }
.site-tagline { margin: 4px 0 0; color: var(--ink-faint); font-size: 14px; }
.nav-back { font-size: 14px; color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
.nav-back:hover { color: var(--accent); }

/* list */
.posts { list-style: none; margin: 0; padding: 40px 0 10px; }
.post-card { padding: 26px 0; border-bottom: 1px solid var(--line); display: flex; gap: 20px; align-items: flex-start; }
.post-card:last-child { border-bottom: 0; }
.post-card .thumb {
  flex: 0 0 108px; height: 108px; border-radius: 12px; overflow: hidden;
  background: var(--accent-soft);
}
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card .body { flex: 1 1 auto; min-width: 0; }
.post-card h2 {
  font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 21px;
  line-height: 1.3; margin: 0 0 6px; letter-spacing: -0.01em;
}
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--accent-dark); }
.post-card p { margin: 0 0 10px; color: var(--ink-soft); font-size: 15.5px; }
.meta { font-size: 13px; color: var(--ink-faint); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.meta .dot { color: var(--line); }
.tag {
  display: inline-block; background: var(--accent-soft); color: var(--accent-dark);
  border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 500;
}

/* article */
.article { padding: 44px 0 20px; }
.article h1 {
  font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 36px;
  line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px;
}
.article .meta { margin-bottom: 30px; }
.article .cover { width: 100%; border-radius: var(--radius); margin: 0 0 30px; display: block; }
.prose { font-size: 17.5px; }
.prose h2, .prose h3, .prose h4 { font-family: Fraunces, Georgia, serif; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; margin: 34px 0 12px; }
.prose h2 { font-size: 25px; }
.prose h3 { font-size: 20px; }
.prose h4 { font-size: 17px; }
.prose p { margin: 0 0 18px; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; display: block; margin: 24px 0; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 7px; }
.prose blockquote {
  margin: 24px 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent); color: var(--ink-soft); font-style: italic;
}
.prose pre {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; overflow-x: auto; font-size: 14.5px;
}
.prose code { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }
.prose :not(pre) > code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 15.5px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 11px; text-align: left; }
.prose th { background: var(--bg-soft); font-weight: 600; }
.prose a { color: var(--accent-dark); }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 50px; padding: 26px 0 44px; }
.site-footer .wrap { display: flex; gap: 14px; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--ink-faint); flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer .em { color: #B4545A; }

.empty { padding: 60px 0; color: var(--ink-faint); text-align: center; }

.pager { display: flex; justify-content: space-between; padding: 26px 0 0; font-size: 15px; }
.pager a { text-decoration: none; font-weight: 500; }
.pager span { color: var(--ink-faint); }

@media (max-width: 560px) {
  .article h1 { font-size: 29px; }
  .post-card { gap: 14px; }
  .post-card .thumb { flex-basis: 78px; height: 78px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #E6EDF6; --ink-soft: #A9B6C7; --ink-faint: #6F8098;
    --line: #22303F; --bg: #0B1219; --bg-soft: #121C26; --accent-soft: #0B2F44;
    --accent-dark: #38BDF8;
  }
  .post-card h2 a { color: var(--ink); }
}
