:root {
  --bg: #0e1116;
  --bg-card: #171c24;
  --bg-card-hover: #1e252f;
  --text: #e7ecf3;
  --text-dim: #9aa6b6;
  --accent: #f5a623;
  --accent-2: #4ea1ff;
  --border: #262d38;
  --radius: 14px;
  --maxw: 1100px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(1200px 600px at 50% -200px, #1b2330 0%, var(--bg) 60%);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 5rem 1.5rem 3rem;
}

.logo {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  color: var(--text-dim);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin: 0.75rem 0 0;
}

/* ---------- Projects grid ---------- */
main {
  flex: 1;
  width: 100%;
}

.projects {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

/* Live & WIP cards lift on hover; "soon" cards stay flat */
.card[data-status="live"]:hover,
.card[data-status="wip"]:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.card[data-status="soon"] {
  opacity: 0.7;
}
.card[data-status="soon"] .card-link {
  cursor: default;
}

/* ---------- Thumbnails (CSS placeholders, swap for real images) ---------- */
.thumb {
  aspect-ratio: 16 / 9;
  width: 100%;
  background-size: cover;
  background-position: center;
}

/* Shown when a project has no "thumb" image in its project.json */
.thumb-fallback {
  background: linear-gradient(135deg, #1a2330, #2b3a52 60%, var(--accent-2));
}

/* ---------- Card body ---------- */
.card-body {
  padding: 1.1rem 1.2rem 1.4rem;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.card-head h2 {
  font-size: 1.2rem;
  margin: 0;
}

.card-body p {
  color: var(--text-dim);
  margin: 0;
  font-size: 0.95rem;
}

.badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-live {
  background: rgba(245, 166, 35, 0.15);
  color: var(--accent);
  border: 1px solid rgba(245, 166, 35, 0.4);
}

.badge-soon {
  background: rgba(154, 166, 182, 0.12);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.badge-wip {
  background: rgba(91, 160, 235, 0.14);
  color: #7fb6f0;
  border: 1px solid rgba(91, 160, 235, 0.4);
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-dim);
  padding: 3rem 1rem;
}
.empty code {
  background: var(--bg-card);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

.site-footer a {
  color: var(--text-dim);
}
.site-footer a:hover {
  color: var(--accent);
}

/* "What people say" — per-project community reactions (quotes or comment screenshots). */
.reactions {
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.reactions-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.reaction {
  margin: 0;
  padding: 0.55rem 0.75rem;
  background: rgba(78, 161, 255, 0.06);
  border-left: 3px solid var(--accent-2);
  border-radius: 8px;
}
.reaction p {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  font-style: italic;
}
.reaction cite {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-style: normal;
}
.reaction-img {
  display: block;
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* ---------- Download button (per-project, sits below the clickable card) ---------- */
.card-download {
  padding: 0 1.2rem 1.3rem;
}
.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  background: rgba(245, 166, 35, 0.14);
  border: 1px solid rgba(245, 166, 35, 0.45);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.download-btn:hover {
  background: rgba(245, 166, 35, 0.24);
  transform: translateY(-1px);
}
.download-icon {
  width: 1.05em;
  height: 1.05em;
  flex-shrink: 0;
}
.download-meta {
  display: block;
  margin-top: 0.4rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.75rem;
}
