:root {
  --ink: #19332e;
  --ink-2: #30443e;
  --muted: #74817b;
  --line: #e6eae3;
  --paper: #f8f9f4;
  --lime: #d4f479;
  --bg: #edf0e8;
  --white: #fff;
  --shadow: 0 8px 28px #23392e0a;
  --radius: 23px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border: 1px solid #dae1d2;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

body::before {
  width: 680px;
  height: 680px;
  right: -370px;
  top: -140px;
}

body::after {
  width: 660px;
  height: 660px;
  right: -310px;
  top: -80px;
}

h1,
h2,
p {
  margin: 0;
}

h1,
h2 {
  letter-spacing: -0.045em;
  text-wrap: balance;
}

p {
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  padding: 64px 0 36px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 2.4px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: #82a954;
  border-radius: 50%;
}

.site-header h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 750;
  letter-spacing: -0.06em;
  line-height: 1.08;
}

.lede {
  margin-top: 16px;
  max-width: 38rem;
  color: var(--muted);
  font-size: 17px;
}

#catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  padding-bottom: 64px;
}

.catalog-empty {
  grid-column: 1 / -1;
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  background: var(--paper);
  border: 1px dashed #d9dfcf;
  border-radius: var(--radius);
}

.demo-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 14px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.demo-card:hover {
  border-color: #b9c7a8;
  box-shadow: 0 12px 32px #23392e14;
  transform: translateY(-2px);
}

.demo-card:focus-visible {
  outline: 3px solid #527a4b;
  outline-offset: 4px;
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
  background: #e6eadc;
}

.card-media img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  background: linear-gradient(160deg, #eef1e2 0%, #e6eadc 100%);
}

.demo-card.is-fallback .card-media img {
  display: none;
}

.demo-card h2 {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.04em;
  padding: 0 6px;
}

.demo-card p {
  font-size: 14px;
  color: var(--muted);
  padding: 0 6px;
}

.site-footer {
  margin-top: auto;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer strong {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 640px) {
  .site-header,
  main,
  .site-footer {
    width: calc(100% - 32px);
  }

  .site-header {
    padding-top: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-card {
    transition: none;
  }

  .demo-card:hover {
    transform: none;
  }
}
