/* The same colour tokens as the projects, so moving between them feels like one place. */
:root {
  color-scheme: light;
  --canvas: 250 250 251;
  --surface: 255 255 255;
  --line: 230 232 236;
  --fg: 22 25 34;
  --fg-muted: 92 99 113;
  --fg-subtle: 140 147 161;
  --accent: 94 92 230;
  --success: 22 163 106;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --canvas: 13 14 18;
    --surface: 19 20 26;
    --line: 37 40 49;
    --fg: 231 233 238;
    --fg-muted: 150 156 170;
    --fg-subtle: 106 112 127;
    --accent: 116 114 245;
    --success: 64 196 129;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: rgb(var(--canvas));
  color: rgb(var(--fg));
  font: 16px/1.6 "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding-inline: 24px;
}

main { flex: 1; padding-block: 96px 64px; }

.intro h1 {
  margin: 0 0 12px;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.intro p {
  margin: 0 0 56px;
  max-width: 560px;
  color: rgb(var(--fg-muted));
  font-size: 18px;
}

h2 {
  margin: 0 0 16px;
  color: rgb(var(--fg-subtle));
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.projects {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project {
  display: grid;
  gap: 6px;
  padding: 20px;
  border: 1px solid rgb(var(--line));
  border-radius: 12px;
  background: rgb(var(--surface));
  color: inherit;
  text-decoration: none;
  transition: border-color 120ms;
}

.project:hover { border-color: rgb(var(--accent)); }

.project:focus-visible {
  outline: 2px solid rgb(var(--accent) / 0.7);
  outline-offset: 2px;
}

.name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
}

/* "Live" is a word, not just a dot, so it never rests on colour alone. */
.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgb(var(--fg-muted));
  font-size: 12px;
  font-weight: 500;
}

.live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(var(--success));
}

.what { color: rgb(var(--fg-muted)); font-size: 15px; }
.host { color: rgb(var(--accent)); font-size: 14px; font-weight: 500; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px;
  border-top: 1px solid rgb(var(--line));
  color: rgb(var(--fg-subtle));
  font-size: 14px;
}

footer a { color: rgb(var(--fg-muted)); }
footer a:hover { color: rgb(var(--fg)); }

@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  main { padding-block: 56px 40px; }
  .intro h1 { font-size: 32px; }
  .intro p { font-size: 16px; margin-bottom: 40px; }
}
