/* Dallas Business News — old broadsheet newspaper look */

:root {
  --ink: #1a1a1a;
  --paper: #f4f1e9;
  --paper-edge: #e8e3d6;
  --rule: #1a1a1a;
  --muted: #555049;
  --link: #5a1e1e;
  --accent: #5a1e1e;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #cfc9ba;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", Times, serif;
  -webkit-font-smoothing: antialiased;
}

/* Top navigation */
.topnav {
  background: #1a1a1a;
  color: #f4f1e9;
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 3px double #6b6452;
}
.topnav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 36px;
}
.topnav-brand {
  font-family: Georgia, serif;
  font-weight: 900;
  font-size: 17px;
  color: #f4f1e9;
  text-decoration: none;
  letter-spacing: .01em;
  white-space: nowrap;
  margin-right: auto;
}
.topnav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 34px;
  background: none;
  border: 1px solid #6b6452;
  cursor: pointer;
  padding: 7px;
}
.topnav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #f4f1e9;
  transition: transform .2s, opacity .2s;
}
.topnav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topnav-toggle.is-open span:nth-child(2) { opacity: 0; }
.topnav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.topnav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}
.topnav-links a {
  color: #d8d1bf;
  text-decoration: none;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
  flex-shrink: 0;
}
.topnav-links a:hover,
.topnav-links a.active { color: #fff; }
.topnav-links a.active { border-bottom: 2px solid var(--gold, #a8863f); padding-bottom: 2px; }
.topnav-cta {
  background: var(--accent);
  color: #f4f1e9 !important;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 7px 16px;
  white-space: nowrap;
}
.topnav-cta:hover { background: #fff; color: var(--accent) !important; }

.paper {
  max-width: 1100px;
  margin: 24px auto;
  background: var(--paper);
  background-image: radial-gradient(transparent, transparent), linear-gradient(180deg, var(--paper), var(--paper));
  border: 1px solid #bdb6a3;
  padding: 28px 36px 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
}

/* Masthead */
.masthead-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 6px;
}
.nameplate {
  font-family: "Old English Text MT", "UnifrakturCook", Georgia, serif;
  font-weight: 900;
  font-size: clamp(40px, 8vw, 84px);
  text-align: center;
  margin: 10px 0 4px;
  letter-spacing: .01em;
  line-height: 1;
}
.nameplate-logo {
  margin: 8px 0 0;
  text-align: center;
}
.nameplate-logo img {
  width: 100%;
  max-width: 620px;
  height: auto;
}
.motto {
  text-align: center;
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 12px;
}
.rule {
  border-top: 3px double var(--rule);
  margin: 8px 0;
}

/* Columns */
.columns {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.9fr;
  gap: 26px;
  margin-top: 18px;
}
.col { min-width: 0; }
.col-main, .col-mid { border-right: 1px solid #cdc6b3; padding-right: 24px; }
.col-side { padding-left: 2px; }

/* Stories */
.story { margin: 0 0 22px; padding-bottom: 18px; border-bottom: 1px solid #d8d1bf; }
.story:last-child { border-bottom: none; }

.lead-title {
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.08;
  margin: 0 0 10px;
  font-weight: 900;
}
.lead-excerpt { font-size: 17px; }
.lead { border-bottom: 3px double var(--rule); padding-bottom: 18px; }

.story-title { font-size: 19px; line-height: 1.2; margin: 0 0 6px; font-weight: 700; }
.story-excerpt { font-size: 14.5px; line-height: 1.5; margin: 0 0 8px; color: #2a2722; }

.story-title a, .lead-title a { color: var(--ink); text-decoration: none; }
.story-title a:hover, .lead-title a:hover { color: var(--link); text-decoration: underline; }

.story-credit { font-size: 12px; color: var(--muted); margin: 0; }
.story-credit a { color: var(--link); text-decoration: none; }
.story-credit a:hover { text-decoration: underline; }
.dateline {
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-right: 6px;
  color: var(--ink);
}

/* Images */
.story-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  margin: 0 0 10px;
  border: 1px solid #bdb6a3;
  filter: grayscale(18%) contrast(1.02);
}
.lead-thumb { height: 300px; }

.featured { border-bottom: 3px double var(--rule); padding-bottom: 18px; margin-bottom: 22px; }
.featured-figure { margin: 0 0 12px; }
.featured-figure img {
  width: 100%;
  display: block;
  border: 1px solid #bdb6a3;
  filter: grayscale(15%) contrast(1.02);
}
.featured-figure figcaption {
  font-size: 11px;
  font-style: italic;
  color: var(--muted);
  margin-top: 4px;
}

/* Analysis sidebar */
.section-head {
  font-size: 22px;
  text-align: center;
  border-top: 2px solid var(--rule);
  border-bottom: 2px solid var(--rule);
  padding: 6px 0;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.side-note { font-size: 12px; font-style: italic; color: var(--muted); margin: 0 0 16px; }
.analysis { margin: 0 0 20px; padding-bottom: 16px; border-bottom: 1px solid #d8d1bf; }
.kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  background: var(--accent);
  color: var(--paper);
  padding: 2px 7px;
  margin-bottom: 6px;
}
.analysis-title { font-size: 18px; line-height: 1.2; margin: 4px 0 4px; }
.analysis-byline { font-size: 11.5px; color: var(--muted); margin: 0 0 8px; font-style: italic; }
.analysis p { font-size: 13.5px; line-height: 1.5; margin: 0 0 8px; }

.empty { font-style: italic; color: var(--muted); }

/* Ad slots */
.ad-slot {
  margin: 0 0 22px;
  padding: 14px;
  border: 1px solid #c9c1ad;
  background: #efeadd;
  text-align: center;
}
.ad-label {
  display: block;
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8a8268;
  margin-bottom: 8px;
}
.house-ad { background: #efeadd; }
.house-headline {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 6px;
  line-height: 1.2;
}
.house-body { font-size: 12.5px; color: var(--muted); margin: 0 0 10px; line-height: 1.45; }
.house-cta {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--accent);
  padding: 6px 14px;
  text-decoration: none;
}
.house-cta:hover { background: #431515; }

/* Standalone pages (about, privacy) */
.page-body { max-width: 680px; margin: 18px auto 0; }
.page-body p { font-size: 15px; line-height: 1.6; margin: 0 0 14px; }
.page-body h3 { font-size: 17px; margin: 22px 0 6px; }
.page-body a { color: var(--link); }

/* Most Read */
.most-read { margin-top: 8px; }
.most-read-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: mr;
}
.most-read-list li {
  counter-increment: mr;
  position: relative;
  padding: 8px 0 8px 30px;
  border-bottom: 1px solid #d8d1bf;
}
.most-read-list li:last-child { border-bottom: none; }
.most-read-list li::before {
  content: counter(mr);
  position: absolute;
  left: 0; top: 6px;
  font-family: Georgia, serif;
  font-weight: 900;
  font-size: 20px;
  color: var(--accent);
  line-height: 1;
}
.most-read-list a {
  display: block;
  font-size: 14px;
  line-height: 1.25;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.most-read-list a:hover { color: var(--link); }
.mr-source { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }

/* Sponsors */
.sponsors { margin-top: 22px; }
.sponsor-grid { display: flex; flex-direction: column; gap: 8px; }
.sponsor-card {
  display: block;
  text-align: center;
  border: 1px dashed #b0a98f;
  background: #efeadd;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-style: italic;
  padding: 16px 10px;
}
.sponsor-card:hover { border-color: var(--accent); color: var(--accent); }

/* Newsletter */
.newsletter {
  border: 2px solid var(--rule);
  background: #efeadd;
  padding: 16px;
  margin: 0 0 22px;
}
.nl-headline { font-size: 18px; margin: 0 0 6px; line-height: 1.15; }
.nl-body { font-size: 12.5px; color: var(--muted); margin: 0 0 10px; line-height: 1.45; }
.nl-form { display: flex; gap: 6px; flex-wrap: wrap; }
.nl-input {
  flex: 1 1 140px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #bdb6a3;
  font-family: Georgia, serif;
  font-size: 13px;
  background: #fff;
}
.nl-button {
  border: none;
  background: var(--accent);
  color: var(--paper);
  font-weight: 700;
  font-family: Georgia, serif;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 8px 16px;
  cursor: pointer;
}
.nl-button:hover { background: #431515; }
.nl-done { font-size: 12px; color: #2a6a2a; margin: 8px 0 0; font-weight: 700; }

.newsletter-wide {
  max-width: 680px;
  margin: 30px auto 0;
  text-align: center;
}
.newsletter-wide .nl-form { justify-content: center; }
.newsletter-wide .nl-headline { font-size: 24px; }

/* Membership popup */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,18,14,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal {
  position: relative;
  background: var(--paper);
  border: 3px double var(--rule);
  max-width: 420px;
  width: 100%;
  padding: 30px 28px 26px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
}
.modal-close {
  position: absolute;
  top: 8px; right: 12px;
  background: none; border: none;
  font-size: 26px; line-height: 1;
  cursor: pointer; color: var(--muted);
}
.modal-head { font-size: 26px; line-height: 1.12; margin: 8px 0 10px; }
.modal-body { font-size: 14px; color: #2a2722; line-height: 1.5; margin: 0 0 14px; }
.modal-price {
  font-size: 32px;
  font-weight: 900;
  color: var(--accent);
  margin: 0 0 16px;
}
.modal-soon { font-size: 12.5px; color: var(--muted); font-style: italic; margin: 0 0 12px; line-height: 1.45; }
.modal-nl { justify-content: center; }
.modal-done { font-size: 12.5px; color: #2a6a2a; font-weight: 700; margin: 10px 0 0; }
.modal-dismiss {
  display: block;
  margin: 12px auto 0;
  background: none; border: none;
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

/* Cookie consent */
.cookie-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #1a1a1a;
  color: #f4f1e9;
  font-family: Georgia, serif;
  font-size: 13px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  z-index: 50;
}
.cookie-bar a { color: #e9c46a; }
.cookie-bar button {
  background: #f4f1e9;
  color: #1a1a1a;
  border: none;
  padding: 6px 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: Georgia, serif;
}

/* Footer */
.footer { margin-top: 28px; }
.footer-nav a { color: var(--link); text-decoration: none; margin: 0 2px; }
.footer-nav a:hover { text-decoration: underline; }
.footer p { font-size: 11.5px; color: var(--muted); line-height: 1.5; text-align: center; margin: 8px 0 0; }

/* Section mastheads (category pages) */
.section-masthead { text-align: center; }
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  margin: 4px 0 2px;
}
.section-eyebrow a { color: var(--muted); text-decoration: none; }
.section-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 900;
  margin: 4px 0 6px;
  line-height: 1.02;
}
.section-lede {
  font-size: 16px;
  font-style: italic;
  color: var(--muted);
  margin: 0 0 18px;
  line-height: 1.5;
}

/* Single-column pages (about, privacy, newsletter) */
.single-col { max-width: 680px; margin: 18px auto 0; }
.prose p { font-size: 16px; line-height: 1.65; margin: 0 0 14px; }
.prose h3 { font-size: 18px; margin: 22px 0 6px; }
.prose a { color: var(--link); }

/* Responsive: columns stack a bit later than the nav collapses */
@media (max-width: 820px) {
  .columns { grid-template-columns: 1fr; }
  .col-main, .col-mid { border-right: none; padding-right: 0; }
  .paper { padding: 16px 16px 24px; margin: 0; }
}

/* Nav collapses to hamburger before links would get cramped */
@media (max-width: 980px) {
  .topnav-inner { padding: 10px 16px; }
  .topnav-toggle { display: flex; }
  .topnav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #1a1a1a;
    border-bottom: 3px double #6b6452;
    padding: 6px 0 12px;
  }
  .topnav-links.open { display: flex; }
  .topnav-links a {
    padding: 13px 18px;
    font-size: 15px;
    border-bottom: 1px solid #2e2a22;
  }
  .topnav-links a.active { border-bottom: 1px solid #2e2a22; }
  .topnav-cta {
    margin: 10px 18px 0;
    text-align: center;
    padding: 12px 16px;
    font-size: 14px;
  }
  .topnav { position: relative; }
}
@media (max-width: 520px) {
  .lead-thumb { height: 200px; }
  .nameplate { font-size: clamp(34px, 13vw, 56px); }
  .masthead-top { font-size: 10px; gap: 4px; }
}
