:root {
  --bg: #080a0f;
  --card: #10131a;
  --card-2: #0c0f15;
  --text: #edf2ff;
  --muted: #939db1;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.14);
  --blue: #1769ff;
  --purple: #9d3cff;
  --teal: #18cbb7;
  --radius: 13px;
  --site-font: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--site-font);
  color: var(--text);
  background:
    radial-gradient(circle at 18% -12%, rgba(23, 105, 255, 0.055), transparent 24rem),
    radial-gradient(circle at 88% -10%, rgba(24, 203, 183, 0.04), transparent 22rem),
    linear-gradient(180deg, #0a0d12 0%, var(--bg) 48%, #07090d 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.11;
  background-image: radial-gradient(rgba(255, 255, 255, 0.24) 0.5px, transparent 0.5px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 70%);
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(740px, calc(100% - 34px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 17px 0 22px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 17px;
  font-size: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f6f8ff;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.brand img {
  width: 27px;
  height: 27px;
  display: block;
  filter: drop-shadow(0 0 9px rgba(23, 105, 255, 0.14));
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.project-card {
  position: relative;
  display: grid;
  grid-template-rows: 78px auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.006)),
    var(--card);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.19);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  opacity: 0.42;
  background: linear-gradient(90deg, rgba(23, 105, 255, 0.55), rgba(157, 60, 255, 0.32), rgba(24, 203, 183, 0.42));
}

.project-card:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.008)),
    var(--card);
}

.preview {
  display: block;
  height: 78px;
  padding: 7px;
  background:
    radial-gradient(circle at 18% 18%, rgba(23, 105, 255, 0.07), transparent 8rem),
    radial-gradient(circle at 88% 8%, rgba(24, 203, 183, 0.055), transparent 7rem),
    var(--card-2);
  border-bottom: 1px solid var(--line);
}

.preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #0b0e15;
}

.project-card__body {
  display: flex;
  flex-direction: column;
  padding: 9px 11px 10px;
}

.project-card__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-bottom: 4px;
}

.project-name {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
}

.project-name img {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  object-fit: contain;
}

h2,
p {
  margin-top: 0;
}

.project-card h2 {
  margin-bottom: 0;
  color: #f5f7ff;
  font-size: 0.94rem;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.project-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.755rem;
  line-height: 1.34;
}

.status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  color: #cbd5e9;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.065);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.status::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  opacity: 0.78;
}

.status--live::before {
  background: linear-gradient(135deg, var(--blue), var(--teal));
}

.status--offline::before {
  background: #70788a;
}

@media (max-width: 700px) {
  .shell {
    width: min(500px, calc(100% - 26px));
    padding-top: 14px;
  }

  .topbar {
    margin-bottom: 15px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}
