/* ====== Hapy Blog — shared styles ====== */
:root {
  --coral: #E8614A;
  --coral-deep: #C8442D;
  --coral-soft: #F4A593;
  --cream: #FDF8F3;
  --cream-deep: #F6EDE2;
  --gold: #C9A56B;
  --gold-soft: #E5CFA8;
  --charcoal: #2D2620;
  --charcoal-soft: #5C504A;
  --muted: #8B7E76;
  --line: #EADFD2;
  --white: #FFFFFF;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 20% 8%, rgba(232,97,74,0.04) 0%, transparent 40%),
    radial-gradient(circle at 88% 32%, rgba(201,165,107,0.05) 0%, transparent 35%);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}
h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-top: 2.2em; margin-bottom: 0.7em; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.3rem); margin-top: 1.6em; margin-bottom: 0.5em; }
p { color: var(--charcoal-soft); }

.skip-link {
  position: absolute; top: -48px; left: 0;
  background: var(--coral); color: #FFFFFF;
  padding: 10px 16px; z-index: 9999;
  border-radius: 0 0 8px 0; font-weight: 600;
  font-size: 0.9rem;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* ====== Navbar (matches landing) ====== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253,248,243,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  font-family: 'Caveat', cursive;
  font-size: 1.85rem; font-weight: 600;
  color: var(--coral); letter-spacing: -0.5px;
  display: inline-flex; align-items: center; gap: 6px;
}
.logo-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-bottom: 12px; }
.nav-links {
  display: flex; gap: 32px; align-items: center;
}
.nav-links a {
  font-size: 0.94rem; font-weight: 500; color: var(--charcoal-soft);
  padding: 4px 0; position: relative; transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; bottom: -2px; left: 0;
  height: 2px; width: 0; background: var(--coral); border-radius: 2px;
  transition: width 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--charcoal); }
.nav-links a.active::after, .nav-links a:hover::after { width: 100%; }
.nav-cta {
  padding: 10px 20px; background: var(--coral); color: #FFF;
  border-radius: 999px; font-weight: 600; font-size: 0.9rem;
  box-shadow: 0 6px 16px rgba(232,97,74,0.28);
  transition: transform 0.2s, background 0.2s;
}
.nav-cta:hover { background: var(--coral-deep); transform: translateY(-1px); }
.nav-toggle {
  display: none; width: 44px; height: 44px;
  align-items: center; justify-content: center; border-radius: 12px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px;
  background: var(--charcoal); position: relative; transition: all 0.25s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* ====== Container ====== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ====== Listing page ====== */
.blog-hero {
  padding: clamp(64px, 9vw, 104px) 0 clamp(32px, 4vw, 48px);
  text-align: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--coral);
  background: rgba(232,97,74,0.08); padding: 8px 14px; border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral);
}
.blog-hero h1 { margin-bottom: 16px; }
.blog-hero p { max-width: 580px; margin: 0 auto; font-size: 1.05rem; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  padding: clamp(32px, 5vw, 64px) 0 clamp(64px, 9vw, 96px);
}
.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(45,38,32,0.08);
  border-color: var(--coral-soft);
}
.post-cover {
  height: 160px;
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-deep) 100%);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: #FFFFFF;
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem; font-style: italic; font-weight: 700;
}
.post-cover::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.18), transparent 50%);
}
.post-cover.tone-2 { background: linear-gradient(135deg, #C9A56B 0%, #A88248 100%); }
.post-cover.tone-3 { background: linear-gradient(135deg, #2D2620 0%, #3F352D 100%); }
.post-cover.tone-4 { background: linear-gradient(135deg, #F4A593 0%, #E8614A 100%); }
.post-cover.tone-5 { background: linear-gradient(135deg, #5C504A 0%, #2D2620 100%); }
.post-cover.tone-6 { background: linear-gradient(135deg, #E8614A 0%, #C9A56B 100%); }
.post-body { padding: 24px 26px 26px; flex: 1; display: flex; flex-direction: column; }
.post-meta {
  display: flex; gap: 12px; align-items: center;
  font-size: 0.78rem; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 12px;
}
.post-meta span + span::before { content: "·"; margin-right: 12px; color: var(--line); }
.post-card h2, .post-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; line-height: 1.25; margin-bottom: 12px; margin-top: 0;
  color: var(--charcoal);
}
.post-excerpt { color: var(--charcoal-soft); font-size: 0.96rem; line-height: 1.6; margin-bottom: 20px; flex: 1; }
.post-link {
  font-weight: 600; color: var(--coral); font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}
.post-card:hover .post-link { gap: 10px; color: var(--coral-deep); }

/* ====== Article page ====== */
.breadcrumb {
  font-size: 0.85rem; color: var(--muted);
  padding: 24px 0 0;
}
.breadcrumb a { color: var(--muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--coral); }
.breadcrumb .current { color: var(--charcoal); }
.breadcrumb .sep { margin: 0 6px; color: var(--line); }

.article-header {
  max-width: 720px; margin: 0 auto;
  padding: 28px 24px 32px;
  text-align: left;
}
.article-header .eyebrow { margin-bottom: 18px; }
.article-header h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.7rem);
  font-weight: 700;
  margin-bottom: 22px;
  letter-spacing: -0.015em;
  line-height: 1.18;
}
.article-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.9rem; color: var(--muted);
  padding-top: 20px; border-top: 1px solid var(--line);
}
.author-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-deep) 100%);
  display: inline-flex; align-items: center; justify-content: center;
  color: #FFFFFF; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.04em;
}
.author-info strong { color: var(--charcoal); font-weight: 600; display: block; font-size: 0.92rem; }
.author-info span { font-size: 0.82rem; }
.article-meta .dot { color: var(--line); }

.article-body {
  max-width: 720px; margin: 0 auto;
  padding: 0 24px clamp(48px, 7vw, 80px);
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--charcoal);
}
.article-body > * + * { margin-top: 1.2em; }
.article-body p { color: var(--charcoal); }
.article-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.8vw, 1.75rem);
  font-weight: 600;
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  color: var(--charcoal);
  letter-spacing: -0.005em;
}
.article-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.15rem, 2vw, 1.3rem);
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.4em;
}
.article-body ul, .article-body ol {
  padding-left: 1.4em;
}
.article-body li { margin-bottom: 0.5em; }
.article-body strong { color: var(--charcoal); font-weight: 600; }
.article-body a {
  color: var(--coral-deep); border-bottom: 1px solid currentColor;
  transition: color 0.2s;
}
.article-body a:hover { color: var(--coral); }
.article-body blockquote {
  border-left: 3px solid var(--coral);
  padding: 8px 0 8px 22px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.18rem;
  color: var(--charcoal);
  margin: 1.8em 0;
}

