/* Story Club Theme - Typography for Lawyers Style */

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

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

html {
  font-size: 18px;
  line-height: 1.5;
}

body {
  font-family: 'Crimson Text', Georgia, serif;
  color: #000;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.site-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ============================================
   SIDEBAR
   ============================================ */

.site-sidebar {
  width: 260px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  padding: 40px 30px;
  background: #fff;
  border-right: 1px solid #ddd;
  overflow-y: auto;
}

.sidebar-logo {
  display: block;
  margin-bottom: 30px;
}

.sidebar-logo img {
  width: 140px;
  height: auto;
  display: block;
}

.sidebar-title {
  font-size: 1.5rem;
  line-height: 1.3;
  margin-bottom: 30px;
  font-weight: 400;
}

.sidebar-title a {
  color: #000;
  text-decoration: none;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 30px;
}

.sidebar-nav ul {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-nav li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  list-style-type: none !important;
}

.sidebar-nav li::before {
  display: none !important;
  content: none !important;
}

.sidebar-nav a,
.nav-link {
  color: #000;
  text-decoration: underline;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  transition: color 0.2s;
  display: block;
  padding-left: 0;
}

.sidebar-nav a:hover,
.nav-link:hover {
  color: #2D5016;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */

.site-main {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content-area {
  flex: 1;
  max-width: 700px;
  padding: 80px 60px;
  margin: 0 auto;
  width: 100%;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.8rem;
  color: #000;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
}

h2 {
  font-size: 1.8rem;
  margin-top: 1.5rem;
}

h3 {
  font-size: 1.4rem;
  margin-top: 1.2rem;
}

p {
  margin-bottom: 0.9rem;
  line-height: 1.5;
}

a {
  color: #2D5016;
  text-decoration: underline;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.7;
}

/* ============================================
   BLOG POSTS & PAGES
   ============================================ */

.post-content,
.page-content {
  line-height: 1.5;
}

.post-title,
.page-title {
  font-size: 2.5rem;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.post-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 2rem;
}

/* Blog List */
.blog-list {
  max-width: 100%;
}

.post-preview {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.post-preview:last-child {
  border-bottom: none;
}

.post-preview-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.post-preview-title a {
  color: #000;
  text-decoration: none;
  transition: color 0.2s;
}

.post-preview-title a:hover {
  color: #2D5016;
}

.post-excerpt {
  color: #333;
  margin-bottom: 1rem;
}

.read-more {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #2D5016;
  text-decoration: none;
  font-weight: 500;
}

.read-more:hover {
  text-decoration: underline;
}

/* Pagination */
.pagination {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
  font-family: 'Inter', sans-serif;
}

/* Members-only content */
.members-only {
  margin-top: 3rem;
  padding: 2rem;
  background: #f9f9f9;
  border-left: 3px solid #2D5016;
}

.members-only a {
  font-weight: 600;
}

/* ============================================
   IMAGES
   ============================================ */

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

figure {
  margin: 2rem 0;
}

figcaption {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
  font-style: italic;
}

/* ============================================
   LISTS
   ============================================ */

ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1.2rem;
}

li {
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

/* ============================================
   QUOTES
   ============================================ */

blockquote {
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid #2D5016;
  font-style: italic;
  color: #333;
}

/* ============================================
   CODE
   ============================================ */

code {
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9rem;
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
}

pre {
  background: #f5f5f5;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1.2rem;
  border-radius: 3px;
}

pre code {
  background: none;
  padding: 0;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  padding: 40px 60px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #666;
  border-top: 1px solid #eee;
  margin-top: auto;
}

/* ============================================
   RESPONSIVE / MOBILE
   ============================================ */

/* Mobile header */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #fff;
  border-bottom: 1px solid #ddd;
  z-index: 998;
  padding: 0 20px;
  align-items: center;
  justify-content: space-between;
}

.mobile-header-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mobile-header-title a {
  color: #000;
  text-decoration: none;
}

/* Mobile menu button */
.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #000;
  transition: all 0.3s;
}

.mobile-close {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  color: #000;
  font-weight: 300;
}

@media (max-width: 900px) {
  .mobile-header {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-close {
    display: block;
  }
  
  body.sidebar-open {
    overflow: hidden;
  }
  
  body.sidebar-open .mobile-menu-toggle {
    display: none;
  }
  
  .site-sidebar {
    width: 280px;
    position: fixed;
    left: -280px;
    transition: left 0.3s ease;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  }
  
  .site-sidebar.is-open {
    left: 0;
  }
  
  .site-main {
    margin-left: 0;
    padding-top: 60px;
  }
  
  .content-area {
    padding: 40px 30px;
  }
  
  .site-footer {
    padding: 30px 30px;
  }
}


@media (max-width: 600px) {
  html {
    font-size: 16px;
  }
  
  .content-area {
    padding: 30px 20px;
  }
  
  .sidebar-logo img {
    width: 120px;
  }
  
  .sidebar-title {
    font-size: 1.3rem;
  }
  
  .homepage-heading {
    font-size: 1.4rem;
  }
  
  .section-heading {
    font-size: 1.4rem;
  }
  
  .numbered-heading {
    font-size: 1.2rem;
  }
  
  .mobile-header {
    height: 56px;
    padding: 0 16px;
  }
  
  .mobile-header-title {
    font-size: 1rem;
  }
  
  .site-main {
    padding-top: 56px;
  }
}
