/* Template 294 - Personal Blog (Exact match to Cover.jpg) */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Dancing+Script:wght@600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --font-script: 'Dancing Script', 'Caveat', cursive;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --bg-dark: #383838;
  --bg-dark-hover: #454545;
  --bg-light: #ffffff;
  --bg-beige: #f6efe8;
  --bg-beige-light: #fbf8f5;
  
  --color-text-dark: #2c2c2c;
  --color-text-muted: #666666;
  --color-text-light: #999999;
  
  --accent-honey: #df8c2b;
  --accent-gold: #c89553;
  --border-gold: #d8b07d;
  --border-light: #e5e5e5;
  
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.09);
  
  --transition: all 0.28s ease;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-light);
  color: var(--color-text-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 600;
  color: var(--color-text-dark);
}

.script-font {
  font-family: var(--font-script);
}

.serif-font {
  font-family: var(--font-serif);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
}

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

/* ==========================================================================
   HEADER / NAVBAR (MATCHING COVER.JPG DARK CHARCOAL BAR)
   ========================================================================== */
.header-blog {
  background-color: var(--bg-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  padding: 8px 0;
}

.brand-logo-link {
  display: flex;
  align-items: center;
}

.brand-logo-img {
  height: 72px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.brand-logo-link:hover .brand-logo-img {
  transform: scale(1.04);
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: #ffffff;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-honey);
}

.nav-right-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-user-btn {
  color: #ffffff;
  font-size: 17px;
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-user-btn:hover {
  color: var(--accent-honey);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.3rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION: WARM EDITORIAL BACKGROUND + ARCH BACKDROP + BADGE AUTHOR
   ========================================================================== */
.hero-personal {
  position: relative;
  background: linear-gradient(135deg, #fdfbf7 0%, #f7f1e7 45%, #f2e5d5 100%);
  overflow: hidden;
  padding-top: 50px;
  border-bottom: 1px solid var(--border-light);
}

.hero-personal::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(180, 140, 110, 0.16) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  opacity: 0.55;
  pointer-events: none;
}

.hero-personal::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 159, 102, 0.22) 0%, rgba(224, 159, 102, 0) 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 40px;
  align-items: flex-end;
  position: relative;
  z-index: 2;
}

.hero-left-author {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
}

.hero-author-frame {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
}

.hero-author-backdrop-arch {
  position: absolute;
  bottom: 0;
  width: 370px;
  max-width: 92%;
  height: 490px;
  border-radius: 200px 200px 0 0;
  background: linear-gradient(180deg, #eddcd0 0%, #f9f0e6 65%, #fdfbf7 100%);
  border: 1px solid rgba(224, 159, 102, 0.25);
  box-shadow: 0 16px 36px rgba(184, 137, 101, 0.15);
  z-index: 1;
}

.hero-author-cutout {
  position: relative;
  z-index: 2;
  max-height: 540px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.1));
}

.hero-right-content {
  padding-bottom: 50px;
  position: relative;
  z-index: 2;
}

.hero-cursive-title {
  font-family: var(--font-script);
  font-size: 3.6rem;
  color: var(--accent-honey);
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero-intro-text {
  font-size: 0.96rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 28px;
  max-width: 620px;
}

.hero-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
  max-width: 620px;
}

.hero-mini-card {
  height: 180px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.hero-mini-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.hero-mini-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-btn-wrap {
  text-align: center;
  max-width: 620px;
}

.btn-lorem-ipsum {
  display: inline-block;
  padding: 8px 40px;
  border: 1.5px solid var(--border-gold);
  color: #3a3a3a;
  font-size: 0.92rem;
  font-family: var(--font-serif);
  font-style: italic;
  background: #ffffff;
  text-decoration: none;
  border-radius: 2px;
  transition: var(--transition);
}

.btn-lorem-ipsum:hover {
  background: var(--border-gold);
  color: #ffffff;
}

/* ==========================================================================
   QUOTE / INTRO SECTION (CENTERED ITALIC LEAD)
   ========================================================================== */
.section-quote-intro {
  padding: 70px 0 60px;
  background: #ffffff;
}

.quote-cursive-title {
  font-family: var(--font-script);
  font-size: 2.9rem;
  color: #333333;
  margin-bottom: 16px;
}

.quote-italic-lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.08rem;
  color: #666666;
  max-width: 860px;
  margin: 0 auto;
  line-height: 1.85;
}

/* ==========================================================================
   FEATURED STORY (POST4.JPG + BEIGE CARD)
   ========================================================================== */
.featured-story-section {
  padding: 30px 0 60px;
  background: #ffffff;
}

.featured-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #ede8e1;
}

.featured-story-img-wrap {
  height: 380px;
  overflow: hidden;
}

.featured-story-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.featured-story-grid:hover .featured-story-img {
  transform: scale(1.04);
}

