@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;600;700&family=Source+Sans+3:wght@400;600&display=swap');

:root {
  color-scheme: light;
  --bg: #f4efe9;
  --ink: #1f1b18;
  --muted: #6d625c;
  --accent: #f36b2a;
  --accent-strong: #c24712;
  --card: #ffffff;
  --stroke: rgba(31, 27, 24, 0.12);
  --shadow: 0 20px 60px rgba(31, 27, 24, 0.12);
}

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

body {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: 'Chakra Petch', system-ui, sans-serif;
  letter-spacing: 0.02em;
}

a {
  color: inherit;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.glow {
  position: absolute;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.4;
}

.glow-1 {
  background: radial-gradient(circle, #f9a861, transparent 70%);
  top: -20vw;
  left: -10vw;
}

.glow-2 {
  background: radial-gradient(circle, #f36b2a, transparent 70%);
  bottom: -20vw;
  right: -10vw;
}

.grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to right,
      rgba(31, 27, 24, 0.08) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(31, 27, 24, 0.08) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.25;
}

.hero {
  padding: 72px 8vw 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  animation: floatIn 0.8s ease-out;
}

.badge {
  align-self: flex-start;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.8);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
}

.hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.1rem;
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filters-toggle {
  display: none;
  align-self: flex-start;
}

.controls {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 8px;
}

.control {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.95rem;
}

input,
select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: #fff4ec;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.chip.active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.chip-actions {
  display: flex;
  justify-content: flex-start;
}

.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 8vw 80px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.status {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  padding: 12px 16px;
  border: 1px dashed rgba(31, 27, 24, 0.18);
  box-shadow: none;
  backdrop-filter: blur(6px);
}

.status h2 {
  margin-bottom: 4px;
  font-size: 1.35rem;
}

#count {
  color: var(--muted);
}

.note {
  color: var(--muted);
  font-size: 0.9rem;
}

.load-more {
  display: flex;
  justify-content: center;
}

button {
  border: none;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button.button-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--stroke);
  box-shadow: none;
}

button.button-secondary:hover {
  transform: none;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.7);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(243, 107, 42, 0.28);
}

button[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.chip {
  background: #fff4ec;
  color: var(--ink);
  border: 1px solid var(--stroke);
  padding: 6px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: none;
}

.chip:hover {
  transform: none;
  box-shadow: none;
}

.list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.card {
  background: var(--card);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--stroke);
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow);
  animation: fadeInUp 0.6s ease both;
}

.card-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
}

.pill-group {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}

.card h3 {
  font-size: 1.15rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.meta span,
.pill {
  background: #f3efe9;
  border-radius: 999px;
  padding: 4px 10px;
}

.card p {
  color: var(--muted);
}

.published {
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  text-align: left;
}

.card a {
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration: none;
}

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

.about {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 24px;
  border: 1px solid var(--stroke);
}

.footer {
  padding: 32px 8vw 48px;
  text-align: center;
  color: var(--muted);
}

.footnote {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
}

.footnote p {
  margin: 0;
}

.avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(31, 27, 24, 0.15);
  object-fit: cover;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 56px;
  }

  .hero-description {
    display: none;
  }

  .filters-toggle {
    display: inline-flex;
  }

  .filters {
    display: none;
  }

  body.filters-open .filters {
    display: flex;
  }

  .card-header {
    align-items: flex-start;
  }

  .pill-group {
    justify-content: flex-start;
    margin-left: 0;
  }

  .status {
    flex-direction: column;
    align-items: flex-start;
  }
}
