/*
Theme Name:  maybeitsjenny
Theme URI:   https://maybeitsjenny.com
Author:      Jenny
Author URI:  https://maybeitsjenny.com
Description: A warm, editorial food blog theme for maybeitsjenny.com — Hawaii food blog & foodie travels. Features a Spam Musubi rating system, Mixed Plate Friday series, and a coral/navy/cream colour palette.
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: maybeitsjenny
Tags:        food, blog, two-columns, right-sidebar, custom-menu, featured-images, post-formats
*/

/* ─────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────── */
:root {
  --cream:        #FDFAF5;
  --cream-dark:   #F5F0E8;
  --navy:         #1B3A4B;
  --navy-light:   #2A5068;
  --coral:        #E05B3A;
  --coral-light:  #F47B5E;
  --gold:         #C9953A;
  --sage:         #7A9E8E;
  --text:         #2A2520;
  --text-muted:   #7A7268;
  --text-light:   #B0A898;
  --border:       #E8E2D8;
  --white:        #FFFFFF;
  --shadow:       0 4px 24px rgba(27,58,75,0.08);
  --shadow-hover: 0 12px 40px rgba(27,58,75,0.15);
}

/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream-dark); }
::-webkit-scrollbar-thumb { background: var(--coral); border-radius: 3px; }

/* ─────────────────────────────────────────
   TOP BANNER
───────────────────────────────────────── */
.top-banner {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  padding: 10px 20px;
  font-weight: 500;
}
.top-banner a { color: var(--coral-light); text-decoration: none; }

/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */
header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(253,250,245,0.95);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-area {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}

.logo-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.7rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.logo-name em { font-style: italic; color: var(--coral); }

.logo-tagline {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 3px;
  font-weight: 500;
}

/* WordPress nav menu */
nav,
.main-navigation { display: flex; align-items: center; }

.main-navigation ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.main-navigation ul li a,
nav a {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 40px;
  transition: all 0.2s;
  display: block;
}
.main-navigation ul li a:hover,
nav a:hover { background: var(--navy); color: white; }

.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current_page_item > a,
nav a.active {
  background: #6888fb;
  color: white;
}

.header-search {
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 7px 16px;
  font-size: 0.8rem;
  background: transparent;
  color: var(--text);
  outline: none;
  width: 160px;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.header-search:focus { border-color: var(--coral); width: 220px; }

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--navy);
  min-height: 500px;
  position: relative;
}

.hero-image-col { position: relative; overflow: hidden; }

.hero-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.88);
  transition: transform 0.6s ease;
}
.hero:hover .hero-image-col img { transform: scale(1.03); }

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,58,75,0.3) 0%, transparent 60%);
}

.hero-content {
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--navy);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--coral);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.4); }
}

.hero-eyebrow span {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral-light);
  font-weight: 600;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  line-height: 1.15;
  color: white;
  margin-bottom: 20px;
  font-weight: 600;
}

