/* Yiqian Min — light minimal academic homepage
   Two-column layout inspired by common academic personal sites;
   styles vendored locally (not hotlinked). */

:root {
  --primary: #1a1a1a;
  --text: #333;
  --text-light: #777;
  --accent: #3d5a80;
  --accent-soft: rgba(61, 90, 128, 0.08);
  --bg: #ffffff;
  --bg-secondary: #fafafa;
  --border: #eeeeee;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
}

::selection {
  background: var(--accent-soft);
  color: var(--primary);
}

a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

/* Fixed top navigation */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 18px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.topnav a {
  color: var(--text-light);
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.topnav a:hover {
  color: var(--accent);
}

/* Two-column layout */
.wrapper {
  display: flex;
  max-width: 1320px;
  margin: 0 auto;
  gap: 48px;
  padding: 40px 28px 80px;
}

/* Left sticky profile */
.profile-section {
  flex: 0 0 280px;
  position: sticky;
  top: 88px;
  align-self: flex-start;
  height: fit-content;
  text-align: center;
  padding: 8px 8px 24px;
}

.profile-picture {
  margin-bottom: 24px;
}

.profile-photo {
  width: 160px;
  height: 160px;
  margin: 0 auto;
  display: block;
  border-radius: 50%;
  border: 1px solid var(--border);
  object-fit: cover;
  background: var(--bg-secondary);
}

.profile-section h1 {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.profile-section h1::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: 12px auto 0;
  background: var(--accent);
  border-radius: 1px;
}

.tagline,
.tagline-sub {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 10px;
}

.list-inline {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 28px;
}

.social-icon {
  color: var(--text-light) !important;
  font-size: 24px !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.social-icon:hover {
  color: var(--accent) !important;
}

/* Right content column */
.content-section {
  flex: 1;
  min-width: 0;
  max-width: 920px;
}

main section,
.content-section section {
  margin-top: 28px;
  margin-bottom: 8px;
  padding-bottom: 36px;
  scroll-margin-top: 80px;
}

main section:first-child,
.content-section section:first-child {
  margin-top: 0;
}

h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  margin: 48px 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

section:first-child h2 {
  margin-top: 0;
}

h2 i {
  color: var(--accent);
  margin-right: 10px;
  font-size: 16px;
}

p {
  margin-bottom: 16px;
  color: var(--text);
}

.muted {
  color: var(--text-light);
  font-size: 0.9em;
}

/* Clean academic tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
}

thead {
  display: none;
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s ease;
}

tbody tr:hover {
  background-color: var(--accent-soft);
}

td {
  padding: 18px 12px;
  vertical-align: top;
  background: transparent;
}

td:first-child {
  width: 42%;
  color: var(--primary);
}

/* Org logos beside company / school names */
.org {
  display: flex;
  align-items: center;
  gap: 12px;
}

.org-logo {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
  background: var(--bg-secondary);
  padding: 3px;
  border: 1px solid var(--border);
}

.org-text {
  min-width: 0;
  line-height: 1.45;
}

/* About */
.about-list {
  list-style: disc;
  padding-left: 1.35em;
  margin: 0 0 8px;
}

.about-list li {
  margin-bottom: 8px;
  color: var(--text);
  padding-left: 0.15em;
}

.about-list li::marker {
  color: var(--accent);
}

/* Interests */
.interest-list {
  list-style: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.interest-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.interest-list li strong {
  color: var(--primary);
  font-weight: 600;
}

.interest-list li span {
  color: var(--text-light);
  font-size: 14px;
}

.contact-info {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  color: var(--text-light);
  line-height: 2;
}

.contact-info a {
  text-decoration: none;
}

footer {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  text-align: center;
}

footer .contact-info {
  font-size: 13px;
}

/* Mobile: stack profile above content */
@media (max-width: 768px) {
  .topnav {
    padding: 14px 20px;
    gap: 16px;
  }

  .topnav a {
    font-size: 11px;
    letter-spacing: 1px;
  }

  .wrapper {
    flex-direction: column;
    gap: 24px;
    padding: 28px 20px 60px;
  }

  .profile-section {
    flex: none;
    position: relative;
    top: auto;
    width: 100%;
    order: 1;
  }

  .content-section {
    order: 2;
    width: 100%;
    max-width: none;
  }

  .profile-photo {
    width: 120px;
    height: 120px;
  }

  .profile-section h1 {
    font-size: 24px;
  }

  td:first-child {
    width: 48%;
  }

  .org-logo {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }
}

@media (prefers-color-scheme: dark) {
  .org-logo {
    background: #f5f5f5;
    border-color: #e0e0e0;
  }
}
