* { box-sizing: border-box; }
:root {
  --bg: #0f172a; /* slate-900 */
  --text: #f8fafc; /* slate-50 */
  --muted: #cbd5e1; /* slate-300 */
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 480px at 20% 0%, #1f2937, var(--bg));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px 12px;
}
.topbar .brand h1 {
  margin: 0 0 6px 0;
  font-weight: 700;
  letter-spacing: 0.4px;
}
.topbar .brand p {
  margin: 0;
  color: var(--muted);
}

.container { max-width: 1100px; margin: 0 auto; padding: 20px 16px 40px; }

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
}

.month-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  height: 180px;
  border-radius: 14px;
  text-decoration: none;
  color: white;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
  isolation: isolate; /* keeps label above overlays */
}
.month-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.30));
  z-index: 0;
}
.month-card::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--tint, transparent);
  mix-blend-mode: multiply;
  z-index: 0;
}
.month-card:hover { transform: translateY(-2px) scale(1.01); box-shadow: 0 14px 30px rgba(0,0,0,0.45); }
.month-card:focus { outline: 3px solid rgba(255,255,255,0.8); outline-offset: 2px; }

.label {
  position: relative;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.25);
  z-index: 1;
}
.label .month { font-weight: 700; }
.label .color { color: #e5e7eb; }

/* Cores por mês (sem imagens) */
.jan { /* Janeiro Branco */
  --tint: transparent;
  background: linear-gradient(120deg, #ffffff, #f3f4f6);
}
.fev { /* Fevereiro Roxo */
  --tint: transparent;
  background: linear-gradient(120deg, #6a0dad, #b784e0);
}
.mar { /* Março Lilás */
  --tint: transparent;
  background: linear-gradient(120deg, #c8a2c8, #e6c8e6);
}
.abr { /* Abril Azul */
  --tint: transparent;
  background: linear-gradient(120deg, #1e90ff, #63a4ff);
}
.mai { /* Maio Verde */
  --tint: transparent;
  background: linear-gradient(120deg, #2ecc71, #a5d6a7);
}
.jun { /* Junho Vermelho */
  --tint: transparent;
  background: linear-gradient(120deg, #e74c3c, #ff6b6b);
}
.jul { /* Julho Amarelo */
  --tint: transparent;
  background: linear-gradient(120deg, #f1c40f, #ffe082);
}
.ago { /* Agosto Dourado */
  --tint: transparent;
  background: linear-gradient(120deg, #d4af37, #f7e37d);
}
.set { /* Setembro Amarelo */
  --tint: transparent;
  background: linear-gradient(120deg, #f39c12, #ffd54f);
}
.out { /* Outubro Rosa */
  --tint: transparent;
  background: linear-gradient(120deg, #ff69b4, #f8bbd0);
}
.nov { /* Novembro Azul */
  --tint: transparent;
  background: linear-gradient(120deg, #3498db, #90caf9);
}
.dez { /* Dezembro Vermelho */
  --tint: transparent;
  background: linear-gradient(120deg, #c0392b, #ef5350);
}

.footer { text-align: center; color: var(--muted); padding: 20px 16px 40px; }