/* Renovaré palette (matches the admin) */
:root {
  color-scheme: light;
  --green: #106e46;
  --bg: #f2f0ed;
  --surface: #ffffff;
  --border: #e7e4e0;
  --text: #2b2722;
  --muted: #7d7771;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 "DM Sans", system-ui, sans-serif;
}

.head, main { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.head { padding-top: 40px; padding-bottom: 24px; }
main { padding-bottom: 56px; }
@media (max-width: 600px) {
  .head, main { padding-left: 16px; padding-right: 16px; }
  .head { padding-top: 28px; }
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--green); }
.brand svg { width: 30px; height: 30px; }
.brand h1 { margin: 0; font-size: 24px; font-weight: 600; color: var(--text); }
.intro { margin: 6px 0 0; color: var(--muted); }

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  display: block;
  height: 100%;
  padding-bottom: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.card:hover, .card:focus-visible {
  border-color: var(--green);
  box-shadow: 0 8px 24px rgba(43, 39, 34, 0.08);
  transform: translateY(-2px);
  outline: none;
}

.cover {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  gap: 2px;
  background: #1c1a18;
}
.cover img { width: 100%; height: 100%; min-height: 0; object-fit: cover; display: block; }
.cover.n2 { grid-template-columns: 1fr 1fr; }
.cover.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.cover.n3 img:first-child { grid-row: span 2; }
.cover.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.time {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.card h2 { margin: 12px 16px 0; font-size: 17px; font-weight: 600; }
.meta { margin: 2px 16px 0; font-size: 14px; color: var(--muted); }

.empty { color: var(--muted); }