/* Inline mid-article CTA */
.mid-cta {
  margin: 2.4em 0;
  background: linear-gradient(135deg, #FFF8F0 0%, #FBE9D7 100%);
  border: 1px solid var(--coral-soft);
  border-radius: 18px;
  padding: 28px 30px;
}
.mid-cta h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin: 0 0 8px;
  color: var(--charcoal);
}
.mid-cta p { font-size: 0.97rem; color: var(--charcoal-soft); margin-bottom: 16px; line-height: 1.5; }
.mid-cta .btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--coral); color: #FFFFFF;
  padding: 11px 20px; border-radius: 999px;
  font-weight: 600; font-size: 0.92rem;
  box-shadow: 0 6px 16px rgba(232,97,74,0.28);
  transition: transform 0.2s, background 0.2s;
}
.mid-cta .btn:hover { background: var(--coral-deep); transform: translateY(-1px); }

/* Related */
.related {
  background: var(--cream-deep);
  padding: clamp(48px, 6vw, 72px) 0;
  border-top: 1px solid var(--line);
}
.related-inner { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.related h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin: 0 0 24px;
  color: var(--charcoal);
}
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.related-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 22px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.related-card:hover { transform: translateY(-2px); border-color: var(--coral-soft); box-shadow: 0 8px 22px rgba(45,38,32,0.05); }
.related-card .post-meta { margin-bottom: 8px; font-size: 0.74rem; }
.related-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; line-height: 1.3; color: var(--charcoal);
  margin: 0 0 6px;
}
.related-card p { font-size: 0.88rem; color: var(--charcoal-soft); margin: 0; }

/* Sticky mobile CTA */
.sticky-cta {
  display: none;
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  z-index: 80;
  background: var(--coral);
  color: #FFFFFF;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600; font-size: 0.96rem;
  text-align: center;
  box-shadow: 0 14px 36px rgba(232,97,74,0.4);
}

/* Footer */
footer.blog-footer {
  background: var(--charcoal);
  color: rgba(253,248,243,0.7);
  padding: 56px 24px 24px;
}
footer.blog-footer .container { max-width: 1200px; margin: 0 auto; padding: 0; }
footer.blog-footer .logo { color: var(--coral-soft); }
footer.blog-footer .logo-dot { background: var(--gold); }
footer.blog-footer .footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 44px; margin-bottom: 36px;
}
footer.blog-footer h4 {
  font-family: 'DM Sans', sans-serif; color: var(--cream);
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 600; margin-bottom: 16px;
}
footer.blog-footer a { color: rgba(253,248,243,0.65); display: block; padding: 5px 0; font-size: 0.92rem; transition: color 0.2s; }
footer.blog-footer a:hover { color: var(--coral-soft); }
.blog-footer-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1rem; line-height: 1.5;
  margin-top: 12px; max-width: 280px;
  color: rgba(253,248,243,0.55);
}
.blog-footer .footer-address {
  font-style: normal;
  font-size: 0.85rem;
  color: rgba(253,248,243,0.5);
  margin-bottom: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(253,248,243,0.08);
  line-height: 1.7;
}
.blog-footer .footer-address strong { color: var(--cream); }
.blog-footer .footer-address a { display: inline; color: rgba(253,248,243,0.7); padding: 0; }
.blog-footer .copyright {
  padding-top: 12px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-size: 0.82rem; color: rgba(253,248,243,0.42);
}

/* Responsive */
@media (max-width: 980px) {
  .nav-links {
    display: none; position: fixed; top: 64px; left: 16px; right: 16px;
    background: var(--white); flex-direction: column; gap: 0; padding: 16px;
    border-radius: 20px; box-shadow: 0 24px 60px rgba(232,97,74,0.18);
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 8px; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .posts-grid { grid-template-columns: 1fr; gap: 18px; }
  .related-grid { grid-template-columns: 1fr; }
  footer.blog-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .article-body { font-size: 1.04rem; line-height: 1.75; }
  .post-cover { height: 130px; font-size: 2.4rem; }
  .mid-cta { padding: 22px 22px; }
  .sticky-cta { display: block; }
  .article-body { padding-bottom: 110px; }
  footer.blog-footer .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .blog-footer .copyright { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.1s !important; }
}