.hero-excerpt {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 32px;
  font-weight: 300;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.hero-date {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  padding: 5px 14px;
  border-radius: 40px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

/* ─────────────────────────────────────────
   SHARED COMPONENTS
───────────────────────────────────────── */
.tag-pill {
  background: var(--coral);
  color: white;
  padding: 5px 14px;
  border-radius: 40px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.tag-pill:hover   { background: var(--coral-light); }
.tag-pill.sage    { background: var(--sage); }
.tag-pill.gold    { background: var(--gold); }
.tag-pill.navy    { background: var(--navy); }

.btn-read {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 40px;
  text-decoration: none;
  transition: all 0.25s;
  align-self: flex-start;
}
.btn-read:hover { background: var(--coral); color: white; transform: translateX(4px); }
.btn-read svg   { transition: transform 0.25s; }
.btn-read:hover svg { transform: translateX(4px); }

/* ─────────────────────────────────────────
   PAGE LAYOUT
───────────────────────────────────────── */
.main-layout {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
}

/* ─────────────────────────────────────────
   SECTION HEADERS
───────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--navy);
  font-weight: 600;
}

.section-line { flex: 1; height: 1px; background: var(--border); }

.section-link {
  font-size: 0.75rem;
  color: var(--coral);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}

/* ─────────────────────────────────────────
   MIXED PLATE FRIDAY BANNER
───────────────────────────────────────── */
.feature-banner {
  background: linear-gradient(135deg, #1B3A4B 0%, #2A5068 100%);
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.feature-banner::before {
  content: '';
  position: absolute;
  right: -20px; top: -20px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.feature-banner::after {
  content: '';
  position: absolute;
  right: 60px; bottom: -40px;
  width: 100px; height: 100px;
  background: rgba(224,91,58,0.15);
  border-radius: 50%;
}

.feature-icon { font-size: 2.5rem; flex-shrink: 0; position: relative; z-index: 1; }
.feature-text { position: relative; z-index: 1; }

.feature-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral-light);
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: white;
  margin-bottom: 6px;
  font-weight: 600;
}

.feature-desc { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* ─────────────────────────────────────────
   POST CARDS
───────────────────────────────────────── */
.cards-grid { display: grid; gap: 32px; }

.post-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  display: grid;
  grid-template-columns: 280px 1fr;
}
.post-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: transparent;
}

.card-image { position: relative; overflow: hidden; background: var(--cream-dark); }

.card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.post-card:hover .card-image img { transform: scale(1.05); }

.card-category {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--navy);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 40px;
}
.card-category.recipe      { background: var(--sage); }
.card-category.mixed-plate { background: var(--coral); }
.card-category.snapshot    { background: var(--gold); }

.card-body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.card-date    { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.06em; }
.card-read-time {
  font-size: 0.72rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-comments {
  font-size: 0.72rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: color 0.2s;
}
.card-comments:hover { color: var(--coral); }

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
  text-decoration: none;
  display: block;
  transition: color 0.2s;
}
.card-title:hover { color: var(--coral); }

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

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ─────────────────────────────────────────
   SPAM MUSUBI RATING
───────────────────────────────────────── */
.rating-display { display: flex; align-items: center; gap: 6px; }

.spam-musubi { display: flex; gap: 3px; align-items: center; }

.musubi {
  width: 24px; height: 24px;
  display: inline-block;
  flex-shrink: 0;
  background-image: url('musubi.png'); /* overridden via wp_add_inline_style */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.15; /* empty state */
}
.musubi.filled { opacity: 1; }
.musubi.half   { opacity: 0.4; }

.rating-label { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.06em; }

/* ─────────────────────────────────────────
   CARD TAGS
───────────────────────────────────────── */
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.card-tag {
  background: var(--cream-dark);
  color: var(--text-muted);
  font-size: 0.68rem;
  padding: 4px 10px;
  border-radius: 40px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: all 0.2s;
}
.card-tag:hover { background: var(--navy); color: white; }

/* Mini card variant */
.post-card.mini { grid-template-columns: 160px 1fr; }
.post-card.mini .card-title { font-size: 1rem; }
.post-card.mini .card-body  { padding: 20px 24px; }

/* ─────────────────────────────────────────
   PAGINATION
───────────────────────────────────────── */
.pagination, .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.page-numbers, .page-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}
.page-numbers:hover, .page-btn:hover,
.page-numbers.current, .page-btn.current {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.page-numbers.current { background: var(--coral); border-color: var(--coral); }

.page-numbers.prev, .page-numbers.next {
  width: auto;
  padding: 0 16px;
  font-size: 1.1rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
}
.page-numbers.prev:hover, .page-numbers.next:hover { color: var(--coral); background: transparent; }

/* ─────────────────────────────────────────
   SIDEBAR
───────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 32px; }

.sidebar-widget {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.widget-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.widget-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--navy);
  font-weight: 600;
  margin: 0;
}

.widget-icon { font-size: 1.1rem; }

.widget-body { padding: 20px 24px; }

/* About widget */
.about-widget {
  background: linear-gradient(160deg, var(--navy) 0%, #2A5068 100%);
  border-color: transparent;
}

.about-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  color: white;
  margin-bottom: 16px;
  border: 3px solid rgba(255,255,255,0.2);
  font-style: italic;
}

.about-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: white;
  font-weight: 600;
  margin-bottom: 4px;
}

.about-location {
  font-size: 0.78rem;
  color: var(--coral-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.about-bio {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 20px;
}

.social-row { display: flex; gap: 8px; }

.social-btn {
  flex: 1;
  padding: 9px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 0.72rem;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background 0.2s;
}
.social-btn:hover { background: var(--coral); }

/* Categories widget */
.cat-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }

.cat-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.88rem;
  transition: all 0.2s;
}
.cat-item a:hover { background: var(--cream-dark); color: var(--coral); }

.cat-count {
  background: var(--cream-dark);
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 2px 9px;
  border-radius: 40px;
  font-weight: 500;
}

/* WP widget_categories */
.widget_categories ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.widget_categories ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.88rem;
  transition: all 0.2s;
}
.widget_categories ul li a:hover { background: var(--cream-dark); color: var(--coral); }
.widget_categories ul li .count {
  background: var(--cream-dark);
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 2px 9px;
  border-radius: 40px;
  font-weight: 500;
}

