/* =========================================================
   Tale-like, content-first typography (pure CSS)
   ========================================================= */

:root {
  --bg: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --link: #111827;
  --rule: #e5e7eb;

  --max-width: 720px;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f19;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --link: #e5e7eb;
    --rule: #1f2937;
  }
}

/* Base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.75;
}

/* Layout */
.wrap {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

main.wrap {
  padding: 2.5rem 0 3rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.25rem 0;
}

.brand {
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

.nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover { color: var(--text); }

/* Hero */
.hero h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  margin: 0 0 0.25rem;
}

.lede {
  margin: 0 0 2rem;
  color: var(--muted);
  text-align: justify;
}

/* Post list (index) */
.posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.posts li {
  display: flex;
  gap: 1.25rem;
  align-items: baseline;
  padding: 0.35rem 0;
}

.posts time {
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
}

.posts a {
  color: var(--link);
  text-decoration: none;
}

.posts a:hover { text-decoration: underline; }

/* Post page */
.post-head h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

.post-meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.tag {
  display: inline-block;
  padding: 0.05rem 0.55rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
}

.tag:hover { color: var(--text); }

/* Prose */
.prose p { 
  margin: 1rem 0; 
  text-align: justify;

}

.prose h2 {
  font-size: 1.35rem;
  margin: 2.25rem 0 0.75rem;
  line-height: 1.3;
}

.prose ul { padding-left: 1.25rem; }

.prose a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.prose blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--rule);
  color: var(--muted);
}

pre {
  padding: 1rem;
  border: 1px solid var(--rule);
  overflow-x: auto;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer a { color: inherit; }

/* Banner image (only) 
<img class="banner-img" src="banner.jpg" alt="Banner">
*/
.banner-img {
  display: block;
  width: 100%;
  max-width: var(--max-width); /* 720px */
  height: auto;
  margin: 1.5rem auto;         /* center + spacing */
}
