/*
Theme Name: Founder's Journal
Theme URI: https://example.com
Author: Lian
Author URI: https://example.com
Description: A modern, minimalistic WordPress theme for a founder, tech leader, investor, and mother. Designed for entrepreneurship, startups, personal growth, motherhood, and practical financial strategy. Balances emotional depth with analytical clarity.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: founders-journal
Tags: blog, two-columns, custom-menu, featured-images, flexible-header, full-width-template, sticky-post, theme-options, threaded-comments

This theme, like WordPress, is licensed under the GPL.
*/

/* ========================================
   CSS VARIABLES - Color Palette & Typography
   ======================================== */

:root {
  /* Warm Neutral Palette */
  --color-cream: #FAF7F2;
  --color-sand: #E8DDD0;
  --color-beige: #D4C4B0;
  --color-soft-black: #1A1A1A;
  --color-dark-grey: #2D2D2D;
  --color-medium-grey: #6B6B6B;
  --color-light-grey: #E5E5E5;
  
  /* Accent Colors */
  --color-forest-green: #3D5A4C;
  --color-burgundy: #7C4447;
  --color-muted-blue: #5B7D8C;
  --color-sage: #8A9A8B;
  
  /* Typography */
  --font-serif: 'Playfair Display', 'Georgia', serif;
  --font-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  --spacing-xxl: 6rem;
  
  /* Layout */
  --max-width: 1200px;
  --content-width: 720px;
  --border-radius: 8px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-dark-grey);
  background-color: var(--color-cream);
  overflow-x: hidden;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--color-soft-black);
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.25rem;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: 1.75rem;
  margin-top: var(--spacing-md);
}

h4 {
  font-size: 1.375rem;
}

h5 {
  font-size: 1.125rem;
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-forest-green);
}

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--color-forest-green);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-burgundy);
}

strong {
  font-weight: 600;
  color: var(--color-soft-black);
}

em {
  font-style: italic;
}

blockquote {
  margin: var(--spacing-md) 0;
  padding: var(--spacing-md);
  border-left: 4px solid var(--color-forest-green);
  background-color: rgba(61, 90, 76, 0.05);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--color-soft-black);
}

code {
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
  background-color: var(--color-sand);
  padding: 0.2em 0.4em;
  border-radius: 3px;
}

pre {
  background-color: var(--color-sand);
  padding: var(--spacing-sm);
  border-radius: var(--border-radius);
  overflow-x: auto;
  margin: var(--spacing-md) 0;
}

/* ========================================
   LAYOUT
   ======================================== */

.site-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background-color: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--color-sand);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--spacing-sm) var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-soft-black);
}

.site-logo:hover {
  color: var(--color-forest-green);
}

.main-content {
  flex: 1;
  padding: var(--spacing-xl) var(--spacing-md);
}

.content-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-footer {
  background-color: var(--color-soft-black);
  color: var(--color-sand);
  padding: var(--spacing-lg) var(--spacing-md);
  margin-top: var(--spacing-xxl);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

/* ========================================
   NAVIGATION
   ======================================== */

.main-navigation {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
  margin: 0;
}

.main-navigation a {
  color: var(--color-soft-black);
  font-size: 1rem;
  font-weight: 500;
  padding: var(--spacing-xs) 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
  color: var(--color-forest-green);
  border-bottom-color: var(--color-forest-green);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-soft-black);
}

/* ========================================
   HOMEPAGE SECTIONS
   ======================================== */

.hero-section {
  text-align: center;
  padding: var(--spacing-xxl) var(--spacing-md);
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-sand) 100%);
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-soft-black);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--color-medium-grey);
  max-width: 700px;
  margin: 0 auto var(--spacing-lg);
  line-height: 1.6;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.pillar-card {
  background-color: white;
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.pillar-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.pillar-card h3 {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: var(--spacing-sm);
  color: var(--color-forest-green);
}

.pillar-card p {
  color: var(--color-medium-grey);
  margin-bottom: var(--spacing-md);
}

.pillar-link {
  display: inline-block;
  color: var(--color-forest-green);
  font-weight: 600;
  padding: var(--spacing-xs) var(--spacing-md);
  border: 2px solid var(--color-forest-green);
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
}

.pillar-link:hover {
  background-color: var(--color-forest-green);
  color: white;
}

/* ========================================
   BLOG POSTS
   ======================================== */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.post-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.post-thumbnail {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.post-content-wrapper {
  padding: var(--spacing-md);
}

.post-meta {
  display: flex;
  gap: var(--spacing-sm);
  font-size: 0.875rem;
  color: var(--color-medium-grey);
  margin-bottom: var(--spacing-sm);
}

.post-category {
  color: var(--color-forest-green);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.post-card h2 {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: var(--spacing-sm);
}

.post-card h2 a {
  color: var(--color-soft-black);
}

.post-card h2 a:hover {
  color: var(--color-forest-green);
}

.post-excerpt {
  color: var(--color-medium-grey);
  line-height: 1.6;
}

/* ========================================
   SINGLE POST
   ======================================== */

.single-post-header {
  max-width: var(--content-width);
  margin: 0 auto var(--spacing-lg);
  text-align: center;
}

.single-post-title {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.single-post-meta {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  color: var(--color-medium-grey);
  font-size: 1rem;
  margin-bottom: var(--spacing-md);
}

.post-featured-image {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto var(--spacing-lg);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.post-content,
.page-content,
.entry-content {
  max-width: var(--content-width);
  margin: 0 auto;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.9;
  color: var(--color-dark-grey);
}

/* Paragraphs */
.post-content p,
.page-content p,
.entry-content p {
  margin-bottom: 1.5em;
  font-size: 1.125rem;
  line-height: 1.9;
}

/* Headings in content */
.post-content h1,
.page-content h1,
.entry-content h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-top: 2em;
  margin-bottom: 0.75em;
  color: var(--color-soft-black);
  line-height: 1.3;
}

.post-content h2,
.page-content h2,
.entry-content h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-top: 2em;
  margin-bottom: 0.75em;
  color: var(--color-soft-black);
  line-height: 1.3;
}

.post-content h3,
.page-content h3,
.entry-content h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-top: 1.75em;
  margin-bottom: 0.5em;
  color: var(--color-soft-black);
  line-height: 1.4;
}

.post-content h4,
.page-content h4,
.entry-content h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: var(--color-soft-black);
}

/* Links in content */
.post-content a,
.page-content a,
.entry-content a {
  color: var(--color-forest-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content a:hover,
.page-content a:hover,
.entry-content a:hover {
  color: var(--color-burgundy);
}

/* Lists */
.post-content ul,
.post-content ol,
.page-content ul,
.page-content ol,
.entry-content ul,
.entry-content ol {
  margin-bottom: 1.5em;
  padding-right: 2em;
}

.post-content li,
.page-content li,
.entry-content li {
  margin-bottom: 0.5em;
  line-height: 1.8;
}

/* Blockquotes */
.post-content blockquote,
.page-content blockquote,
.entry-content blockquote {
  margin: 2em 0;
  padding: 1.5em 2em;
  border-right: 4px solid var(--color-forest-green);
  border-left: none;
  background-color: rgba(61, 90, 76, 0.05);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-soft-black);
}

.post-content blockquote p:last-child,
.page-content blockquote p:last-child,
.entry-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Images */
.post-content img,
.page-content img,
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin: 1.5em 0;
  display: block;
}

/* Image captions */
.post-content .wp-caption,
.page-content .wp-caption,
.entry-content .wp-caption {
  max-width: 100%;
  margin: 1.5em 0;
}

.post-content .wp-caption-text,
.page-content .wp-caption-text,
.entry-content .wp-caption-text {
  font-size: 0.9rem;
  color: var(--color-medium-grey);
  text-align: center;
  margin-top: 0.5em;
}

/* Tables */
.post-content table,
.page-content table,
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 0.95rem;
}

