/* ============================================
   MORNING BRIEFING — Newspaper Style
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400&display=swap');

:root {
  --paper:        #f5f0e8;
  --paper-edge:   #e8e0d0;
  --ink:          #1a1a1a;
  --ink-light:    #3d3d3d;
  --ink-faded:    #6b6b6b;
  --ink-ghost:    #9a9a9a;
  --rule:         #1a1a1a;
  --rule-light:   #c4baa8;
  --accent:       #8b0000;
  --link:         #2b4570;
  --link-hover:   #8b0000;
  --green:        #2d6a2e;
  --red:          #a82020;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Source Serif 4', 'Libre Baskerville', Georgia, serif;
  --font-meta:    'Source Serif 4', Georgia, serif;
}

/* RESET & BASE */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background: #d4cfc4;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  padding: 20px;
}

/* THE PAPER */
.paper {
  max-width: 860px;
  margin: 0 auto;
  background: var(--paper);
  padding: 40px 48px 32px;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.12),
    0 4px 12px rgba(0,0,0,0.06),
    inset 0 0 80px rgba(0,0,0,0.02);
  border: 1px solid var(--paper-edge);
  position: relative;
}

/* Subtle paper texture via noise */
.paper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.paper > * { position: relative; z-index: 1; }

/* MASTHEAD */
.masthead {
  text-align: center;
  margin-bottom: 0;
}

.masthead-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-meta);
  font-size: 0.7rem;
  color: var(--ink-faded);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  padding: 0 4px;
}

.masthead-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.4rem;
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 4px 0 10px;
  color: var(--ink);
}

.masthead-meta {
  font-family: var(--font-meta);
  font-size: 0.92rem;
  color: var(--ink-light);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.masthead-dot {
  margin: 0 8px;
  color: var(--ink-ghost);
}

/* RULES */
.masthead-rule {
  height: 3px;
  background: var(--rule);
  border: none;
  margin: 0;
}

.masthead-rule + .masthead-top {
  margin-top: 10px;
}

.section-rule {
  height: 2px;
  background: var(--rule);
  margin: 20px 0;
}

.section-rule-thin {
  height: 1px;
  background: var(--rule-light);
  margin: 6px 0 16px;
}

/* TICKER */
.ticker {
  text-align: center;
  padding: 8px 0;
  font-family: var(--font-meta);
  font-size: 0.85rem;
  color: var(--ink-light);
  letter-spacing: 0.01em;
}

.ticker-label {
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  margin-right: 4px;
}

.ticker-sep {
  margin: 0 14px;
  color: var(--rule-light);
}

.ticker-up {
  color: var(--green);
  font-weight: 600;
}

.ticker-down {
  color: var(--red);
  font-weight: 600;
}

/* SECTIONS */
.section {
  margin: 0;
}

.section-head {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-transform: uppercase;
}

.section-note {
  font-family: var(--font-meta);
  font-size: 0.72rem;
  color: var(--ink-ghost);
  font-style: italic;
  margin-top: 8px;
}

/* STORIES */
.stories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.story {
  border-bottom: 1px solid var(--rule-light);
  padding-bottom: 14px;
}

.story:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.story-hed {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 5px;
  color: var(--ink);
}

.story-hed-sm {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  margin-bottom: 3px;
  color: var(--ink-light);
  display: inline;
  margin-right: 4px;
}

.story-dek {
  font-family: var(--font-meta);
  font-size: 0.85rem;
  color: var(--ink-faded);
  font-style: italic;
  margin-bottom: 0;
}

.story-body {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink-light);
}

.story-small .story-body {
  display: inline;
}

/* LINKS */
a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

a:hover {
  color: var(--link-hover);
  border-bottom-color: var(--link-hover);
}

/* SPORTS */
.sports-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sports-team {
  border-bottom: 1px solid var(--rule-light);
  padding-bottom: 14px;
}

.sports-team:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.team-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.team-icon {
  font-size: 1.4rem;
}

