/* ============================================
   GRAFFICAL MUSE — Custom Styles
   Vintage, warm, image-forward aesthetic
   ============================================ */

:root {
  --cream: #fdf8f2;
  --warm-white: #fffcf8;
  --ink: #2c2416;
  --ink-light: #5c4f3a;
  --rose: #c4726a;
  --rose-light: #e8a89e;
  --gold: #b8914a;
  --gold-light: #e8d5a3;
  --border: #e8ddd0;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', 'Helvetica Neue', sans-serif;
}

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

body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
}

/* HEADER */
.site-header {
  background-color: var(--warm-white);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.logo { text-decoration: none; display: flex; flex-direction: column; }
.logo-main {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.logo-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
}
.menu { display: flex; gap: 2rem; align-items: center; }
.menu a {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  text-decoration: none;
  transition: color 0.2s;
}
.menu a:hover, .menu a[aria-current="page"] { color: var(--rose); }

/* MAIN */
.main { max-width: 1200px; margin: 0 auto; padding: 2rem; }

/* HOME HERO */
.home-hero {
  text-align: center;
  padding: 5rem 2rem 4rem;
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
}
.home-hero h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.home-hero p {
  font-size: 1.1rem;
  color: var(--ink-light);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.hero-btn {
  display: inline-block;
  background: var(--rose);
  color: white;
  padding: 0.75rem 2rem;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s;
}
.hero-btn:hover { background: var(--ink); }

/* HOME LATEST */
.home-latest { max-width: 1200px; margin: 0 auto; padding: 3rem 2rem; }
.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 2rem;
  text-align: center;
}
.home-more { text-align: center; margin-top: 3rem; }

/* POSTS GRID */
.posts-header {
  text-align: center;
  padding: 2rem 0 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}
.posts-header h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.post-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(44,36,22,0.1);
}
.post-card a { text-decoration: none; color: inherit; display: block; }
.post-card-image {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--gold-light);
}
.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.post-card:hover .post-card-image img { transform: scale(1.03); }
.post-card-body { padding: 1.25rem; }
.post-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.post-card-meta { font-size: 0.75rem; color: var(--ink-light); }
.post-card-cats { color: var(--gold); letter-spacing: 0.05em; }

/* PAGINATION */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}
.pagination a { color: var(--rose); text-decoration: none; }
.pagination a:hover { color: var(--ink); }
.pagination span { color: var(--ink-light); }

/* SINGLE POST */
.single-post { max-width: 780px; margin: 0 auto; padding: 3rem 0; }
.post-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.post-header h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 1rem;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--ink-light);
}
.post-categories { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cat-tag {
  background: var(--gold-light);
  color: var(--ink);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  font-size: 0.75rem;
}
.post-content { font-size: 1rem; line-height: 1.8; color: var(--ink); }
.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border: 1px solid var(--border);
}
.post-content h2, .post-content h3 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 2rem 0 1rem;
}
.post-content p { margin-bottom: 1.25rem; }
.post-content a { color: var(--rose); text-decoration: underline; text-underline-offset: 2px; }
.post-content a:hover { color: var(--ink); }
.post-content div { margin-bottom: 1rem; }
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}
.post-nav a { color: var(--rose); text-decoration: none; max-width: 45%; line-height: 1.4; }
.post-nav a:hover { color: var(--ink); }
.post-nav-next { text-align: right; margin-left: auto; }

/* FOOTER */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  margin-top: 4rem;
  padding: 3rem 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand a {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--cream);
  text-decoration: none;
  display: block;
  margin-bottom: 0.75rem;
}
.footer-brand p { font-size: 0.85rem; line-height: 1.6; }
.footer-nav h4 {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 400;
}
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 0.5rem; }
.footer-nav a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--cream); }
.footer-copy {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  text-align: center;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .home-hero h1 { font-size: 2rem; }
  .posts-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .single-post { padding: 2rem 0; }
  .post-header h1 { font-size: 1.75rem; }
}