/* Recent posts widget */
.recent-post {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.2s;
}
.recent-post:last-child  { border-bottom: none; padding-bottom: 0; }
.recent-post:first-child { padding-top: 0; }

.recent-thumb {
  width: 60px; height: 60px;
  border-radius: 10px;
  background: var(--cream-dark);
  flex-shrink: 0;
  overflow: hidden;
}
.recent-thumb img { width: 100%; height: 100%; object-fit: cover; }

.recent-info { flex: 1; }

.recent-title {
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 4px;
  transition: color 0.2s;
}
.recent-post:hover .recent-title { color: var(--coral); }

.recent-date { font-size: 0.72rem; color: var(--text-light); }

/* Tags widget */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

.tag-cloud-item, .tagcloud a {
  background: var(--cream-dark);
  color: var(--text-muted);
  font-size: 0.76rem !important;
  padding: 6px 14px;
  border-radius: 40px;
  text-decoration: none;
  transition: all 0.2s;
  font-weight: 500;
  display: inline-block;
}
.tag-cloud-item:hover, .tagcloud a:hover { background: var(--navy); color: white; }

/* Rating guide */
.rating-guide { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.rating-guide li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.rating-musubi-mini { display: flex; gap: 2px; flex-shrink: 0; width: 90px; }

.m-mini {
  width: 16px; height: 16px;
  display: inline-block;
  background-image: url('musubi.png'); /* overridden via wp_add_inline_style */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.15;
}
.m-mini.f { opacity: 1; }
.m-mini.h { opacity: 0.4; }

/* ─────────────────────────────────────────
   NEWSLETTER SECTION
───────────────────────────────────────── */
.newsletter-section {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

.newsletter-banner {
  background: var(--cream-dark);
  border-radius: 20px;
  padding: 48px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.newsletter-banner::before {
  content: '🌺';
  position: absolute;
  right: 160px; top: -20px;
  font-size: 8rem;
  opacity: 0.07;
}

.newsletter-text .eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 600;
  margin-bottom: 8px;
}

.newsletter-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 8px;
}

.newsletter-text p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

.newsletter-form { display: flex; gap: 10px; flex-shrink: 0; }

.newsletter-input {
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: 40px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  outline: none;
  width: 240px;
  background: white;
  transition: border-color 0.2s;
}
.newsletter-input:focus { border-color: var(--coral); }

.newsletter-btn {
  padding: 14px 28px;
  background: var(--coral);
  color: white;
  border: none;
  border-radius: 40px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.newsletter-btn:hover { background: var(--navy); transform: translateY(-1px); }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 32px;
}

.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo-name  { font-size: 1.4rem; color: white; display: block; margin-bottom: 6px; }
.footer-brand .logo-tagline { color: rgba(255,255,255,0.4); }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.55); line-height: 1.7; margin-top: 16px; }

.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
  margin-bottom: 16px;
}

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

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--coral-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom a   { color: var(--coral-light); text-decoration: none; }
.footer-heart      { color: var(--coral); margin: 0 3px; }

/* ─────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }

/* ─────────────────────────────────────────
   CATEGORY FILTER BAR
───────────────────────────────────────── */
.filter-bar { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }

.filter-btn {
  padding: 8px 18px;
  border-radius: 40px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
}
.filter-btn:hover         { border-color: var(--navy); color: var(--navy); }
.filter-btn.active        { background: #6888fb; border-color: #6888fb; color: white; }

/* ─────────────────────────────────────────
   COMMENTS
───────────────────────────────────────── */
.comments-area { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }

.comments-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 32px;
}

