/* =========================================================
   Jingjing Xiong — Editorial Academic Portfolio
   Quiet luxury · paper-like · refined hierarchy
   ========================================================= */

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

:root {
  --paper: #f7f5f0;
  --paper-deep: #efece5;
  --surface: #fffcf7;
  --ink: #1c1917;
  --ink-2: #44403c;
  --ink-3: #78716c;
  --line: #e7e2d9;
  --line-strong: #d6d0c4;
  --accent: #8a6d4b;
  --accent-soft: rgba(138, 109, 75, 0.12);
  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-style: italic; }

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px;
}

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), background 0.35s;
}

.header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 245, 240, 0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.nav { display: flex; gap: 32px; }

.nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color 0.25s;
}

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

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-btn span {
  width: 18px;
  height: 1px;
  background: var(--ink);
}

.hero {
  padding: 140px 0 88px;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: center;
}

.hero-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow:
    0 0 0 8px var(--surface),
    0 0 0 9px var(--line),
    0 20px 40px rgba(28, 25, 23, 0.06);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-text h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hero-role {
  font-size: 0.95rem;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.hero-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.hero-lead {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  font-style: italic;
  color: var(--ink-3);
  max-width: 400px;
  line-height: 1.55;
}

.section { padding: 88px 0; }
.section-alt { background: var(--paper-deep); }

.h2 {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 18px;
}

.section-intro {
  max-width: 480px;
  margin-bottom: 48px;
}

.section-intro p {
  font-size: 0.92rem;
  color: var(--ink-3);
  line-height: 1.65;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-copy p {
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--ink-2);
  max-width: 480px;
}

.about-side {
  border-left: 1px solid var(--line);
  padding-left: 36px;
}

.interest-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.interest-list li strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.interest-list li span {
  font-size: 0.82rem;
  color: var(--ink-3);
  line-height: 1.5;
}

.pub-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.pub {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 8px 28px;
  padding: 32px 36px;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}

.pub:last-child { border-bottom: none; }
.pub:hover { background: rgba(255, 252, 247, 0.7); }

.pub-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 2px;
}

.pub-n {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  color: rgba(28, 25, 23, 0.14);
  line-height: 1;
}

.pub-y {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.pub-field {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.pub-body h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 6px;
}

.pub-sub {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ink-3);
  margin-bottom: 12px;
  line-height: 1.45;
}

.pub-abs {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 16px;
  max-width: 640px;
}

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

.tag {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--ink-3);
  background: transparent;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
}

.tag-status {
  color: var(--accent);
  border-color: rgba(138, 109, 75, 0.35);
  background: var(--accent-soft);
  font-weight: 600;
}

.proj-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.proj {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.proj:first-child { padding-top: 0; }
.proj:last-child { border-bottom: none; padding-bottom: 0; }

.proj-img {
  border-radius: 2px;
  overflow: hidden;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
}

.proj-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s var(--ease);
}

.proj:hover .proj-img img { transform: scale(1.03); }

.proj-meta {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.proj-text h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 12px;
}

.proj-text > p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 14px;
  max-width: 520px;
}

.proj-text .tags { margin-bottom: 14px; }
.proj-video-link { margin: 0 0 14px; }

.video-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink);
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--surface);
  transition: border-color 0.25s, background 0.25s;
}

.video-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.video-btn svg { flex-shrink: 0; opacity: 0.8; }

.text-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}

.text-link:hover { border-bottom-color: var(--accent); }

.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 12px;
}

.edu {
  background: var(--surface);
  padding: 28px 24px;
}

.edu h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}

.edu-deg {
  font-size: 0.88rem;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.edu-meta {
  font-size: 0.78rem;
  color: var(--ink-3);
}

.contact-bar {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  background: var(--paper);
}

.contact-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.contact-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.contact-bar a {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.25s;
}

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

.footer {
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer p {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

@media (max-width: 900px) {
  .about-layout { grid-template-columns: 1fr; gap: 40px; }
  .about-side {
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 28px 0 0;
  }
  .proj { grid-template-columns: 1fr; gap: 20px; }
  .proj-img { max-width: 420px; }
  .edu-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--paper);
    padding: 16px 32px 24px;
    gap: 14px;
    border-bottom: 1px solid var(--line);
  }
  .menu-btn { display: flex; }

  .hero { padding: 110px 0 64px; }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .hero-photo { margin: 0 auto; }
  .hero-lead { margin: 0 auto; }
  .hero-tag { border-bottom: none; }

  .pub {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }
  .pub-side {
    flex-direction: row;
    align-items: baseline;
    gap: 14px;
  }

  .section { padding: 64px 0; }
  .wrap { padding: 0 22px; }
}
