:root {
  --vercel-black: #171717;
  --vercel-gray-600: #4d4d4d;
  --vercel-gray-500: #666666;
  --vercel-gray-400: #808080;
  --vercel-gray-100: #ebebeb;
  --vercel-gray-50: #fafafa;
  --vercel-white: #ffffff;
  --vercel-link: #0072f5;
  --vercel-focus: hsla(212, 100%, 48%, 1);
  --vercel-focus-ring: rgba(147, 197, 253, 0.5);

  --shadow-border: 0px 0px 0px 1px rgba(0, 0, 0, 0.08);
  --shadow-ring-light: 0px 0px 0px 1px #ebebeb;
  --shadow-card: 0px 0px 0px 1px rgba(0, 0, 0, 0.06),
    0px 2px 2px rgba(0, 0, 0, 0.03),
    0px 8px 12px -8px rgba(0, 0, 0, 0.04),
    0px 0px 0px 1px #fafafa;
  --shadow-card-hover: 0px 0px 0px 1px rgba(0, 0, 0, 0.06),
    0px 4px 8px rgba(0, 0, 0, 0.04),
    0px 16px 20px -12px rgba(0, 0, 0, 0.06),
    0px 0px 0px 1px #fafafa;
  --shadow-input: 0px 0px 0px 1px rgba(0, 0, 0, 0.08);
  --shadow-input-focus: 0 0 0 2px var(--vercel-focus), 0 0 0 4px var(--vercel-focus-ring);

  /* Font families */
  --font-serif: 'Playfair Display', 'Times New Roman', Georgia, serif;
  --font-sans: 'Pretendard', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-feature-settings: "liga" 1, "tnum" 1;
  background: var(--vercel-white);
  color: var(--vercel-black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 20px 48px;
}

.header {
  text-align: center;
  margin-bottom: 48px;
}

.title {
  font-family: var(--font-serif);
  font-size: 3.75rem;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.05;
  margin: 0 0 16px;
  font-feature-settings: "liga" 1, "kern" 1;
}

.tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.125rem;
  color: var(--vercel-gray-600);
  margin: 0;
  line-height: 1.6;
  letter-spacing: 0.2px;
}

.main {
  margin-bottom: 64px;
}

.stats-bar {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 32px;
}

.stats-count {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.32px;
}

.stats-label {
  font-size: 1rem;
  color: var(--vercel-gray-600);
}

.search-wrap {
  margin-bottom: 24px;
}

.search-wrap {
  position: relative;
  max-width: 480px;
  margin: 0 auto 32px;
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--vercel-gray-400);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 14px 18px 14px 46px;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 400;
  color: var(--vercel-black);
  background: var(--vercel-white);
  border: none;
  border-radius: 8px;
  outline: none;
  box-shadow: var(--shadow-input);
  transition: box-shadow 0.2s ease;
}

.search-input::placeholder {
  color: var(--vercel-gray-400);
}

.search-input:focus {
  box-shadow: var(--shadow-input-focus);
}

.tag-explorer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.section-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--vercel-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 0 12px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--vercel-black);
  background: var(--vercel-white);
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  user-select: none;
  box-shadow: var(--shadow-border);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.tag-chip:hover {
  background: var(--vercel-gray-50);
  box-shadow: var(--shadow-border), 0px 2px 4px rgba(0, 0, 0, 0.03);
}

.tag-chip:active {
  transform: scale(0.97);
}

.tag-chip.active {
  background: var(--vercel-black);
  color: var(--vercel-white);
  box-shadow: none;
}

.tag-count {
  font-size: 0.75rem;
  font-weight: 500;
  color: inherit;
  opacity: 0.7;
}

.tag-chip.active .tag-count {
  color: inherit;
  opacity: 0.65;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--vercel-white);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.card-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--vercel-gray-50);
  box-shadow: var(--shadow-ring-light);
}

.card-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  box-shadow: var(--shadow-ring-light);
}

.card-title {
  min-width: 0;
}

.card-name {
  margin: 0 0 2px;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.32px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-role {
  margin: 0;
  font-size: 0.875rem;
  color: var(--vercel-gray-600);
}

.card-bio {
  flex: 1 0 auto;
  margin: 0 0 18px;
  font-size: 0.9375rem;
  color: var(--vercel-black);
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.card-tag {
  display: inline-block;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--vercel-gray-600);
  background: var(--vercel-gray-50);
  border-radius: 9999px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--vercel-link);
  text-decoration: none;
  margin-top: auto;
  padding-top: 8px;
  min-height: 24px;
  transition: color 0.15s ease;
}

.card-link:hover {
  color: #0056b3;
}

.card-link-spacer {
  display: block;
  margin-top: auto;
  min-height: 24px;
  padding-top: 8px;
  box-sizing: content-box;
}

.empty-state {
  text-align: center;
  padding: 64px 24px;
  background: var(--vercel-white);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
}

.empty-title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.32px;
  color: var(--vercel-black);
}

.empty-hint {
  margin: 0;
  font-size: 1rem;
  color: var(--vercel-gray-600);
}

.footer {
  text-align: center;
  font-size: 0.875rem;
  color: var(--vercel-gray-500);
}

@media (max-width: 640px) {
  .page {
    padding-top: 48px;
  }

  .title {
    font-size: 2.25rem;
    letter-spacing: -1.8px;
  }

  .tagline {
    font-size: 1.125rem;
  }

  .tag-explorer {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 6px;
  }

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

  .card {
    padding: 20px;
  }
}
