:root {
  --black: #1a1a1a;
  --red: #bb0000;
  --green: #006600;
  --cream: #fdf6ec;
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --card-bg: #ffffff;
  --border: #e6ddcc;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--black);
  border-bottom: 4px solid var(--red);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}

.logo {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
}

.logo span { color: var(--red); }

nav a {
  color: #eee;
  text-decoration: none;
  margin-left: 24px;
  font-weight: 500;
}

nav a:hover { color: var(--red); }

/* Hero */
.hero {
  text-align: center;
  padding: 60px 0 30px;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 8px;
  color: var(--black);
}

.hero p {
  color: var(--muted);
  font-size: 1.1rem;
}

/* Post grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  padding: 20px 0 60px;
}

.post-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.post-card a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.post-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--border);
}

.post-card-body {
  padding: 18px;
}

.post-card-body h2 {
  font-size: 1.15rem;
  margin: 0 0 6px;
}

.meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 10px;
}

.read-more {
  color: var(--red);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Single post */
.single-post {
  padding: 40px 0 60px;
}

.post-hero-img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--border);
  margin-bottom: 24px;
}

.single-post h1 {
  margin-bottom: 4px;
}

.post-content p {
  margin: 18px 0;
  font-size: 1.05rem;
}

.back-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
}

/* Generic page content (about/404) */
.page-content {
  padding: 50px 0;
  max-width: 700px;
}

.page-content h1 {
  margin-bottom: 16px;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}

.contact-form label {
  font-weight: 600;
  margin-top: 12px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

.contact-form button {
  margin-top: 20px;
  padding: 12px 20px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
}

.contact-form button:hover {
  background: #950000;
}

.alert {
  padding: 14px 16px;
  border-radius: 6px;
  margin-top: 20px;
  font-weight: 500;
}

.alert-success {
  background: #e5f3e5;
  color: var(--green);
  border: 1px solid #b9dfb9;
}

.alert-error {
  background: #fdeaea;
  color: var(--red);
  border: 1px solid #f3bcbc;
}

/* Footer */
.site-footer {
  background: var(--black);
  color: #ccc;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  font-size: 0.9rem;
}
