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

:root {
  --bg:      #0d0d0d;
  --surface: #161616;
  --border:  #252525;
  --hover:   #1e1e1e;
  --text:    #e8e8e8;
  --muted:   #555;
  --accent:  #7fff6a;
}

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Courier New', Courier, monospace;
  display: flex;
  justify-content: center;
  align-items: center;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: 48px 24px;
  width: 100%;
  max-width: 760px;
}

/* ── Header ── */
header h1 {
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(127, 255, 106, 0.25);
  text-transform: lowercase;
}

/* ── Cards ── */
.cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px 24px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  width: 200px;
  transition: background 0.18s, border-color 0.18s, transform 0.15s;
  cursor: pointer;
}

.card:hover {
  background: var(--hover);
  border-color: #404040;
  transform: translateY(-3px);
}

.card:active {
  transform: translateY(0);
}

/* ── Card icon ── */
.card-icon {
  font-size: 2.8rem;
  line-height: 1;
  user-select: none;
}

/* ── Millie photo ── */
.millie-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid var(--border);
  display: block;
}

.millie-card:hover .millie-photo {
  border-color: #B86C2A;
  box-shadow: 0 0 12px rgba(184, 108, 42, 0.4);
}

/* ── Card text ── */
.card-label {
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

.card-url {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .cards {
    flex-direction: column;
    align-items: center;
  }
  .card {
    width: 100%;
    max-width: 300px;
    flex-direction: row;
    padding: 20px 24px;
    gap: 20px;
    text-align: left;
    align-items: center;
  }
  .card-icon { font-size: 2.2rem; flex-shrink: 0; }
  .millie-photo { width: 52px; height: 52px; }
  .card-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }
  .card-label, .card-url { text-align: left; }
}