.featured-story-content {
  background: var(--bg-beige);
  padding: 50px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-story-cursive {
  font-family: var(--font-script);
  font-size: 2.4rem;
  color: #2e2e2e;
  margin-bottom: 14px;
}

.featured-story-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #555555;
  margin-bottom: 24px;
}

.link-read-story {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-honey);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.link-read-story:hover {
  color: #222222;
  transform: translateX(4px);
}

/* ==========================================================================
   BLOG ARTICLES GRID (3 COLUMNS)
   ========================================================================== */
.blog-posts-section {
  padding: 40px 0 90px;
  background: #ffffff;
}

.articles-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.article-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #d8b07d;
}

.article-card-img-wrap {
  width: 100%;
  height: 230px;
  overflow: hidden;
}

.article-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-card-img {
  transform: scale(1.05);
}

.article-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-honey);
  margin-bottom: 8px;
}

.article-card-title {
  font-size: 1.25rem;
  color: #262626;
  margin-bottom: 10px;
  line-height: 1.35;
  font-family: var(--font-serif);
}

.article-card-title a:hover {
  color: var(--accent-honey);
}

.article-card-excerpt {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}

.article-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f2f2f2;
  padding-top: 14px;
  font-size: 0.82rem;
  color: var(--color-text-light);
}

.article-read-link {
  font-weight: 700;
  color: #222222;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.article-read-link:hover {
  color: var(--accent-honey);
}

/* ==========================================================================
   ABOUT AUTHOR & NEWSLETTER
   ========================================================================== */
.about-strip-section {
  padding: 70px 0;
  background: var(--bg-beige-light);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.about-strip-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 50px;
  align-items: center;
}

.about-strip-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.about-strip-content h3 {
  font-family: var(--font-script);
  font-size: 2.6rem;
  color: var(--accent-honey);
  margin-bottom: 12px;
}

.about-strip-content p {
  font-size: 0.96rem;
  line-height: 1.8;
  color: #555555;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 14px;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #ddd;
  color: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: var(--transition);
}

.social-icon-btn:hover {
  background: var(--bg-dark);
  color: #ffffff;
  border-color: var(--bg-dark);
}

/* ==========================================================================
   FOOTER (MATCHING DARK CHARCOAL HEADER)
   ========================================================================== */
.footer-blog {
  background-color: var(--bg-dark);
  color: #ffffff;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr 1.1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img,
.footer-logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: #b5b5b5;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 16px;
  font-family: var(--font-serif);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: #cccccc;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-honey);
  padding-left: 3px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #cccccc;
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid #4a4a4a;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: #999999;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-left-author {
    justify-content: center;
  }
  .hero-author-cutout {
    max-height: 400px;
  }
  .hero-right-content {
    padding-bottom: 40px;
  }
  .hero-cards-row,
  .hero-btn-wrap {
    margin-left: auto;
    margin-right: auto;
  }
  .featured-story-grid {
    grid-template-columns: 1fr;
  }
  .featured-story-img-wrap {
    height: 300px;
  }
  .articles-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-strip-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid #555;
  }
  .nav-menu.open {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-cursive-title {
    font-size: 2.8rem;
  }
  .hero-author-backdrop-arch {
    width: 280px;
    height: 380px;
  }
  .hero-cards-row {
    grid-template-columns: 1fr;
    height: auto;
  }
  .hero-mini-card {
    height: 160px;
  }
  .articles-grid-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}


/* Responsive Layout Grid Utilities (Auto-migrated from inline styles) */
.grid-2col-responsive {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.grid-split-responsive {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
.grid-split-rev-responsive {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}
.grid-3col-responsive {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.grid-4col-responsive {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .grid-4col-responsive {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3col-responsive {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-split-responsive,
  .grid-split-rev-responsive {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .grid-2col-responsive,
  .grid-3col-responsive,
  .grid-4col-responsive,
  .grid-split-responsive,
  .grid-split-rev-responsive {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile Safeguard Rules */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}


/* Comprehensive Mobile Polish (360px - 768px) */
@media (max-width: 768px) {
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  
  button, .btn, .nav-link, a.btn {
    min-height: 42px;
  }
  
  h1, .hero-title, .page-hero-title {
    font-size: clamp(1.6rem, 5vw, 2.4rem) !important;
    line-height: 1.25 !important;
  }
  h2, .section-title, .shelf-title {
    font-size: clamp(1.3rem, 4vw, 1.8rem) !important;
    line-height: 1.3 !important;
  }
  
  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .grid-2col-responsive,
  .grid-3col-responsive,
  .grid-4col-responsive,
  .grid-split-responsive,
  .grid-split-rev-responsive {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px !important;
    width: 100% !important;
    box-sizing: border-box;
  }
}
