/* ── RESET + VARIABLES ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:   #F2EDE4;
  --dark:    #0F0E0A;
  --green:   #1B4D3E;
  --muted:   #7A7060;
  --border:  #E0D9CF;
}

html { scroll-behavior: smooth; }

@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

body {
  background: var(--cream);
  color: var(--dark);
  font-family: 'Inter', sans-serif;
  animation: pageIn 0.4s ease-out;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ─────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 80px);
  max-width: 1360px;
  height: 64px;
  padding: 0 32px 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(242,237,228,0.70);
  box-shadow: 0 2px 20px rgba(15,14,10,0.08), 0 1px 0 rgba(15,14,10,0.06);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  z-index: 100;
}
.nav-logo {
  font-family: 'Luckiest Guy', cursive;
  font-size: 28px;
  color: var(--dark);
  letter-spacing: 1px;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.fonts-loaded .nav-logo { opacity: 1; }
.nav-left { display: flex; align-items: center; gap: 16px; }
.nav-divider { width: 1px; height: 18px; background: rgba(15,14,10,0.2); flex-shrink: 0; }
.nav-about { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 14px; color: var(--dark); text-decoration: none; white-space: nowrap; }
.nav-buttons { display: flex; align-items: center; gap: 8px; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; margin-left: 8px; }
.nav-hamburger span { display: block; width: 20px; height: 1.5px; background: var(--dark); border-radius: 2px; }
#mobile-menu { display: none; }
.nav-signin {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--dark);
  background: #fff;
  border: 1px solid rgba(15,14,10,0.15);
  border-radius: 100px;
  padding: 9px 20px;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(15,14,10,0.08);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.nav-signin:hover { border-color: rgba(15,14,10,0.3); box-shadow: 0 2px 8px rgba(15,14,10,0.12); }
.nav-cta {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #F2EDE4;
  background: var(--dark);
  border: 1px solid var(--dark);
  border-radius: 100px;
  padding: 9px 22px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: #2A2820; transform: scale(1.02); }

/* ── FOOTER ──────────────────────────────────────────── */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 60px 60px 40px;
}
.footer-top {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.footer-logo {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #F2EDE4;
  letter-spacing: -0.3px;
  text-decoration: none;
  display: block;
  margin-bottom: 14px;
}
.footer-desc { font-size: 14px; color: #908070; line-height: 1.7; }
.footer-col-label {
  font-size: 10px;
  color: #F2EDE4;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 14px; }
.footer-links a { font-size: 14px; color: #9A9080; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #F2EDE4; }
.footer-social { max-width: 1100px; margin: 48px auto 0; display: flex; justify-content: center; }
.footer-bottom {
  max-width: 1100px;
  margin: 32px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 13px; color: #807060; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 13px; color: #807060; text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: #A09080; }

/* ── ARTICLE PAGE ────────────────────────────────────── */
.blog-page { padding-top: 100px; }

.article-header {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 40px;
  border-bottom: 1px solid var(--border);
}
.article-category {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #8A7A60;
  margin-bottom: 24px;
}
.article-title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--dark);
  margin-bottom: 24px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}
.article-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.article-body p {
  font-size: 18px;
  line-height: 1.8;
  color: #2A2215;
  margin-bottom: 28px;
}
.article-body h2 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.5px;
  color: var(--dark);
  margin: 52px 0 20px;
}
.article-body h3 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--dark);
  margin: 36px 0 16px;
}
.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 28px;
}
.article-body li {
  font-size: 18px;
  line-height: 1.8;
  color: #2A2215;
  margin-bottom: 8px;
}
.article-body blockquote {
  border-left: 3px solid var(--green);
  padding: 4px 0 4px 24px;
  margin: 40px 0;
}
.article-body blockquote p {
  font-size: 18px;
  color: var(--green);
  font-style: italic;
  margin-bottom: 0;
}

/* Pull quote */
.pullquote {
  margin: 48px 0;
  padding: 32px 40px;
  background: var(--dark);
  border-radius: 16px;
}
.pullquote p {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.3px;
  color: var(--cream);
  margin-bottom: 0 !important;
}

