:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --surface-hover: #1a1a25;
  --border: #1e1e2e;
  --text: #e4e4e7;
  --text-muted: #71717a;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--accent-hover);
}

/* Layout */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  padding: 2rem 0 1rem;
  border-bottom: 1px solid var(--border);
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
header nav a {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-left: 1.5rem;
  transition: color 0.2s;
}
header nav a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  padding: 4rem 0 3rem;
}
.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero .subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
}

/* Sections */
section {
  padding: 2.5rem 0;
}
section + section {
  border-top: 1px solid var(--border);
}
section h2 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Experience items */
.experience-item {
  margin-bottom: 1.5rem;
}
.experience-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.experience-item .meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.experience-item p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Education / Certs list */
.credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.credential {
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}
.credential h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.credential p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Footer */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ─── Dashboard ─── */
.dashboard-hero {
  padding: 3rem 0 2rem;
  text-align: center;
}
.dashboard-hero h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}
.dashboard-hero p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  padding-bottom: 3rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  text-align: center;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  text-decoration: none;
  color: var(--text);
}
.service-card:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
  color: var(--text);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  font-size: 1.5rem;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
}
.service-card .service-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.service-card .service-url {
  font-size: 0.75rem;
  color: var(--accent);
  opacity: 0.7;
}

/* Service icon colors */
.icon-jellyfin { background: rgba(0, 164, 220, 0.15); color: #00a4dc; }
.icon-immich   { background: rgba(66, 80, 175, 0.15); color: #4250af; }
.icon-nextcloud { background: rgba(0, 130, 201, 0.15); color: #0082c9; }
.icon-frigate  { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.icon-revolt   { background: rgba(253, 68, 83, 0.15); color: #fd4453; }
.icon-vaultwarden { background: rgba(23, 93, 220, 0.15); color: #175ddc; }
.icon-synapse  { background: rgba(168, 85, 247, 0.15); color: #a855f7; }

/* Responsive */
@media (max-width: 640px) {
  .hero h1 { font-size: 1.75rem; }
  .hero .subtitle { font-size: 1rem; }
  .credentials { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  header .container { flex-direction: column; gap: 0.75rem; }
}
