:root {
  --color-bg: #FAF8F5;
  --color-surface: #FFFFFF;
  --color-text: #1C1917;
  --color-text-muted: #6B6259;
  --color-gold: #B8862E;
  --color-gold-dark: #8C6520;
  --color-black: #111111;
  --color-border: #E8E1D6;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(17,17,17,0.06);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.25; margin: 0 0 .5em; }

/* Header */
.site-header { background: var(--color-black); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; position: relative; }
.logo { font-family: var(--font-heading); font-size: 22px; color: #fff; display: flex; align-items: baseline; gap: 6px; }
.logo span { color: var(--color-gold); }
.logo small { font-family: var(--font-body); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--color-gold); margin-left: 4px; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav > a { color: #EDEAE4; font-weight: 500; font-size: 15px; }
.main-nav > a:hover { color: var(--color-gold); }
.nav-dropdown { position: relative; color: #EDEAE4; font-size: 15px; cursor: pointer; }
.nav-dropdown .dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 240px;
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; margin-top: 14px;
}
.nav-dropdown:hover .dropdown-menu, .nav-dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 10px 14px; border-radius: 6px; color: var(--color-text); font-size: 14px; }
.dropdown-menu a:hover { background: #F5F0E8; color: var(--color-gold-dark); }
.btn-store {
  display: inline-block; background: var(--color-gold); color: #fff !important; padding: 10px 20px;
  border-radius: 999px; font-weight: 600; font-size: 14px; border: none; cursor: pointer;
}
.btn-store:hover { background: var(--color-gold-dark); }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; }

/* Hero */
.hero { background: linear-gradient(135deg, #16140F, #26211a); color: #fff; padding: 72px 0 56px; text-align: center; }
.hero h1 { font-size: 40px; color: #fff; max-width: 720px; margin: 0 auto .4em; }
.hero p { color: #C9C2B4; max-width: 600px; margin: 0 auto; font-size: 17px; }

.category-hero { background: linear-gradient(135deg, #16140F, #26211a); color: #fff; padding: 56px 0 40px; }
.category-hero h1 { color: #fff; }
.category-hero p { color: #C9C2B4; max-width: 640px; }
.category-hero .breadcrumb { color: #9C9384; font-size: 13px; margin-bottom: 12px; }
.category-hero .breadcrumb a { color: #C9C2B4; }
.category-hero .btn-store { margin-top: 18px; }

/* Post grid */
.post-grid-section { padding: 56px 0; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { background: var(--color-surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease; }
.post-card:hover { transform: translateY(-4px); }
.post-card-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #EEE; }
.post-card-body { padding: 20px; }
.post-category-tag { display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--color-gold-dark); margin-bottom: 8px; }
.post-card h2 { font-size: 19px; margin-bottom: 8px; }
.post-card h2 a:hover { color: var(--color-gold-dark); }
.post-card p { color: var(--color-text-muted); font-size: 14.5px; margin: 0 0 12px; }
.post-meta { font-size: 13px; color: var(--color-text-muted); }
.post-card--featured { grid-column: span 3; display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch; }
.post-card--featured .post-card-img img { height: 100%; aspect-ratio: auto; }
.post-card--featured .post-card-body { display: flex; flex-direction: column; justify-content: center; padding: 32px; }
.post-card--featured h2 { font-size: 28px; }

.empty-state { text-align: center; color: var(--color-text-muted); padding: 40px 0; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 44px; font-size: 14px; }
.pagination .page-link { color: var(--color-gold-dark); font-weight: 600; }
.pagination .page-current { color: var(--color-text-muted); }

/* Single post */
.post-single { padding: 48px 0 72px; }
.post-single-inner { max-width: 760px; }
.post-single h1 { font-size: 34px; margin-top: 6px; }
.post-single .breadcrumb { font-size: 13px; color: var(--color-text-muted); }
.post-single .breadcrumb a { color: var(--color-gold-dark); }
.post-single-img { width: 100%; border-radius: var(--radius); margin: 24px 0; aspect-ratio: 16/9; object-fit: cover; }
.post-content { font-size: 17px; }
.post-content p { margin: 0 0 1.2em; }
.post-content h2 { font-size: 24px; margin-top: 1.6em; }
.post-content h3 { font-size: 20px; margin-top: 1.4em; }
.post-content img { border-radius: var(--radius); margin: 1.4em 0; }
.post-content blockquote { border-left: 3px solid var(--color-gold); margin: 1.4em 0; padding: 4px 20px; color: var(--color-text-muted); font-style: italic; }
.post-content a { color: var(--color-gold-dark); text-decoration: underline; }

.post-cta { background: #F5F0E8; border-radius: var(--radius); padding: 28px; margin: 40px 0; text-align: center; }
.post-cta p { margin-bottom: 14px; }

.related-posts { margin-top: 56px; }
.related-posts .post-grid { grid-template-columns: repeat(3, 1fr); }

/* Footer */
.site-footer { background: var(--color-black); color: #C9C2B4; margin-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 56px 20px 32px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a:hover { color: var(--color-gold); }
.footer-col p { font-size: 14px; margin: 10px 0 18px; }
.footer-bottom { padding: 18px 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; text-align: center; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.alert-ok { background: #E4F3E5; color: #1E7A32; }
.alert-error { background: #FBE7E4; color: #B3261E; }

/* Responsive */
@media (max-width: 860px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card--featured { grid-column: span 2; grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--color-black); flex-direction: column; align-items: flex-start; padding: 12px 20px; display: none; gap: 14px; }
  .main-nav.open { display: flex; }
  .nav-dropdown .dropdown-menu { position: static; box-shadow: none; margin-top: 6px; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card--featured { grid-column: span 1; }
  .hero h1 { font-size: 28px; }
  .post-single h1 { font-size: 26px; }
}
