@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;1,400&family=DM+Sans:wght@300;400;500&display=swap');

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

:root {
  --sand:     #f5f0e8;
  --sand-mid: #ede6d6;
  --stone:    #c8b89a;
  --earth:    #7a6248;
  --deep:     #3b2f22;
  --moss:     #5a7a52;
  --moss-light: #e8f0e6;
  --text:     #2e2318;
  --muted:    #8a7560;
  --serif:    'Lora', Georgia, serif;
  --sans:     'DM Sans', system-ui, sans-serif;
  --max:      680px;
  --gap:      2rem;
}

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

body {
  background: var(--sand);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.75;
  min-height: 100vh;
}

/* ── Layout ── */
.site-wrapper {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Nav ── */
nav {
  padding: 2rem 0 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--stone);
  margin-bottom: 3.5rem;
}

.nav-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--deep);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

/* ── Page header ── */
.page-header {
  margin-bottom: 3rem;
}

.page-header h1 {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--deep);
  margin-bottom: 0.75rem;
}

.page-header .subtitle {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 300;
}

/* ── Home hero ── */
.hero {
  padding: 3rem 0 4rem;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--moss);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--deep);
  margin-bottom: 1.5rem;
  max-width: 560px;
}

.hero h1 em {
  font-style: italic;
  color: var(--earth);
}

.hero p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  background: var(--earth);
  color: var(--sand);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 2px;
  transition: background 0.2s;
}

.btn:hover { background: var(--deep); }

.btn-ghost {
  background: transparent;
  color: var(--earth);
  border: 1px solid var(--stone);
  margin-left: 0.75rem;
}

.btn-ghost:hover { background: var(--sand-mid); color: var(--deep); }

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--sand-mid);
  margin: 3rem 0;
}

/* ── Section label ── */
.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

/* ── Post list (home + blog) ── */
.post-list {
  list-style: none;
}

.post-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--sand-mid);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
}

.post-item:first-child { border-top: 1px solid var(--sand-mid); }

.post-item a {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--deep);
  text-decoration: none;
  transition: color 0.2s;
}

.post-item a:hover { color: var(--earth); }

.post-item .post-meta {
  font-size: 0.8rem;
  color: var(--stone);
  white-space: nowrap;
}

.post-excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.3rem;
  grid-column: 1;
}

/* ── About page ── */
.about-grid {
  display: grid;
  gap: 3rem;
}

.about-text p {
  margin-bottom: 1.25rem;
  color: var(--text);
  line-height: 1.85;
}

.about-text p:last-child { margin-bottom: 0; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--moss-light);
  color: var(--moss);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 2px;
  letter-spacing: 0.02em;
}

/* ── Blog post page ── */
.post-body {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text);
}

.post-body h2 {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--deep);
  margin: 2.5rem 0 1rem;
  font-family: var(--serif);
}

.post-body p { margin-bottom: 1.4rem; }

.post-body blockquote {
  border-left: 2px solid var(--stone);
  padding-left: 1.25rem;
  color: var(--muted);
  font-style: italic;
  margin: 2rem 0;
}

/* ── Contact ── */
.contact-section {
  padding: 1rem 0 2rem;
}

.contact-section p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 460px;
}

.contact-link {
  color: var(--earth);
  text-decoration: none;
  font-weight: 400;
  border-bottom: 1px solid var(--stone);
  transition: border-color 0.2s;
}

.contact-link:hover { border-color: var(--earth); }

/* ── Footer ── */
footer {
  margin-top: 5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--sand-mid);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--stone);
}

footer a { color: var(--stone); text-decoration: none; }
footer a:hover { color: var(--earth); }

/* ── Responsive ── */
@media (max-width: 520px) {
  nav { flex-direction: column; gap: 1rem; }
  .post-item { grid-template-columns: 1fr; }
  .post-item .post-meta { display: none; }
  footer { flex-direction: column; gap: 0.5rem; text-align: center; }
}
