:root {
  --bg-deep: #f4f1ea;
  --bg-card: #ffffff;
  --bg-card-hover: #faf8f4;
  --text: #1c2229;
  --text-muted: #5a6570;
  --accent: #9a7b1a;
  --accent-glow: rgba(154, 123, 26, 0.25);
  --link: #1a5f8a;
  --link-hover: #0d4a6e;
  --border: rgba(28, 34, 41, 0.1);
  --radius: 12px;
  --font-sans: "Onest", system-ui, sans-serif;
  --font-serif: "Literata", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
}

.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(201, 162, 39, 0.14), transparent),
    radial-gradient(ellipse 60% 40% at 100% 80%, rgba(94, 140, 180, 0.08), transparent),
    linear-gradient(180deg, #faf8f4 0%, var(--bg-deep) 50%);
  pointer-events: none;
}

.bg-pattern::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.hero {
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
}

.hero-inner {
  max-width: 36rem;
  margin: 0 auto;
}

.hero-tag {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 8vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}

.hero h1 .dot {
  color: var(--accent);
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.hero-cta {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-cta:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

main {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.group {
  margin-bottom: 2.75rem;
}

.group h2 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.group-muted h2 {
  color: var(--text-muted);
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card {
  padding: 1.15rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(28, 34, 41, 0.04);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(28, 34, 41, 0.14);
  box-shadow: 0 4px 12px rgba(28, 34, 41, 0.06);
}

.card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.25rem;
}

.card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.card-url {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  word-break: break-all;
}

.card-url a {
  font-weight: 500;
}

.card-desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.card-desc a {
  font-weight: 500;
}

.card-deprecated {
  opacity: 0.8;
}

.badge {
  display: inline-block;
  flex-shrink: 0;
  padding: 0.2rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 6px;
  white-space: nowrap;
}

.badge-stable {
  color: #1d6b47;
  background: rgba(61, 154, 110, 0.15);
}

.badge-test {
  color: #2a5f9e;
  background: rgba(91, 143, 212, 0.15);
}

.badge-dev {
  color: #7a5f0f;
  background: rgba(201, 162, 39, 0.2);
}

.badge-experiment {
  color: #a1315f;
  background: rgba(214, 60, 120, 0.14);
}

.badge-plan {
  color: #5548a0;
  background: rgba(139, 126, 200, 0.15);
}

.badge-deprecated {
  color: #6b6560;
  background: rgba(138, 133, 128, 0.2);
}

.site-footer {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0.35rem 0;
}

.footer-repo {
  font-size: 0.8rem;
  opacity: 0.85;
}

.load-error {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
}

.load-error code {
  font-size: 0.9em;
}

@media (max-width: 480px) {
  .card-top {
    flex-direction: column;
    align-items: flex-start;
  }
}
