/* ============================================================
   GenuineLife.org — Shared Stylesheet
   Sections:
   1. Reset & Variables
   2. Masthead
   3. Scripture Ribbon, Footer, Utilities
   4. Homepage Grid, Featured Story, Sidebar
   5. Posts Page, Post Single, Resources, About, Contact
   6. Responsive Styles
   ============================================================ */


/* ============================================================
   1. RESET & VARIABLES
   ============================================================ */

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

:root {
  --off-white: #F8F8F6;
  --white: #FFFFFF;
  --green: #4A7C6F;
  --charcoal: #1C1C1C;
  --gold: #D4A843;
  --sage: #E8F0EE;
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
}

body {
  font-family: var(--font-sans);
  background: var(--off-white);
  color: var(--charcoal);
  line-height: 1.6;
}


/* ============================================================
   2. MASTHEAD
   ============================================================ */

.masthead {
  background: var(--white);
  border-bottom: 3px solid var(--charcoal);
  padding: 20px 60px 16px;
}
.masthead-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.masthead-date,
.masthead-tagline {
  font-size: 11px;
  color: #888;
  letter-spacing: 0.5px;
}
.masthead-tagline { text-align: right; }
.masthead-logo {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--charcoal);
  text-align: center;
  flex: 1;
  text-decoration: none;
}
.masthead-logo span { color: var(--green); }
.masthead-nav {
  border-top: 1px solid #ddd;
  padding-top: 10px;
  display: flex;
  justify-content: center;
  gap: 36px;
}
.masthead-nav a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
}
.masthead-nav a:hover,
.masthead-nav a.active { color: var(--green); }
.masthead-nav a.active {
  border-bottom: 2px solid var(--green);
  padding-bottom: 2px;
}


/* ============================================================
   3. SCRIPTURE RIBBON, FOOTER, UTILITIES
   ============================================================ */

/* SCRIPTURE RIBBON */
.scripture-ribbon {
  background: var(--charcoal);
  padding: 14px 60px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.scripture-ribbon .label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.scripture-ribbon .divider {
  width: 1px;
  height: 20px;
  background: #444;
  flex-shrink: 0;
}
.scripture-ribbon .verse {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: #ccc;
  line-height: 1.5;
}
.scripture-ribbon .ref {
  font-size: 11px;
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
  margin-left: auto;
}

/* FOOTER */
.site-footer {
  background: var(--charcoal);
  color: #aaa;
  padding: 24px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-top: 60px;
}
.site-footer .footer-logo {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}
.site-footer .footer-logo span { color: var(--gold); }
.site-footer nav { display: flex; gap: 20px; }
.site-footer nav a {
  color: #aaa;
  text-decoration: none;
  font-size: 12px;
}
.site-footer nav a:hover { color: var(--white); }

/* UTILITIES */
.section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #888;
  border-bottom: 2px solid var(--charcoal);
  padding-bottom: 6px;
  margin-bottom: 16px;
}
.cat-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--green);
  background: var(--sage);
  padding: 3px 10px;
  border-radius: 20px;
}
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ============================================================
   4. HOMEPAGE GRID, FEATURED STORY, SIDEBAR
   ============================================================ */

/* HOMEPAGE MAIN GRID */
.main-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 60px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
}

/* FEATURED STORY */
.featured-story .story-category { margin-bottom: 12px; }
.featured-story h2 {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.featured-story h2 em { font-style: italic; color: var(--green); }
.byline {
  font-size: 12px;
  color: #888;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.byline::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--gold);
}
.pull-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.7;
  color: #333;
  border-left: 3px solid var(--gold);
  padding-left: 16px;
  margin-bottom: 16px;
}
.story-body {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: #444;
  margin-bottom: 20px;
  column-count: 2;
  column-gap: 28px;
}
.read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid var(--green);
  padding-bottom: 2px;
}

