:root {
  color-scheme: light;
  --bg: #e0e5ec;
  --fg: #4a5668;
  --card: #e0e5ec;
  --accent: #337ab7;
  --muted: #5a677b;
  --shadow-out: 9px 9px 16px #a3b1c6, -9px -9px 16px #ffffff;
  --shadow-in: inset 7px 7px 14px #a3b1c6, inset -7px -7px 14px #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Roboto Mono', monospace;
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.container {
  width: min(960px, 100%);
}

header h1 { 
  margin: 0 0 12px; 
  font-size: 1.8rem; 
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
header p { 
  margin: 0 0 24px; 
  color: var(--muted); 
  font-size: 1rem;
}
header .pill {
  display: inline-block;
  margin-bottom: 16px;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.list {
  display: grid;
  gap: 16px;
}

.card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--card);
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-out);
  transition: all 0.3s ease;
}

.card:hover { 
  box-shadow: var(--shadow-in); 
  color: var(--accent);
}
.card.disabled { opacity: 0.6; cursor: default; }
.card.disabled:hover { 
  box-shadow: var(--shadow-out); 
  color: var(--fg);
}

.card h2 { 
  margin: 0 0 8px; 
  font-size: 1.3rem; 
  font-weight: 700;
}
.card p { 
  margin: 0; 
  color: var(--muted); 
  font-size: 0.95rem;
  line-height: 1.4;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 5px 5px 10px #a3b1c6, -5px -5px 10px #ffffff;
}

a.pill:hover {
  box-shadow: inset 5px 5px 10px #a3b1c6, inset -5px -5px 10px #ffffff;
}

@media (max-width: 640px) {
  body { padding: 16px; }
  header h1 { font-size: 1.4rem; }
  header p { font-size: 0.9rem; }
  .card { 
    flex-direction: column; 
    align-items: flex-start; 
    padding: 20px;
  }
  .card h2 { font-size: 1.2rem; }
  .card p { font-size: 0.85rem; }
  .grid {
    grid-template-columns: 1fr;
  }
}
