:root {
  color-scheme: dark;
  --bg: #0c0d0f;
  --panel: #16191e;
  --panel-strong: #1d2229;
  --text: #f4f7fb;
  --muted: #aeb7c3;
  --line: #303743;
  --focus: #8bd4ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 25% 10%, rgba(87, 154, 255, 0.2), transparent 32rem),
    radial-gradient(circle at 90% 20%, rgba(255, 187, 90, 0.14), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.page-header {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 0.98;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.project-card {
  display: grid;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  border-color: var(--focus);
  background: var(--panel-strong);
  transform: translateY(-2px);
  outline: none;
}

.project-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10.5;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  background: #101216;
}

.project-card span {
  min-height: 2.6em;
  color: var(--text);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding: 28px 0;
  }

  .project-grid {
    gap: 12px;
  }
}
