:root {
  --ink: #0f1c1a;
  --paper: #e8f0ec;
  --mist: #c5d9d0;
  --leaf: #1f6b57;
  --leaf-deep: #134a3c;
  --glow: #f0c75e;
  --card: rgba(255, 255, 255, 0.78);
  --stroke: rgba(15, 28, 26, 0.12);
  --muted: rgba(15, 28, 26, 0.62);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(31, 107, 87, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(240, 199, 94, 0.22), transparent 50%),
    linear-gradient(165deg, #f4faf7 0%, #dfece6 45%, #cfdfd7 100%);
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 2rem) 1.5rem;
  animation: rise 0.7s ease both;
}

.brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--leaf-deep);
}

.hero h1 {
  margin: 0 0 0.65rem;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.lede {
  margin: 0;
  max-width: 28rem;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink);
}

.env-pill {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leaf-deep);
}

.grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5rem clamp(1.25rem, 4vw, 2rem) 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 168px;
  padding: 1.25rem 1.2rem 1.15rem;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(8px);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 30px rgba(15, 28, 26, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  animation: rise 0.65s ease both;
}

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }
.card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6) { animation-delay: 0.3s; }
.card:nth-child(7) { animation-delay: 0.35s; }

.card:hover,
.card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(31, 107, 87, 0.35);
  box-shadow: 0 16px 36px rgba(15, 28, 26, 0.12);
  outline: none;
}

.card-accent {
  width: 2.25rem;
  height: 0.35rem;
  border-radius: 999px;
  background: var(--accent, var(--leaf));
}

.card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.card p {
  margin: 0;
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--leaf-deep);
}

.card-meta span:last-child {
  color: var(--muted);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.foot {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem) 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
