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

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #2c2c2a;
  background: #fafaf8;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

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

/* HEADER */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e8e6e0;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a18;
  white-space: nowrap;
}
.main-nav { display: flex; gap: 24px; }
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: #555;
  transition: color 0.2s;
}
.main-nav a:hover { color: #b87333; }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; }

/* AD BANNER */
.ad-banner { margin: 16px auto; }
.ad-placeholder {
  background: #f0ece4;
  border: 1px dashed #ccc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 12px;
  min-height: 90px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sidebar-ad { min-height: 250px; margin-bottom: 24px; }

/* HERO */
.hero { margin: 32px auto; }
.hero-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8e6e0;
  min-height: 420px;
}
.hero-image {
  background-color: #d4c9b8;
  background-size: cover;
  background-position: center;
  min-height: 300px;
}
.hero-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.hero-content h1 { font-size: 2rem; line-height: 1.3; }
.hero-content h1 a:hover { color: #b87333; }
.excerpt { color: #666; font-size: 15px; }

/* TAGS */
.tag {
  display: inline-block;
  background: #f5efe6;
  color: #b87333;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 20px;
}

/* POST META */
.post-meta { font-size: 13px; color: #999; }

/* BUTTONS */
.btn-read {
  display: inline-block;
  background: #2c2c2a;
  color: #fff;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 8px;
  transition: background 0.2s;
  width: fit-content;
}
.btn-read:hover { background: #b87333; }
.btn-outline {
  display: inline-block;
  border: 1.5px solid #2c2c2a;
  color: #2c2c2a;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-outline:hover { background: #2c2c2a; color: #fff; }
.btn-sm {
  font-size: 13px;
  color: #b87333;
  font-weight: 500;
}
.btn-sm:hover { text-decoration: underline; }

/* MAIN LAYOUT */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  margin: 40px auto;
  align-items: start;
}
.section-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0ece4;
}
.section-sub { color: #888; font-size: 14px; margin-top: -16px; margin-bottom: 28px; }

/* POSTS GRID */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.post-card {
  background: #fff;
  border: 1px solid #e8e6e0;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.post-thumb {
  height: 160px;
  background-color: #e0dcd4;
  background-size: cover;
  background-position: center;
}
.post-info { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.post-info h3 { font-size: 1rem; line-height: 1.4; }
.post-info h3 a:hover { color: #b87333; }
.post-info p { font-size: 13px; color: #777; }
.load-more { text-align: center; margin-top: 36px; }

/* SIDEBAR */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget {
  background: #fff;
  border: 1px solid #e8e6e0;
  border-radius: 12px;
  padding: 20px;
}
.widget h4 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0ece4;
}
.widget p { font-size: 13px; color: #666; margin-bottom: 12px; }
.popular-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.popular-list a { font-size: 13px; color: #444; border-bottom: 1px solid #f0ece4; padding-bottom: 10px; display: block; }
.popular-list a:hover { color: #b87333; }
.newsletter-widget input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 10px;
  font-family: 'Inter', sans-serif;
}
.newsletter-widget button {
  width: 100%;
  background: #b87333;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Inter', sans-serif;
}
.newsletter-widget button:hover { background: #9a5f28; }

/* AFFILIATE SECTION */
.affiliate-section {
  background: #fff;
  border-top: 1px solid #e8e6e0;
  border-bottom: 1px solid #e8e6e0;
  padding: 56px 0;
  margin: 48px 0;
}
.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.affiliate-card {
  background: #fafaf8;
  border: 1px solid #e8e6e0;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: transform 0.2s;
}
.affiliate-card:hover { transform: translateY(-2px); }
.aff-icon { font-size: 32px; margin-bottom: 12px; }
.affiliate-card h4 { font-size: 1rem; margin-bottom: 8px; }
.affiliate-card p { font-size: 13px; color: #777; margin-bottom: 16px; }
.btn-aff {
  display: inline-block;
  background: #b87333;
  color: #fff;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-aff:hover { background: #9a5f28; }

/* FOOTER */
.site-footer {
  background: #1a1a18;
  color: #aaa;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer .logo { color: #fff; margin-bottom: 12px; display: block; }
.site-footer p { font-size: 13px; }
.site-footer h5 { color: #fff; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer ul a { font-size: 13px; color: #aaa; transition: color 0.2s; }
.site-footer ul a:hover { color: #e8c98a; }
.social-links { display: flex; flex-direction: column; gap: 10px; }
.social-links a { font-size: 13px; color: #aaa; }
.social-links a:hover { color: #e8c98a; }
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: #666;
}

/* SINGLE POST PAGE */
.post-header { padding: 48px 0 32px; border-bottom: 1px solid #e8e6e0; background: #fff; }
.post-header .container { max-width: 800px; }
.post-header h1 { font-size: 2.4rem; line-height: 1.3; margin: 16px 0; }
.post-header .excerpt { font-size: 1.1rem; color: #666; }
.post-featured-image { width: 100%; max-width: 800px; margin: 0 auto; height: 400px; background: #d4c9b8; border-radius: 0 0 12px 12px; }
.post-body { max-width: 800px; margin: 40px auto; padding: 0 20px; }
.post-body p { margin-bottom: 1.5rem; font-size: 1.05rem; color: #3a3a38; }
.post-body h2 { margin: 2rem 0 1rem; font-size: 1.6rem; }
.post-body h3 { margin: 1.5rem 0 0.75rem; font-size: 1.3rem; }
.post-body ul, .post-body ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.post-body li { margin-bottom: 0.5rem; }
.post-body blockquote {
  border-left: 4px solid #b87333;
  padding: 16px 24px;
  background: #faf5ee;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #666;
}

/* IN-POST AD */
.in-post-ad { margin: 32px 0; }

/* ABOUT & CONTACT PAGES */
.page-hero { background: #fff; border-bottom: 1px solid #e8e6e0; padding: 64px 0; text-align: center; }
.page-hero h1 { font-size: 2.5rem; margin-bottom: 16px; }
.page-hero p { color: #666; max-width: 600px; margin: 0 auto; }
.page-content { max-width: 800px; margin: 48px auto; padding: 0 20px; }
.page-content p { margin-bottom: 1.5rem; color: #444; font-size: 1.05rem; }
.contact-form { background: #fff; border: 1px solid #e8e6e0; border-radius: 16px; padding: 40px; margin-top: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
}
.form-group textarea { height: 140px; resize: vertical; }
.form-submit {
  background: #b87333;
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.form-submit:hover { background: #9a5f28; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-card { grid-template-columns: 1fr; }
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .affiliate-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .main-nav.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; padding: 20px; border-bottom: 1px solid #eee; z-index: 99; }
  .posts-grid { grid-template-columns: 1fr; }
  .affiliate-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 24px; }
  .hero-content h1 { font-size: 1.5rem; }
  .sidebar { grid-template-columns: 1fr; }
}
