:root {
  --bg: #f7f5f2;
  --surface: #ffffff;
  --text: #2b2b2b;
  --muted: #666;
  --accent: #7a2f2f;
  --accent-soft: #ead9d9;
  --border: #ddd5cc;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.wrap {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  background: linear-gradient(135deg, #4b2d2d, #7a2f2f);
  color: #fff;
  padding: 3rem 0 2.5rem;
}

.site-header a {
  color: #f6e9e9;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-header h1 {
  margin: 0 0 0.75rem;
  font-family: "Josefin Sans", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
}

.intro {
  margin: 0;
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.92);
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 2rem 0 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.filters label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.filters input,
.filters select,
.btn-secondary {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

.btn-secondary {
  align-self: end;
  cursor: pointer;
  background: var(--accent-soft);
  border-color: transparent;
  font-weight: 600;
}

.btn-secondary:hover {
  filter: brightness(0.97);
}

.results-count {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.article-list {
  display: grid;
  gap: 1rem;
  margin-bottom: 3rem;
}

.article-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
}

.article-row[hidden] {
  display: none;
}

.article-meta {
  margin-bottom: 0.35rem;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge.category {
  background: var(--accent-soft);
  color: var(--accent);
}

.article-title {
  margin: 0 0 0.35rem;
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.15rem;
}

.article-link {
  color: var(--accent);
  text-decoration: none;
}

.article-link:hover {
  text-decoration: underline;
}

.article-link.missing {
  color: var(--muted);
}

.article-details {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--accent);
}

@media (max-width: 640px) {
  .filters {
    grid-template-columns: 1fr;
  }

  .btn-secondary {
    width: 100%;
  }
}
