/* A more modern and polished design */
:root {
  --primary-color: #3b82f6; /* A nice blue */
  --secondary-color: #1e293b; /* A dark slate for text */
  --background-color: #f1f5f9; /* A light grey */
  --card-background: #ffffff;
  --text-light: #64748b;
  --border-color: #e2e8f0;
  --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  background: var(--background-color);
  color: var(--secondary-color);
  line-height: 1.6;
}

/* Header */
header {
  background-image: linear-gradient(45deg, #1e3a8a, #3b82f6);
  color: #fff;
  text-align: center;
  padding: 4rem 1rem;
}

header h1 {
  margin: 0 0 0.5rem;
  font-size: 2.75rem;
  font-weight: 700;
}

header p {
  opacity: 0.9;
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* Digest cards */
main {
  max-width: 750px;
  margin: -2.5rem auto 2rem auto; /* Overlap header for a modern look */
  padding: 0 1rem;
  position: relative; /* Needed for the overlap effect */
}

.digest-item {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-light);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.digest-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.digest-item h2 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.digest-item p {
  margin: 0 0 1rem;
  color: var(--text-light);
}

.digest-item a {
  text-decoration: none;
  color: var(--secondary-color);
  transition: color 0.2s;
}

.digest-item a:hover {
  color: var(--primary-color);
}

.digest-item time {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
}