.post-content th,
.post-content td,
.page-content th,
.page-content td,
.entry-content th,
.entry-content td {
  padding: 1em;
  border: 1px solid var(--color-sand);
  text-align: right;
}

.post-content th,
.page-content th,
.entry-content th {
  background-color: var(--color-sand);
  font-weight: 600;
  color: var(--color-soft-black);
}

/* Code */
.post-content code,
.page-content code,
.entry-content code {
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
  background-color: var(--color-sand);
  padding: 0.2em 0.5em;
  border-radius: 4px;
}

.post-content pre,
.page-content pre,
.entry-content pre {
  background-color: var(--color-dark-grey);
  color: var(--color-cream);
  padding: 1.5em;
  border-radius: var(--border-radius);
  overflow-x: auto;
  margin: 2em 0;
  direction: ltr;
  text-align: left;
}

/* Horizontal rule */
.post-content hr,
.page-content hr,
.entry-content hr {
  border: none;
  border-top: 2px solid var(--color-sand);
  margin: 3em 0;
}

/* Strong and emphasis */
.post-content strong,
.page-content strong,
.entry-content strong {
  font-weight: 600;
  color: var(--color-soft-black);
}

.post-content em,
.page-content em,
.entry-content em {
  font-style: italic;
}

/* First paragraph styling (drop cap effect optional) */
.post-content > p:first-of-type {
  font-size: 1.25rem;
  line-height: 1.8;
}

/* ========================================
   STICKY TOC
   ======================================== */

.table-of-contents {
  position: sticky;
  top: 100px;
  background-color: white;
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: var(--spacing-lg);
}

.toc-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-forest-green);
}

.toc-list {
  list-style: none;
}

.toc-list li {
  margin-bottom: var(--spacing-xs);
}

.toc-list a {
  color: var(--color-medium-grey);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.toc-list a:hover,
.toc-list a.active {
  color: var(--color-forest-green);
}

/* ========================================
   BUTTONS & CTAs
   ======================================== */

.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-forest-green);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-burgundy);
  color: white;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-forest-green);
  border: 2px solid var(--color-forest-green);
}

.btn-secondary:hover {
  background-color: var(--color-forest-green);
  color: white;
}

/* ========================================
   NEWSLETTER SIGNUP
   ======================================== */

.newsletter-section {
  background-color: var(--color-forest-green);
  color: white;
  padding: var(--spacing-xl) var(--spacing-md);
  border-radius: var(--border-radius);
  margin: var(--spacing-xxl) auto;
  max-width: 600px;
  text-align: center;
}

.newsletter-section h3 {
  color: white;
  margin-bottom: var(--spacing-sm);
}

.newsletter-section p {
  margin-bottom: var(--spacing-md);
  color: var(--color-sand);
}

.newsletter-form {
  display: flex;
  gap: var(--spacing-sm);
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: var(--spacing-sm);
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
}

.newsletter-form button {
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: white;
  color: var(--color-forest-green);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.newsletter-form button:hover {
  background-color: var(--color-sand);
}

/* ========================================
   SEARCH
   ======================================== */

.search-form {
  position: relative;
  max-width: 300px;
}

.search-form input[type="search"] {
  width: 100%;
  padding: var(--spacing-xs) var(--spacing-sm);
  border: 1px solid var(--color-sand);
  border-radius: var(--border-radius);
  font-size: 1rem;
}

.search-form button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-medium-grey);
  cursor: pointer;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .main-navigation ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-cream);
    padding: var(--spacing-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .main-navigation.mobile-open ul {
    display: flex;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
