/* 
  Desiring God Inspired Theme - "The Abundant Life"
  Minimalist, Typography-driven, Red & Black
*/

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  /* Desiring God Palette */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f9f9f9;
  --text: #111111;
  --text-muted: #666666;
  --primary: #c91b1b; /* Desiring God Red */
  --primary-hover: #a01616;
  --primary-light: rgba(201, 27, 27, 0.05);
  --accent: #111111;
  --border: #eeeeee;
  --border-muted: #f5f5f5;
  
  /* Shadows - Minimalist */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
  
  /* Typography - DG uses Serif for body/headings, Sans for UI */
  --font-heading: 'Libre Baskerville', serif;
  --font-body: 'Libre Baskerville', serif;
  --font-ui: 'Montserrat', sans-serif;
  
  /* Layout */
  --radius: 0px; /* DG uses sharp corners */
  --radius-lg: 0px;
  --nav-h: 60px;
  --container-w: 1100px;
  --container-sm-w: 700px; /* Narrower for better reading */
}

html.dark {
  --bg: #121212;
  --surface: #1e1e1e;
  --surface-muted: #2a2a2a;
  --text: #e0e0e0;
  --text-muted: #999999;
  --border: #333333;
  --border-muted: #222222;
  --primary: #ff4d4d;
}

/* Base Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 { 
  font-family: var(--font-heading); 
  font-weight: 700; 
  line-height: 1.2; 
  color: var(--text);
  margin-bottom: 1.5rem;
}
p { margin-bottom: 1.5rem; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-ui); }

/* Layout Components */
.container { max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: var(--container-sm-w); margin: 0 auto; padding: 0 24px; }