/* ── IN-ARTICLE CTA ──────────────────────────────────── */
.article-cta {
  text-align: center;
  margin: 48px 0;
}
.article-cta-btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--cream);
  background: var(--dark);
  border-radius: 100px;
  padding: 16px 36px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.article-cta-btn:hover { opacity: 0.85; }

/* ── AUTHOR SECTION ──────────────────────────────────── */
.author-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.author-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-info { flex: 1; }
.author-name {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--dark);
  margin-bottom: 2px;
}
.author-role { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.author-bio { font-size: 15px; color: #4A3F2A; line-height: 1.7; margin-bottom: 10px; }
.author-instagram {
  font-size: 13px;
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
}
.author-instagram:hover { text-decoration: underline; }

/* ── BLOG INDEX ──────────────────────────────────────── */
.blog-index { padding-top: 100px; }

.blog-index-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px 48px;
  border-bottom: 1px solid var(--border);
}
.blog-index-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #8A7A60;
  margin-bottom: 20px;
}
.blog-index-title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -1.5px;
  color: var(--dark);
}

.articles-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.article-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.article-card:hover {
  box-shadow: 0 8px 32px rgba(15,14,10,0.10);
  transform: translateY(-2px);
}
.card-title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.3px;
  color: var(--dark);
  line-height: 1.3;
}
.card-excerpt { font-size: 14px; color: var(--muted); line-height: 1.7; flex: 1; }
.card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.card-author-photo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.card-author-name { font-size: 13px; font-weight: 500; color: var(--dark); }
.card-meta { font-size: 12px; color: var(--muted); margin-left: auto; }

.blog-empty {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
}

/* ── RESPONSIVE — TABLET ─────────────────────────────── */
@media (max-width: 900px) {
  nav { top: 12px; width: calc(100% - 32px); }
  footer { padding: 52px 28px 36px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-social { justify-content: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── RESPONSIVE — MOBILE ─────────────────────────────── */
@media (max-width: 480px) {
  nav { top: 10px; width: calc(100% - 16px); height: 46px; padding: 0 14px 0 20px; border-radius: 12px; }
  .nav-logo { font-size: 22px; }
  .nav-signin { display: none; }
  .nav-about { display: none; }
  .nav-divider { display: none; }
  .nav-hamburger { display: flex; }
  .nav-hamburger span { transition: transform 0.3s, opacity 0.3s; }
  .nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; }
  .nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }
  .nav-cta { font-size: 11px; padding: 7px 14px; }

  nav.menu-open { border-radius: 12px 12px 0 0; box-shadow: none; }
  #mobile-menu {
    position: fixed;
    top: 56px;
    left: 8px;
    right: 8px;
    background: rgba(242,237,228,0.97);
    backdrop-filter: blur(24px) saturate(1.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    border-radius: 0 0 12px 12px;
    padding: 0 24px 24px;
    display: none;
    flex-direction: column;
    gap: 0;
    z-index: 99;
    box-shadow: 0 8px 32px rgba(15,14,10,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    border-top: 1px solid rgba(15,14,10,0.06);
  }
  #mobile-menu.open { display: flex; }
  #mobile-menu a {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: var(--dark);
    text-decoration: none;
    padding: 20px 0;
    border-bottom: 1px solid rgba(15,14,10,0.08);
  }
  #mobile-menu a:last-child { border-bottom: none; }
  #mobile-menu .mobile-menu-cta {
    background: var(--dark);
    color: #F2EDE4;
    border: none;
    border-radius: 100px;
    text-align: center;
    padding: 16px 0;
    margin-top: 8px;
    font-weight: 600;
    font-size: 16px;
    border-bottom: none;
    width: 100%;
  }

  footer { padding: 44px 24px 28px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-copy, .footer-legal a { font-size: 12px; }

  .article-body p, .article-body li { font-size: 16px; }
  .article-body h2 { font-size: 22px; }
  .pullquote { padding: 24px; }
  .pullquote p { font-size: 18px; }
  .author-section { flex-direction: column; }
  .articles-grid { grid-template-columns: 1fr; }
}
