:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #5c5c5c;
  --line: #e6e6e6;
  --fill: #f6f6f6;
  --max: 960px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  padding: 28px 0 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.brand svg {
  width: 28px;
  height: 28px;
}

.hero {
  padding: 48px 0 36px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.lede {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.products {
  padding: 0 0 80px;
}

.grid {
  display: grid;
  gap: 12px;
}

.product {
  display: block;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  text-decoration: none;
}

a.product:hover,
a.product:focus-visible {
  background: var(--fill);
}

.product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.badge {
  flex: none;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.badge.live {
  color: #17803d;
}

.product p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 500;
}

.site-footer {
  padding: 0 0 36px;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (min-width: 760px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
