:root {
  --bg: #0c0f14;
  --bg-elevated: #141922;
  --surface: #1a2230;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8ecf2;
  --muted: #98a3b3;
  --accent: #6bc9ff;
  --accent-soft: rgba(107, 201, 255, 0.14);
  --radius: 14px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 960px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(107, 201, 255, 0.12), transparent),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(139, 92, 246, 0.06), transparent),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(34, 211, 238, 0.05), transparent);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.site-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.site-title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  margin-top: 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.social-sep {
  color: var(--muted);
  user-select: none;
}

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

.grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.25rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: rgba(107, 201, 255, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.card--link {
  text-decoration: none;
  color: inherit;
}

.card--link:hover {
  text-decoration: none;
}

.card--link:hover .card-title {
  color: var(--accent);
}

.card-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.card-desc {
  margin: 0;
  flex: 1;
  font-size: 0.925rem;
  color: var(--muted);
  line-height: 1.55;
}

.card-meta {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
}

.card--mini {
  align-items: stretch;
}

.card-body-mini {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 480px) {
  .card-body-mini {
    flex-direction: row;
    align-items: flex-start;
  }
}

.qr {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}

@media (min-width: 480px) {
  .qr {
    margin: 0;
  }
}

.qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-text {
  flex: 1;
  min-width: 0;
}

.mini-note {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.site-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}
