:root {
  --bg: #fbfbfd;
  --bg-card: #ffffff;
  --text: #1d1d1f;
  --text-secondary: #48484a;
  --text-tertiary: #86868b;
  --accent: #0071e3;
  --border: rgba(0,0,0,0.08);
  --shadow: 0 4px 24px rgba(0,0,0,0.04);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.08);
  --radius: 16px;
  
  --priority-high: #ff3b30;
  --priority-med: #ff9500;
  --priority-low: #ffcc00;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-card: #1c1c1e;
    --text: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-tertiary: #6e6e73;
    --accent: #0a84ff;
    --border: rgba(255,255,255,0.1);
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-hover: 0 8px 32px rgba(0,0,0,0.6);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(251, 251, 253, 0.8);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(0, 0, 0, 0.8);
  }
}

.header-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-tagline {
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 400;
}

.rss-link {
  background: var(--text);
  color: var(--bg);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.rss-link:hover { opacity: 0.8; text-decoration: none; }

/* Main Content */
main {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 24px;
}

/* Brief Content Styling */
.brief-content h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
  line-height: 1.1;
}

.brief-content h1 + p {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

/* Story "Cards" */
/* We style everything between HRs as a block */
.brief-content h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 32px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.brief-content blockquote {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.brief-content blockquote:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.brief-content blockquote p {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

/* Make the summary text larger and more prominent */
.brief-content h2 + blockquote + p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 48px 0;
}

/* Community Buzz Section */
.brief-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Links */
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Priority Emojis to Badges (Optional if we want to get fancy) */
/* For now, just make them pop */

/* Footer */
.site-footer {
  max-width: 800px;
  margin: 80px auto 40px;
  padding: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
}

/* Index Page List */
.news-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.news-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.2s;
}
.news-item:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-hover);
}
.news-item a {
  display: block;
  padding: 24px;
  text-decoration: none;
}
.news-date {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.news-preview {
  font-size: 15px;
  color: var(--text-secondary);
}

@media (max-width: 600px) {
  .brief-content h1 { font-size: 36px; }
  .brief-content h2 { font-size: 20px; }
  .header-content { flex-direction: column; gap: 12px; text-align: center; }
}
