/* Landing page of Curiosity Lab (project/index.html). Colour tokens are in theme.css. */
* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: "Courier New", "DejaVu Sans Mono", Consolas, ui-monospace, monospace;
  font-size: 16px;
  text-shadow: var(--glow);
}

a { color: var(--fg); text-decoration: none; }

.landing { max-width: 980px; margin: 0 auto; padding: 32px 16px 24px; }

.logo { margin: 0 0 8px; font-size: clamp(26px, 6vw, 40px); letter-spacing: 4px; }
.tagline { margin: 0 0 18px; color: var(--dim); line-height: 1.4; }
.landing .theme { margin: 0 0 28px; }

.cursor { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

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

.room {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--dim);
  line-height: 1.4;
}
a.room:hover, a.room:focus-visible { border-color: var(--fg); background: var(--faint); outline: none; }
.room h2 { margin: 4px 0 0; font-size: 20px; letter-spacing: 2px; }
.room p { margin: 0; flex: 1; }
.room .go { color: var(--hot); }
.room.soon { border-style: dashed; color: var(--dim); }
.room.soon h2 { color: var(--fg); }
.room.soon .go { color: var(--dim); }

.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mosaic img { width: 100%; aspect-ratio: 3 / 2; display: block; background: var(--bg); }
/* thumbnails are stored green: tint them to the theme (same filters as toys/css/style.css) */
:root[data-theme="classic"] .mosaic img { filter: saturate(1.5) brightness(1.25); }
:root[data-theme="amber"] .mosaic img { filter: sepia(1) saturate(2.6) hue-rotate(-12deg) brightness(1.05); }
:root[data-theme="white"] .mosaic img { filter: grayscale(1) brightness(1.3); }

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 1.36;   /* about the mosaic's height, so both cards line up */
  border: 1px dashed var(--faint);
}
.placeholder pre { margin: 0; font: inherit; line-height: 1.15; color: var(--fg); }

footer { margin-top: 32px; color: var(--dim); font-size: 14px; text-align: center; }
