/* cc.alvarocuba.com — v0.5 minimal styling. Mobile-first, dark, simple. */

:root {
  --bg: #0a0a0a;
  --bg-tile: #141416;
  --bg-tile-hover: #1a1a1d;
  --border: #2a2a2e;
  --fg: #e8e8ec;
  --fg-muted: #8a8a90;
  --accent: #6ee7b7;
  --warn: #fbbf24;
  --danger: #f87171;
  --grey: #6b7280;
  --gradient: linear-gradient(135deg, #1a1a1d 0%, #0a0a0a 100%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro", "Helvetica Neue", sans-serif;
  font-feature-settings: "ss01", "cv02";
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

header {
  margin-bottom: 32px;
}

.header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.date {
  color: var(--fg-muted);
  font-size: 13px;
}

.tagline {
  color: var(--fg-muted);
  font-size: 14px;
  margin-top: 6px;
}

main {
  display: grid;
  gap: 32px;
}

/* ---------- Project tiles ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.tile {
  display: block;
  background: var(--bg-tile);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--fg);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.tile:hover {
  background: var(--bg-tile-hover);
  border-color: #3a3a3f;
  transform: translateY(-1px);
}

.tile.primary {
  background: var(--gradient);
  border-color: #3a3a3f;
}

.tile-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.tile h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.tile-desc {
  color: var(--fg-muted);
  font-size: 13px;
  margin-bottom: 8px;
  line-height: 1.45;
}

.tile-meta {
  color: var(--fg-muted);
  font-size: 11.5px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  opacity: 0.75;
}

.badge {
  font-size: 10.5px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 100px;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge-active   { background: rgba(110, 231, 183, 0.15); color: var(--accent); }
.badge-caretaker{ background: rgba(107, 114, 128, 0.2);  color: var(--grey); }
.badge-warn     { background: rgba(251, 191, 36, 0.15);  color: var(--warn); }
.badge-parked   { background: rgba(107, 114, 128, 0.2);  color: var(--grey); }
.badge-meta     { background: rgba(167, 139, 250, 0.15); color: #c4b5fd; }

/* ---------- Infra panel ---------- */
.infra-panel, .next {
  background: var(--bg-tile);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.infra-panel h3, .next h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.infra-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px;
}

.infra-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--fg);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-green  { background: var(--accent); box-shadow: 0 0 8px rgba(110, 231, 183, 0.4); }
.dot-yellow { background: var(--warn); box-shadow: 0 0 8px rgba(251, 191, 36, 0.4); }
.dot-grey   { background: var(--grey); }

/* ---------- Next specs ---------- */
.next-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.next-list li {
  font-size: 13px;
  color: var(--fg-muted);
}

.next-list strong {
  color: var(--fg);
  font-weight: 500;
}

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

.next-list a:hover {
  text-decoration: underline;
}

/* ---------- Footer ---------- */
footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}

footer p {
  font-size: 11px;
  color: var(--fg-muted);
}

footer a {
  color: var(--fg-muted);
  text-decoration: underline;
}

/* ---------- Mobile tweaks ---------- */
@media (max-width: 640px) {
  body {
    padding: 16px 14px 60px;
  }

  h1 {
    font-size: 19px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .tile {
    padding: 14px 16px;
  }
}
