/* Daily Brief — clean, mobile-first news blog. System fonts only, no webfonts (fast loading). */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #1a1a1a;
  background: #f7f7f5;
}

a { color: #0b5cad; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { background: #111827; color: #fff; padding: 18px 0; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.site-name { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.site-name:hover { text-decoration: none; }
.site-tagline { color: #9ca3af; font-size: 14px; }

/* Layout: content + sidebar */
.layout { display: grid; grid-template-columns: 1fr; gap: 24px; padding-top: 24px; padding-bottom: 32px; }
@media (min-width: 860px) {
  .layout { grid-template-columns: 1fr 300px; }
}

.page-title { font-size: 24px; margin: 4px 0 18px; }

/* Article cards */
.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}
.card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #e5e7eb; }
.card-body { padding: 16px 18px 18px; }
.card-body h2 { font-size: 20px; line-height: 1.3; margin: 8px 0; }
.card-body h2 a { color: #1a1a1a; }
.card-body p { color: #4b5563; margin: 0 0 10px; }
.read-more { font-weight: 600; font-size: 15px; }

.tag {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 3px 8px;
  border-radius: 999px;
}
time { color: #6b7280; font-size: 13px; margin-left: 8px; }

/* Article page */
.crumbs { color: #6b7280; font-size: 14px; margin-bottom: 12px; }
.article { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 22px 20px; }
.article h1 { font-size: 28px; line-height: 1.25; margin: 10px 0 16px; }
.article p { margin: 0 0 16px; }
.hero { margin: 0 0 18px; }
.hero img { width: 100%; border-radius: 8px; }
.hero figcaption { color: #6b7280; font-size: 13px; margin-top: 8px; }
.source { font-size: 14px; color: #6b7280; word-break: break-all; }
.sample-note {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 8px;
}

.related { margin-top: 28px; }
.related h2 { font-size: 20px; margin-bottom: 14px; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.ad-slot {
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 13px;
}
.ad-300x250 { width: 300px; max-width: 100%; height: 250px; margin: 0 auto; }
.about-box { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px 18px; }
.about-box h3 { margin: 0 0 8px; font-size: 17px; }
.about-box p { margin: 0; color: #4b5563; font-size: 15px; }

/* Footer */
.site-footer { background: #111827; color: #9ca3af; font-size: 13px; padding: 22px 0; }
.site-footer p { margin: 0; }
