/* Crate and Cream — Shared Styles */

:root {
  --cream: #faf6f0;
  --warm: #f2ebe0;
  --crust: #c9a87c;
  --ink: #2b2118;
  --ink2: #5a4a3a;
  --muted: #9a8a78;
  --border: #e4d9c8;
  --white: #ffffff;
  --accent: #b5432a;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Lato', sans-serif; background: var(--cream); color: var(--ink); line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* NAV */
nav { background: var(--white); border-bottom: 1px solid var(--border); padding: 0 2rem; position: sticky; top: 0; z-index: 100; }
.nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 70px; }
.nav-logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 600; color: var(--ink); letter-spacing: 0.02em; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 1.75rem; list-style: none; }
.nav-links a { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink2); transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.back-link { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.back-link:hover { color: var(--accent); }

/* CARDS (used on index, category, and any listing page) */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.post-card { border: 1px solid var(--border); border-radius: 3px; overflow: hidden; transition: all 0.2s ease; background: var(--white); }
.post-card:hover { box-shadow: 0 8px 30px rgba(43,33,24,0.1); transform: translateY(-2px); }
.post-thumb { height: 180px; background: var(--warm); overflow: hidden; border-bottom: 1px solid var(--border); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-body { padding: 1.25rem; }
.post-cat { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.4rem; }
.post-title { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 400; color: var(--ink); margin-bottom: 0.5rem; line-height: 1.4; }
.post-date { font-size: 0.75rem; color: var(--muted); }

/* FOOTER */
footer { background: var(--ink); padding: 2.5rem 2rem; text-align: center; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--white); margin-bottom: 0.5rem; }
footer p { font-size: 0.78rem; color: rgba(255,255,255,0.35); }

/* RESPONSIVE */
@media (max-width: 900px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .posts-grid { grid-template-columns: 1fr; } .nav-links { display: none; } }
