:root {
  --bg: #fafaf8;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --border: #e0ddd8;
  --accent: #c43d2e;
  --accent-light: #fdf0ee;
  --card-bg: #ffffff;
  --tag-bg: #f0eeea;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  padding-bottom: 64px;
}
.container { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* Header */
header {
  border-bottom: 3px solid var(--text);
  padding: 48px 0 24px;
  margin-bottom: 8px;
}
header h1 {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
}
header h1 a {
  color: inherit;
  text-decoration: none;
}
header .subtitle {
  font-size: 18px;
  color: var(--muted);
  margin-top: 8px;
  font-style: italic;
}
header .meta {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Day header nav (below header) */
.day-nav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
}
.day-nav-top a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.day-nav-top a:hover {
  color: var(--text);
}
.day-nav-top .nav-prev,
.day-nav-top .nav-next {
  min-width: 120px;
}
.day-nav-top .nav-prev { text-align: left; }
.day-nav-top .nav-next { text-align: right; }
.day-nav-top .nav-index {
  font-weight: 600;
  color: var(--text);
}
.day-nav-top .nav-index:hover {
  color: var(--accent);
}

/* Day Section */
.day {
  margin-bottom: 56px;
}
.day-header {
  border-top: 2px solid var(--text);
  padding-top: 16px;
  margin-bottom: 24px;
}
.day-header h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.day-header .day-meta {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* Section (Ressort) */
.ressort {
  margin-bottom: 28px;
}
.ressort-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

/* Article */
.article {
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 2px solid transparent;
}
.article:hover {
  border-left-color: var(--border);
}
.article h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 2px;
}
.article .author {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}
.article .summary {
  font-size: 15px;
  color: #3a3a3a;
  line-height: 1.6;
}

/* Recommendation */
.reco-section {
  margin-top: 40px;
  margin-bottom: 48px;
}
.reco-section > h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  color: var(--accent);
}
.reco {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}
.reco h4 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}
.reco .author {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.reco .why {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.reco .detail {
  font-size: 16px;
  line-height: 1.75;
  color: #2a2a2a;
}

/* Index page */
.index-list {
  list-style: none;
  margin: 32px 0;
}
.index-list li {
  border-bottom: 1px solid var(--border);
}
.index-list li:first-child {
  border-top: 2px solid var(--text);
}
.index-list a {
  display: block;
  padding: 20px 0;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
}
.index-list a:hover {
  background: var(--tag-bg);
  padding-left: 12px;
  padding-right: 12px;
  margin-left: -12px;
  margin-right: -12px;
  border-radius: 4px;
}
.index-list .index-date {
  font-size: 22px;
  font-weight: 700;
  display: block;
  line-height: 1.3;
}
.index-list .index-detail {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
  display: block;
}
.index-list .index-paper {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
  display: block;
}

/* Sticky footer navigation */
.day-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
  z-index: 100;
  padding: 0;
}
.day-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
}
.day-nav a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}
.day-nav a:hover {
  color: var(--accent);
}
.day-nav .nav-prev,
.day-nav .nav-next {
  min-width: 130px;
}
.day-nav .nav-prev { text-align: left; }
.day-nav .nav-next { text-align: right; }
.day-nav .nav-index {
  font-weight: 600;
}
.day-nav .nav-placeholder {
  min-width: 130px;
  visibility: hidden;
}

/* Article & Reco link styles (for generated digest pages) */
.article h3 a { color: inherit; text-decoration: none; }
.article h3 a:hover { color: var(--accent); }
.reco h4 a { color: inherit; text-decoration: none; }
.reco h4 a:hover { color: var(--accent); }

/* Source cards (landing page) */
.source-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0;
}
.source-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 24px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
}
.source-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.source-card.disabled {
  opacity: 0.45;
  pointer-events: none;
}
.source-card .source-name {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}
.source-card .source-lang {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}
.source-card .source-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
  flex-grow: 1;
}
.source-card .source-badge {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* Source section (per-source article index on landing page) */
.source-section {
  margin-bottom: 40px;
}
.source-section-title {
  font-size: 18px;
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--text);
  margin-bottom: 0;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 48px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
  header h1 { font-size: 30px; }
  .day-header h2 { font-size: 22px; }
  .reco { padding: 16px; }
  body { font-size: 16px; }
  .index-list .index-date { font-size: 18px; }
  .day-nav .container { font-size: 13px; }
  .day-nav .nav-prev,
  .day-nav .nav-next { min-width: 100px; }
  .day-nav-top { font-size: 13px; }
  .day-nav-top .nav-prev,
  .day-nav-top .nav-next { min-width: 90px; }
  .source-grid { grid-template-columns: 1fr; }
}
