:root {
  color-scheme: dark;
  --bg: #101114;
  --card: #191b20;
  --line: rgba(255, 255, 255, 0.08);
  --ink: #f4f4f5;
  --muted: rgba(244, 244, 245, 0.62);
  --hover: #21242b;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

a { color: inherit; }

.top,
main,
.foot {
  width: min(1080px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.top { padding: 32px 0 8px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  display: block;
  height: 36px;
  width: auto;
}

.brand span {
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
}

main {
  flex: 1;
  padding: 28px 0 40px;
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.cards > li { display: flex; }

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  height: 100%;
  padding: 24px 24px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  text-decoration: none;
}

.card:hover,
.card:focus-visible {
  background: var(--hover);
  outline: none;
}

.mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 0 18px;
  flex: none;
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
}

.sunburst {
  width: 72px;
  height: 72px;
}

.wrench {
  width: 52px;
  height: 52px;
  color: #e6e6ea;
}

.card h2,
.prototype h1 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.card p,
.prototype p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.moon-name {
  display: inline-flex;
  align-items: baseline;
  margin: 0 0 14px;
  font-family: "Exo 2", "SF Pro Display", sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-right: 0.22em;
  line-height: 1;
}

.moon-v {
  display: inline-block;
  font-weight: 700;
  transform: scale(1.1, 1.24);
  transform-origin: 50% 88%;
  margin: 0 -0.015em;
}

.pipe {
  font-weight: 400;
  color: var(--muted);
}

.prototype {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.wrench-large {
  width: 56px;
  height: 56px;
  margin: 0 0 18px;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  padding: 8px 0 36px;
  text-align: center;
}

.foot p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
}
