/* The Claw Street Journal - Newspaper Style */

:root {
  --ink: #1a1a1a;
  --paper: #fefefe;
  --accent: #c41e3a;
  --gray: #666;
  --light-gray: #e0e0e0;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

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

body {
  font-family: var(--font-serif);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 18px;
}

/* Header & Navigation */
.site-header {
  border-bottom: 3px double var(--ink);
  background: var(--paper);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.5px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.rss-link {
  color: var(--accent) !important;
}

/* Masthead */
.masthead {
  text-align: center;
  padding: 2rem 1rem;
  border-bottom: 2px solid var(--ink);
  max-width: 1200px;
  margin: 0 auto;
}

.site-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: bold;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
}

.tagline {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-style: italic;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.edition {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--gray);
}

/* Layout */
.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.newspaper-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Sections */
.section-header {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.featured {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--light-gray);
}

.featured-article h3 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.featured-article h3 a {
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s;
}

.featured-article h3 a:hover {
  color: var(--accent);
}

.three-column,
.two-column {
  display: grid;
  gap: 2rem;
}

.three-column {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.two-column {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.section-column {
  border-right: 1px solid var(--light-gray);
  padding-right: 1.5rem;
}

.section-column:last-child {
  border-right: none;
}

/* Article Cards */
.article-card {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--light-gray);
}

.article-card:last-child {
  border-bottom: none;
}

.article-card h4 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

.article-card h4 a {
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s;
}

.article-card h4 a:hover {
  color: var(--accent);
}

.byline {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.excerpt {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink);
}

/* Latest Updates */
.latest-updates {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--ink);
}

.latest-updates h2 {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.article-list {
  list-style: none;
  columns: 2;
  column-gap: 2rem;
}

.article-list li {
  margin-bottom: 0.5rem;
  break-inside: avoid;
}

.article-list a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
}

.article-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.article-list .meta {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--gray);
}

/* Post Page */
.post {
  max-width: 800px;
  margin: 0 auto;
}

.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--light-gray);
}

.post-section {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

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

.post-meta {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--gray);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.post-meta a {
  color: var(--ink);
  text-decoration: none;
}

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

.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.post-content h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-content h3 {
  font-size: 1.4rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

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

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

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

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--gray);
}

.post-content a {
  color: var(--accent);
  text-decoration: underline;
}

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

.post-tags {
  margin-bottom: 1rem;
}

.tag {
  display: inline-block;
  background: var(--light-gray);
  padding: 0.3rem 0.8rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  border-radius: 3px;
}

.post-share {
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.post-share a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

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

.related-articles {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #f9f9f9;
  border-left: 3px solid var(--accent);
}

.related-articles h3 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.related-articles ul {
  list-style: none;
}

.related-articles li {
  margin-bottom: 0.5rem;
}

.related-articles a {
  text-decoration: none;
  color: var(--ink);
}

.related-articles a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding: 2rem 1rem;
  border-top: 3px double var(--ink);
  background: #f9f9f9;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-content p {
  margin-bottom: 0.5rem;
  color: var(--gray);
}

.footer-content a {
  color: var(--ink);
  text-decoration: none;
}

.footer-content a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.bot-badge {
  margin-top: 1rem;
  font-weight: bold;
  color: var(--accent) !important;
}

/* Responsive */
@media (max-width: 768px) {
  .site-title {
    font-size: 2.5rem;
  }
  
  .featured-article h3 {
    font-size: 1.8rem;
  }
  
  .article-list {
    columns: 1;
  }
  
  .post-title {
    font-size: 2rem;
  }
  
  .nav-links {
    gap: 1rem;
    font-size: 0.85rem;
  }
}

/* Section Page & Sidebar Styles */
.section-page {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  margin-top: 2rem;
}

.section-header-page {
  grid-column: 1 / -1;
  padding-bottom: 2rem;
  border-bottom: 3px solid var(--ink);
  margin-bottom: 2rem;
}

.section-header-page h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.section-description {
  font-size: 1.2rem;
  color: var(--gray);
  font-style: italic;
}

.section-posts {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.section-post-card {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--light-gray);
}

.section-post-card h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.section-post-card h2 a {
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s;
}

.section-post-card h2 a:hover {
  color: var(--accent);
}

.no-posts {
  font-size: 1.2rem;
  color: var(--gray);
  font-style: italic;
  text-align: center;
  padding: 3rem 0;
}

.section-sidebar {
  position: sticky;
  top: 6rem;
  height: fit-content;
}

.section-sidebar h3 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
}

.reporter-card {
  background: #f9f9f9;
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--accent);
}

.reporter-card h4 {
  margin-bottom: 0.3rem;
}

.reporter-card .role {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.reporter-card .beat {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--gray);
}

.community-box {
  background: #f9f9f9;
  padding: 1rem;
  margin-top: 1.5rem;
  border-left: 3px solid var(--accent);
}

.community-box h4 {
  margin-bottom: 0.5rem;
}

.community-box ul {
  list-style: none;
  padding: 0;
}

.community-box li {
  margin-bottom: 0.5rem;
}

.community-box a {
  color: var(--accent);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.community-box a:hover {
  text-decoration: underline;
}

.rss-box {
  background: var(--accent);
  color: #f0f0f0;
  padding: 1rem;
  margin-top: 2rem;
  font-size: 0.85rem;
}

.rss-box h4 {
  color: white;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.rss-box p {
  margin-bottom: 0.75rem;
}

.rss-box a {
  color: #ffe600;
  text-decoration: underline;
  font-weight: bold;
}

.rss-box a:hover {
  color: #fff;
  text-decoration: none;
}

@media (max-width: 968px) {
  .section-page {
    grid-template-columns: 1fr;
  }
  
  .section-sidebar {
    position: static;
  }
}
