/* Inside the Systems - Clean, AdSense-Optimized Styles */
/* Using Inter font for optimal screen readability */

/* Import Inter from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Reset and Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-color: #fafafa;
  --text-color: #333;
  --text-muted: #666;
  --border-color: #e0e0e0;
  --link-color: #1a1a1a;
  --link-hover: #555;
  --max-width: 720px;
  --content-padding: 1.5rem;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  font-family: var(--font-family);
  font-weight: 400;
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-family);
  font-weight: 600;
  line-height: 1.3;
  color: #1a1a1a;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

a {
  color: var(--link-color);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

main {
  flex: 1;
  padding: 2rem 0;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
  background: #fff;
}

.site-header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.site-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.site-title a {
  text-decoration: none;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.site-icon svg {
  width: 100%;
  height: 100%;
}

.site-tagline {
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
  font-weight: 400;
}

/* Navigation */
.site-nav {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.site-nav a {
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-muted);
}

.site-nav a:hover {
  color: var(--link-color);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-top: 3rem;
  background: #fff;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1rem;
}

.footer-nav a {
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.footer-copyright {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.related-sites {
  margin: 1.5rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.related-sites h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  text-align: center;
}

.related-sites ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.related-sites li {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.related-sites a {
  font-weight: 500;
  color: var(--text-muted);
}

.related-sites a:hover {
  color: var(--link-color);
}

/* Homepage Sections */
.section {
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

/* Post List */
.post-list {
  list-style: none;
}

.post-list li {
  margin-bottom: 0.75rem;
}

.post-list a {
  text-decoration: none;
  color: var(--link-color);
  font-weight: 400;
}

.post-list a:hover {
  text-decoration: underline;
}

.post-meta {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

/* Category Page */
.category-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  line-height: 1.7;
}

.post-excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Post Page */
.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.post-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.post-date {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.post-category {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-category a {
  color: var(--text-muted);
  text-decoration: none;
}

.post-category a:hover {
  text-decoration: underline;
}

.post-content {
  margin-bottom: 2rem;
}

.post-content h2 {
  margin-top: 2.5rem;
}

.post-content p {
  line-height: 1.75;
}

.post-content strong {
  font-weight: 600;
}

/* Ad Slots */
.ad-slot {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f5f5f5;
  border: 1px dashed #ddd;
  text-align: center;
  font-size: 0.85rem;
  color: #999;
  font-family: var(--font-family);
  font-weight: 400;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.pagination a {
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Static Pages */
.page-content {
  max-width: 100%;
}

.page-content h2 {
  margin-top: 2rem;
}

.page-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.page-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* Latest Posts Section */
.latest-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

/* Responsive - Tablet */
@media (max-width: 768px) {
  :root {
    --content-padding: 1.25rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  .post-title {
    font-size: 1.75rem;
  }

  .related-sites ul {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .related-sites li {
    text-align: center;
  }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
  html {
    font-size: 16px;
  }

  :root {
    --content-padding: 1rem;
  }

  body {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .site-header {
    padding: 1rem 0;
  }

  .site-title {
    font-size: 1.35rem;
  }

  .site-tagline {
    font-size: 0.9rem;
  }

  .site-nav {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }

  .site-nav ul {
    gap: 0.25rem 0.75rem;
  }

  .site-nav a {
    font-size: 0.85rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
    margin-top: 1.75rem;
  }

  .post-title {
    font-size: 1.5rem;
    line-height: 1.25;
  }

  .post-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }

  p {
    line-height: 1.7;
    margin-bottom: 1rem;
  }

  .ad-slot {
    margin: 1.5rem 0;
    padding: 1rem;
  }

  .footer-nav {
    gap: 0.5rem 1rem;
  }

  .footer-nav a {
    font-size: 0.8rem;
  }

  .related-sites {
    padding-top: 1rem;
    margin: 1rem 0;
  }

  .related-sites h4 {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .related-sites ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .related-sites li {
    font-size: 0.8rem;
  }

  .footer-copyright {
    font-size: 0.8rem;
  }

  .category-intro {
    font-size: 1rem;
    line-height: 1.6;
  }

  .post-excerpt {
    font-size: 0.9rem;
  }
}

/* Touch-friendly tap targets */
@media (hover: none) and (pointer: coarse) {
  .site-nav a,
  .footer-nav a,
  .related-sites a {
    padding: 0.5rem 0;
    display: inline-block;
  }

  .post-list a {
    padding: 0.5rem 0;
    display: block;
  }
}
