:root {
  --bg: #0d1117;
  --surface: #161b22;
  --surface-hover: #1c2430;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #58a6ff;
  --accent-strong: #2f81f7;
  --radius: 12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
}

.identity-text h1 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.95rem;
  transition: background 0.15s, border-color 0.15s;
}

.github-link:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
}

.github-icon { flex-shrink: 0; }

/* Tiles */
.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.tile {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.tile:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.tile-link {
  display: block;
  flex: 1;
}

.tile-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b0f14;
  border-bottom: 1px solid var(--border);
}

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

.placeholder {
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: var(--muted);
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(255,255,255,0.03) 12px 24px);
}

.placeholder span { font-weight: 600; }
.placeholder small { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.75rem; opacity: 0.8; }

.tile-body {
  padding: 1rem 1.25rem 0.5rem;
}

.tile-body h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.tile-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tile-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 9px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.tile-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.tile-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 1.25rem 1.25rem;
}

.btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s;
}

.btn-primary {
  background: var(--accent-strong);
  color: #fff;
}

.btn-primary:hover { background: var(--accent); }

.repo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.15s;
}

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

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  font-size: 0.85rem;
  padding: 1.25rem;
}

.site-footer p { margin: 0; }

@media (max-width: 480px) {
  .avatar { width: 56px; height: 56px; }
  .identity-text h1 { font-size: 1.3rem; }
  .github-link span { display: none; }
}

/* Tile footer / Claude Code marker */
.tile-footer {
  border-top: 1px solid var(--border);
  padding: 0.5rem 1.25rem;
}

.made-with {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
}

.claude-icon {
  color: #d97757;
  flex-shrink: 0;
}
