:root {
  --bg: #faf8f3;
  --bg-warm: #f4ede0;
  --text: #2c2018;
  --text-muted: #7a6550;
  --accent: #c8862a;
  --accent-dark: #9e6518;
  --border: #e0d4c0;
  --code-bg: #ede8df;
  --max-w: 760px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 17px; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--accent); }

/* ─── NAV ─── */
nav {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 1.5rem;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--text);
  text-decoration: none;
}
.nav-brand:hover { text-decoration: none; color: var(--accent-dark); }
.nav-brand svg { flex-shrink: 0; }
.nav-links { display: flex; gap: 1.4rem; font-size: 0.95rem; }
.nav-links a { color: var(--text-muted); }
.nav-links a:hover { color: var(--accent-dark); text-decoration: none; }
.nav-links a.active { color: var(--accent-dark); font-weight: 600; }

/* ─── HERO ─── */
.hero {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 1.5rem;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  margin-bottom: 0.6rem;
}
.hero h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.6rem;
}
.hero-img {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.hero-img img { width: 100%; height: 280px; object-fit: cover; display: block; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.95rem;
  text-decoration: none;
}
.btn:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--accent-dark);
  border: 1px solid var(--accent);
  margin-left: 0.75rem;
}
.btn-ghost:hover { background: var(--bg-warm); }

/* ─── MAIN ─── */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

section + section { margin-top: 3rem; }

h2 {
  font-size: 1.45rem;
  margin-bottom: 0.9rem;
  color: var(--text);
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border);
}
h3 { font-size: 1.15rem; margin: 1.6rem 0 0.5rem; color: var(--text); }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0.5rem 0 1rem 1.4rem; }
li { margin-bottom: 0.3rem; }
strong { font-weight: bold; color: var(--text); }
em { font-style: italic; }
hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ─── POST GRID ─── */
.post-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.post-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.15s;
}
.post-card:hover { box-shadow: 0 4px 16px rgba(44,32,24,0.08); }
.post-card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.card-body { padding: 1rem 1.1rem; }
.card-meta {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.card-body h3 { margin: 0 0 0.4rem; font-size: 1rem; }
.card-body p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.6rem; }
.read-more {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.82rem;
  color: var(--accent-dark);
}

/* ─── ARTICLE / BLOG PAGE ─── */
.article-header {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}
.article-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.article-header .category {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.article-header h1 { font-size: 1.85rem; line-height: 1.25; margin-bottom: 0.7rem; }
.article-meta {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.article-cover { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.article-cover img { width: 100%; border-radius: 8px; margin: 2rem 0 0; display: block; border: 1px solid var(--border); }

article.prose { max-width: var(--max-w); margin: 0 auto; padding: 2rem 1.5rem 4rem; }
article.prose h2 { font-size: 1.35rem; margin: 2.2rem 0 0.7rem; }
article.prose blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.5rem 0;
  padding: 0.5rem 1.2rem;
  background: var(--bg-warm);
  font-style: italic;
  color: var(--text-muted);
}
article.prose img { width: 100%; border-radius: 6px; margin: 1.5rem 0; border: 1px solid var(--border); }
article.prose .note {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 1.5rem 0;
}

/* ─── BLOG LIST ─── */
.blog-list { list-style: none; margin: 0; padding: 0; }
.blog-list li { border-bottom: 1px solid var(--border); padding: 1.2rem 0; }
.blog-list li:first-child { padding-top: 0; }
.blog-list .post-date {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}
.blog-list h3 { font-size: 1.05rem; margin: 0 0 0.3rem; }
.blog-list p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ─── ABOUT PAGE ─── */
.about-portrait {
  float: right;
  margin: 0 0 1.5rem 2rem;
  width: 220px;
}
.about-portrait img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.about-portrait figcaption {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.4rem;
}

/* ─── FOOTER ─── */
footer {
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  padding: 1.8rem 1.5rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-links { display: flex; gap: 1.2rem; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--accent-dark); text-decoration: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-img { display: none; }
  .post-grid { grid-template-columns: 1fr; }
  .about-portrait { float: none; margin: 0 0 1.5rem; width: 100%; max-width: 260px; }
  .nav-links { gap: 0.9rem; font-size: 0.88rem; }
}