/* ─── Header ─── */
.main-nav {
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.logo {
  font-family: var(--font-ui);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.nav-links { 
  display: flex; 
  gap: 12px; 
  list-style: none; 
  flex: 1; 
  justify-content: center; 
  min-width: 0; 
  padding: 0 10px;
}
.nav-link { 
  font-family: var(--font-ui);
  font-weight: 600; 
  font-size: clamp(0.65rem, 1.2vw, 0.75rem); 
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text); 
  white-space: nowrap;
  transition: 0.2s;
}

/* More Dropdown */
.more-dropdown { position: relative; display: flex; align-items: center; }
.more-btn { 
  font-family: var(--font-ui); font-weight: 700; font-size: 0.7rem; 
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--text);
  display: flex; align-items: center; gap: 4px; padding: 8px 12px;
  background: var(--surface-muted); border-radius: 4px;
}
.more-menu { 
  position: absolute; top: 100%; right: 0; background: var(--surface); 
  border: 1px solid var(--border); box-shadow: var(--shadow-lg); 
  padding: 8px 0; min-width: 180px; z-index: 1100; margin-top: 8px;
}
.more-item { 
  display: block; padding: 10px 20px; font-family: var(--font-ui); 
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase; 
  color: var(--text); transition: 0.2s;
}
.more-item:hover { background: var(--surface-muted); color: var(--primary); }
.nav-link:hover { color: var(--primary); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-icon-btn { 
  width: 32px; height: 32px; 
  display: flex; align-items: center; justify-content: center; 
  color: var(--text-muted);
}
.nav-icon-btn:hover { color: var(--primary); }
.hamburger { display: none; }

/* ─── Blog Post ─── */
.post-header { padding: 60px 0; text-align: left; border-bottom: 4px solid var(--text); margin-bottom: 40px; }
.post-title { font-size: 3rem; margin-bottom: 24px; line-height: 1.1; }
.post-meta { 
  font-family: var(--font-ui); 
  font-size: 0.75rem; 
  font-weight: 700; 
  text-transform: uppercase; 
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.post-author { display: flex; align-items: center; gap: 12px; margin-top: 24px; font-family: var(--font-ui); }
.author-avatar { width: 40px; height: 40px; border-radius: 50%; }

.post-content { font-size: 1.3rem; color: var(--text); max-width: 100%; }
.post-content p { margin-bottom: 2rem; }
.post-content blockquote {
  font-style: italic;
  padding: 0 40px;
  margin: 3rem 0;
  border-left: 4px solid var(--primary);
  font-size: 1.5rem;
  color: var(--text-muted);
}

.post-featured-img {
  width: 100%;
  margin: 0 auto 60px;
  overflow: hidden;
}

/* ─── Grid & Cards ─── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
  margin: 40px 0;
}

.post-card { border-bottom: 1px solid var(--border); padding-bottom: 32px; margin-bottom: 32px; transition: opacity 0.2s; height: 100%; }
.post-card:hover { opacity: 0.8; }
.post-card-img { aspect-ratio: 16/9; margin-bottom: 16px; overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-cat { font-family: var(--font-ui); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; display: block; }
.post-card-title { font-size: 1.5rem; line-height: 1.2; margin-bottom: 12px; }
.post-card-excerpt { font-size: 1rem; color: var(--text-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ─── Sidebar ─── */
.grid-main {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  margin-top: 60px;
}

@media (max-width: 1024px) {
  .grid-main { grid-template-columns: 1fr; }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  padding: 12px 24px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--primary);
  color: #fff;
  transition: 0.2s;
  border-radius: 0;
}
.btn:hover { background: var(--primary-hover); }
.btn-outline { background: transparent; border: 2px solid var(--text); color: var(--text); }
.btn-outline:hover { background: var(--text); color: #fff; }

/* ─── Footer ─── */
footer {
  background: var(--text);
  color: #fff;
  padding: 80px 0 40px;
  margin-top: 100px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo { font-family: var(--font-ui); font-size: 1.5rem; font-weight: 800; color: var(--primary); margin-bottom: 20px; text-transform: lowercase; }
.footer-text { color: #999; font-size: 0.9rem; }
.footer-heading { font-family: var(--font-ui); font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-link { color: #999; font-family: var(--font-ui); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; }
.footer-link:hover { color: #fff; }

/* ─── Responsive ─── */
#nav-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); 
  backdrop-filter: blur(4px); z-index: 1100; opacity: 0; 
  pointer-events: none; transition: 0.3s;
}
#nav-overlay.show { opacity: 1; pointer-events: auto; }

#mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(300px, 85vw);
  background: var(--surface); z-index: 1200; transform: translateX(100%);
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 24px; display: flex; flex-direction: column;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}
#mobile-menu.open { transform: translateX(0); }

.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.drawer-head .logo { max-width: 180px; font-size: 1.1rem; }
.drawer-close { font-size: 1.5rem; color: var(--text); cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--surface-muted); }
.drawer-nav { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.drawer-link { font-size: 0.9rem; font-weight: 700; color: var(--text); padding: 14px 16px; border-radius: 4px; text-transform: uppercase; font-family: var(--font-ui); letter-spacing: 0.05em; transition: 0.2s; }
.drawer-link:hover { background: var(--primary-light); color: var(--primary); }

@media (max-width: 768px) {
  .post-title { font-size: 2.25rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

#reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; background: var(--primary);
  z-index: 2000; transition: width 0.1s;
}
/* 
  Desiring God Inspired Theme - "The Abundant Life"
  Minimalist, Typography-driven, Red & Black
*/

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  /* Desiring God Palette */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f9f9f9;
  --text: #111111;
  --text-muted: #666666;
  --primary: #c91b1b; /* Desiring God Red */
  --primary-hover: #a01616;
  --primary-light: rgba(201, 27, 27, 0.05);
  --accent: #111111;
  --border: #eeeeee;
  --border-muted: #f5f5f5;
  
  /* Shadows - Minimalist */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
  
  /* Typography - DG uses Serif for body/headings, Sans for UI */
  --font-heading: 'Libre Baskerville', serif;
  --font-body: 'Libre Baskerville', serif;
  --font-ui: 'Montserrat', sans-serif;
  
  /* Layout */
  --radius: 0px; /* DG uses sharp corners */
  --radius-lg: 0px;
  --nav-h: 60px;
  --container-w: 1100px;
  --container-sm-w: 700px; /* Narrower for better reading */
}

html.dark {
  --bg: #121212;
  --surface: #1e1e1e;
  --surface-muted: #2a2a2a;
  --text: #e0e0e0;
  --text-muted: #999999;
  --border: #333333;
  --border-muted: #222222;
  --primary: #ff4d4d;
}

/* Base Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 { 
  font-family: var(--font-heading); 
  font-weight: 700; 
  line-height: 1.2; 
  color: var(--text);
  margin-bottom: 1.5rem;
}
p { margin-bottom: 1.5rem; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-ui); }

/* Layout Components */
.container { max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: var(--container-sm-w); margin: 0 auto; padding: 0 24px; }

/* ─── Header ─── */
.main-nav {
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.logo {
  font-family: var(--font-ui);
  font-size: 1.25rem;
  font-weight: 800;
  color: green;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.nav-links { 
  display: flex; 
  gap: 12px; 
  list-style: none; 
  flex: 1; 
  justify-content: center; 
  min-width: 0; 
  padding: 0 10px;
}
.nav-link { 
  font-family: var(--font-ui);
  font-weight: 600; 
  font-size: clamp(0.65rem, 1.2vw, 0.75rem); 
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text); 
  white-space: nowrap;
  transition: 0.2s;
}

/* More Dropdown */
.more-dropdown { position: relative; display: flex; align-items: center; }
.more-btn { 
  font-family: var(--font-ui); font-weight: 700; font-size: 0.7rem; 
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--text);
  display: flex; align-items: center; gap: 4px; padding: 8px 12px;
  background: var(--surface-muted); border-radius: 4px;
}
.more-menu { 
  position: absolute; top: 100%; right: 0; background: var(--surface); 
  border: 1px solid var(--border); box-shadow: var(--shadow-lg); 
  padding: 8px 0; min-width: 180px; z-index: 1100; margin-top: 8px;
}
.more-item { 
  display: block; padding: 10px 20px; font-family: var(--font-ui); 
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase; 
  color: var(--text); transition: 0.2s;
}
.more-item:hover { background: var(--surface-muted); color: var(--primary); }
.nav-link:hover { color: var(--primary); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-icon-btn { 
  width: 32px; height: 32px; 
  display: flex; align-items: center; justify-content: center; 
  color: var(--text-muted);
}
.nav-icon-btn:hover { color: var(--primary); }
.hamburger { display: none; }

/* ─── Blog Post ─── */
.post-header { padding: 60px 0; text-align: left; border-bottom: 4px solid var(--text); margin-bottom: 40px; }
.post-title { font-size: 3rem; margin-bottom: 24px; line-height: 1.1; }
.post-meta { 
  font-family: var(--font-ui); 
  font-size: 0.75rem; 
  font-weight: 700; 
  text-transform: uppercase; 
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.post-author { display: flex; align-items: center; gap: 12px; margin-top: 24px; font-family: var(--font-ui); }
.author-avatar { width: 40px; height: 40px; border-radius: 50%; }

.post-content { font-size: 1.3rem; color: var(--text); max-width: 100%; }
.post-content p { margin-bottom: 2rem; }
.post-content blockquote {
  font-style: italic;
  padding: 0 40px;
  margin: 3rem 0;
  border-left: 4px solid var(--primary);
  font-size: 1.5rem;
  color: var(--text-muted);
}

.post-featured-img {
  width: 100%;
  margin: 0 auto 60px;
  overflow: hidden;
}

/* ─── Grid & Cards ─── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
  margin: 40px 0;
}

.post-card { border-bottom: 1px solid var(--border); padding-bottom: 32px; margin-bottom: 32px; transition: opacity 0.2s; height: 100%; }
.post-card:hover { opacity: 0.8; }
.post-card-img { aspect-ratio: 16/9; margin-bottom: 16px; overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-cat { font-family: var(--font-ui); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; display: block; }
.post-card-title { font-size: 1.5rem; line-height: 1.2; margin-bottom: 12px; }
.post-card-excerpt { font-size: 1rem; color: var(--text-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ─── Sidebar ─── */
.grid-main {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  margin-top: 60px;
}

@media (max-width: 1024px) {
  .grid-main { grid-template-columns: 1fr; }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  padding: 12px 24px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--primary);
  color: #fff;
  transition: 0.2s;
  border-radius: 0;
}
.btn:hover { background: var(--primary-hover); }
.btn-outline { background: transparent; border: 2px solid var(--text); color: var(--text); }
.btn-outline:hover { background: var(--text); color: #fff; }

/* ─── Footer ─── */
footer {
  background: var(--text);
  color: #fff;
  padding: 80px 0 40px;
  margin-top: 100px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo { font-family: var(--font-ui); font-size: 1.5rem; font-weight: 800; color: var(--primary); margin-bottom: 20px; text-transform: lowercase; }
.footer-text { color: #999; font-size: 0.9rem; }
.footer-heading { font-family: var(--font-ui); font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-link { color: #999; font-family: var(--font-ui); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; }
.footer-link:hover { color: #fff; }

/* ─── Responsive ─── */
#nav-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); 
  backdrop-filter: blur(4px); z-index: 1100; opacity: 0; 
  pointer-events: none; transition: 0.3s;
}
#nav-overlay.show { opacity: 1; pointer-events: auto; }

#mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(300px, 85vw);
  background: var(--surface); z-index: 1200; transform: translateX(100%);
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 24px; display: flex; flex-direction: column;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}
#mobile-menu.open { transform: translateX(0); }

.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.drawer-head .logo { max-width: 180px; font-size: 1.1rem; }
.drawer-close { font-size: 1.5rem; color: var(--text); cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--surface-muted); }
.drawer-nav { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.drawer-link { font-size: 0.9rem; font-weight: 700; color: var(--text); padding: 14px 16px; border-radius: 4px; text-transform: uppercase; font-family: var(--font-ui); letter-spacing: 0.05em; transition: 0.2s; }
.drawer-link:hover { background: var(--primary-light); color: var(--primary); }

@media (max-width: 768px) {
  .post-title { font-size: 2.25rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

#reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; background: var(--primary);
  z-index: 2000; transition: width 0.1s;
}
