:root {
  --color-primary: #0C646E; /* Tactful teal */
  --color-secondary: #00496B; /* Darker blue */
  --color-accent: #0C646E; /* Tactful teal accent */
  --color-text: #333333;
  --color-text-light: #666666;
  --color-background: #FFFFFF;
  --color-background-alt: #EDFAFC; /* Very light blue background */
  --color-border: #E5E9F0;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Poppins', var(--font-sans);
  --font-mono: 'JetBrains Mono', Consolas, Monaco, 'Andale Mono', monospace;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-secondary);
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.2em 0.4em;
  background-color: var(--color-background-alt);
  border-radius: 3px;
}

pre {
  margin: 1.5rem 0;
  padding: 1rem;
  background-color: var(--color-background-alt);
  border-radius: 5px;
  overflow-x: auto;
}

pre code {
  padding: 0;
  background-color: transparent;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background-color: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 40px;
  margin-right: 0.75rem;
}

.site-logo h1 {
  font-size: 1.5rem;
  margin-bottom: 0;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.main-nav a {
  font-weight: 500;
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  padding: 5rem 0;
  margin-bottom: 4rem;
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: 3rem;
  color: white;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.button {
  display: inline-block;
  background-color: var(--color-accent);
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

/* Posts grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.post-card {
  background-color: var(--color-background);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--color-border);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.post-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-card__content {
  padding: 1.5rem;
}

.post-card__date {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.post-card__title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.post-card__excerpt {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.post-card__link {
  font-weight: 500;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
}

.post-card__link svg {
  width: 16px;
  height: 16px;
  margin-left: 4px;
}

/* Post single */
.post-header {
  margin-bottom: 2.5rem;
}

.post-meta {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.post-tag {
  background-color: var(--color-background-alt);
  color: var(--color-text-light);
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.post-tag:hover {
  background-color: var(--color-primary);
  color: white;
  text-decoration: none;
}

.post-featured-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.post-content {
  margin-bottom: 3rem;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-secondary);
}

.post-content h2 {
  font-size: 1.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.post-content h3 {
  font-size: 1.4rem;
}

.post-content h4 {
  font-size: 1.2rem;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: rgba(12, 100, 110, 0.3);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  transition: all 0.2s ease;
}

.post-content a:hover {
  color: var(--color-secondary);
  text-decoration-color: var(--color-secondary);
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content blockquote {
  background-color: var(--color-background-alt);
  border-left: 4px solid var(--color-primary);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  border-radius: 0 8px 8px 0;
}

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

.post-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  padding: 0.2em 0.4em;
  background-color: var(--color-background-alt);
  border-radius: 3px;
  color: var(--color-secondary);
}

.post-content pre {
  margin: 1.5rem 0 2rem;
  padding: 1rem;
  background-color: var(--color-background-alt);
  border-radius: 8px;
  overflow-x: auto;
  border: 1px solid var(--color-border);
}

.post-content pre code {
  padding: 0;
  background-color: transparent;
  color: inherit;
}

.post-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.post-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.post-share {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.post-share span {
  font-weight: 600;
  color: var(--color-text);
}

.post-share a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--color-background-alt);
  color: var(--color-text);
  border-radius: 50%;
  transition: all 0.2s ease;
}

.post-share a:hover {
  background-color: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

.post-author-bio {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.post-author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border);
}

.post-author-name {
  font-weight: 600;
  color: var(--color-text);
  font-size: 1.125rem;
}

.post-author-title {
  color: var(--color-text-light);
  font-size: 0.875rem;
}

.section-related-posts {
  background-color: var(--color-background-alt);
  padding: 4rem 0;
  margin-top: 3rem;
}

.posts-empty {
  text-align: center;
  padding: 3rem 0;
}

.posts-empty p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  color: var(--color-text-light);
}

/* Footer */
.site-footer {
  background-color: var(--color-secondary);
  padding: 4rem 0;
  border-top: 1px solid var(--color-border);
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-column h3 {
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background-color: var(--color-accent);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: white;
  transition: fill 0.2s ease;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Utilities */
.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.section-title h2:after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 80px;
  height: 3px;
  background-color: var(--color-accent);
  transform: translateX(-50%);
}

/* Media Queries */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hero p {
    font-size: 1.125rem;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .main-nav {
    display: none;
  }
  
  .post-header h1 {
    font-size: 2rem;
  }
  
  .post-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .post-content {
    font-size: 1rem;
  }
  
  .post-content h2 {
    font-size: 1.5rem;
  }
  
  .post-content h3 {
    font-size: 1.25rem;
  }
  
  .post-featured-image {
    max-height: 300px;
  }
}