/* SIDEBAR */
.sidebar-post {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--sage);
}
.sidebar-post:last-child { border-bottom: none; }
.sidebar-post-num {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--sage);
  min-width: 28px;
  line-height: 1;
}
.sidebar-post h3 {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  margin: 3px 0;
}
.sidebar-post h3 a { color: inherit; text-decoration: none; }
.sidebar-post h3 a:hover { color: var(--green); }
.sidebar-post p { font-size: 12px; color: #888; font-weight: 300; }

/* RESOURCE BOX */
.resource-box {
  background: var(--sage);
  border-radius: 8px;
  padding: 18px;
  margin-top: 24px;
}
.resource-box h4 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin: 6px 0;
}
.resource-box p { font-size: 12px; color: #555; font-weight: 300; margin-bottom: 12px; line-height: 1.5; }
.btn {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.2px;
}
.btn:hover { background: #3d6b5f; }
.btn-outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.btn-outline:hover { background: var(--green); color: var(--white); }

/* "ALSO IN THIS EDITION" ROW */
.edition-row {
  max-width: 1100px;
  margin: 0 auto 48px;
  padding: 0 60px;
  border-top: 2px solid var(--charcoal);
  padding-top: 28px;
}
.posts-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.post-item {
  border-left: 3px solid var(--sage);
  padding-left: 14px;
}
.post-item.featured { border-left-color: var(--gold); }
.post-item .cat { margin-bottom: 5px; }
.post-item h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}
.post-item p { font-size: 13px; color: #666; font-weight: 300; line-height: 1.6; }
.post-item a { text-decoration: none; color: inherit; }
.post-item a:hover h3 { color: var(--green); }


/* ============================================================
   5. POSTS PAGE, POST SINGLE, RESOURCES, ABOUT, CONTACT
   ============================================================ */

/* PAGE HERO */
.page-hero {
  background: var(--white);
  border-bottom: 1px solid var(--sage);
  padding: 48px 60px 36px;
}
.page-hero .breadcrumb {
  font-size: 11px;
  color: #999;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}
.page-hero .breadcrumb a { color: var(--green); text-decoration: none; }
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* FILTER BAR */
.filter-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 60px 0;
}
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.filter-btn {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 7px 18px;
  border-radius: 20px;
  border: 2px solid var(--sage);
  background: var(--white);
  color: #555;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}
.theme-pill {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid #ddd;
  background: var(--white);
  color: #777;
  cursor: pointer;
  transition: all 0.15s;
}
.theme-pill:hover,
.theme-pill.active {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--white);
}

/* POST CARDS GRID */
.posts-grid {
  max-width: 1100px;
  margin: 24px auto 0;
  padding: 0 60px 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.post-card {
  background: var(--white);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-left: 3px solid var(--sage);
  display: flex;
  flex-direction: column;
}
.post-card.hidden { display: none; }
.post-card .meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.post-card .date { font-size: 11px; color: #999; }
.post-card h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  flex: 1;
}
.post-card p { font-size: 13px; color: #666; font-weight: 300; line-height: 1.6; margin-bottom: 16px; flex: 1; }
.post-card .read-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  margin-top: auto;
}
.post-card .read-link::after { content: ' →'; }

/* POST SINGLE */
.post-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 60px 60px;
}
.post-wrap .post-hero-meta { margin-bottom: 32px; }
.post-wrap article {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.85;
  color: #222;
}
.post-wrap article p { margin-bottom: 20px; }
.post-wrap article h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 32px 0 12px;
}
.author-bio {
  background: var(--sage);
  border-radius: 8px;
  padding: 24px;
  margin: 48px 0 32px;
}
.author-bio strong {
  font-family: var(--font-serif);
  font-size: 16px;
  display: block;
  margin-bottom: 6px;
}
.author-bio p { font-size: 14px; color: #444; font-weight: 300; line-height: 1.6; font-family: var(--font-sans); }
.respond-cta {
  background: var(--charcoal);
  color: var(--white);
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.respond-cta p:first-of-type { font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.respond-cta p:last-of-type { font-size: 13px; font-weight: 300; color: #ccc; }
.more-like-this { border-top: 2px solid var(--charcoal); padding-top: 28px; }
.more-like-this > h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}
.back-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}

/* RESOURCES PAGE */
.resources-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 60px;
}
.resources-section { margin-bottom: 60px; }
.resources-section h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}
.resources-section .section-desc { font-size: 15px; color: #555; font-weight: 300; margin-bottom: 28px; }
.resource-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.resource-card {
  background: var(--white);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}
.resource-card .price {
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
  margin: 8px 0;
}
.resource-card .price.free { color: var(--gold); }
.resource-card h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}
.resource-card p { font-size: 13px; color: #666; font-weight: 300; line-height: 1.6; margin-bottom: 16px; flex: 1; }
.resource-form-wrap { margin-top: auto; }

/* ABOUT PAGE */
.about-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 60px;
}
.about-wrap h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}
.about-wrap p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: #444;
  margin-bottom: 16px;
}
.about-quote {
  background: var(--charcoal);
  color: var(--white);
  border-radius: 8px;
  padding: 32px;
  margin: 40px 0;
}
.about-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.6;
  color: #ddd;
  margin-bottom: 0;
}
.about-quote .quote-line {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin-top: 16px;
}
.about-cta-row { display: flex; gap: 16px; margin-top: 32px; align-items: center; }

/* CONTACT PAGE */
.contact-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 60px;
}
.contact-wrap .intro { font-size: 16px; font-weight: 300; color: #555; line-height: 1.8; margin-bottom: 28px; }
.contact-wrap .form-note { font-size: 12px; color: #999; margin-top: 16px; font-style: italic; }


/* ============================================================
   6. RESPONSIVE STYLES
   ============================================================ */

@media (max-width: 1024px) {
  .masthead,
  .scripture-ribbon,
  .main-grid,
  .edition-row,
  .filter-wrap,
  .posts-grid,
  .resources-wrap,
  .post-wrap,
  .about-wrap,
  .contact-wrap,
  .page-hero,
  .site-footer { padding-left: 32px; padding-right: 32px; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .resource-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .masthead-logo { font-size: 36px; }
  .main-grid { grid-template-columns: 1fr; gap: 32px; }
  .story-body { column-count: 1; }
  .posts-grid-3 { grid-template-columns: 1fr; }
  .respond-cta { flex-direction: column; }
}

@media (max-width: 600px) {
  .masthead,
  .scripture-ribbon,
  .main-grid,
  .edition-row,
  .filter-wrap,
  .posts-grid,
  .resources-wrap,
  .post-wrap,
  .about-wrap,
  .contact-wrap,
  .page-hero,
  .site-footer { padding-left: 20px; padding-right: 20px; }
  .masthead-top { flex-direction: column; align-items: center; gap: 4px; }
  .masthead-tagline { text-align: center; }
  .masthead-logo { font-size: 30px; }
  .masthead-nav { flex-wrap: wrap; gap: 16px; justify-content: center; }
  .posts-grid { grid-template-columns: 1fr; }
  .resource-cards-grid { grid-template-columns: 1fr; }
  .posts-grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .featured-story h2 { font-size: 26px; }
  .scripture-ribbon { flex-direction: column; align-items: flex-start; gap: 8px; }
  .scripture-ribbon .ref { margin-left: 0; }
}
