/* =========================================================
   Design Tokens
   ========================================================= */
:root {
  --bg: #0b0b0b;
  --fg: #eaeaea;
  --muted: #9aa0a6;
  --card: #141414;
  --border: #242424;
  --accent: #5eead4;
}

/* =========================================================
   Base
   ========================================================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--fg);
}

/* =========================================================
   Layout
   ========================================================= */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 20px;
}

.divider {
  height: 1px;
  margin: 28px 0 44px;
  background: rgba(255, 255, 255, 0.06);
}

/* =========================================================
   Header / Brand
   ========================================================= */
.header {
  margin-bottom: 40px;
}

.header h1 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.1;
}

.header p {
  margin-top: 3px;
  font-size: 0.9rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.6);
}

.brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.brand-text {
  max-width: 520px;
  transform: translateY(-6px);
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* =========================================================
   Projects List
   ========================================================= */
.projects {
  display: grid;
  gap: 16px;
  margin: 48px 0;
}

/* =========================================================
   Card (Base)
   ========================================================= */
.card {
  position: relative;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

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

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

.card p {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

.card-meta {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--muted);
}

/* =========================================================
   Card Overlay Link (entire card clickable)
   ========================================================= */
.card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* =========================================================
   Card Actions (above overlay)
   ========================================================= */
.card-actions,
.release-link {
  position: relative;
  z-index: 2;
}

.card-actions {
  margin-top: 10px;
}

.release-link {
  font-size: 0.8rem;
  color: var(--accent);
  opacity: 0.85;
}

.release-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* =========================================================
   Featured Variant
   ========================================================= */
.card.featured {
  padding: 20px;
  box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.35),
    0 8px 24px rgba(94, 234, 212, 0.06);
}

.card.featured:hover {
  border-color: rgba(94, 234, 212, 0.6);
}

.card.featured p {
  margin-bottom: 12px;
}

/* =========================================================
   Badge
   ========================================================= */
.badge {
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 0.65rem;
  border-radius: 999px;
  vertical-align: middle;
  color: var(--accent);
  background: rgba(94, 234, 212, 0.12);
  border: 1px solid rgba(94, 234, 212, 0.25);
}

/* =========================================================
   Tags
   ========================================================= */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  opacity: 0.85;
}

.tag {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(94, 234, 212, 0.12);
  border: 1px solid rgba(94, 234, 212, 0.25);
}

.card:hover .tag {
  background: rgba(94, 234, 212, 0.18);
}

/* =========================================================
   Meta / Footer
   ========================================================= */
.meta {
  font-size: 0.75rem;
  color: var(--muted);
}

.footer {
  margin-top: 64px;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer a {
  color: inherit;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}
