/* ============================================================
   Personal blog — base styles
   One stylesheet, shared by every page.
   Edit the variables below to restyle the whole site.
   ============================================================ */

:root {
  --ink:        #1c1b1a;   /* main text            */
  --ink-soft:   #6b6763;   /* dates, meta, muted   */
  --line:       #e7e3dd;   /* hairline borders     */
  --bg:         #faf8f5;   /* page background      */
  --accent:     #7a5cff;   /* links + highlights   */
  --accent-ink: #5a3fe0;   /* link hover           */
  --measure:    38rem;     /* reading width        */
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 6rem;
}

/* ---- header ---- */
.site-head { margin-bottom: 3.5rem; }

.site-title {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}
.site-title a { color: var(--ink); text-decoration: none; }

.site-tagline {
  color: var(--ink-soft);
  margin: 0.35rem 0 0;
  font-size: 1rem;
}

.nav {
  margin-top: 1.25rem;
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover { color: var(--accent-ink); }

/* ---- post list (home) ---- */
.post-list { list-style: none; margin: 0; padding: 0; }

.post-list li {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}
.post-list li:last-child { border-bottom: 1px solid var(--line); }

.thumb {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: #f0ece5;
}
.post-body { flex: 1; min-width: 0; }

/* featured image on a single post */
.featured { margin: 0 0 2rem; }
.featured img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

@media (max-width: 480px) {
  .post-list li { flex-direction: column; gap: 0.6rem; }
  .thumb { width: 100%; height: 180px; }
}

.post-list a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.post-list a:hover { color: var(--accent-ink); }

.post-date {
  display: block;
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
  letter-spacing: 0.02em;
}

.post-summary {
  color: var(--ink-soft);
  margin: 0.35rem 0 0;
  font-size: 1rem;
}

/* ---- single article ---- */
.article-meta {
  color: var(--ink-soft);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

.article h1 {
  font-size: 1.9rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 2rem;
}

.article {
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.75;
}
.article p { margin: 0 0 1.4rem; }
.article h2 {
  font-family: var(--sans);
  font-size: 1.25rem;
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.01em;
}
.article a { color: var(--accent-ink); }
.article blockquote {
  margin: 1.8rem 0;
  padding-left: 1.2rem;
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
  font-style: italic;
}
.article code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  background: #f0ece5;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* ---- back link + footer ---- */
.back {
  display: inline-block;
  margin-bottom: 2.5rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.95rem;
}
.back:hover { color: var(--accent-ink); }

.site-foot {
  margin-top: 5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.85rem;
}
.site-foot a { color: var(--ink-soft); }
