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

:root {
  --bg:        #F9F8F5;
  --surface:   #FFFFFF;
  --text:      #1C1C1A;
  --muted:     #6E6E68;
  --border:    #E5E4DE;
  --accent:    #C8623A;
  --accent-lt: #F2E8E2;
  --serif:     'Newsreader', Georgia, serif;
  --sans:      'DM Sans', system-ui, sans-serif;
  --max:       720px;
  --nav-h:     64px;
}

html { font-size: 18px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ─── Nav ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

.nav {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

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

/* ─── Main ─── */
.main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── Hero ─── */
.hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero-title em {
  font-style: italic;
  color: var(--muted);
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.8;
}

/* ─── Post List ─── */
.posts {
  padding: 3rem 0 5rem;
}

.post-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.post-card {
  padding: 0.5rem 0;
  animation: fadeUp 0.5s ease both;
}

.post-card.featured .post-title {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.tag {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-lt);
  padding: 0.2em 0.7em;
  border-radius: 20px;
}

.date {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 300;
}

.post-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.post-title a {
  transition: color 0.2s;
}

.post-title a:hover {
  color: var(--accent);
}

.post-excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.1rem;
  max-width: 600px;
}

.read-more {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  transition: gap 0.2s;
}

.read-more:hover { gap: 0.6em; }

/* ─── Post Page ─── */
.post-hero {
  padding: 4.5rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.post-hero .tag { margin-bottom: 1.5rem; display: inline-block; }

.post-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.post-byline {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  gap: 1.5rem;
}

.post-body {
  padding: 3.5rem 0 5rem;
}

.post-body p {
  margin-bottom: 1.6rem;
  font-size: 1rem;
  line-height: 1.85;
  color: #2A2A27;
}

.post-body h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  margin: 3rem 0 1rem;
  letter-spacing: -0.01em;
}

.post-body h3 {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 2.5rem 0 0.8rem;
}

.post-body blockquote {
  border-left: 2px solid var(--accent);
  margin: 2.5rem 0;
  padding: 0.5rem 0 0.5rem 1.8rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
}

.post-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-body ul, .post-body ol {
  margin: 1.2rem 0 1.6rem 1.5rem;
}

.post-body li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.8;
  color: #2A2A27;
}

.post-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-link {
  font-size: 0.82rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  transition: color 0.2s;
}

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

/* ─── About ─── */
.about-section {
  padding: 5rem 0;
}

.about-section h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 300;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.about-section p {
  font-size: 1rem;
  line-height: 1.85;
  color: #2A2A27;
  margin-bottom: 1.4rem;
  max-width: 600px;
}

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: var(--bg);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-footer p {
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.2s;
}

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

/* ─── Animation ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
  .nav-links { gap: 1.2rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .post-footer { flex-direction: column; gap: 1.5rem; }
}