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

body {
  background: #c8b89a;
  font-family: 'Merriweather', Georgia, serif;
  color: #1a1008;
  min-height: 100vh;
  padding: 2rem 1rem;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Newspaper Container ──────────────────────────────────────────────────── */
.newspaper {
  max-width: 960px;
  margin: 0 auto;
  background: #f4f1e8;
  border: 1px solid #8b7355;
  box-shadow: 4px 4px 20px rgba(0,0,0,0.4);
  padding: 0;
}

/* ── Masthead ─────────────────────────────────────────────────────────────── */
.masthead {
  border-bottom: 4px double #1a1008;
  padding: 1.5rem 2rem 0.75rem;
  text-align: center;
}

.masthead-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.vol-info, .price {
  font-size: 0.75rem;
  font-family: 'Merriweather Sans', sans-serif;
  color: #4a3728;
  letter-spacing: 0.05em;
  min-width: 120px;
}
.price { text-align: right; }

.paper-name {
  font-family: 'UnifrakturMaguntia', cursive;
  font-size: 3.5rem;
  line-height: 1;
  color: #1a1008;
  letter-spacing: 0.02em;
  flex: 1;
}

.tagline {
  font-size: 0.7rem;
  font-style: italic;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #4a3728;
  margin: 0.25rem 0;
  border-top: 1px solid #8b7355;
  border-bottom: 1px solid #8b7355;
  padding: 0.25rem 0;
}

.issue-date {
  font-size: 0.8rem;
  color: #4a3728;
  margin: 0.3rem 0 0.5rem;
  font-family: 'Merriweather Sans', sans-serif;
}

.nav-bar {
  font-size: 0.75rem;
  font-family: 'Merriweather Sans', sans-serif;
  padding: 0.4rem 0;
  border-top: 1px solid #8b7355;
}
.nav-bar a { margin: 0 0.5rem; color: #4a3728; }
.nav-bar a:hover { color: #1a1008; }

/* ── Section Rules ────────────────────────────────────────────────────────── */
.section-rule {
  border: none;
  border-top: 3px double #1a1008;
  margin: 0;
}

.section-title {
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-align: center;
  padding: 0.5rem 2rem 0.4rem;
  border-top: 1px solid #1a1008;
  border-bottom: 2px solid #1a1008;
  color: #1a1008;
  margin-bottom: 1rem;
}

/* ── Front Page ───────────────────────────────────────────────────────────── */
.front-page {
  padding: 1.5rem 2rem;
}

.article--lead .headline--lead {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  text-align: center;
  font-weight: 700;
}

.article--lead .subheadline {
  font-size: 1rem;
  font-style: italic;
  text-align: center;
  color: #4a3728;
  margin-bottom: 1rem;
}

.article-image--lead {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  margin-bottom: 1rem;
  filter: sepia(30%);
  border: 1px solid #8b7355;
}

/* ── Inside Pages ─────────────────────────────────────────────────────────── */
.inside-pages { padding: 0; }

.section { padding: 1rem 2rem 1.5rem; }

.article-grid {
  column-count: 2;
  column-gap: 2rem;
  margin-top: 1rem;
}
.article-grid .article {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin-bottom: 1.5rem;
}

/* ── Article ──────────────────────────────────────────────────────────────── */
.article { border-right: 1px solid #c8b89a; padding-right: 1rem; }
.article:last-child { border-right: none; padding-right: 0; }

.headline {
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.subheadline {
  font-size: 0.85rem;
  font-style: italic;
  color: #4a3728;
  margin-bottom: 0.5rem;
}

.article-image {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  margin-bottom: 0.75rem;
  filter: sepia(20%);
  border: 1px solid #8b7355;
}

.article-body { font-size: 0.85rem; line-height: 1.7; }
.article-body p { margin: 0; text-indent: 1.5em; }
.article-body p:first-child { text-indent: 0; }

/* Drop cap for lead article */
.article-body p:first-child::first-letter {
  float: left;
  font-size: 3.5rem;
  line-height: 1;
  margin-right: 0.4rem;
  margin-top: 0.05rem;
  font-family: 'UnifrakturMaguntia', cursive;
  color: #1a1008;
}

/* ── Obituary ─────────────────────────────────────────────────────────────── */
.section--obituary { background: #ece9de; }
.article--obituary { border-top: 1px solid #8b7355; padding-top: 1rem; margin-top: 1rem; }
.article--obituary:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

/* ── Classifieds ──────────────────────────────────────────────────────────── */
.section--classifieds { background: #ece9de; }
.classifieds-body {
  font-size: 0.75rem;
  line-height: 1.3;
  column-count: 3;
  column-gap: 1.5rem;
}
.classifieds-body p {
  margin: 0.2rem 0;
  text-indent: 0;
  break-inside: avoid;
  font-size: 0.75rem;
  line-height: 1.3;
}

/* ── Archive ──────────────────────────────────────────────────────────────── */
.archive-list { padding: 1rem 2rem 2rem; }
.archive-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid #c8b89a;
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.85rem;
}
.archive-item:hover { background: #ece9de; }
.archive-vol { color: #4a3728; }
.archive-date { font-weight: 700; }

/* ── Character Grid ───────────────────────────────────────────────────────── */
.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  padding: 1rem 2rem 2rem;
}

.character-card {
  display: block;
  border: 1px solid #8b7355;
  padding: 0.75rem;
  background: #faf8f2;
  transition: background 0.15s;
}
.character-card:hover { background: #ece9de; }
.character-card--deceased { opacity: 0.6; }
.character-name { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.25rem; }
.character-meta { font-size: 0.75rem; color: #4a3728; font-family: 'Merriweather Sans', sans-serif; }
.character-status { font-size: 0.7rem; color: #8b7355; margin-top: 0.25rem; font-style: italic; }

/* ── Character Detail ─────────────────────────────────────────────────────── */
.character-detail { padding: 1.5rem 2rem 2rem; }
.character-detail h2 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.article--compact { padding: 0.5rem 0; border-bottom: 1px solid #c8b89a; }
.article-section {
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8b7355;
  margin-right: 0.5rem;
}


/* ── Weather Box (masthead) ───────────────────────────────────────────────── */
.masthead-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 0.3rem 0 0;
  flex-wrap: wrap;
}

.weather-row {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.72rem;
  color: #4a3728;
  border-top: 1px solid #8b7355;
  border-bottom: 1px solid #8b7355;
  padding: 0.75rem 0;
  margin: 0;
}

.weather-label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.weather-temp {
  font-weight: 700;
}

.weather-conditions {
  font-style: italic;
}

.weather-outlook {
  font-style: italic;
  color: #6b5040;
}

/* ── Ad Strips ────────────────────────────────────────────────────────────── */
.ad-strip {
  background: #faf8f2;
  border-top: 1px solid #c8b89a;
  border-bottom: 1px solid #c8b89a;
  padding: 0.6rem 2rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.ad-strip--header { justify-content: center; }
.ad-strip--inline { justify-content: space-around; }
.ad-strip--footer { justify-content: center; }

.ad-box {
  flex: 1;
  min-width: 180px;
  font-family: 'Merriweather', serif;
  font-size: 0.8em;
  line-height: 1.4;
  text-align: center;
  padding: 0.4rem 1rem;
  border-left: 1px solid #c8b89a;
}

.ad-box:first-child { border-left: none; }
.ad-box--wide { max-width: 100%; flex: none; min-width: 0; border-left: none; }

.ad-headline {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95em;
  margin-bottom: 0.2em;
}

.ad-body {
  color: #4a3728;
}

.ad-business {
  font-style: italic;
  font-size: 0.85em;
  color: #6b5040;
  margin-top: 0.2em;
}

/* ── Newspaper Boilerplate ────────────────────────────────────────────────── */
.newspaper-boilerplate {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 1rem 2rem 1.5rem;
  background: #ece9de;
  border-top: 3px double #1a1008;
  font-family: 'Merriweather', serif;
  font-size: 0.78em;
  line-height: 1.6;
  color: #1a1008;
}

.boilerplate-col strong {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.85em;
  margin-bottom: 0.15em;
}

.boilerplate-col p {
  margin-bottom: 0.8em;
}

.boilerplate-colophon {
  font-style: italic;
  color: #4a3728;
}

@media (max-width: 640px) {
  .newspaper-boilerplate { grid-template-columns: 1fr; }
}

/* ── Weather Report (inline column style) ─────────────────────────────────── */
.weather-report {
  font-family: 'Merriweather', serif;
  font-size: 0.8em;
  line-height: 1.5;
  margin: 0;
}

.weather-report h3 {
  font-size: 0.8em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid #4a3728;
  padding-bottom: 0.2em;
  margin-bottom: 0.5em;
}

.weather-report p {
  margin: 0.15em 0;
  font-style: italic;
  color: #4a3728;
}

/* ── Footer Info (weather + boilerplate two-column) ──────────────────────── */
.footer-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #8b7355;
}

.footer-column { min-width: 0; }

.newspaper-info {
  font-family: 'Merriweather', serif;
  font-size: 0.78em;
  line-height: 1.6;
  color: #1a1008;
}

.newspaper-info strong {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.85em;
  margin-bottom: 0.1em;
}

.newspaper-info p {
  margin-bottom: 0.9em;
}

.newspaper-info-colophon {
  font-style: italic;
  color: #4a3728;
  font-size: 0.9em;
}

@media (max-width: 640px) {
  .footer-info { grid-template-columns: 1fr; }
}

/* ── Advertisements (classified text style) ───────────────────────────────── */
.advertisement {
  font-family: 'Merriweather', serif;
  font-size: 0.8em;
  line-height: 1.5;
  margin: 1em 0;
  color: #1a1008;
  border-top: 1px solid #c8b89a;
  padding-top: 0.6em;
}

.ad-business-name {
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.paper-footer {
  border-top: 4px double #1a1008;
  padding: 0.75rem 2rem;
  text-align: center;
  font-size: 0.7rem;
  color: #4a3728;
  font-style: italic;
}
.paper-footer a { color: #4a3728; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .paper-name { font-size: 2rem; }
  .masthead-top { flex-direction: column; }
  .article-grid { column-count: 1; }
  .classifieds-body { column-count: 1; }
  .character-grid { grid-template-columns: repeat(2, 1fr); }
}


.section .article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  grid-auto-flow: dense;
}

/* For single article, take full width */
.section .article-grid article:only-child {
  grid-column: 1 / -1;
}

.site-nav {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.65rem;
  color: #8b7355;
  letter-spacing: 0.03em;
}

.site-nav a {
  color: #8b7355;
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: #4a3728;
  text-decoration: underline;
}

.nav-sep {
  margin: 0 0.35rem;
  color: #b5a18f;
}