/* === DAILY STEP GUIDE — Global Styles === */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

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

:root {
  --brand: #D4622B;
  --brand-light: #F0DDD2;
  --brand-dark: #A34A1E;
  --bg: #FDFBF7;
  --bg-card: #FFFFFF;
  --bg-warm: #F7F3ED;
  --text: #2C2520;
  --text-secondary: #7A6E63;
  --text-light: #A89E94;
  --border: #E8E2DA;
  --heading-font: 'DM Serif Display', serif;
  --body-font: 'Source Sans 3', sans-serif;
  --max-width: 1100px;
  --content-width: 720px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--body-font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brand-dark); }

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

/* === NAVIGATION === */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253,251,247,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.nav-logo {
  font-family: var(--heading-font);
  font-size: 1.35rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-logo span { color: var(--brand); }

.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.3px;
}
.nav-links a:hover { color: var(--brand); }

.nav-cta-btn {
  background: var(--brand);
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
}
.nav-cta-btn:hover { background: var(--brand-dark); color: #fff !important; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
}

/* === HERO (Homepage) === */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  text-align: center;
}

.hero-label {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--heading-font);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.2rem;
  letter-spacing: -1px;
}

.hero h1 em {
  font-style: normal;
  color: var(--brand);
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand);
  color: #fff;
  padding: 0.85rem 1.8rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
}
.hero-cta:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }

/* === FEATURED POSTS GRID === */
.section { padding: 3rem 2rem; }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.section-header h2 {
  font-family: var(--heading-font);
  font-size: 1.8rem;
  letter-spacing: -0.5px;
}

.section-header a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.post-card:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: 0 8px 30px rgba(44,37,32,0.08); }

.post-card-thumb {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.post-card-body { padding: 1.4rem; }

.post-tag {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
}

.post-card h3 {
  font-family: var(--heading-font);
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  letter-spacing: -0.3px;
}

.post-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Post card thumbnail gradients */
.thumb-health { background: linear-gradient(135deg, #F0DDD2 0%, #E8C9B8 100%); }
.thumb-fitness { background: linear-gradient(135deg, #D2E8D9 0%, #B8D4C0 100%); }
.thumb-apps { background: linear-gradient(135deg, #D2DEF0 0%, #B8C9E0 100%); }
.thumb-guide { background: linear-gradient(135deg, #F0E8D2 0%, #E0D4B8 100%); }

.thumb-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.2;
}

/* === APP PROMO BANNER === */
.app-banner {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 2rem 0;
}

.app-banner-text { flex: 1; }

.app-banner-text h3 {
  font-family: var(--heading-font);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.3px;
}

.app-banner-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.app-buttons { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.app-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--text);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.app-btn:hover { background: var(--brand); color: #fff; }

/* === NEWSLETTER === */
.newsletter {
  background: var(--text);
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  color: #fff;
  margin: 2rem 0;
}

.newsletter h3 {
  font-family: var(--heading-font);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.newsletter p { color: rgba(255,255,255,0.65); margin-bottom: 1.5rem; font-size: 0.95rem; }

/* === ARTICLE STYLES === */
.article-hero {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
  text-align: center;
}

.article-hero h1 {
  font-family: var(--heading-font);
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin-bottom: 1rem;
}

.article-hero h1 em { font-style: normal; color: var(--brand); }

.article-meta-bar {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  color: var(--text-light);
  font-size: 0.88rem;
}

.article-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

.article-content h2 {
  font-family: var(--heading-font);
  font-size: 1.6rem;
  margin: 2.5rem 0 0.8rem;
  letter-spacing: -0.4px;
  color: var(--text);
}

.article-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 2rem 0 0.6rem;
  color: var(--text);
}

.article-content p {
  color: var(--text-secondary);
  margin-bottom: 1.4rem;
  font-size: 1.05rem;
  line-height: 1.85;
}

.article-content strong { color: var(--text); }

.article-content a {
  color: var(--brand);
  border-bottom: 1px solid rgba(212,98,43,0.25);
}
.article-content a:hover { border-color: var(--brand); }

.callout {
  background: var(--bg-warm);
  border-left: 3px solid var(--brand);
  padding: 1.3rem 1.6rem;
  margin: 1.8rem 0;
  border-radius: 0 10px 10px 0;
}
.callout p { margin-bottom: 0; color: var(--text); font-size: 1rem; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.data-table th {
  background: var(--bg-warm);
  color: var(--brand-dark);
  font-weight: 600;
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 2px solid var(--border);
}
.data-table td {
  padding: 0.7rem 1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.data-table tr:hover td { background: rgba(212,98,43,0.03); }

.check-list { list-style: none; margin: 1.2rem 0; }
.check-list li {
  padding: 0.6rem 0 0.6rem 1.8rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 1.02rem;
  border-bottom: 1px solid rgba(232,226,218,0.5);
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.num-list { list-style: none; margin: 1.2rem 0; counter-reset: step; }
.num-list li {
  padding: 0.8rem 0 0.8rem 2.5rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 1.02rem;
  border-bottom: 1px solid rgba(232,226,218,0.5);
  counter-increment: step;
}
.num-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.8rem;
  font-family: var(--heading-font);
  font-size: 1.2rem;
  color: var(--brand);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.stat-card {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem;
  text-align: center;
}
.stat-card .num {
  font-family: var(--heading-font);
  font-size: 2rem;
  color: var(--brand);
  line-height: 1;
}
.stat-card .label { color: var(--text-light); font-size: 0.82rem; margin-top: 0.3rem; }

/* Article CTA */
.article-cta {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
  margin: 2.5rem 0;
}
.article-cta h3 {
  font-family: var(--heading-font);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.article-cta p { color: var(--text-secondary); margin-bottom: 1.2rem; font-size: 0.95rem; }
.article-cta .cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--brand);
  color: #fff;
  padding: 0.75rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.article-cta .cta-btn:hover { background: var(--brand-dark); color: #fff; }

/* Related posts */
.related-section { margin: 3rem 0; }
.related-section h3 {
  font-family: var(--heading-font);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text);
}
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.related-item {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  display: block;
}
.related-item:hover { border-color: var(--brand); transform: translateY(-2px); }
.related-item h4 {
  font-family: var(--heading-font);
  font-size: 1rem;
  margin-bottom: 0.3rem;
  letter-spacing: -0.2px;
}
.related-item p { color: var(--text-light); font-size: 0.82rem; margin-bottom: 0; line-height: 1.4; }

/* === FOOTER === */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand {
  font-family: var(--heading-font);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.footer-brand span { color: var(--brand); }

.footer-desc { color: var(--text-light); font-size: 0.88rem; line-height: 1.6; }

.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-col a:hover { color: var(--brand); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* === SCROLL ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--bg);
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .hero { padding: 3rem 1.5rem 2rem; }
  .posts-grid { grid-template-columns: 1fr; }
  .app-banner { flex-direction: column; text-align: center; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
  .related-grid { grid-template-columns: 1fr; }
  .article-meta-bar { flex-direction: column; gap: 0.3rem; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
