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

:root {
  --text: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-alt: #f8f9fb;
  --nav-height: 52px;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
}

/* ── NAV ── */
.nav {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-icons a {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: color 0.15s;
  text-decoration: none;
}

.nav-icons a:hover { color: var(--text); }

/* ── LAYOUT ── */
.layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  height: calc(100vh - var(--nav-height));
}

/* ── LEFT ── */
.left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.75rem;
  padding: 2.5rem 2.5rem;
  border-right: 1px solid var(--border);
}

.greeting {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.tagline {
  margin-top: 0.4rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.bio {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.social {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}

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

/* ── RIGHT ── */
.right {
  display: grid;
  grid-template-rows: 1fr 1fr;
  height: 100%;
}

.panel {
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.panel:first-child {
  border-bottom: 1px solid var(--border);
}

.panel-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ── LISTS ── */
.item-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.item:last-child { border-bottom: none; }

.item-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.item-name {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.item-meta {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.item-tags {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.item-tags span {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
}

.item-links {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: 0.75rem;
}

.item-link {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-left: 0.75rem;
  transition: color 0.15s;
}

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

/* ── MOBILE FALLBACK ── */
@media (max-width: 640px) {
  html, body { overflow: auto; }

  .layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .left {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 2rem 1.5rem;
  }

  .right { grid-template-rows: auto auto; }

  .panel { padding: 1.75rem 1.5rem; }
}
