:root {
  --bg: #0d0f13;
  --bg-elevated: #14171d;
  --border: #23272f;
  --text: #f2f4f7;
  --text-dim: #8b919c;
  --text-faint: #5b616b;
  --accent: #5b8cff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.layout {
  display: flex;
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 300px;
  padding: 56px 48px;
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
}

.name {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.age {
  margin-top: 28px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.age-value {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.age-label {
  font-size: 15px;
  color: var(--text-dim);
}

.profile-link {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s ease;
}

.profile-link:hover {
  color: var(--text);
}

/* ---------- Content ---------- */
.content {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 48px 64px;
}

.projects {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
}

.section-title {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  margin-bottom: 20px;
}

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

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #343a46;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-dim);
}

.lang-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dot);
}

.stars {
  font-size: 13px;
  color: var(--text-dim);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.card-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-dim);
  flex-grow: 1;
}

.card-link {
  margin-top: 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--accent);
}

.card:hover .card-link {
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    flex-direction: column;
    gap: 40px;
    padding: 40px 24px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .content {
    padding: 40px 24px 64px;
  }
}
