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

:root {
  --cream: #faf8f5;
  --warm-white: #f4f0ea;
  --sand: #e8e2d9;
  --taupe: #c4b8a8;
  --brown: #8a7968;
  --dark: #2c2a27;
  --text-muted: #6b6256;
  --serif: 'Georgia', 'Times New Roman', serif;
  --sans: 'Helvetica Neue', Arial, sans-serif;
  --maxw: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--brown); }

/* ---------- NAV ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 3rem;
  background: rgba(250,248,245,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(196,184,168,0.3);
}
.logo {
  font-size: 1.2rem; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; color: var(--dark);
}
.nav-links { display: flex; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--text-muted);
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; margin-left: 2rem; transition: color 0.2s;
}
.nav-links a:hover { color: var(--dark); }
.nav-pinterest {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #e60023; color: white !important; padding: 0.5rem 1.1rem; border-radius: 2px;
}
.nav-pinterest:hover { background: #c0001e !important; }
.nav-toggle {
  display: none; background: none; border: 0; font-size: 1.4rem;
  color: var(--dark); cursor: pointer;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 2rem; font-family: var(--sans); font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: all 0.2s;
}
.btn-light { background: white; color: var(--dark); }
.btn-light:hover { background: var(--cream); }
.btn-dark { background: var(--dark); color: white; }
.btn-dark:hover { background: #43403b; }
.btn-outline { border-color: var(--taupe); color: var(--dark); background: transparent; }
.btn-outline:hover { background: var(--warm-white); }
.btn-pinterest { background: #e60023; color: white; }
.btn-pinterest:hover { background: #c0001e; }

/* ---------- SHARED ---------- */
.section-label {
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--brown); margin-bottom: 0.9rem;
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head h2 { font-size: 2.2rem; font-weight: normal; }
.home-section { max-width: var(--maxw); margin: 5.5rem auto; padding: 0 3rem; }
.section-more { text-align: center; margin-top: 3rem; }
.empty-note { text-align: center; color: var(--text-muted); font-family: var(--sans); }

/* ---------- HERO ---------- */
.hero { position: relative; height: 88vh; min-height: 560px; overflow: hidden; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(44,42,39,0.15) 0%, rgba(44,42,39,0) 40%, rgba(44,42,39,0.55) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 5rem 4rem;
}
.hero-tag {
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: rgba(255,255,255,0.78); margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: normal; color: white; line-height: 1.1; max-width: 700px; margin-bottom: 1.3rem; }
.hero p { font-family: var(--sans); font-size: 1rem; color: rgba(255,255,255,0.85); max-width: 480px; line-height: 1.7; margin-bottom: 2rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- POST GRID / CARDS ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: var(--maxw); margin: 0 auto; }
.post-card {
  text-decoration: none; color: var(--dark); background: white;
  border: 1px solid var(--sand); display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(44,42,39,0.08); }
.post-card-img { aspect-ratio: 4/3; overflow: hidden; background: var(--sand); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post-card-cat { font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brown); margin-bottom: 0.6rem; }
.post-card-body h3 { font-size: 1.25rem; font-weight: normal; line-height: 1.3; margin-bottom: 0.6rem; }
.post-card-body p { font-family: var(--sans); font-size: 0.86rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
.post-card-date { font-family: var(--sans); font-size: 0.72rem; color: var(--taupe); margin-top: 1rem; }

/* ---------- STYLES / CATEGORIES ---------- */
.styles-section { background: var(--warm-white); max-width: none; padding: 5.5rem 3rem; margin: 0; }
.styles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; max-width: var(--maxw); margin: 0 auto; }
.styles-grid.wide { grid-template-columns: repeat(3, 1fr); }
.style-card {
  text-decoration: none; color: var(--dark); background: white; border: 1px solid var(--sand);
  padding: 1.8rem 1.5rem; display: flex; flex-direction: column; gap: 0.4rem; transition: all 0.2s;
}
.style-card:hover { border-color: var(--taupe); transform: translateY(-2px); }
.style-card-name { font-size: 1.05rem; text-transform: capitalize; }
.style-card-count { font-family: var(--sans); font-size: 0.74rem; color: var(--text-muted); }

