/* NEast Philly — original-style hyperlocal news theme */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #b31b1b;
  --red-dark: #8b1515;
  --black: #1c1c1c;
  --gray-bg: #ece9e2;
  --gray-border: #d5d0c8;
  --text: #333;
  --text-light: #777;
  --white: #fff;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: "Helvetica Neue", Arial, Helvetica, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  color: var(--text);
  background: var(--gray-bg);
  line-height: 1.65;
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ---- TOP BAR ---- */
.top-bar {
  background: var(--black);
  color: #aaa;
  font-family: var(--sans);
  font-size: 0.72rem;
  padding: 6px 0;
  border-bottom: 1px solid #333;
}

.top-bar .wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar a { color: #ccc; }
.top-bar a:hover { color: #fff; text-decoration: none; }

.social-links { display: flex; gap: 14px; }

/* ---- HEADER ---- */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--red);
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 20px 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.logo a { text-decoration: none; }
.logo a:hover { text-decoration: none; }

.logo h1 {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--black);
  letter-spacing: -2px;
}

.logo h1 .ne { color: var(--red); }

.logo .tagline {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 6px;
  font-style: italic;
}

.header-right {
  text-align: right;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--text-light);
}

.header-right .date {
  font-size: 0.85rem;
  color: var(--black);
  font-weight: 600;
  margin-bottom: 4px;
}

.search-form input {
  padding: 7px 12px;
  border: 1px solid var(--gray-border);
  border-radius: 2px;
  width: 200px;
  font-size: 0.85rem;
  margin-top: 8px;
}

/* ---- NAV ---- */
.main-nav {
  background: var(--red);
  font-family: var(--sans);
}

.main-nav ul {
  max-width: 1000px;
  margin: 0 auto;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.main-nav a {
  display: block;
  padding: 11px 15px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--red-dark);
  text-decoration: none;
}

/* ---- LAYOUT ---- */
.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.layout {
  max-width: 1000px;
  margin: 28px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  align-items: start;
}

.main-content { min-width: 0; }

/* ---- HERO / LEAD STORY ---- */
.lead-story {
  background: var(--white);
  border: 1px solid var(--gray-border);
  margin-bottom: 28px;
  overflow: hidden;
}

.lead-story .thumb {
  width: 100%;
  height: 300px;
  object-fit: cover;
  background: #ccc;
}

.lead-body { padding: 22px 26px 26px; }

.kicker {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--red);
  margin-bottom: 8px;
}

.lead-story h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 10px;
}

.lead-story h2 a { color: var(--black); }
.lead-story h2 a:hover { color: var(--red); text-decoration: none; }

.excerpt { font-size: 1.05rem; color: #444; margin: 12px 0 16px; }

.byline {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.byline a { font-weight: 600; }

.read-more {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---- SECTION HEADERS ---- */
.section-head {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--red);
  border-bottom: 2px solid var(--red);
  padding-bottom: 7px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.section-head a.view-all {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

/* ---- POST LIST ---- */
.post-list { margin-bottom: 32px; }

.post-item {
  background: var(--white);
  border: 1px solid var(--gray-border);
  padding: 16px 18px;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: start;
}

.post-item .mini-thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
  background: #ddd;
}

.post-item h3 {
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 4px 0 6px;
}

.post-item h3 a { color: var(--black); }
.post-item h3 a:hover { color: var(--red); text-decoration: none; }

.post-item p {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.5;
}

/* ---- COLUMNS GRID ---- */
.columns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 32px;
}

.column-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-top: 3px solid var(--red);
  padding: 16px;
}

.column-card .col-name {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--red);
  margin-bottom: 6px;
}

.column-card h3 {
  font-size: 1rem;
  line-height: 1.35;
  margin-bottom: 6px;
}

.column-card h3 a { color: var(--black); }
.column-card h3 a:hover { color: var(--red); text-decoration: none; }

/* ---- SIDEBAR ---- */
.sidebar .widget {
  background: var(--white);
  border: 1px solid var(--gray-border);
  margin-bottom: 22px;
  overflow: hidden;
}

.widget-title {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: var(--black);
  color: var(--white);
  padding: 10px 14px;
}

.widget-body { padding: 14px; }

.widget ul { list-style: none; }

.widget li {
  padding: 8px 0;
  border-bottom: 1px solid #f0ede8;
  font-size: 0.9rem;
  line-height: 1.4;
}

.widget li:last-child { border-bottom: none; }

.neighborhood-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.neighborhood-tags a {
  background: #f3f0ea;
  border: 1px solid var(--gray-border);
  padding: 3px 9px;
  font-family: var(--sans);
  font-size: 0.72rem;
  color: #555;
  border-radius: 2px;
}

.neighborhood-tags a:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  text-decoration: none;
}

.ad-space {
  background: #f8f6f2;
  border: 2px dashed var(--gray-border);
  padding: 30px 14px;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--text-light);
}

.ad-space strong { display: block; color: var(--red); margin-bottom: 6px; }

/* ---- PAGE TEMPLATES ---- */
.page-header {
  background: var(--white);
  border: 1px solid var(--gray-border);
  padding: 28px 30px;
  margin-bottom: 24px;
}

.page-header h1 {
  font-size: 2rem;
  color: var(--black);
  margin-bottom: 8px;
}

.page-header p {
  font-family: var(--sans);
  color: var(--text-light);
  font-size: 0.95rem;
}

.page-content {
  background: var(--white);
  border: 1px solid var(--gray-border);
  padding: 28px 30px;
  margin-bottom: 28px;
}

.page-content h2 {
  font-size: 1.3rem;
  margin: 24px 0 12px;
  color: var(--black);
}

.page-content h2:first-child { margin-top: 0; }

.page-content p { margin-bottom: 14px; }

.page-content ul { margin: 0 0 16px 24px; }

.contributor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.contributor {
  border: 1px solid var(--gray-border);
  padding: 16px;
  background: #faf9f7;
}

.contributor h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contributor .role {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 8px;
}

/* ---- ARTICLE PAGE ---- */
.article-header { margin-bottom: 20px; }

.article-header h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin: 10px 0 14px;
  color: var(--black);
}

.article-body {
  background: var(--white);
  border: 1px solid var(--gray-border);
  padding: 28px 32px;
}

.article-body p { margin-bottom: 16px; font-size: 1.05rem; }

.article-body .lead { font-size: 1.15rem; color: #444; font-style: italic; }

.article-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  margin-bottom: 20px;
}

.article-tags {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-border);
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--text-light);
}

.article-tags a {
  background: #f0ede8;
  padding: 2px 8px;
  margin-right: 4px;
  border-radius: 2px;
  font-size: 0.75rem;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--black);
  color: #999;
  font-family: var(--sans);
  font-size: 0.8rem;
  margin-top: 48px;
  padding: 32px 20px;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
}

.footer-inner h4 {
  color: var(--white);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.footer-inner ul { list-style: none; }

.footer-inner li { margin-bottom: 7px; }

.footer-inner a { color: #bbb; }
.footer-inner a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  max-width: 1000px;
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid #333;
  text-align: center;
  font-size: 0.75rem;
  color: #666;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; }
  .post-item { grid-template-columns: 1fr; }
  .post-item .mini-thumb { width: 100%; height: 160px; }
  .columns-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .contributor-grid { grid-template-columns: 1fr; }
  .logo h1 { font-size: 2.1rem; }
  .lead-story h2 { font-size: 1.5rem; }
}
