/* =============================================
   Academic Personal Website — style.css
   Modeled on biancafreeman.com aesthetic
   ============================================= */

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

:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #6b6b6b;
  --color-rule: #e5e5e5;
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html { font-size: 16px; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-serif);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ---- Layout ---- */
.container {
  display: flex;
  max-width: 960px;
  margin: 0 auto;
  padding: 64px 48px;
  gap: 72px;
  min-height: 100vh;
}

/* ---- Sidebar ---- */
.sidebar {
  width: 180px;
  flex-shrink: 0;
}

.sidebar-inner {
  position: sticky;
  top: 64px;
}

.site-name {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 28px;
}

.site-name a {
  color: var(--color-text);
  text-decoration: none;
}

.site-name a:hover { color: var(--color-muted); }

nav ul { list-style: none; }

nav ul li { margin-bottom: 10px; }

nav ul li a {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  transition: color 0.15s;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--color-text);
}

/* ---- Main Content ---- */
.content {
  flex: 1;
  max-width: 620px;
}

.page-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-muted);
  letter-spacing: 0.06em;
  text-transform: lowercase;
  margin-bottom: 40px;
}

/* ---- Home / Bio ---- */
.profile-photo {
  width: 200px;
  height: auto;
  display: block;
  margin-bottom: 36px;
  /* Optional: slight desaturation for a refined look */
  filter: grayscale(8%);
}

.photo-placeholder {
  width: 200px;
  height: 240px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--color-muted);
  text-align: center;
  padding: 16px;
}

.bio p {
  font-size: 0.975rem;
  line-height: 1.8;
  margin-bottom: 1.15em;
  color: var(--color-text);
}

.bio p:last-of-type { margin-bottom: 0; }

.bio a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #c0c0c0;
  transition: text-decoration-color 0.15s;
}

.bio a:hover { text-decoration-color: var(--color-text); }

.contact-email {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-top: 32px;
  text-decoration: none;
}

.contact-email:hover { color: var(--color-text); }

/* ---- Section Headings (Research, Teaching, CV) ---- */
.section-block { margin-bottom: 52px; }

.section-heading {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-rule);
}

/* ---- Research ---- */
.publication {
  margin-bottom: 18px;
  font-size: 0.92rem;
  line-height: 1.7;
}

.publication a {
  color: var(--color-text);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #c0c0c0;
}

.publication a:hover { text-decoration-color: var(--color-text); }

.wip-item {
  margin-bottom: 10px;
  font-size: 0.92rem;
  line-height: 1.65;
}

.wip-item .wip-title { font-weight: 500; }

.wip-item .wip-note {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-left: 4px;
}

/* ---- Teaching ---- */
.teaching-intro {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 28px;
}

.teaching-intro a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #c0c0c0;
}

.course-list { list-style: none; }

.course-list li {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 16px;
  padding-left: 20px;
  position: relative;
}

.course-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--color-muted);
}

.course-title { font-style: italic; }

.course-role {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-top: 2px;
  display: block;
}

/* ---- CV ---- */
.cv-download-link {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--color-text);
  border: 1px solid #d0d0d0;
  padding: 10px 22px;
  text-decoration: none;
  margin-bottom: 48px;
  transition: background 0.15s;
}

.cv-download-link:hover { background: #f7f7f7; }

.cv-entry { margin-bottom: 20px; }

.cv-entry .cv-year {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-bottom: 3px;
}

.cv-entry .cv-detail {
  font-size: 0.92rem;
  line-height: 1.65;
}

.cv-entry .cv-detail em {
  font-style: italic;
}

/* ---- Mobile ---- */
@media (max-width: 680px) {
  .container {
    flex-direction: column;
    padding: 40px 24px;
    gap: 36px;
  }

  .sidebar { width: 100%; }

  .sidebar-inner { position: static; }

  .site-name { margin-bottom: 14px; }

  nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
  }

  nav ul li { margin-bottom: 0; }

  .profile-photo,
  .photo-placeholder { width: 150px; }

  .photo-placeholder { height: 180px; }
}
