:root {
  --background: #0d1117;
  --surface: #161b22;
  --surface-hover: #1f2630;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #58a6ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

.container {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

header {
  padding: 100px 0 70px;
}

header .prompt {
  color: var(--accent);
  margin-bottom: 12px;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5rem);
  letter-spacing: -0.06em;
}

header p {
  max-width: 650px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

section {
  margin-bottom: 80px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 1.3rem;
}

.section-title::before {
  content: ">";
  color: var(--accent);
}

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

.project {
  display: flex;
  flex-direction: column;
  overflow: hidden;

  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;

  transition:
    transform 120ms ease,
    border-color 120ms ease,
    background 120ms ease;
}

.project:hover {
  transform: translateY(-3px);
  border-color: #59636e;
  background: var(--surface-hover);
}

.project-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #090c10;
  border-bottom: 1px solid var(--border);
}

.project-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.project h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.project p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.5;
}

.tags,
.years {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags {
  margin-top: auto;
  margin-bottom: 8px;
}

.years {
  margin-bottom: 20px;
}

.tag {
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;

  color: var(--muted);
  font-size: 0.75rem;
}

.year {
  padding: 4px 8px;
  border-radius: 4px;

  color: var(--accent);
  border: 1px solid var(--accent);

  font-size: 0.75rem;
}

.actions {
  display: flex;
  gap: 10px;
}

button,
.button {
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 9px 14px;

  background: transparent;
  color: var(--text);

  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

button:hover,
.button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0d1117;
}

.button-primary:hover {
  color: #0d1117;
  filter: brightness(1.1);
}

footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0;
}

.footer-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-built {
  font-size: 0.85rem;
}

.footer-built::before {
  content: "$ ";
  color: var(--accent);
}

.footer-copyright {
  font-size: 0.75rem;
  color: #6e7681;
}

@media (max-width: 600px) {
  .footer-content {
    align-items: flex-start;
    flex-direction: column;
  }
}

.source-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gitlab-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
