:root {
  --ink: #e7f0ff;
  --muted: #9eb1c9;
  --blue: #32d7ff;
  --surface: #08111f;
  --line: rgba(137, 173, 220, .2);
  --green: #65e6ae;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--surface); font-family: Arial, sans-serif; }
a { color: var(--blue); text-decoration: none; }
.project-shell { max-width: 1120px; margin: 0 auto; padding: 32px 24px 72px; }
.project-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 72px; }
.project-nav strong { font-size: 18px; }
.project-hero { max-width: 780px; margin-bottom: 46px; }
.eyebrow { color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
h1 { margin: 12px 0; font-size: clamp(36px, 6vw, 64px); line-height: 1.05; }
h2 { margin-top: 0; }
.lead { color: var(--muted); font-size: 19px; line-height: 1.6; }
.preview { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #101d30; box-shadow: 0 16px 40px rgba(0, 0, 0, .2); }
.preview-bar { display: flex; gap: 7px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.preview-bar span { width: 10px; height: 10px; border-radius: 50%; background: #ffbd69; }
.preview-bar span:first-child { background: #ff7b7b; }
.preview-bar span:last-child { background: #65d39b; }
.preview-grid { display: grid; grid-template-columns: 220px 1fr; gap: 22px; margin-top: 22px; }
.preview-sidebar, .preview-card { padding: 20px; border-radius: 12px; background: #f6f9fd; }
.preview-sidebar p { padding: 10px; border-radius: 8px; color: var(--muted); }
.preview-sidebar p:first-child { color: white; background: var(--blue); }
.preview-card h3 { margin-top: 0; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.metric { padding: 16px; border-radius: 10px; background: white; border: 1px solid var(--line); }
.metric strong { display: block; font-size: 24px; }
.metric small { color: var(--muted); }
.code-preview { padding: 24px; border-radius: 12px; color: #d9e7ff; background: #172235; font-family: Consolas, monospace; line-height: 1.8; }
.code-output { margin-top: 18px; padding: 14px; color: #b9f3cf; border-left: 3px solid var(--green); background: #0e1726; }
.game-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
button { padding: 10px 16px; border: 0; border-radius: 8px; color: white; background: var(--blue); cursor: pointer; }
button.secondary { color: var(--ink); background: #e8eef7; }
.life-grid { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; max-width: 720px; }
.life-cell { aspect-ratio: 1; border-radius: 3px; background: #e6edf6; cursor: pointer; }
.life-cell.alive { background: var(--blue); box-shadow: 0 0 8px rgba(40,120,240,.45); }
.bars { display: flex; align-items: end; gap: 12px; height: 220px; padding: 20px; border-bottom: 1px solid var(--line); }
.bar { flex: 1; min-height: 15px; border-radius: 8px 8px 0 0; background: linear-gradient(#63b3ff, #2878f0); transition: height .3s; }
.bar-labels { display: flex; gap: 12px; padding: 10px 20px; color: var(--muted); font-size: 12px; }
.bar-labels span { flex: 1; text-align: center; }
.project-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0; }
.button { display: inline-block; padding: 12px 18px; border-radius: 9px; color: white; background: var(--blue); }
.button.alt { color: var(--ink); background: #e8eef7; }
@media (max-width: 700px) { .project-nav { margin-bottom: 48px; } .preview-grid { grid-template-columns: 1fr; } .metric-row { grid-template-columns: 1fr; } .life-grid { gap: 2px; } }

/* Keep text readable on the light simulation surfaces. */
.preview-sidebar,
.preview-card,
.metric,
.log-box,
.air-dashboard,
.air-card,
.game-board,
.mosque-preview {
  color: #10223d;
}

.preview-card h2,
.preview-card h3,
.metric strong,
.log-box h2,
.air-dashboard > .air-top > strong,
.air-card strong,
.game-board strong,
.fitness,
.mosque-preview strong {
  color: #10223d;
}

.preview-card .lead,
.preview-sidebar p,
.metric small,
.log-meta,
.air-city,
.air-labels,
.air-card small,
.individual small,
.mosque-card p {
  color: #536b86 !important;
}

.preview-sidebar p:first-child {
  color: #ffffff;
}

.project-note {
  max-width: 780px;
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f6f9fd;
  color: #10223d;
}

.project-note h2 {
  margin-top: 0;
  color: #10223d;
}

.project-note p {
  margin-bottom: 0;
  color: #536b86;
}

.button.alt,
button.secondary {
  color: #10223d;
  border: 1px solid #c5d3e2;
}
