:root {
  --primary-color: #FFB6C1;
  --secondary-color: #F5EFE7;
  --text-color: #333;
  --cream-bg: #F8F4EE;
  --accent-brown: #8B6F47;
  --muted: #777;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--cream-bg);
}

a { color: var(--accent-brown); }

.site-header {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.site-header .inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.site-header .logo {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent-brown);
  text-decoration: none;
}
.site-header nav a {
  text-decoration: none;
  margin-inline-start: 1rem;
  font-weight: 600;
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 16px 3rem;
}

.post {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.post h1 {
  color: var(--accent-brown);
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}
.post .meta {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
.post h2 {
  color: var(--accent-brown);
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem;
}
.post p, .post li {
  line-height: 1.8;
  color: #555;
  margin-bottom: 1.2rem;
}
.post ul, .post ol { padding-inline-start: 1.5rem; margin-bottom: 1.2rem; }
.post li { margin-bottom: 0.5rem; }
.post .tip {
  font-style: italic;
  background: var(--secondary-color);
  padding: 1.5rem;
  border-radius: 10px;
}
.post .cta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
  color: var(--muted);
}

.back { display: inline-block; margin-top: 2rem; font-weight: 600; text-decoration: none; }

/* Archive */
.archive h1 {
  text-align: center;
  color: var(--accent-brown);
  margin-bottom: 2rem;
}
.post-card {
  display: block;
  background: white;
  padding: 1.75rem 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  margin-bottom: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.post-card h2 { color: var(--accent-brown); font-size: 1.4rem; margin-bottom: 0.25rem; }
.post-card .meta { color: #999; font-size: 0.85rem; margin-bottom: 0.75rem; }
.post-card p { color: #666; line-height: 1.7; }
.post-card .more { color: var(--accent-brown); font-weight: 600; margin-top: 0.5rem; display: inline-block; }

/* Gift pattern signup (filled in by /gift-form.js) */
.gift-box {
  margin-top: 2.5rem;
  background: linear-gradient(135deg, #fff 0%, var(--secondary-color) 100%);
  border: 2px dashed var(--primary-color);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
}

footer {
  text-align: center;
  color: var(--muted);
  padding: 2rem 16px;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .post { padding: 1.5rem; }
  .post h1 { font-size: 1.6rem; }
  .site-header nav a { margin-inline-start: 0.6rem; font-size: 0.95rem; }
}
