/* ============================================
   MY BLOG — style.css
   A warm editorial aesthetic
   ============================================ */

/* --- CSS Variables (your color palette) --- */
:root {
  --cream:     #faf7f2;
  --dark:      #1a1410;
  --brown:     #6b4226;
  --gold:      #c9a96e;
  --muted:     #7a6a5a;
  --light-bg:  #f2ede6;
  --white:     #ffffff;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --max-width: 1100px;
  --radius:    12px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   HEADER & NAV
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(107, 66, 38, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.5px;
}
.logo span { color: var(--brown); }

.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
  letter-spacing: 0.3px;
}
.nav-links a:hover,
.nav-links a.active { color: var(--brown); }

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--light-bg);
  padding: 16px 24px;
}
.mobile-menu ul { display: flex; flex-direction: column; gap: 16px; }
.mobile-menu a { font-weight: 500; color: var(--dark); }
.mobile-menu.open { display: block; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(201,169,110,0.18) 0%, transparent 65%),
              radial-gradient(ellipse at 20% 80%, rgba(107,66,38,0.08) 0%, transparent 55%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 680px;
  animation: fadeUp 0.8s ease both;
}

.hero-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid var(--gold);
  border-radius: 50px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.18;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 24px;
  letter-spacing: -1px;
}
.hero-title em {
  font-style: italic;
  color: var(--brown);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 36px;
  font-weight: 300;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 24px;
  right: 24px;
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--muted);
  opacity: 0.6;
  writing-mode: horizontal-tb;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-block;
  background: var(--brown);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--dark); transform: translateY(-2px); }

.btn-secondary {
  display: inline-block;
  border: 1.5px solid var(--brown);
  color: var(--brown);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}
.btn-secondary:hover { background: var(--brown); color: var(--white); }

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 80px 0; }

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 48px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.see-all {
  font-size: 0.9rem;
  color: var(--brown);
  font-weight: 500;
  transition: letter-spacing 0.2s;
}
.see-all:hover { letter-spacing: 0.5px; }

/* ============================================
   POSTS GRID
   ============================================ */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 28px;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(107,66,38,0.1);
  transition: transform 0.25s, box-shadow 0.25s;
  animation: fadeUp 0.6s ease both;
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(26,20,16,0.1);
}

/* Featured card spans both columns */
.featured-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.featured-card .post-image { min-height: 280px; }

.post-image {
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: flex-start;
  padding: 16px;
}

.post-category {
  background: rgba(255,255,255,0.9);
  color: var(--brown);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
}

.post-body {
  padding: 24px 28px;
}

.post-date {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.post-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
}
.post-title a { transition: color 0.2s; }
.post-title a:hover { color: var(--brown); }

.post-excerpt {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 18px;
  line-height: 1.6;
}

.read-more {
  font-size: 0.85rem;
  color: var(--brown);
  font-weight: 500;
  transition: letter-spacing 0.2s;
}
.read-more:hover { letter-spacing: 0.5px; }

/* ============================================
   ABOUT STRIP
   ============================================ */
.about-strip {
  background: var(--light-bg);
  padding: 60px 0;
  border-top: 1px solid rgba(107,66,38,0.1);
  border-bottom: 1px solid rgba(107,66,38,0.1);
}

.about-strip-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-avatar {
  font-size: 4rem;
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
}

.about-text h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.about-text h3 em { color: var(--brown); font-style: italic; }

.about-text p {
  color: var(--muted);
  font-weight: 300;
  max-width: 480px;
  margin-bottom: 20px;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter {
  padding: 80px 0;
  background: var(--dark);
}

.newsletter-inner {
  text-align: center;
}

.newsletter h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 12px;
}

.newsletter p {
  color: rgba(255,255,255,0.5);
  font-weight: 300;
  margin-bottom: 32px;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.newsletter-form input {
  padding: 14px 22px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  width: 300px;
  outline: none;
  transition: border 0.2s;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-form input:focus { border-color: var(--gold); }

.newsletter-form button {
  padding: 14px 30px;
  border-radius: 50px;
  border: none;
  background: var(--gold);
  color: var(--dark);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: #e0b870; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #100d0a;
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}
.footer-logo span { color: var(--gold); }

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.post-card:nth-child(1) { animation-delay: 0.1s; }
.post-card:nth-child(2) { animation-delay: 0.2s; }
.post-card:nth-child(3) { animation-delay: 0.3s; }

/* ============================================
   RESPONSIVE / MOBILE
   ============================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }

  .hero { padding: 60px 0 50px; }
  .hero-title { font-size: 2.2rem; }

  .posts-grid {
    grid-template-columns: 1fr;
  }
  .featured-card {
    grid-column: 1;
    grid-template-columns: 1fr;
  }
  .featured-card .post-image { min-height: 180px; }

  .about-strip-inner { flex-direction: column; text-align: center; }
  .about-text p { margin: 0 auto 20px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }

  .section { padding: 52px 0; }
  .section-header { flex-direction: column; gap: 8px; }
}
