/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #faf9f7;
  --text: #2c2c2c;
  --muted: #6b6b6b;
  --accent: #8b4513;
  --accent-light: #d4a574;
  --border: #e0ddd8;
  --max-width: 720px;
}

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

/* ---- Header ---- */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 2rem;
}

.site-header nav {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-header ul {
  list-style: none;
  display: flex;
  gap: 1.8rem;
}

.site-header a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.site-header a:hover {
  color: var(--accent);
}

/* ---- Main ---- */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

/* ---- Typography ---- */
h1 { font-size: 2rem; line-height: 1.2; margin-bottom: 1rem; font-weight: 700; }
h2 { font-size: 1.4rem; margin-top: 2.5rem; margin-bottom: 0.8rem; color: var(--accent); font-weight: 600; }
h3 { font-size: 1.15rem; margin-top: 2rem; margin-bottom: 0.6rem; }
p { margin-bottom: 1.2rem; }
blockquote {
  border-left: 3px solid var(--accent-light);
  padding: 0.5rem 1.2rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-style: italic;
}
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}
a { color: var(--accent); }
ul, ol { margin-bottom: 1.2rem; padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; }

/* ---- Home ---- */
.home-intro {
  margin-bottom: 3rem;
}

.home-intro .tagline {
  font-size: 1.1rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 2rem;
}

.home-sections {
  display: grid;
  gap: 1.5rem;
}

.home-card {
  border: 1px solid var(--border);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.home-card:hover {
  border-color: var(--accent-light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.home-card h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.home-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---- Posts / Reflections ---- */
.post header { margin-bottom: 2rem; }
.post time { color: var(--muted); font-size: 0.9rem; }

.post-list { list-style: none; padding: 0; }
.post-list li {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
}
.post-list li:last-child { border-bottom: none; }
.post-list a { text-decoration: none; }
.post-list h3 { margin: 0 0 0.3rem; font-size: 1.15rem; }
.post-list time { color: var(--muted); font-size: 0.85rem; }
.post-list p { color: var(--muted); font-size: 0.9rem; margin: 0.4rem 0 0; }

/* ---- Chapters ---- */
.chapter-label {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.3rem;
}

.chapter-body {
  margin-top: 2rem;
}

.chapter-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.chapter-nav a {
  text-decoration: none;
  font-size: 0.95rem;
}

.chapter-list {
  list-style: none;
  padding: 0;
}

.chapter-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.chapter-list li:last-child { border-bottom: none; }

.chapter-list a {
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.chapter-list a:hover { color: var(--accent); }

.chapter-list .num {
  font-size: 0.85rem;
  color: var(--muted);
  min-width: 1.5rem;
}

/* ---- Process ---- */
.process-section {
  margin-bottom: 2.5rem;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  h1 { font-size: 1.6rem; }
  main { padding: 2rem 1rem 3rem; }
  .site-header { padding: 1rem; }
  .site-header nav { gap: 0.5rem; }
  .site-header ul { gap: 1rem; }
}
