/* The Livingston Ledger — newspaper-style stylesheet */

:root {
  --ink: #161412;
  --ink-soft: #3b3633;
  --paper: #f5f1e8;
  --rule: #1a1a1a;
  --accent: #8a1c1c;
  --muted: #6e6760;
  --kicker: #8a1c1c;
  --box: #efe9dc;
  --link: #2b3a67;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Georgia", "Times New Roman", serif;
  line-height: 1.55;
}

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === MASTHEAD === */
.masthead {
  border-bottom: 3px double var(--rule);
  padding-top: 14px;
}

.masthead-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  color: var(--muted);
  font-family: "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.02em;
  padding-bottom: 6px;
  border-bottom: 1px solid #ccc4b6;
}

.masthead-top a { color: var(--ink-soft); }

.logo {
  font-family: "Playfair Display", "Didot", "Bodoni MT", Georgia, serif;
  font-weight: 900;
  font-size: clamp(40px, 6vw, 78px);
  text-align: center;
  margin: 16px 0 6px;
  letter-spacing: -0.01em;
  font-variant: small-caps;
}
.logo a { color: var(--ink); }
.logo a:hover { text-decoration: none; }

.tagline {
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 14px;
  font-size: 15px;
}

.masthead nav {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 8px 0;
  margin-top: 10px;
}

.masthead nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
  gap: 0;
}
.masthead nav li {
  padding: 0 14px;
  border-right: 1px solid #c9c1b1;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.masthead nav li:last-child { border-right: 0; }
.masthead nav a { color: var(--ink); }
.masthead nav a.active { color: var(--accent); font-weight: bold; }

.masthead.compact .logo { font-size: 36px; margin: 8px 0; }
.masthead.compact .tagline { display: none; }

/* === LEAD GRID === */
main { padding: 28px 0 60px; }

.lead-grid {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 36px;
  padding-bottom: 24px;
}

.lead-story .kicker {
  display: inline-block;
  color: var(--kicker);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 6px;
}

.lead-story h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  margin: 4px 0 8px;
  font-weight: 900;
  letter-spacing: -0.005em;
}
.lead-story h2 a { color: var(--ink); }

.byline {
  font-style: italic;
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 14px;
}

.lead-image {
  width: 100%;
  height: 360px;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.4)),
    repeating-linear-gradient(120deg, #6c7c63 0 6px, #5b6c55 6px 12px),
    radial-gradient(circle at 50% 30%, #b5c8b8 0%, #6b7d6a 60%, #2c3a31 100%);
  position: relative;
  border: 1px solid #aaa39a;
  margin-bottom: 14px;
}

.lead-image[data-img="millpond"] {
  background:
    linear-gradient(to bottom, #c9d4cd 0%, #9bb1a5 40%, #2f4439 80%, #1a2620 100%),
    radial-gradient(circle at 70% 20%, rgba(255,220,160,0.4) 0%, transparent 50%);
  background-blend-mode: screen;
}

.lead-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 60% 65%, rgba(255,255,255,0.15) 0%, transparent 60%),
    linear-gradient(180deg, transparent 70%, rgba(0,0,0,0.5));
}

.lead-image .caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  font-size: 12px;
  font-style: italic;
  color: #f1ebd9;
  z-index: 2;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
}

.dek {
  font-size: 17px;
  line-height: 1.55;
  margin: 4px 0 10px;
  color: var(--ink-soft);
}

