/* Modern Life Problems - Clean, Text-Only Design */

/*
 * Typography: Inter
 * - Designed specifically for screen readability
 * - Excellent paragraph flow
 * - Neutral, modern, invisible (in a good way)
 * - Performs very well on mobile
 * - Headings: Inter SemiBold (600)
 * - Body: Inter Regular (400)
 * - Line height: 1.7 (within recommended 1.6-1.75)
 */

:root {
  --bg-color: #fafafa;
  --text-color: #1a1a1a;
  --text-muted: #666;
  --border-color: #e0e0e0;
  --link-color: #2c5282;
  --link-hover: #1a365d;
  --max-width: 720px;
  --spacing: 2rem;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: 0 1rem;
}

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

/* Header */
header {
  text-align: center;
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: var(--spacing);
}

.site-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.site-title a {
  color: var(--text-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.site-icon {
  width: 1.5em;
  height: 1.5em;
  flex-shrink: 0;
}

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

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

/* Navigation */
nav {
  margin-top: 1.5rem;
}

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

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: var(--text-color);
}

/* Main Content */
main {
  min-height: 60vh;
}

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

h1 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.35rem;
  margin: 2rem 0 1rem;
}

h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.75rem;
}

p {
  margin-bottom: 1.25rem;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Category Sections (Homepage) */
.category-section {
  margin-bottom: 2.5rem;
}

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

.category-section h2 a {
  color: var(--text-muted);
}

.category-section h2 a:hover {
  color: var(--text-color);
  text-decoration: none;
}

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

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

.post-list a {
  color: var(--text-color);
  font-weight: 500;
}

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

.post-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* Full Post List (Category Pages) */
.full-post-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.full-post-list li:last-child {
  border-bottom: none;
}

/* Article Styles */
article {
  margin-bottom: 3rem;
}

article header {
  text-align: left;
  border-bottom: none;
  padding: 0 0 1rem;
  margin-bottom: 1.5rem;
}

article header h1 {
  margin-bottom: 0.5rem;
}

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

.article-meta a {
  color: var(--text-muted);
}

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

.article-content {
  font-size: 1rem;
}

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

.article-content ul,
.article-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}

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

/* Ad Placeholders */
.ad-slot {
  background: var(--border-color);
  border: 1px dashed var(--text-muted);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 2rem 0;
  border-radius: 4px;
}

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

.category-header h1 {
  margin-bottom: 0.75rem;
}

.category-description {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
}

footer nav ul {
  margin-bottom: 1rem;
}

.copyright {
  color: var(--text-muted);
  font-size: 0.8rem;
}

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

.related-sites p {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

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

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

.pagination a,
.pagination span {
  padding: 0.5rem 1rem;
  color: var(--text-muted);
}

.pagination a:hover {
  color: var(--text-color);
  text-decoration: none;
}

.pagination .current {
  color: var(--text-color);
  font-weight: 600;
}

/* Page Content (About, Contact, etc.) */
.page-content {
  font-size: 1rem;
}

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

/* Contact Form Placeholder */
.contact-info {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 4px;
  margin-top: 1.5rem;
}

/* Legal Pages */
.legal-content {
  font-size: 0.95rem;
}

.legal-content h2 {
  font-size: 1.15rem;
  margin-top: 2rem;
}

.legal-content h3 {
  font-size: 1rem;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
  :root {
    --spacing: 1.5rem;
  }

  body {
    padding: 0 1.25rem;
  }

  nav ul {
    gap: 0.5rem 1rem;
  }

  .category-section {
    margin-bottom: 2rem;
  }

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

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

  body {
    padding: 0 1rem;
  }

  header {
    padding: 1.5rem 0 1.25rem;
  }

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

  .site-title a {
    gap: 0.4rem;
  }

  .site-icon {
    width: 1.4em;
    height: 1.4em;
  }

  .tagline {
    font-size: 0.9rem;
  }

  nav {
    margin-top: 1.25rem;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  nav a {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    display: inline-block;
  }

  h1 {
    font-size: 1.4rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .category-section h2 {
    font-size: 1rem;
  }

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

  .post-list a {
    font-size: 1rem;
    line-height: 1.4;
    display: block;
  }

  .post-excerpt {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .full-post-list li {
    padding: 1.25rem 0;
  }

  /* Article adjustments */
  article header {
    padding: 0 0 0.75rem;
    margin-bottom: 1.25rem;
  }

  .article-content {
    font-size: 1rem;
    line-height: 1.75;
  }

  .article-content h2 {
    font-size: 1.15rem;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
  }

  .article-content p {
    margin-bottom: 1.1rem;
  }

  .article-content ul,
  .article-content ol {
    margin-left: 1.25rem;
  }

  /* Ad slot mobile */
  .ad-slot {
    padding: 1.5rem 1rem;
    margin: 1.5rem 0;
  }

  /* Footer mobile */
  footer {
    padding: 1.5rem 0;
    margin-top: 2rem;
  }

  footer nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
  }

  footer nav a {
    padding: 0.25rem 0;
  }

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

  .related-sites p {
    font-size: 0.8rem;
    line-height: 1.6;
  }

  .copyright {
    font-size: 0.75rem;
  }

  /* Category page header */
  .category-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }

  .category-description {
    font-size: 0.9rem;
  }

  /* Legal pages */
  .legal-content {
    font-size: 0.9rem;
  }

  .legal-content h2 {
    font-size: 1.05rem;
  }

  /* Contact info box */
  .contact-info {
    padding: 1.25rem;
  }
}

/* Small phones */
@media (max-width: 360px) {
  html {
    font-size: 15px;
  }

  body {
    padding: 0 0.75rem;
  }

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

  h1 {
    font-size: 1.3rem;
  }

  nav a {
    font-size: 0.95rem;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  nav a,
  .post-list a,
  footer nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .post-list a {
    padding: 0.25rem 0;
  }
}
