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

/* Body & Fonts */
body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background-color: #ffffff;
  color: #333333;
  line-height: 1.7;
  margin: 0;
  display: flex;          
  flex-direction: column; 
  min-height: 100vh; 
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #333333;
}

/* Container for wide margins */
.container {
  max-width: 900px;  
  margin: 0 auto;
  padding: 0 1.5rem;
  flex: 1 0 auto;    
}

/* Header */
.site-header {
  padding: 20px 0;
  border-bottom: 1px solid #eeeeee; 
  margin-bottom: 20px;
  background-color: #fafafa;
}

.header-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header .logo {
  font-family: 'Instrument Serif', serif;
  font-size: 1.8rem;
  font-weight: 400;
}

.site-header .logo a {
  text-decoration: none;
  color: #333333;
  transition: color 0.3s ease;
  font-weight: 400;
}

.site-header .logo a:hover {
  color: #8a68c1;
}

/* Navbar */
.navbar ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.navbar ul li a {
  text-decoration: none;
  color: #666666;
  font-weight: 400;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.navbar ul li a:hover {
  color: #8a68c1;
}

/* Blog List (index page) */
.blog-list {
  margin-bottom: 40px;
}

.blog-list h1 {
  font-family: 'Instrument Serif', serif;
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 2rem;
  margin-top: 10px;
  color: #333333;
}

.blog-list p {
  margin-bottom: 30px;
  font-size: 1rem;
  color: #666666;
}

/* No summary, just spacing for each article link */
.blog-links article {
  margin-bottom: 30px;
}

.blog-links article h2 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  font-weight: 400;
}

.blog-links article h2 a {
  color: #333333;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 400;
}

.blog-links article h2 a:hover {
  color: #8a68c1;
}

/* Single Post Content */
.blog-post-content {
  margin-top: 20px;
  margin-bottom: 40px;
}

.blog-post-content h1 {
  font-family: 'Instrument Serif', serif;
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: #333333;
}

/* Post date style */
.post-date {
  color: #999999;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-style: italic;
}

/* Subheadings (h2, h3) in blog posts */
.blog-post-content h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 500;
  color: #333333;
}

.blog-post-content h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 500;
  color: #333333;
}

/* Paragraph style */
.blog-post-content p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #333333;
}

/* Back button */
.back-btn-container {
  margin-bottom: 40px;
}

/* Buttons */
.cta-button {
  display: inline-block;
  padding: 10px 16px;
  background-color: #333333;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: background-color 0.3s;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
}

.cta-button:hover {
  background-color: #8a68c1;
}

/* Footer */
.site-footer {
  padding: 20px 0;
  border-top: 1px solid #eeeeee;
  margin-top: 20px;
  background-color: #fafafa;
}

.footer-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-container p {
  font-size: 0.9rem;
  color: #666666;
  line-height: 1.4;
  margin: 0;
}

.footer-container strong {
  color: #333333;
  font-weight: 500;
}

.footer-container a {
  color: #8a68c1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-container a:hover {
  color: #333333;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container, .footer-container, .container {
    padding: 0 1rem;
  }
  
  .navbar ul {
    gap: 15px;
  }
  
  .blog-list h1 {
    font-size: 1.8rem;
  }
}

/* Blockquote styling */
blockquote {
  border-left: 3px solid #8a68c1;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #666666;
}

blockquote p {
  margin-bottom: 0.5rem;
}

blockquote cite {
  font-size: 0.9rem;
  color: #999999;
}

/* Writing Table */
.writing-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.writing-table th {
  text-align: left;
  font-weight: 500;
  color: #666666;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #eeeeee;
}

.writing-table th:first-child {
  width: 80px;
}

.writing-table th:nth-child(2) {
  padding-left: 1.5rem;
}

.writing-table td {
  padding: 0.7rem 0;
  border-bottom: 1px solid #f5f5f5;
  vertical-align: top;
}

.writing-table tbody tr:last-child td {
  border-bottom: none;
}

.writing-table td:first-child {
  color: #999999;
  font-size: 0.85rem;
  white-space: nowrap;
}

.writing-table td:nth-child(2) {
  padding-left: 1.5rem;
}

.writing-table a {
  color: #333333;
  text-decoration: none;
  transition: color 0.3s ease;
  line-height: 1.4;
}

.writing-table a:hover {
  color: #8a68c1;
}

.more-link {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.more-link a {
  color: #666666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.more-link a:hover {
  color: #8a68c1;
}