.read-more {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

/* sidebar */
.lead-sidebar { display: flex; flex-direction: column; gap: 18px; }

.box {
  background: var(--box);
  border: 1px solid #c9c1b1;
  padding: 14px 16px;
}
.box h3 {
  margin: 0 0 8px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-bottom: 1px solid #b6ad9c;
  padding-bottom: 6px;
  color: var(--ink);
}
.box ul { margin: 0; padding-left: 18px; font-size: 14px; }
.box li { margin-bottom: 6px; }
.box .small { font-size: 12px; color: var(--muted); margin-top: 8px; }

.box.breaking { border-left: 3px solid var(--accent); }
.box.breaking li strong { color: var(--accent); font-family: "Helvetica Neue", Arial, sans-serif; font-size: 12px; }

.box.weather table { width: 100%; font-size: 13px; border-collapse: collapse; }
.box.weather th { text-align: left; font-weight: bold; padding: 3px 0; }
.box.weather td { padding: 3px 6px; }

.box.agenda li strong {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* === DIVIDERS === */
.divider {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 32px 0;
}

/* === GRID THREE === */
.grid-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  column-gap: 36px;
}

.grid-three .card { border-top: 2px solid var(--rule); padding-top: 12px; }
.grid-three .card h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 21px;
  line-height: 1.2;
  margin: 6px 0 6px;
  font-weight: 800;
}
.grid-three .card h3 a { color: var(--ink); }
.grid-three .card p { font-size: 14px; margin: 6px 0; }
.kicker {
  color: var(--kicker);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* === TWO COL === */
.two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
}
.section-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  margin: 0 0 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--rule);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.opinion { padding: 10px 0; border-bottom: 1px dotted #b6ad9c; }
.opinion h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 19px;
  margin: 4px 0 4px;
  line-height: 1.2;
}
.opinion h3 a { color: var(--ink); }
.opinion p { font-size: 14px; margin: 4px 0; }

.obit-list { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.obit-list li {
  padding: 8px 0;
  border-bottom: 1px dotted #b6ad9c;
}

/* === FOOTER GRID === */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li {
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px dotted #c9c1b1;
}

/* === FOOTER === */
footer {
  background: #1a1816;
  color: #d9d3c4;
  padding: 36px 0 20px;
  margin-top: 40px;
  font-family: "Helvetica Neue", Arial, sans-serif;
}
footer a { color: #e8c8a3; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
footer h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  margin: 0 0 10px;
  color: #f1ebd9;
}
footer ul { list-style: none; padding: 0; margin: 0; font-size: 13px; }
footer li { padding: 3px 0; }
footer p { font-size: 13px; line-height: 1.55; }
.copy {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid #3a342d;
  font-size: 12px;
  color: #968d7e;
  text-align: center;
}

/* === ARTICLE PAGE === */
.article-page article {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  margin-top: 16px;
}

.breadcrumb {
  grid-column: 1 / -1;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.article-page .kicker { grid-column: 1 / -1; margin-top: 10px; }
.article-page .headline {
  grid-column: 1 / -1;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.05;
  margin: 4px 0 10px;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.article-page .dek {
  grid-column: 1 / -1;
  font-size: 20px;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.byline-large {
  grid-column: 1 / -1;
  font-style: italic;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid #c9c1b1;
  border-bottom: 1px solid #c9c1b1;
  padding: 10px 0;
  margin: 6px 0 18px;
}
.lead-image.article {
  grid-column: 1 / -1;
  height: 460px;
  margin-bottom: 28px;
}
.article-body { font-size: 18px; line-height: 1.7; }
.article-body p { margin: 0 0 18px; }
.article-body p:first-of-type::first-letter {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 64px;
  float: left;
  line-height: 0.9;
  padding: 6px 10px 0 0;
  font-weight: 900;
}
.article-body h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  margin: 30px 0 12px;
  font-weight: 800;
  letter-spacing: -0.005em;
}
.signoff {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid #c9c1b1;
  font-size: 14px;
  color: var(--muted);
}
.article-sidebar {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  border-top: 2px solid var(--rule);
  padding-top: 12px;
}
.article-sidebar h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
  font-weight: 800;
  margin: 16px 0 8px;
  border-bottom: 1px solid #c9c1b1;
  padding-bottom: 4px;
}
.article-sidebar h3:first-of-type { margin-top: 0; }
.vote-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.vote-table th { text-align: left; padding: 4px 0; font-weight: normal; }
.vote-table td { text-align: right; padding: 4px 0; font-weight: bold; }
.vote-table td.yes { color: #2a6b3f; }
.vote-table td.no { color: var(--accent); }
.timeline { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.timeline li { padding: 5px 0; border-bottom: 1px dotted #c9c1b1; }
.timeline strong { display: inline-block; min-width: 95px; color: var(--accent); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .lead-grid, .two-col, .grid-three, .footer-cols, .footer-grid { grid-template-columns: 1fr; }
  .article-page article { grid-template-columns: 1fr; }
  .lead-image { height: 260px; }
  .lead-image.article { height: 280px; }
}
