:root {
  --sky-1: #d6ecf3;
  --sky-2: #eaf6ec;
  --cream: #fcf7ea;
  --meadow: #b6dcb8;
  --forest-1: #2f5a3d;
  --forest-2: #4a8e5e;
  --forest-3: #7fb88a;
  --logo-green: #8dc59c;
  --logo-blue: #6cc2dc;
  --navy: #1f3a5f;
  --carrot: #e9853a;
  --ink: #1c2a22;
  --ink-soft: rgba(28, 42, 34, 0.7);
  --paper: #fdf9ee;
  --shadow-soft: 0 12px 32px rgba(45, 90, 61, 0.10), 0 2px 6px rgba(45, 90, 61, 0.06);
  --shadow-lift: 0 24px 50px rgba(45, 90, 61, 0.18);
}
[data-time="night"] {
  --cream: #0e1631;
  --paper: #1a2340;
  --ink: #ecf1f7;
  --ink-soft: rgba(236, 241, 247, 0.72);
  --navy: #f0e8c8;
  --forest-1: #7fc890;
  --forest-2: #a4d8b0;
  --forest-3: #c8e8d0;
  --logo-blue: #88c8e0;
  --meadow: #283c2e;
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.50), 0 2px 6px rgba(0, 0, 0, 0.30);
  --shadow-lift: 0 24px 50px rgba(0, 0, 0, 0.65);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--cream); color: var(--ink); transition: color 0.6s ease; }
body {
  font-family: 'Quicksand', system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.55;
}
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.intro {
  max-width: 1280px; margin: 0 auto;
  padding: 140px 32px 40px;
}
.eyebrow {
  font-family: 'Fredoka', sans-serif; font-weight: 600;
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--forest-2); margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ''; width: 32px; height: 2px; background: var(--forest-2);
  display: inline-block; border-radius: 2px;
}
h1 {
  font-family: 'Fredoka', sans-serif; font-weight: 600;
  font-size: clamp(42px, 5.5vw, 72px); line-height: 1.02;
  color: var(--forest-1); letter-spacing: -0.015em;
  max-width: 920px; margin-bottom: 22px;
  text-wrap: balance;
}
.lede {
  font-size: 18px; color: var(--ink-soft);
  max-width: 600px; line-height: 1.6;
}

.filters {
  max-width: 1280px; margin: 0 auto;
  padding: 28px 32px 12px;
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  position: sticky; top: 86px; z-index: 20;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.filters::after {
  content: ''; position: absolute; left: 32px; right: 32px; bottom: 0;
  border-bottom: 1px solid rgba(45, 90, 61, 0.08);
}
.chip {
  padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid rgba(45, 90, 61, 0.14);
  background: var(--paper);
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 14px;
  color: var(--ink-soft);
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
  display: inline-flex; align-items: center; gap: 7px;
}
.chip .n {
  font-size: 11px; opacity: 0.7;
  background: rgba(45, 90, 61, 0.08);
  padding: 1px 7px; border-radius: 999px;
}
.chip:hover { color: var(--forest-1); border-color: var(--forest-2); }
.chip.active {
  background: var(--forest-1); color: var(--cream); border-color: var(--forest-1);
}
.chip.active .n { background: rgba(255, 255, 255, 0.18); opacity: 1; }
[data-time="night"] .chip { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.14); }
[data-time="night"] .chip:hover { color: var(--forest-3); border-color: var(--forest-2); }
[data-time="night"] .chip.active { background: var(--forest-2); color: #0a1226; border-color: var(--forest-2); }

main { max-width: 1280px; margin: 0 auto; padding: 32px 32px 96px; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; gap: 20px; } }

.card {
  position: relative;
  background: var(--paper);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 2px solid rgba(45, 90, 61, 0.08);
  transition: transform 0.28s cubic-bezier(.2,.7,.3,1), box-shadow 0.28s, opacity 0.35s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px) rotate(-0.4deg); box-shadow: var(--shadow-lift); }
.card:nth-child(even):hover { transform: translateY(-6px) rotate(0.4deg); }
a.card.card-link { text-decoration: none; color: inherit; }
.card:not(.card-link) { opacity: 0.92; }
.card:not(.card-link):hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.card:not(.card-link) .card-footer { color: var(--ink-soft); opacity: 0.65; }
.card:not(.card-link) .card-footer .arrow { background: rgba(45, 90, 61, 0.08); }
[data-time="night"] .card { border-color: rgba(255, 255, 255, 0.08); }

.art {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
}
.art.forest  { background: repeating-linear-gradient(135deg, #3b6f47, #3b6f47 10px, #427b50 10px, #427b50 20px); }
.art.sky     { background: repeating-linear-gradient(135deg, #6cc2dc, #6cc2dc 10px, #7fcfe3 10px, #7fcfe3 20px); }
.art.meadow  { background: repeating-linear-gradient(135deg, #a4d4ab, #a4d4ab 10px, #b6dcb8 10px, #b6dcb8 20px); }
.art.sunset  { background: repeating-linear-gradient(135deg, #d99750, #d99750 10px, #e6a868 10px, #e6a868 20px); }
.art.dusk    { background: repeating-linear-gradient(135deg, #6e5b8e, #6e5b8e 10px, #836ea3 10px, #836ea3 20px); }
.art.bramble { background: repeating-linear-gradient(135deg, #a04a4a, #a04a4a 10px, #b65656 10px, #b65656 20px); }
.art.dawn    { background: repeating-linear-gradient(135deg, #e8b08e, #e8b08e 10px, #f0c2a3 10px, #f0c2a3 20px); }
.art.tide    { background: repeating-linear-gradient(135deg, #4b8e9c, #4b8e9c 10px, #5ea0ae 10px, #5ea0ae 20px); }
.art.has-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[data-time="night"] .art { filter: saturate(0.6) brightness(0.55); }
.body {
  padding: 22px 24px 24px;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
}
.cat {
  font-family: 'Fredoka', sans-serif;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: color-mix(in srgb, var(--forest-2) 50%, var(--forest-1)); font-weight: 600;
}
.name {
  font-family: 'Fredoka', sans-serif; font-weight: 600;
  font-size: 22px; color: var(--forest-1); letter-spacing: -0.01em;
}
.summary {
  font-size: 14px; color: var(--ink-soft); line-height: 1.5;
  margin-top: 4px;
}
.card-footer {
  margin-top: auto; padding-top: 14px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: 'Fredoka', sans-serif; font-size: 12px;
  color: color-mix(in srgb, var(--forest-2) 50%, var(--forest-1)); font-weight: 600;
}
.card-footer .arrow {
  width: 28px; height: 28px; border-radius: 999px;
  background: var(--meadow); color: var(--forest-1);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s, transform 0.18s;
}
.card:hover .card-footer .arrow {
  background: var(--forest-1); color: var(--cream); transform: translateX(4px);
}

.empty {
  grid-column: 1 / -1;
  padding: 60px 30px;
  text-align: center;
  color: var(--ink-soft);
  font-family: 'Fredoka', sans-serif;
}
.empty span { font-size: 36px; display: block; margin-bottom: 12px; }

@media (max-width: 640px) {
  .intro { padding: 110px 20px 24px; }
  .filters { padding: 22px 20px 8px; top: 72px; }
  .filters::after { left: 20px; right: 20px; }
  main { padding: 24px 20px 64px; }
}
@media (max-width: 599px) {
  .filters { gap: 8px; }
  .chip { padding: 7px 12px; font-size: 13px; gap: 5px; }
  .chip .n { font-size: 10px; padding: 1px 6px; }
}