/* ---------- SINGLE POST ---------- */
.post { max-width: 720px; margin: 7rem auto 4rem; padding: 0 1.5rem; }
.post-header { text-align: center; margin-bottom: 2rem; }
.post-cats { margin-bottom: 1rem; }
.post-cats a {
  font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brown); text-decoration: none; margin: 0 0.4rem;
}
.post-header h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: normal; line-height: 1.2; margin-bottom: 1rem; }
.post-meta { font-family: var(--sans); font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.04em; }
.post-hero { width: 100%; aspect-ratio: 16/9; object-fit: cover; margin-bottom: 2.5rem; }
.post-body { font-size: 1.12rem; line-height: 1.85; }
.post-body p { margin-bottom: 1.5rem; }
.post-body h2 { font-size: 1.7rem; font-weight: normal; margin: 2.6rem 0 1rem; }
.post-body h3 { font-size: 1.3rem; font-weight: normal; margin: 2rem 0 0.8rem; }
.post-body ul, .post-body ol { margin: 0 0 1.5rem 1.4rem; }
.post-body li { margin-bottom: 0.6rem; }
.post-body img { margin: 2rem auto; }
.post-body a { color: var(--brown); text-underline-offset: 3px; }
.post-body blockquote {
  border-left: 3px solid var(--taupe); padding: 0.4rem 0 0.4rem 1.5rem;
  margin: 2rem 0; font-style: italic; color: var(--text-muted);
}
.post-body hr { border: 0; border-top: 1px solid var(--sand); margin: 2.5rem 0; }
.post-footer { text-align: center; margin: 3rem 0 1rem; }

/* Affiliate call-out box (use in Markdown via raw HTML) */
.affiliate-box {
  background: var(--warm-white); border: 1px solid var(--sand); border-left: 3px solid var(--brown);
  padding: 1.4rem 1.6rem; margin: 2rem 0; font-family: var(--sans); font-size: 0.95rem;
}
.affiliate-box strong { display: block; margin-bottom: 0.3rem; }

/* ---------- AD SLOTS ---------- */
.ad-slot {
  max-width: var(--maxw); margin: 3rem auto; min-height: 90px;
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, var(--warm-white), var(--warm-white) 10px, var(--cream) 10px, var(--cream) 20px);
  border: 1px dashed var(--taupe);
}
.post .ad-slot, .post-body .ad-slot { margin: 2.5rem 0; }
.ad-slot-label { font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--taupe); }

/* ---------- NEWSLETTER ---------- */
.newsletter { background: var(--dark); color: white; text-align: center; padding: 5rem 2rem; margin-top: 5.5rem; }
.newsletter .section-label { color: var(--taupe); }
.newsletter h2 { font-size: 2rem; font-weight: normal; margin-bottom: 0.8rem; }
.newsletter-sub { font-family: var(--sans); font-size: 0.95rem; color: rgba(255,255,255,0.65); max-width: 460px; margin: 0 auto 2rem; }
.newsletter-form { display: flex; gap: 0.6rem; max-width: 440px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.newsletter-form input {
  flex: 1; min-width: 200px; padding: 0.9rem 1rem; border: 1px solid var(--brown);
  background: rgba(255,255,255,0.06); color: white; font-family: var(--sans); font-size: 0.9rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }

/* ---------- LIST PAGES ---------- */
.list-page { max-width: var(--maxw); margin: 8rem auto 3rem; padding: 0 3rem; }
.list-header { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.list-header h1 { font-size: 2.6rem; font-weight: normal; text-transform: capitalize; margin-bottom: 0.8rem; }
.list-intro { font-family: var(--sans); font-size: 0.98rem; color: var(--text-muted); line-height: 1.7; }

/* ---------- FOOTER ---------- */
footer { text-align: center; padding: 3rem 2rem; border-top: 1px solid var(--sand); }
.footer-brand { font-size: 1rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links { font-family: var(--sans); font-size: 0.8rem; margin-bottom: 1rem; }
.footer-links a { color: var(--brown); text-decoration: none; }
.footer-links a:hover { color: var(--dark); }
.footer-fine { font-family: var(--sans); font-size: 0.72rem; color: var(--taupe); letter-spacing: 0.04em; }
.footer-affiliate { margin-top: 0.5rem; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; right: 0; left: 0; flex-direction: column; align-items: flex-start;
    background: var(--cream); border-bottom: 1px solid var(--sand); padding: 1rem 1.5rem; gap: 0.4rem;
    display: none;
  }
  body.nav-open .nav-links { display: flex; }
  .nav-links a { margin-left: 0; padding: 0.5rem 0; }
  .hero-overlay { padding: 3rem 2rem; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .styles-grid, .styles-grid.wide { grid-template-columns: 1fr 1fr; }
  .home-section, .list-page { padding: 0 1.5rem; }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .styles-grid, .styles-grid.wide { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 1.8rem; }
}