.team-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  display: block;
  line-height: 1.2;
}

.team-record {
  font-family: var(--font-meta);
  font-size: 0.78rem;
  color: var(--ink-faded);
  letter-spacing: 0.02em;
}

.team-news {
  list-style: none;
  padding: 0;
}

.team-news li {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink-light);
  line-height: 1.6;
  padding-left: 14px;
  position: relative;
  margin-bottom: 4px;
}

.team-news li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--ink-ghost);
}

.sports-empty-note {
  font-family: var(--font-meta);
  font-size: 0.8rem;
  color: var(--ink-ghost);
  font-style: italic;
}

/* OBITUARIES */
.obituary .story-hed {
  font-size: 1.08rem;
}

.obituary-brief .story-hed {
  display: inline;
  margin-right: 6px;
}

.obituary-brief .story-dek {
  display: inline;
  font-size: 0.88rem;
}

/* HISTORY */
.history-list {
  list-style: none;
  padding: 0;
  columns: 2;
  column-gap: 32px;
  column-rule: 1px solid var(--rule-light);
}

.history-list li {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--ink-light);
  line-height: 1.55;
  margin-bottom: 8px;
  break-inside: avoid;
}

.history-year {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  margin-right: 6px;
  font-size: 0.92rem;
}

/* ENTERTAINMENT */
.entertainment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.ent-column {
  padding: 0 16px;
}

.ent-column:first-child {
  padding-left: 0;
  border-right: 1px solid var(--rule-light);
}

.ent-column:last-child {
  padding-right: 0;
}

.ent-subhead {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--ink);
}

.ent-group {
  margin-bottom: 14px;
}

.ent-group-label {
  font-family: var(--font-meta);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faded);
  margin-bottom: 0;
}

.ent-list {
  list-style: none;
  padding: 0;
}

.ent-list li {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink-light);
  line-height: 1.55;
  margin-bottom: 5px;
}

.ent-list li strong {
  color: var(--ink);
}

/* GENERAL NEWS */
.news-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}

.news-col {
  padding: 0 16px;
  border-right: 1px solid var(--rule-light);
}

.news-col:first-child { padding-left: 0; }
.news-col:last-child { padding-right: 0; border-right: none; }

.news-region {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 10px;
  color: var(--ink);
}

.news-list {
  padding-left: 18px;
}

.news-list li {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--ink-light);
  line-height: 1.55;
  margin-bottom: 0;
}

.news-list li::marker {
  color: var(--ink-ghost);
  font-size: 0.75rem;
}

/* FOOTER */
.footer {
  text-align: center;
  font-family: var(--font-meta);
  font-size: 0.72rem;
  color: var(--ink-ghost);
  letter-spacing: 0.05em;
  padding-top: 4px;
}

.footer a {
  color: var(--ink-faded);
}

.footer-time {
  font-style: italic;
}

/* RESPONSIVE */
@media (max-width: 700px) {
  body { padding: 8px; }
  .paper { padding: 24px 20px 20px; }
  .masthead-title { font-size: 2.4rem; }

  .news-columns {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .news-col {
    padding: 0;
    border-right: none;
    border-bottom: 1px solid var(--rule-light);
    padding-bottom: 14px;
  }
  .news-col:last-child { border-bottom: none; }

  .entertainment-grid {
    grid-template-columns: 1fr;
  }
  .ent-column {
    padding: 0;
    border-right: none;
  }
  .ent-column:first-child {
    border-right: none;
    border-bottom: 1px solid var(--rule-light);
    padding-bottom: 14px;
    margin-bottom: 14px;
  }

  .history-list { columns: 1; }

  .ticker {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .ticker-sep { display: none; }
}

@media print {
  body { background: white; padding: 0; }
  .paper { box-shadow: none; border: none; max-width: 100%; }
}

/* Tight ticker band */
.ticker { padding: 5px 0 !important; }
.ticker + .section-rule { margin: 5px 0 20px 0 !important; }
