/* Agatha News — warm, clean, personality */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --bg: #faf8f5;
  --text: #2c2c2c;
  --muted: #6b7280;
  --accent: #c1572a;
  --accent-light: #f5e6dc;
  --border: #e5e0d8;
  --link: #2563eb;
}

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

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

header {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

header .subtitle {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.2rem;
  font-style: italic;
}

nav {
  margin-top: 0.75rem;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

nav a:hover { color: var(--accent); }

.date-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.2rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

section {
  margin-bottom: 2.5rem;
}

section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--border);
}

/* 📰 Article styling — left accent bar, no cards */
article {
  padding: 0.6rem 0 0.8rem 1rem;
  margin-bottom: 0.5rem;
  border-left: 3px solid var(--accent-light);
  transition: border-color 0.2s;
}

article:hover {
  border-left-color: var(--accent);
}

article h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text);
  line-height: 1.4;
}

article p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
  line-height: 1.6;
}

.tz-note, .gbp-note {
  font-size: 0.8rem;
  color: #999;
  font-weight: 400;
}

.source {
  font-size: 0.75rem;
  display: inline-block;
  margin-top: 0.2rem;
}

.source a {
  color: var(--link);
  text-decoration: none;
}

.source a:hover { text-decoration: underline; }

.source a:after {
  content: " ↗";
  font-size: 0.65rem;
}

footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding-top: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

/* Index page */
.news-list {
  list-style: none;
  margin-top: 0.5rem;
}

.news-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.news-list a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}

.news-list a:hover {
  color: var(--accent);
}

.news-list .date {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

/* 🖥️ Desktop: multi-column layout fills space */
@media (min-width: 900px) {
  body {
    max-width: 1100px;
    padding: 2.5rem 2rem;
  }

  header h1 {
    font-size: 2.2rem;
  }

  /* Use CSS columns to fill space naturally */
  .content {
    column-count: 2;
    column-gap: 2.5rem;
  }

  section {
    break-inside: avoid;
    margin-bottom: 1.5rem;
  }

  section h2 {
    margin-bottom: 0.5rem;
  }

  .date-badge {
    column-span: all;
    margin-bottom: 1rem;
  }

  .news-list {
    max-width: 700px;
  }

  .news-list li {
    padding: 0.7rem 0;
    font-size: 1.05rem;
  }
}

@media (max-width: 600px) {
  body { padding: 1rem; }
  .news-list li { flex-direction: column; gap: 0.1rem; }
}