.comment-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.comment-list .children { list-style: none; padding-left: 32px; margin-top: 24px; display: flex; flex-direction: column; gap: 24px; }

.comment-body {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
}

/* Remove the blue box / default browser styling from commenter name */
.comment-author .fn,
.comment-author .fn a,
.comment-author b,
.comment-author cite {
  background: none !important;
  background-color: transparent !important;
  color: var(--navy);
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0;
  border: none;
  box-shadow: none;
  text-decoration: none;
}

.comment-author .fn a:hover { color: var(--coral); }

.comment-author .avatar {
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
}

.comment-metadata {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 4px;
  margin-bottom: 12px;
}

.comment-metadata a { color: var(--text-light); text-decoration: none; }

.comment-content { font-size: 0.9rem; line-height: 1.7; color: var(--text); }
.comment-content p { margin-bottom: 12px; }
.comment-content p:last-child { margin-bottom: 0; }

.reply { margin-top: 12px; }
.comment-reply-link {
  font-size: 0.75rem;
  color: var(--coral);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.comment-reply-link:hover { color: var(--navy); }

/* Comment form */
.comment-respond { margin-top: 40px; }

.comment-reply-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 20px;
}

.comment-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: var(--text);
  background: white;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 16px;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--coral); }

.comment-form textarea { min-height: 120px; resize: vertical; }

.comment-form .submit,
.comment-form input[type="submit"] {
  padding: 12px 28px;
  background: var(--coral);
  color: white;
  border: none;
  border-radius: 40px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.comment-form .submit:hover,
.comment-form input[type="submit"]:hover { background: var(--navy); }
.single-layout {
  max-width: 1200px;
  margin: 48px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
}

.post-hero-image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  margin-bottom: 40px;
}

.post-header { margin-bottom: 32px; }

.post-category-badge {
  display: inline-block;
  background: var(--coral);
  color: white;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 40px;
  text-decoration: none;
  margin-bottom: 20px;
}

.post-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  line-height: 1.15;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 20px;
}

.post-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.post-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}

.post-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--navy);
  margin: 40px 0 16px;
  font-weight: 600;
}

.post-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--navy);
  margin: 32px 0 12px;
  font-weight: 600;
}

.post-content p { margin-bottom: 24px; }

.post-content a { color: var(--coral); }
.post-content a:hover { color: var(--navy); }

.post-content img {
  width: 100%;
  border-radius: 12px;
  margin: 28px 0;
}

.post-content blockquote {
  border-left: 4px solid var(--coral);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--cream-dark);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--navy);
}

.post-tags-row {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ─────────────────────────────────────────
   ARCHIVE / SEARCH
───────────────────────────────────────── */
.archive-header {
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 0 24px 32px;
  border-bottom: 1px solid var(--border);
}

.archive-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--navy);
  font-weight: 600;
}

.archive-header .count { font-size: 0.85rem; color: var(--text-muted); margin-top: 6px; }

/* ─────────────────────────────────────────
   404 PAGE
───────────────────────────────────────── */
.error-page {
  max-width: 640px;
  margin: 80px auto;
  padding: 0 24px;
  text-align: center;
}

.error-page .big-number {
  font-family: 'Playfair Display', serif;
  font-size: 8rem;
  color: var(--coral);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.5;
}

.error-page h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.error-page p { color: var(--text-muted); margin-bottom: 32px; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero               { grid-template-columns: 1fr; min-height: auto; }
  .hero-image-col     { min-height: 300px; }
  .main-layout,
  .single-layout      { grid-template-columns: 1fr; gap: 40px; }
  .sidebar            { display: none; }
  .footer-grid        { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-title         { font-size: 1.8rem; }
  .hero-content       { padding: 32px 28px; }
  .post-card          { grid-template-columns: 1fr; }
  .card-image         { min-height: 200px; }
  .header-inner       { flex-wrap: wrap; height: auto; padding: 12px 16px; gap: 12px; }
  .main-navigation    { display: none; }
  .newsletter-banner  { flex-direction: column; align-items: flex-start; }
  .footer-grid        { grid-template-columns: 1fr; gap: 32px; }
}
